1 2013-06-03 Teresa Johnson <tejohnson@google.com>
3 * dumpfile.c (opt_info_switch_p): Change -fopt-info
4 default to -fopt-info=optimized instead of all.
5 * doc/invoke.texi: Ditto.
6 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
7 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
8 (execute_vect_slp): Emit BB vectorization success under
9 MSG_OPTIMIZED_LOCATIONS.
10 * tree-vect-slp.c (vect_slp_transform_bb): Change
11 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
12 * tree-vect-loop.c (vect_transform_loop): Ditto.
14 2013-06-03 Jason Merrill <jason@redhat.com>
17 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18 Use TARGET_EXPR for C++.
20 2013-06-03 Jakub Jelinek <jakub@redhat.com>
22 PR rtl-optimization/57268
23 * sched-deps.c (sched_analyze_2): Don't flush_pedning_lists
24 if DEBUG_INSN_P (insn).
27 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
29 PR rtl-optimization/57268
30 * sched-deps.c (sched_analyze_2): Flush dependence lists if
31 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
33 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
35 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
36 (ix86_avoid_lea_for_addr): Likewise.
37 (exact_dependency_1): Likewise.
38 (ix86_adjust_cost): Likewise.
39 (swap_top_of_ready_list): Fix formatting and !reload_completed check
41 (do_reorder_for_imul): Fix typo, formatting and
42 !reload_completed check removed.
43 (ix86_sched_reorder): Fix typo and formatting.
44 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
47 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
49 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
51 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
53 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
54 <STRING_CST>: Likewise.
55 <VECTOR_CST>: Likewise.
57 2013-06-01 Janus Weil <janus@gcc.gnu.org>
58 Mikael Morin <mikael@gcc.gnu.org>
60 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
61 * config.in: Regenerated.
62 * configure: Regenerated.
64 2013-06-01 Jan Hubicka <jh@suse.cz>
67 * cgraphunit.c (compile): When weakref is not supported,
68 set up transparent aliases before final output pass.
69 * varasm.c (assemble_alias): Do not try to do it here.
71 2013-06-01 Jan Hubicka <jh@suse.cz>
74 * passes.c (for_per_function): Skip unanalyzed functions.
76 2013-06-01 Jan Hubicka <jh@suse.cz>
78 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
79 (lto_symtab_merge_symbols_1): ... this one.
80 (lto_symtab_merge_cgraph_nodes): Rename to ...
81 (lto_symtab_merge_symbols): ... this one; simplify.
82 * cgraph.c (same_body_aliases_done): Rename to ...
83 (cpp_implicit_aliases_done): ... this one.
84 (cgraph_create_function_alias): Update.
85 (cgraph_same_body_alias): Update.
86 (dump_cgraph_node): Remove alias dumping; simplify
88 (verify_edge_corresponds_to_fndecl): Simplify.
89 * cgraph.h (symtab_node_base): Add cpp_implicit_alias,
91 (cgraph_node): Remove same_body_alias.
92 (varpool_node): Remove alias_of and extra_name_alias.
93 (same_body_aliases_done): Rename to ..
94 (cpp_implicit_aliases_done): ... this one.
95 (symtab_alias_ultimate_target): Add default parameter.
96 (symtab_resolve_alias): New function.
97 (fixup_same_cpp_alias_visibility): Declare.
98 (cgraph_function_node): Add default parameter.
99 (cgraph_node_asm_name): Likewise.
100 (cgraph_function_or_thunk_node): Add default parameter; do
101 not ICE when it is NULL.
102 (varpool_variable_node): Likewise.
103 * tree-emutls.c (create_emultls_var): Update.
104 (ipa_lower_emutls): Update.
105 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
106 (cgraph_reset_node): Reset alias info.
107 (cgraph_finalize_function): Update.
108 (fixup_same_cpp_alias_visibility): Move to symtab.c.
109 (analyze_function): Simplify.
110 (cgraph_process_same_body_aliases): Simplify.
111 (analyze_functions): Fixup same body aliases.
112 (handle_alias_pairs): Simplify.
113 (assemble_thunk): Update.
114 (assemble_thunks_and_aliases): Update.
115 (output_weakrefs): Rewrite.
116 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
117 (lto_output_varpool_node): Likewise.
118 (compute_ltrans_boundary): Remve assert.
119 (get_alias_symbol): New functoin.
120 (input_node): Rewrite alias handling.
121 (input_varpool_node): Likewise.
122 * ipa-pure-const.c (propagate_pure_const): Fix formating.
123 * ipa.c (process_references): Handle weakrefs correctly.
124 (symtab_remove_unreachable_nodes): Likewise.
125 * trans-mem.c (get_cg_data): Update.
126 (ipa_tm_create_version_alias): Update.
127 (ipa_tm_execute): Update.
128 * symtab.c (dump_symtab_base): Dump aliases.
129 (verify_symtab_base): Verify aliases.
130 (symtab_node_availability): New function.
131 (symtab_alias_ultimate_target): Simplify.
132 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
133 handle all the fixup cases.
134 (symtab_resolve_alias): New function.
135 * passes.c (ipa_write_summaries): Handle weakrefs.
136 * varpool.c (varpool_analyze_node): Simplify.
137 (assemble_aliases): Update.
138 (varpool_create_variable_alias): Simplify.
139 (varpool_extra_name_alias): Simplify.
140 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
141 (lto_symtab_merge_symbols): ... this one.
143 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
146 PR rtl-optimization/57268
147 * sched-deps.c (sched_analyze_2): Flush dependence lists if
148 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
150 2013-06-01 Tobias Burnus <burnus@net-b.de>
153 2013-05-31 Tobias Burnus <burnus@net-b.de>
156 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
159 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
161 PR rtl-optimization/57268
162 * sched-deps.c (sched_analyze_2): Flush dependence lists if
163 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
165 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
167 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
168 unordered comparison operators when -fno-trapping-math is in effect
170 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
171 and implement unordered comparison operators properly on the e500.
173 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
175 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
176 for constant scalar integers.
177 (simplify_relational_operation_1): Likewise.
179 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
181 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
182 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
185 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
186 Igor Zamyatin <igor.zamyatin@intel.com>
188 Silvermont (SLM) architecture performance tuning.
189 * config/i386/i386.h (enum ix86_tune_indices): Add
190 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
191 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
193 * config/i386/i386.c (initial_ix86_tune_features)
194 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
195 (ix86_lea_outperforms): Handle Silvermont tuning.
196 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
198 (ix86_use_lea_for_mov): Likewise.
199 (ix86_avoid_lea_for_addr): Likewise.
200 (ix86_lea_for_add_ok): Likewise.
201 (exact_dependency_1): New function.
202 (exact_store_load_dependency): Likewise.
203 (ix86_adjust_cost): Handle Silvermont tuning.
204 (do_reoder_for_imul): Likewise.
205 (swap_top_of_ready_list): New function.
206 (ix86_sched_reorder): Changed to handle Silvermont tuning.
208 * config/i386/i386.md (peepholes that split memory operand in fp
211 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
213 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
214 Remove un-necessary braces.
216 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
218 * config/aarch64/aarch64.c (aarch64_classify_symbol):
219 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
221 2013-05-31 Tobias Burnus <burnus@net-b.de>
224 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
227 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
230 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
231 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
232 * config/arm/neon.md (iordi3_neon): Remove.
233 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
234 * config/arm/predicates.md (imm_for_neon_logic_operand):
235 Move to earlier in the file.
236 (neon_logic_op2): Likewise.
237 (arm_iordi_operand_neon): New predicate.
239 2013-05-31 Richard Biener <rguenther@suse.de>
241 PR tree-optimization/57478
242 PR tree-optimization/57453
243 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
246 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
248 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
249 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
251 2013-05-30 Tobias Burnus <burnus@net-b.de>
252 Thomas Koenig <tkoenig@gcc.gnu.org>
255 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
256 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
258 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
260 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
262 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
264 * target.def (register_usage_leveling_p): New hook.
265 * targhooks.c (default_register_usage_leveling_p): New.
266 * targhooks.h (default_register_usage_leveling_p): New prototype.
267 * lra-assigns.c (register_usage_leveling_p): Use the hook.
268 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
269 * doc/tm.texi: Update.
270 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
272 2013-05-30 Ian Bolton <ian.bolton@arm.com>
274 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
275 (*insv_reg<mode>): New define_insn.
277 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
279 PR rtl-optimization/57439
280 * postreload.c (move2add_valid_value_p): Check that we have
281 a zero subreg_regno_offset when accessing the register in
284 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
285 Igor Zamyatin <igor.zamyatin@intel.com>
287 Silvermont (SLM) architecture pipeline model, tuning and
289 * config.gcc: Add slm config options and target.
291 * config/i386/slm.md: New.
293 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
295 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
297 (ix86_target_macros_internal): Likewise.
299 * gcc/config/i386/i386.c (slm_cost): New cost.
300 (m_SLM): New macro flag.
301 (initial_ix86_tune_features): Set m_SLM.
302 (x86_accumulate_outgoing_args): Likewise.
303 (x86_arch_always_fancy_math_387): Likewise.
304 (processor_target_table): Add slm cost.
305 (cpu_names): Add slm cpu name.
306 (x86_option_override_internal): Set SLM ISA.
307 (ix86_issue_rate): New case PROCESSOR_SLM.
308 (ia32_multipass_dfa_lookahead): Likewise.
309 (fold_builtin_cpu): Add slm.
311 * config/i386/i386.h (TARGET_SLM): New target macro.
312 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
313 (processor_type): Add PROCESSOR_SLM.
315 * config/i386/i386.md (cpu): Add new value "slm".
316 (slm.md): Include slm.md.
318 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
319 Zhenqiang Chen <zhenqiang.chen@linaro.org>
321 * config/arm/arm-protos.h: Add and update function protos.
322 * config/arm/arm.c (use_simple_return_p): New added.
323 (thumb2_expand_return): Check simple_return flag.
324 * config/arm/arm.md: Add simple_return and conditional simple_return.
325 * config/arm/iterators.md: Add iterator for return and simple_return.
327 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
329 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
330 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
331 (arm_emit_vfp_multi_reg_pop): Likewise.
332 (thumb2_emit_ldrd_pop): Likewise.
333 (arm_expand_epilogue): Add misc REG_CFA notes.
334 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
336 2013-05-29 Lawrence Crowl <crowl@google.com>
338 * config/arm/t-arm: Update for below.
340 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
341 Change type to hash_table. Update dependent calls and types.
343 * config/i386/t-cygming: Update for below.
345 * config/i386/t-interix: Update for below.
347 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
348 Change type to hash_table. Update dependent calls and types.
349 (i386_find_on_wrapper_list::wrappers): Likewise.
351 * config/ia64/t-ia64: Update for below.
353 * config/ia64/ia64.c (bundle_state_table):
354 Change type to hash_table. Update dependent calls and types.
356 * config/mips/mips.c (mips_reorg_process_insns::htab):
357 Change type to hash_table. Update dependent calls and types.
359 * config/sol2.c (solaris_comdat_htab):
360 Change type to hash_table. Update dependent calls and types.
362 * config/t-sol2: Update for above.
364 2013-05-29 Teresa Johnson <tejohnson@google.com>
366 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
367 functions are not yet marked as defined.
369 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
370 Pat Haugen <pthaugen@us.ibm.com>
371 Peter Bergner <bergner@vnet.ibm.com>
373 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
377 (vrotl<mode>3): Likewise.
378 (vashl<mode>3): Likewise.
379 (vlshr<mode>3): Likewise.
380 (vashr<mode>3): Likewise.
382 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
383 support for power8 V2DI builtins.
385 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
386 power8 V2DI builtins.
403 (vcmpequd): Likewise.
404 (vcmpgtsd): Likewise.
405 (vcmpgtud): Likewise.
406 (vcmpequd_p): Likewise.
407 (vcmpgtsd_p): Likewise.
408 (vcmpgtud_p): Likewise.
426 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
427 support for power8 V2DI instructions.
429 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
430 power8 V2DI instructions. Combine pack and unpack insns to use an
431 iterator for each mode. Check whether a particular mode supports
432 Altivec instructions instead of just checking TARGET_ALTIVEC.
433 (UNSPEC_VPKUWUM): Likewise.
434 (UNSPEC_VPKSHSS): Likewise.
435 (UNSPEC_VPKSWSS): Likewise.
436 (UNSPEC_VPKUHUS): Likewise.
437 (UNSPEC_VPKSHUS): Likewise.
438 (UNSPEC_VPKUWUS): Likewise.
439 (UNSPEC_VPKSWUS): Likewise.
440 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
441 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
442 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
443 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
444 (UNSPEC_VUPKHSB): Likewise.
445 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
446 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
447 (UNSPEC_VUPKHSH): Likewise.
448 (UNSPEC_VUPKLSB): Likewise.
449 (UNSPEC_VUPKLSH): Likewise.
452 (VI_scalar): Likewise.
455 (VP_small): Likewise.
456 (VP_small_lc): Likewise.
458 (add<mode>3): Likewise.
459 (altivec_vaddcuw): Likewise.
460 (altivec_vaddu<VI_char>s): Likewise.
461 (altivec_vadds<VI_char>s): Likewise.
462 (sub<mode>3): Likewise.
463 (altivec_vsubcuw): Likewise.
464 (altivec_vsubu<VI_char>s): Likewise.
465 (altivec_vsubs<VI_char>s): Likewise.
466 (altivec_vavgs<VI_char>): Likewise.
467 (altivec_vcmpbfp): Likewise.
468 (altivec_eq<mode>): Likewise.
469 (altivec_gt<mode>): Likewise.
470 (altivec_gtu<mode>): Likewise.
471 (umax<mode>3): Likewise.
472 (smax<mode>3): Likewise.
473 (umin<mode>3): Likewise.
474 (smin<mode>3): Likewise.
475 (altivec_vpkuhum): Likewise.
476 (altivec_vpkuwum): Likewise.
477 (altivec_vpkshss): Likewise.
478 (altivec_vpkswss): Likewise.
479 (altivec_vpkuhus): Likewise.
480 (altivec_vpkshus): Likewise.
481 (altivec_vpkuwus): Likewise.
482 (altivec_vpkswus): Likewise.
483 (altivec_vpks<VI_char>ss): Likewise.
484 (altivec_vpks<VI_char>us): Likewise.
485 (altivec_vpku<VI_char>us): Likewise.
486 (altivec_vpku<VI_char>um): Likewise.
487 (altivec_vrl<VI_char>): Likewise.
488 (altivec_vsl<VI_char>): Likewise.
489 (altivec_vsr<VI_char>): Likewise.
490 (altivec_vsra<VI_char>): Likewise.
491 (altivec_vsldoi_<mode>): Likewise.
492 (altivec_vupkhsb): Likewise.
493 (altivec_vupkhs<VU_char>): Likewise.
494 (altivec_vupkls<VU_char>): Likewise.
495 (altivec_vupkhsh): Likewise.
496 (altivec_vupklsb): Likewise.
497 (altivec_vupklsh): Likewise.
498 (altivec_vcmpequ<VI_char>_p): Likewise.
499 (altivec_vcmpgts<VI_char>_p): Likewise.
500 (altivec_vcmpgtu<VI_char>_p): Likewise.
501 (abs<mode>2): Likewise.
502 (vec_unpacks_hi_v16qi): Likewise.
503 (vec_unpacks_hi_v8hi): Likewise.
504 (vec_unpacks_lo_v16qi): Likewise.
505 (vec_unpacks_hi_<VP_small_lc>): Likewise.
506 (vec_unpacks_lo_v8hi): Likewise.
507 (vec_unpacks_lo_<VP_small_lc>): Likewise.
508 (vec_pack_trunc_v8h): Likewise.
509 (vec_pack_trunc_v4si): Likewise.
510 (vec_pack_trunc_<mode>): Likewise.
512 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
514 (vec_vmaxsd): Likewise.
515 (vec_vmaxud): Likewise.
516 (vec_vminsd): Likewise.
517 (vec_vminud): Likewise.
518 (vec_vpksdss): Likewise.
519 (vec_vpksdus): Likewise.
520 (vec_vpkudum): Likewise.
521 (vec_vpkudus): Likewise.
522 (vec_vrld): Likewise.
523 (vec_vsld): Likewise.
524 (vec_vsrad): Likewise.
525 (vec_vsrd): Likewise.
526 (vec_vsubudm): Likewise.
527 (vec_vupkhsw): Likewise.
528 (vec_vupklsw): Likewise.
530 2013-05-29 Jan Hubicka <jh@suse.cz>
532 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
533 flags; reorder rest of fields in more consistent way.
534 (varpool_node): Remove analyzed, finalized and alias.
535 (cgraph_ndoe): Likewise.
536 (symtab_alias_ultimate_target): New function.
537 (cgraph_function_node): Move offline.
538 (cgraph_reset_node): Declare.
539 (cgraph_comdat_can_be_unshared_p): Remove.
540 (varpool_remove_initializer): Declare.
541 (varpool_first_defined_variable, varpool_next_defined_variable
542 cgraph_first_defined_function, cgraph_next_defined_function): Update.
543 (cgraph_function_with_gimple_body_p): Update.
544 (varpool_all_refs_explicit_p): Update.
545 (symtab_alias_target): New function.
546 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
547 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
548 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
549 (varpool_variable_node): Likewise.
550 * cgraph.c (cgraph_create_function_alias): Update.
551 (cgraph_add_thunk): Update.
552 (cgraph_remove_node): Update.
553 (dump_cgraph_node): Do not dump removed flags.
554 (cgraph_function_body_availability): Update.
555 (cgraph_propagate_frequency): Update.
556 (verify_cgraph_node): Check sanity of local flag.
557 (cgraph_function_node): Move here from cgraph.h; revamp for
558 cgraph_function_or_thunk_node.
559 * lto-symtab.c (lto_varpool_replace_node): Update.
560 (lto_symtab_resolve_can_prevail_p): Update.
561 (lto_symtab_merge_cgraph_nodes): Update.
562 * ipa-cp.c (determine_versionability, initialize_node_lattices,
563 propagate_constants_accross_call, devirtualization_time_bonus,
564 ipcp_propagate_stage): Update.
565 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
566 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
567 * ipa-reference.c (propagate): Update.
568 (write_node_summary_p): Update.
569 * toplev.c (wrapup_global_declaration_2): Update.
570 * cgraphunit.c (cgraph_analyze_function): Rename to ...
571 (analyze_function) ... this one.
572 (cgraph_process_new_functions): Update.
573 (cgraph_reset_node): Export.
574 (cgraph_finalize_function): Update.
575 (cgraph_add_new_function): Update.
576 (process_function_and_variable_attributes): Update.
577 (varpool_finalize_decl): Update.
578 (symbol_finalized): Remove.
579 (symbol_finalized_and_needed): Rename to ...
580 (symbol_defined_and_needed): ... update.
581 (cgraph_analyze_functions): Update.
582 (handle_alias_pairs): Update.
583 (mark_functions_to_output): Update.
584 (assemble_thunk): Update.
585 (output_in_order): Update.
586 (output_weakrefs): Update.
587 (finalize_compilation_unit): Update.
588 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
589 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
590 input_node, input_varpool_node): Update.
591 * dbxout.c (dbxout_expand_expr): Update.
592 * cgraphclones.c (cgraph_clone_node): Update.
593 (cgraph_copy_node_for_versioning): Update.
594 (cgraph_materialize_clone): Update.
595 (cgraph_materialize_all_clones): Update.
596 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
597 propagate_pure_const, propagate_nothrow): Update.
598 * lto-streamer-out.c (lto_output, write_symbol): Update.
599 * ipa-utils.c (ipa_reverse_postorder): Update.
600 * ipa-inline.c (can_inline_edge_p): Update.
601 (update_caller_keys, ipa_inline): Update.
602 * dwarf2out.c (reference_to_unused,
603 premark_types_used_by_global_vars_helper): Update.
604 * tree-eh.c (tree_could_trap_p): Update.
605 * ipa-split.c (consider_split, execute_split_functions): Update.
606 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
607 has_addr_references_p): Update;
608 move ahead in file for better readability.
609 (process_references): Simplify.
610 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
612 (cgraph_comdat_can_be_unshared_p): Make static.
613 (cgraph_externally_visible_p): Update.
614 (varpool_externally_visible_p): Update.
615 (function_and_variable_visibility): Update.
616 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
617 ipa_tm_mark_force_output_node): Update.
618 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
619 estimate_edge_devirt_benefit, inline_generate_summary,
620 inline_write_summary): Update.
621 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
622 * ipa-prop.c (ipa_compute_jump_functions): Update.
623 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
624 read_replacements_section): Update.
625 * varasm.c (mark_decl_referenced): Update.
626 (assemble_alias, dump_tm_clone_pairs): Update.
627 * tree-inline.c (copy_bb): Update.
628 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
630 * symtab.c (dump_symtab_base): Print new flags.
631 (verify_symtab_base): Verify new flags.
632 (symtab_alias_ultimate_target): New function.
633 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
634 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
636 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
637 * i386.c (ix86_get_function_versions_dispatcher,
638 ix86_generate_version_dispatcher_body): Update.
639 (fold_builtin_cpu): Use varpool_add_new_variable.
640 * varpool.c (varpool_remove_initializer): Break out from ...
641 (varpool_remove_node): ... this one.
642 (dump_varpool_node, varpool_node_for_asm,
643 cgraph_variable_initializer_availability, varpool_analyze_node,
644 varpool_assemble_decl, varpool_remove_unreferenced_decls,
645 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
647 2013-05-29 Jan Hubicka <jh@suse.cz>
649 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
651 2013-05-29 Easwaran Raman <eraman@google.com>
653 PR tree-optimization/57442
654 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
655 when control exits the main loop.
657 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
659 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
661 * rx/rx.opt: Add macro for rx100 with string rx100 and value
663 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
664 * rx/t-rx: Add rx100 under multi library matches option for nofpu
667 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
669 PR tree-optimization/57441
670 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
671 Don't limit size of incr_vec to number of candidates.
673 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
675 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
676 and mips16 directories.
677 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
679 (MULTILIB_DIRNAMES): Ditto.
680 (MULTILIB_EXCEPTIONS): Add new exceptions.
681 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
682 (MULTILIB_DIRNAMES): Ditto.
683 (MULTILIB_EXCEPTIONS): Add new exceptions.
685 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
686 Marcus Shawcroft <marcus.shawcroft@arm.com>
688 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
689 SYMBOL_TINY_ABSOLUTE.
690 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
691 SYMBOL_TINY_ABSOLUTE.
692 (aarch64_expand_mov_immediate): Likewise.
693 (aarch64_classify_symbol): Likewise.
694 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
695 Permit SYMBOL_TINY_ABSOLUTE.
696 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
698 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
699 Marcus Shawcroft <marcus.shawcroft@arm.com>
701 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
702 Refactor if/switch. Replace gcc_assert with if.
704 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
706 * config/i386/i386.c (initial_ix86_tune_features): Enable
707 FP Reassociation for AMD bdver1 and bdver2.
709 2013-05-29 Martin Jambor <mjambor@suse.cz>
711 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
712 and IMAGPART_EXPR do not occur within other handled_components.
714 2013-05-29 Richard Biener <rguenther@suse.de>
716 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
717 access on whether the use is in the BB we currently try to
719 (vect_bb_vectorization_profitable_p): Pass the BB we currently
720 vectorize to vect_bb_slp_scalar_cost.
722 2013-05-29 Richard Biener <rguenther@suse.de>
724 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
725 computing scalar cost offsetted by stmts that are kept live
727 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
728 for computation of scalar cost.
730 2013-05-28 Steve Ellcey <sellcey@mips.com>
732 * config/mips/mips-cpus.def (mips32r2): Change processor type.
734 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
736 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
737 array notation built-in reduction functions.
738 * doc/passes.texi (Passes): Added documentation about changes done
740 * doc/invoke.texi (C Dialect Options): Added documentation about
742 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
743 (BUILTINS_DEF): Depend on cilkplus.def.
744 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
745 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
746 * cilkplus.def: New file.
748 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
750 PR rtl-optimization/57439
751 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
753 2013-05-28 Easwaran Raman <eraman@google.com>
755 PR tree-optimization/57337
756 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
757 (find_insert_point): Correctly identify the insertion point
758 when two statements with the same UID is compared.
760 2013-05-28 Richard Biener <rguenther@suse.de>
762 PR tree-optimization/56787
763 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
764 from the list of data references.
765 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
767 (vect_analyze_loop_operations): Likewise.
768 (vect_transform_loop): Remove clobbers.
770 2013-05-28 Martin Jambor <mjambor@suse.cz>
772 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
773 and REALPART_EXPRs have scalar type.
775 2013-05-28 Richard Biener <rguenther@suse.de>
777 PR tree-optimization/57411
778 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
780 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
781 virtual operand propagation.
783 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
785 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
786 destination register for bmasksi_vis.
787 (vector_init_bshuffle): Likewise.
788 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
790 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
792 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
793 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
794 mode if the instruction isn't available in the original mode.
795 * config/sparc/sparc.opt (mfix-ut699): New option.
796 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
797 (divdf3): Turn into expander.
798 (divdf3_nofix): New insn.
799 (divdf3_fix): Likewise.
800 (divsf3): Disable if -mfix-ut699.
801 (sqrtdf2): Turn into expander.
802 (sqrtdf2_nofix): New insn.
803 (sqrtdf2_fix): Likewise.
804 (sqrtsf2): Disable if -mfix-ut699.
806 2013-05-27 Richard Biener <rguenther@suse.de>
809 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
810 block for the new loop.
812 2013-05-27 Richard Biener <rguenther@suse.de>
814 PR tree-optimization/57343
815 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
816 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
817 (number_of_iterations_cond): Do not build the folded tree.
819 2013-05-27 Richard Biener <rguenther@suse.de>
823 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
824 OEP_CONSTANT_ADDRESS_OF retained.
826 PR tree-optimization/57417
827 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
829 (set_ssa_val_to): Compare addresses using
830 get_addr_base_and_unit_offset.
832 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
834 PR rtl-optimization/56833
835 * postreload.c (move2add_record_mode): New function.
836 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
837 (move2add_use_add2_insn): Use move2add_record_sym_value.
838 (move2add_use_add3_insn): Likewise.
839 (reload_cse_move2add): Use move2add_valid_value_p and
840 move2add_record_mode. Invalidate call-clobbered and REG_INC
841 affected regs by setting reg_mode to VOIDmode.
842 (move2add_note_store): Don't pretend the inside of a SUBREG is
843 the actual destination. Invalidate single/leading registers by
844 setting reg_mode to VOIDmode.
845 Use move2add_record_sym_value, move2add_valid_value_p and
846 move2add_record_mode.
848 2013-05-27 Richard Biener <rguenther@suse.de>
850 PR tree-optimization/57396
851 * tree-affine.c (double_int_constant_multiple_p): Properly
852 return false for val == 0 and div != 0.
854 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
856 * config/mips/mips.h: Use #elif in preprocessor conditions.
858 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
861 * config/mips/constraints.md (kl): New constraint.
862 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
863 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
864 constraint for operand 0. Split after CSE for MIPS16. Emit a move
866 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
868 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
871 * config/mips/mips.c (mips_can_inline_p): New function.
872 (TARGET_CAN_INLINE_P): Define.
874 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
876 * sched-int.h (ds_t, dw_t): Make unsigned int.
877 Fix documentation that describes how all the ds_t bits are used.
878 Reserve the last bit for delayed-branch scheduling.
879 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
880 (BITS_PER_DEP_WEAK): Fix definition and documentation.
881 (gen_dep_weak_1): Remove prototype.
882 * sched-deps.c (get_dep_weak_1): Make static.
883 * target.def (speculate_insn, needs_block_p, gen_spec_check,
884 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
885 * doc/tm.texi: Regenerate.
886 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
888 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
891 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
893 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
894 Sandra Loosemore <sandra@codesourcery.com>
896 * config.gcc (powerpc-*): Allow native for with-cpu.
898 2013-05-24 Jeff Law <law@redhat.com>
900 PR tree-optimization/57124
901 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
902 conversion feeding a condition if the range has an overflow
903 if -fstrict-overflow. Add warnings for when we do make the
906 2013-05-24 Dehao Chen <dehao@google.com>
908 * tree-cfg.c (locus_discrim_map): Fix the typo.
909 (locus_discrim_hasher): Likewise.
910 (locus_discrim_hasher::hash): Likewise.
911 (locus_discrim_hasher::equal): Likewise.
913 2013-05-24 Martin Jambor <mjambor@suse.cz>
915 PR tree-optimization/57294
916 * cgraph.h (ipa_record_stmt_references): Declare.
917 * cgraphbuild.c (ipa_record_stmt_references): New function.
918 (build_cgraph_edges): Use ipa_record_stmt_references.
919 (rebuild_cgraph_edges): Likewise.
920 (cgraph_rebuild_references): Likewise.
921 * ipa-prop.c (ipa_modify_call_arguments): Discard references
922 associated with the old statement and build references from the
923 newly built statements.
924 * ipa-ref.c (ipa_remove_stmt_references): New function.
925 * ipa-ref.h (ipa_remove_stmt_references): Declare.
927 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
929 * lra-constraints.c (emit_spill_move): Use smaller mode for
931 (check_and_process_move): Consider mem-reg moves for secondary
933 (curr_insn_transform): Don't lose insns emitted before for
934 secondary memory moves.
935 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
936 reg set up in the current insn.
938 2013-05-24 Dehao Chen <dehao@google.com>
940 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
942 (locus_descrim_hasher::equal): Likewise.
943 (build_gimple_cfg): New discriminator assignment algorithm.
944 (make_edges): Likewise.
945 (next_discriminator_for_locus): Likewise.
946 (same_line_p): Likewise.
947 (assign_discriminators): Likewise.
948 (make_cond_expr_edges): Likewise.
949 (make_gimple_switch_edges): Likewise.
950 (make_goto_expr_edges): Likewise.
951 (make_gimple_asm_edges): Likewise.
953 2013-05-24 Ian Bolton <ian.bolton@arm.com>
955 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
956 X format specifier to only display bottom 16 bits.
957 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
958 immediate to match for operand 2, since it will be masked.
960 2013-05-24 Richard Biener <rguenther@suse.de>
962 PR tree-optimization/57287
963 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
964 all SSA names that occur in abnormal PHIs.
966 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
969 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
970 that index is not negative.
972 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
974 PR rtl-optimization/55177
975 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
976 (simplify_byte_swapping_operation): New.
977 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
978 (simplify_relational_operation_1): Deal with BSWAP.
980 2013-05-23 Richard Henderson <rth@redhat.com>
983 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
984 (ix86_reorg): Call it.
986 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
989 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
990 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
991 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
993 2013-05-23 Christian Bruel <christian.bruel@st.com>
996 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
998 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
999 Marcus Shawcroft <marcus.shawcroft@arm.com>
1001 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1002 * config/aarch64/constraints.md (Usa): Remove.
1003 * doc/md.texi (AArch64 Usa): Remove.
1005 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1006 Marcus Shawcroft <marcus.shawcroft@arm.com>
1008 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1009 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1010 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1011 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1013 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1015 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1016 instruction (AdvSIMD).
1017 * config/aarch64/aarch64-builtins.c
1018 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1019 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1021 2013-05-23 Martin Jambor <mjambor@suse.cz>
1024 * tree.h (contains_bitfld_component_ref_p): Declare.
1025 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1026 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1028 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1029 not access a bit-field. Assert all final offsets are byte-aligned.
1031 2013-05-23 Richard Biener <rguenther@suse.de>
1033 PR tree-optimization/57380
1034 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1035 least one invariant or re-used load.
1036 * passes.c (init_optimization_passes): Move pass_phiprop before
1039 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1041 * config/aarch64/aarch64-simd.md
1042 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1044 2013-05-23 Richard Biener <rguenther@suse.de>
1047 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1048 OEP_CONSTANT_ADDRESS_OF retained.
1050 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1053 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1054 don't lower unit. Handle unit not being always BITS_PER_WORD.
1056 2013-05-23 Richard Biener <rguenther@suse.de>
1058 PR rtl-optimization/57341
1059 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1060 instead of true_dependence.
1062 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1064 * bb-reorder.c (branch_threshold): Make const.
1065 (exec_threshold): Ditto.
1067 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1068 Pat Haugen <pthaugen@us.ibm.com>
1069 Peter Bergner <bergner@vnet.ibm.com>
1071 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1072 documentation for the power8 crypto builtins.
1074 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1076 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1077 macros for defining power8 builtin functions.
1078 (BU_P8V_AV_2): Likewise.
1079 (BU_P8V_AV_P): Likewise.
1080 (BU_P8V_VSX_1): Likewise.
1081 (BU_P8V_OVERLOAD_1): Likewise.
1082 (BU_P8V_OVERLOAD_2): Likewise.
1083 (BU_CRYPTO_1): Likewise.
1084 (BU_CRYPTO_2): Likewise.
1085 (BU_CRYPTO_3): Likewise.
1086 (BU_CRYPTO_OVERLOAD_1): Likewise.
1087 (BU_CRYPTO_OVERLOAD_2): Likewise.
1088 (XSCVSPDP): Fix typo, point to the correct instruction.
1089 (VCIPHER): Add power8 crypto builtins.
1090 (VCIPHERLAST): Likewise.
1091 (VNCIPHER): Likewise.
1092 (VNCIPHERLAST): Likewise.
1093 (VPMSUMB): Likewise.
1094 (VPMSUMH): Likewise.
1095 (VPMSUMW): Likewise.
1096 (VPERMXOR_V2DI): Likewise.
1097 (VPERMXOR_V4SI: Likewise.
1098 (VPERMXOR_V8HI: Likewise.
1099 (VPERMXOR_V16QI: Likewise.
1100 (VSHASIGMAW): Likewise.
1101 (VSHASIGMAD): Likewise.
1103 (VPERMXOR): Likewise.
1104 (VSHASIGMA): Likewise.
1106 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1107 __CRYPTO__ if the crypto instructions are available.
1108 (altivec_overloaded_builtins): Add support for overloaded power8
1111 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1112 support for power8 crypto builtins.
1113 (builtin_function_type): Likewise.
1114 (altivec_init_builtins): Add support for builtins that take vector
1115 long long (V2DI) arguments.
1117 * config/rs6000/crypto.md: New file, define power8 crypto
1120 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1121 Pat Haugen <pthaugen@us.ibm.com>
1122 Peter Bergner <bergner@vnet.ibm.com>
1124 * doc/invoke.texi (Option Summary): Add power8 options.
1125 (RS/6000 and PowerPC Options): Likewise.
1127 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1128 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1129 wm, wn, wr documentation.
1131 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1132 registers if direct move instructions are enabled.
1133 (wn): New constraint for no registers.
1134 (wq): New constraint for quad word even GPR registers.
1135 (wr): New constraint if 64-bit instructions are enabled.
1136 (wv): New constraint if power8 vector instructions are enabled.
1137 (wQ): New constraint for quad word memory locations.
1139 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1140 constraint for 0..15 for crypto instructions.
1141 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1142 as GPR and floating point registers.
1143 (int_reg_operand): New predicate to match only GPR registers.
1144 (base_reg_operand): New predicate to match base registers.
1145 (quad_int_reg_operand): New predicate to match even GPR registers
1146 for quad memory operations.
1147 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1148 operations in both GPR and VSX registers.
1149 (quad_memory_operand): New predicate for quad memory operations.
1150 (reg_or_indexed_operand): New predicate for direct move support.
1152 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1153 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1154 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1155 (POWERPC_MASKS): Add power8 options.
1156 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1159 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1160 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1162 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1163 (-mpower8-fusion): New power8 options.
1164 (-mpower8-fusion-sign): Likewise.
1165 (-mpower8-vector): Likewise.
1166 (-mcrypto): Likewise.
1167 (-mdirect-move): Likewise.
1168 (-mquad-memory): Likewise.
1170 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1172 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1174 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1175 (rs6000_debug_vector_unit): Add p8_vector.
1176 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1177 definitions. Also print fusion state.
1178 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1179 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1180 (rs6000_option_override_internal): Add support for power8.
1181 (rs6000_common_init_builtins): Add debugging for skipped builtins
1183 (rs6000_adjust_cost): Add power8 support.
1184 (rs6000_issue_rate): Likewise.
1185 (insn_must_be_first_in_group): Likewise.
1186 (insn_must_be_last_in_group): Likewise.
1187 (force_new_group): Likewise.
1188 (rs6000_register_move_cost): Likewise.
1189 (rs6000_opt_masks): Likewise.
1191 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1192 power8 capable assembler, default to power7 options.
1193 (TARGET_DIRECT_MOVE): Likewise.
1194 (TARGET_CRYPTO): Likewise.
1195 (TARGET_P8_VECTOR): Likewise.
1196 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1197 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1198 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1199 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1200 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1201 (TARGET_XSCVDPSPN): Likewise.
1202 (TARGET_XSCVSPDPN): Likewsie.
1203 (TARGET_SYNC_HI_QI): Likewise.
1204 (TARGET_SYNC_TI): Likewise.
1205 (MASK_CRYPTO): Likewise.
1206 (MASK_DIRECT_MOVE): Likewise.
1207 (MASK_P8_FUSION): Likewise.
1208 (MASK_P8_VECTOR): Likewise.
1209 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1210 temporary used by some of the direct move instructions to get two FP
1211 temporary registers does not force creation of a stack frame.
1212 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1213 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1214 that any VSX registers are tieable, even if they are also an
1215 Altivec vector mode.
1216 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1217 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1218 (RS6000_BTM_CRYPTO): Likewise.
1219 (RS6000_BTM_COMMON): Likewise.
1221 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1222 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1223 (enum rs6000_vector): Add power8 vector support.
1225 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1229 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1230 (any_sibcall_could_use_r3): this and handle indirect calls.
1231 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1233 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1235 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1237 2013-05-22 Richard Biener <rguenther@suse.de>
1240 * profile.c (branch_prob): Do not split blocks that are
1241 abnormally receiving from ECF_RETURNS_TWICE functions.
1243 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1245 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1246 address mode. Move pointer mode initialization to the same place.
1248 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1250 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1251 while it has any effect.
1253 2013-05-21 Easwaran Raman <eraman@google.com>
1255 PR tree-optimization/57322
1256 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1257 UID of the statement added to the BB to be 1.
1259 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1261 PR tree-optimization/57331
1262 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1263 of conversion from pointer type to integral type with integer.
1265 2013-05-21 Martin Jambor <mjambor@suse.cz>
1268 * ipa-prop.c (ipa_read_node_info): Process param_used and
1269 controlled_uses in the same order as when writing.
1271 2013-05-21 Magnus Granberg <baldrick@free.fr>
1274 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1276 2013-05-21 Richard Biener <rguenther@suse.de>
1278 PR tree-optimization/57318
1279 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1280 estimate stmts with side-effects as likely eliminated.
1282 2013-05-21 Richard Biener <rguenther@suse.de>
1284 PR tree-optimization/57330
1285 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1286 preserve the call stmts fntype.
1288 2013-05-21 Richard Biener <rguenther@suse.de>
1290 PR tree-optimization/57303
1291 * tree-ssa-sink.c (statement_sink_location): Improve killing
1292 stmt detection and properly handle self-assignments.
1294 2013-05-21 Christian Bruel <christian.bruel@st.com>
1296 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1297 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1298 registers. Set register size out of the PARALLEL loop.
1300 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1303 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1304 (*fmasf4, *fmasf4_media): New insns.
1306 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1308 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1309 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1310 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1311 (mips_idiv_insns): Update the comments to say that the returned
1312 instruction counts are in units of BASE_INSN_LENGTH.
1313 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1314 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1315 using 2 rather than 4 as the length of indirect MIPS16 and
1316 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1317 length of a NOP. Don't divide MIPS16 lengths by 2.
1318 (mips16_split_long_branches): Assume a branch is long if the
1319 length is greater than 4 rather than 8.
1320 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1321 rather than multiplying them by 2. Multiply instruction counts
1322 by BASE_INSN_LENGTH rather than 4.
1323 (*jump_mips16, tls_get_tp_mips16_<mode>)
1324 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1326 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1328 * config/mips/mips.md (extended_mips16): Remove branch case.
1329 (length): Remove duplicated extended_mips16 test.
1331 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1333 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1335 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1337 * recog.h (Recog_data): Rename to...
1338 (recog_data_d): ...this.
1339 (recog_data): Update accordingly.
1340 * recog.c (recog_data): Likewise.
1341 * reload.c (save_recog_data): Likewise.
1342 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1343 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1345 2013-05-17 Julian Brown <julian@codesourcery.com>
1347 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1348 found in a REG_EQUAL note, invalidate it.
1350 2013-05-17 Easwaran Raman <eraman@google.com>
1352 * tree-ssa-reassoc.c (find_insert_point): New function.
1353 (insert_stmt_after): Likewise.
1354 (get_def_stmt): Likewise.
1355 (ensure_ops_are_available): Likewise.
1356 (not_dominated_by): Likewise.
1357 (rewrite_expr_tree): Do not move statements beyond what is
1358 necessary. Remove call to swap_ops_for_binary_stmt...
1359 (reassociate_bb): ... and move it here.
1360 (build_and_add_sum): Assign UIDs for new statements.
1361 (linearize_expr): Likewise.
1362 (do_reassoc): Renumber gimple statement UIDs.
1364 2013-05-17 Jan Hubicka <jh@suse.cz>
1366 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1368 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1369 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1371 (output_weakrefs): Update.
1373 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1374 Martin Jambor <mjambor@suse.cz>
1377 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1378 value that corresponds to the given aggval is found in values vector.
1380 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1382 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1383 sse, sse2, sse3, ssse3 and sse4a flags to options.
1385 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1387 * gengtype-state.c: (s_expr_writer): New class, to handle
1388 prettifying of output layout of s-expressions.
1389 (state_writer): New class, to write out gtype.state.
1390 (state_written_type_count): Move this variable into member data of
1392 (s_expr_writer::s_expr_writer): New code: constructor for new class
1393 (state_writer::state_writer(): ditto
1394 (s_expr_writer::write_new_line): New function
1395 (s_expr_writer::write_any_indent): ditto
1396 (s_expr_writer::begin_s_expr): ditto
1397 (s_expr_writer::end_s_expr): ditto
1398 (write_state_fileloc): convert to method of state_writer...
1399 (state_writer:: write_state_fileloc): ...and use methods of
1400 s_expr_writer to write indentation into the gtype.state output file
1401 to visually represent the hierarchical structure of the list
1403 (write_state_fields): ditto, renaming to...
1404 (state_writer::write_state_fields)
1405 (write_state_a_string): ditto, renaming to...
1406 (state_writer::write_state_a_string)
1407 (write_state_string_option): ditto, renaming to...
1408 (state_writer::write_state_string_option)
1409 (write_state_type_option): ditto, renaming to...
1410 (state_writer::write_state_type_option)
1411 (write_state_nested_option): ditto, renaming to...
1412 (state_writer::write_state_nested_option)
1413 (write_state_option): ditto, renaming to...
1414 (state_writer::write_state_option)
1415 (write_state_options): ditto, renaming to...
1416 (state_writer::write_state_options)
1417 (write_state_lang_bitmap): ditto, renaming to...
1418 (state_writer::write_state_lang_bitmap)
1419 (write_state_version): ditto, renaming to...
1420 (state_writer::write_state_version)
1421 (write_state_scalar_type): ditto, renaming to...
1422 (state_writer::write_state_scalar_type)
1423 (write_state_string_type): ditto, renaming to...
1424 (state_writer::write_state_string_type)
1425 (write_state_undefined_type): ditto, renaming to...
1426 (state_writer::write_state_undefined_type)
1427 (write_state_struct_union_type): ditto, renaming to...
1428 (state_writer::write_state_struct_union_type)
1429 (write_state_struct_type): ditto, renaming to...
1430 (state_writer::write_state_struct_type)
1431 (write_state_user_struct_type): ditto, renaming to...
1432 (state_writer::write_state_user_struct_type)
1433 (write_state_lang_struct_type): ditto, renaming to...
1434 (state_writer::write_state_lang_struct_type)
1435 (write_state_param_struct_type): ditto, renaming to...
1436 (state_writer::write_state_param_struct_type)
1437 (write_state_pointer_type): ditto, renaming to...
1438 (state_writer::write_state_pointer_type)
1439 (write_state_array_type): ditto, renaming to...
1440 (state_writer::write_state_array_type)
1441 (write_state_gc_used): ditto, renaming to...
1442 (state_writer::write_state_gc_used)
1443 (write_state_common_type_content): ditto, renaming to...
1444 (state_writer::write_state_common_type_content)
1445 (write_state_type): ditto, renaming to...
1446 (state_writer::write_state_type)
1447 (write_state_pair_list): ditto, renaming to...
1448 (state_writer::write_state_pair_list)
1449 (write_state_pair): ditto, renaming to...
1450 (state_writer::write_state_pair)
1451 (write_state_typedefs): ditto, renaming to...
1452 (state_writer::write_state_typedefs)
1453 (write_state_structures): ditto, renaming to...
1454 (state_writer::write_state_structures)
1455 (write_state_param_structs): ditto, renaming to...
1456 (state_writer::write_state_param_structs)
1457 (write_state_variables): ditto, renaming to...
1458 (state_writer::write_state_variables)
1459 (write_state_srcdir): ditto, renaming to...
1460 (state_writer::write_state_srcdir)
1461 (write_state_files_list): ditto, renaming to...
1462 (state_writer::write_state_files_list)
1463 (write_state_languages): ditto, renaming to...
1464 (state_writer::write_state_languages)
1465 (write_state): create a state_writer instance and use it when
1466 writing out the state file
1468 2013-05-17 Mike Stump <mikestump@comcast.net>
1470 PR rtl-optimization/57304
1471 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1472 accessing DF_REF_REAL_LOC.
1474 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1476 PR rtl-optimization/57281
1477 PR rtl-optimization/57300
1478 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1479 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1480 what the other splitter did if the registers are dead.
1482 2013-05-17 Richard Biener <rguenther@suse.de>
1484 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1487 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1489 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1492 2013-05-17 Marek Polacek <polacek@redhat.com>
1494 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1495 length when doing non-zero store of storing '\0' to '\0'.
1497 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1499 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1500 vect_external_def oprnd1 with loop_vinfo, try to emit
1501 optional cast, negation and and stmts on the loop preheader
1502 edge instead of into the pattern def seq.
1504 PR tree-optimization/57051
1505 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1506 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1508 2013-05-16 Nick Clifton <nickc@redhat.com>
1510 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1511 (rl78_is_naked_func): New function.
1512 (rl78_expand_prologue): Skip prologue generation for naked
1514 (rl78_expand_epilogue): Skip epilogue generation for naked
1516 * doc/extend.texi (naked): Add RL78 to the list of processors
1517 that supports this attribute.
1519 2013-05-16 Jeff Law <law@redhat.com>
1521 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1523 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1525 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1526 cache parameters using detect_caches_amd also for CYRIX,
1527 NSC and TM2 signatures.
1529 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1530 Dzianis Kahanovich <mahatma@eu.by>
1534 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1535 VIA/Centaur processors and determine their cache parameters
1536 using detect_caches_amd.
1538 2013-05-16 Teresa Johnson <tejohnson@google.com>
1540 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1541 (rtl_verify_edges): New function.
1542 (rtl_verify_bb_insns): Ditto.
1543 (rtl_verify_bb_pointers): Ditto.
1544 (rtl_verify_bb_insn_chain): Ditto.
1545 (rtl_verify_fallthru): Ditto.
1546 (rtl_verify_bb_layout): Ditto.
1547 (rtl_verify_flow_info_1): Outline checks into new functions.
1548 (rtl_verify_flow_info): Ditto.
1550 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
1552 * cfghooks.c (copy_bbs): Add update_dominance argument.
1553 * cfghooks.h (copy_bbs): Update prototype.
1554 * tree-cfg.c (gimple_duplicate_sese_region):
1555 Add update_dominance argument.
1556 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1557 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1558 gimple_duplicate_sese_region call.
1559 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1560 Update copy_bbs call.
1561 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1562 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1564 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1566 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1567 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1568 vect_recog_rotate_pattern.
1569 (vect_recog_rotate_pattern): New function.
1571 2013-05-16 Jason Merrill <jason@redhat.com>
1573 * Makefile.in (LLINKER): New variable.
1574 (mostlyclean): Remove link mutex.
1575 * configure.ac: Handle --enable-link-mutex.
1576 * lock-and-run.sh: New script.
1578 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1581 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1584 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1586 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1588 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1590 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1591 * config/arm/arm.c (next_consecutive_mem): New function.
1592 (gen_movmem_ldrd_strd): Likewise.
1593 * config/arm/arm.md (movmemqi): Update condition and code.
1594 (unaligned_loaddi, unaligned_storedi): New patterns.
1596 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1598 * config.gcc: Obsolete *-*-solaris2.9*.
1599 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1601 2013-05-16 Richard Biener <rguenther@suse.de>
1603 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1604 earlier, after GRAPHITE transforms and IV canonicalization.
1606 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1608 * omp-low.c (extract_omp_for_data): For collapsed loops,
1609 if at least one of the loops is known at compile time to
1610 iterate zero times, set count to 0.
1611 (expand_omp_regimplify_p): New function.
1612 (expand_omp_for_generic): For collapsed loops, if at least
1613 one of the loops isn't known to iterate at least once,
1614 add runtime check with setting count to 0.
1615 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1616 For unsigned types if it isn't known at compile time that
1617 the loop will iterate at least once, add runtime check to bypass
1618 the whole loop if initial condition isn't true.
1620 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1622 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1624 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
1627 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1628 transformations to avoid an infinite loop.
1630 2013-05-16 Marek Polacek <polacek@redhat.com>
1632 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1634 2013-05-15 Leif Ekblad <leif@rdos.net>
1636 * config/i386/i386.c (ix86_decompose_address): Use
1637 DEFAULT_TLS_SEG_REG to access TLS segment register.
1638 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1639 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1640 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1642 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1645 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1646 sibling calls to functions that would normally be lazily bound,
1647 unless $gp is call-clobbered.
1649 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1651 * config/i386/i386.c (ix86_option_override_internal): Update
1652 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1653 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1654 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1655 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1657 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1659 2013-05-15 Andreas Schwab <schwab@suse.de>
1661 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1662 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1665 2013-05-15 Teresa Johnson <tejohnson@google.com>
1667 * loop-unroll.c (report_unroll_peel): Check decision before
1668 emitting unroll/peel message.
1670 2013-05-15 Teresa Johnson <tejohnson@google.com>
1672 * function.h (has_bb_partition): New rtl_data flag.
1673 (bb_reorder_complete): Ditto.
1674 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1675 instead of flag_reorder_blocks_and_partition.
1676 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1677 with some enhancements.
1678 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1679 * bb-reorder.c (connect_traces): Check for has_bb_partition
1680 instead of flag_reorder_blocks_and_partition.
1681 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1682 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1683 verify_hot_cold_block_grouping.
1684 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1686 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1689 * config/arm/predicates.md (call_insn_operand): New predicate.
1690 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1691 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1692 if insn is not a tail call.
1693 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1695 * config/arm/arm.h (enum reg_class): New caller save register class.
1696 (REG_CLASS_NAMES): Likewise.
1697 (REG_CLASS_CONTENTS): Likewise.
1698 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1701 2013-05-15 Richard Biener <rguenther@suse.de>
1703 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1704 of MSG_OPTIMIZED_LOCATIONS.
1705 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1706 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1708 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1709 of MSG_OPTIMIZED_LOCATIONS.
1710 (execute_vect_slp): Likewise.
1711 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1712 (vect_create_cond_for_alias_checks): Likewise.
1713 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1714 (vect_recog_widen_mult_pattern): Likewise.
1715 (vect_recog_widen_sum_pattern): Likewise.
1716 (vect_recog_over_widening_pattern): Likewise.
1717 (vect_recog_widen_shift_pattern): Likewise.
1718 (vect_recog_vector_vector_shift_pattern): Likewise.
1719 (vect_recog_divmod_pattern): Likewise.
1720 (vect_recog_mixed_size_cond_pattern): Likewise.
1721 (vect_recog_bool_pattern): Likewise.
1722 (vect_pattern_recog_1): Likewise.
1724 2013-05-15 Martin Jambor <mjambor@suse.cz>
1726 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1727 non-functions to builtin_unreachable.
1728 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1729 correct when new direct edges were discovered.
1731 2013-05-15 Martin Jambor <mjambor@suse.cz>
1733 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1734 header, print symbol order instead of node uid, print more information
1735 about indirect edge targets.
1736 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1738 (ipa_make_edge_direct_to_target): Likewise.
1739 (remove_described_reference): Likewise.
1740 (propagate_controlled_uses): Likewise.
1741 (ipa_print_node_params): Also print symbol order.
1742 (ipcp_transform_function): Print symbol order instead of node uids.
1743 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1744 (cgraph_get_create_real_symbol_node): Likewise.
1745 * ipa-cp.c (print_lattice): Likewise.
1746 (print_all_lattices): Likewise.
1747 (determine_versionability): Likewise.
1748 (initialize_node_lattices): Likewise.
1749 (estimate_local_effects): Likewise.
1750 (update_profiling_info): Likewise.
1751 (create_specialized_node): Likewise.
1752 (perhaps_add_new_callers): Likewise.
1753 (decide_about_value): Likewise.
1754 (decide_whether_version_node): Likewise.
1755 (identify_dead_nodes): Likewise.
1756 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1757 (dump_inline_summary): Likewise.
1758 (estimate_node_size_and_time): Likewise.
1759 (inline_analyze_function): Likewise.
1760 * ipa-inline.c (report_inline_failed_reason): Likewise.
1761 (want_early_inline_function_p): Likewise.
1762 (edge_badness): Likewise.
1763 (update_edge_key): Likewise.
1764 (inline_small_functions): Likewise. Add dumping of order to two other
1766 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1767 instead of node uids.
1768 (propagate_pure_const): Likewise.
1769 (propagate_pure_const): Likewise.
1770 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1771 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1772 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1774 * tree-pretty-print.c (dump_function_header): Likewise.
1775 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1776 Print symbol order instead of node uids.
1778 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1780 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1781 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1783 2013-05-15 Richard Biener <rguenther@suse.de>
1785 PR tree-optimization/57275
1786 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1787 return value for fail to do runtime alias checks for gather loads.
1789 2013-05-15 Jan Hubicka <jh@suse.cz>
1793 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1794 weakrefs are not external.
1795 (lto_symtab_merge_decls): Fix thinko when dealing with
1796 non-lto_symtab decls.
1797 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1798 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1799 * varpool.c (dump_varpool_node): Dump more flags.
1801 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1803 * config/i386/i386.c (processor_alias_table): Add instruction
1804 FSGSBASE for AMD bdver3 architecture.
1806 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1808 * tree.c (warn_deprecated_use): Print file:line using locus color.
1809 * diagnostic.c (diagnostic_report_current_module): Print file:line
1810 and file:line:column using locus color.
1812 2013-05-14 Mike Stump <mikestump@comcast.net>
1814 * gdbinit.in: Add __null.
1816 2013-05-14 Mike Stump <mikestump@comcast.net>
1818 * recog.h: Rename struct recog_data to Recog_data.
1819 * recog.c: Likewise.
1820 * reload.c (can_reload_into): Likewise.
1821 * config/picochip/picochip.c: Likewise.
1823 2013-05-14 Mike Stump <mikestump@comcast.net>
1825 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1827 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1829 * resource.h (struct resources): Remove unch_memory member.
1830 (CLEAR_RESOURCE): Don't clear unch_memory.
1831 * resource.c (mark_referenced_resources): Don't set it.
1832 (mark_set_resources): Likewise.
1833 (mark_target_live_regs): Don't clear it.
1834 (init_resource_info): Likewise.
1835 * reorg.c (resource_conflicts_p): Don't compare it.
1836 (redundant_insn): Don't set it.
1838 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1840 * emit-rtl.c (next_label): Remove unused function.
1841 (skip_consecutive_labels, link_cc0_insns): Move to ...
1842 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1843 only place where these functions are used, and make them static.
1845 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1847 * fold-const.c (fold_negate_expr): Handle vectors.
1848 (fold_truth_not_expr): Make it static.
1849 (fold_invert_truthvalue): New static function.
1850 (invert_truthvalue_loc): Handle vectors. Do not call
1851 fold_truth_not_expr directly.
1852 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1853 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1854 (fold_comparison): Handle vector constants.
1855 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1856 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1857 * tree.h (fold_truth_not_expr): Remove declaration.
1859 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1861 * config/aarch64/aarch64-simd.md
1862 (aarch64_vcond_internal<mode>): Rename to...
1863 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1864 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1865 float modes. Clarify all iterator modes.
1866 (vcond<mode><mode>): Use new name for vcond expanders.
1867 (vcond<v_cmp_result><mode>): Likewise.
1868 (vcondu<mode><mode>: Likewise.
1869 * config/aarch64/iterators.md (VDQF_COND): New.
1871 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1874 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1875 variable for the shift amount. Check that we shift by non-negative
1878 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1881 * config/arm/arm.h (EPILOGUE_USES): Only return true
1882 for LR_REGNUM after epilogue_completed.
1884 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1886 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
1889 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1892 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1893 and Solaris 11+/x86 with gld.
1894 * configure: Regenerate.
1896 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1898 * expmed.c (expand_shift_1): Canonicalize rotates by
1899 constant bitsize / 2 to bitsize - 1.
1900 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
1901 case ROTATERT>: Likewise.
1904 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1906 * config/i386/i386.md (rotateinv): New code attr.
1907 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1908 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1909 roll $31, %eax, etc.
1911 2013-05-14 Richard Biener <rguenther@suse.de>
1914 * tree-eh.c (sink_clobbers): Give up for successors with
1915 multiple predecessors and no virtual uses.
1917 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1919 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1920 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1922 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1925 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1926 the case when both op0 and op1 have VOIDmode.
1928 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1930 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1931 in multiply-accumulate mode.
1933 2013-05-13 Guozhi Wei <carrot@google.com>
1935 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1937 2013-05-13 Kai Tietz <ktietz@redhat.com>
1940 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
1941 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
1942 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
1943 * config/i386/i386.c (ix86_option_override_internal): Likewise.
1944 (ix86_expand_prologue): Likewise.
1945 (ix86_expand_split_stack_prologue): Likewise.
1946 (legitimate_pic_address_disp_p): Likewise.
1947 (legitimize_pic_address): Likewise.
1948 (legitimize_tls_address): Likewise.
1949 (legitimize_pe_coff_symbol): Likewise.
1950 (output_pic_addr_const): Likewise.
1951 (construct_plt_address): Likewise.
1952 (ix86_expand_call): Likewise.
1953 (x86_output_mi_thunk): Likewise.
1954 (x86_function_profiler): Likewise.
1956 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1958 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1959 similar switch cases.
1960 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1961 (aarch64_simd_mov_to_<mode>low): Delete.
1962 (aarch64_simd_mov_to_<mode>high): Delete.
1963 (move_lo_quad_<mode>): Add w<-r alternative.
1964 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1965 (aarch64_simd_mov_from_*): Update type attribute.
1966 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1969 2013-05-13 Jan Hubicka <jh@suse.cz>
1971 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1972 * config/i386/i386.c (ix86_compute_frame_layout,
1973 ix86_expand_epilogue, emit_i387_cw_initialization,
1974 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1975 ix86_local_alignment): Fix use of size/speed predicates.
1977 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1979 PR tree-optimization/45216
1980 PR tree-optimization/57157
1981 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1982 the (-Y) & (B - 1) variant if OP is |.
1983 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1984 return shifted. Use (-op1) & (prec - 1) as other_amount
1985 instead of prec - op1.
1987 2013-05-13 Martin Jambor <mjambor@suse.cz>
1990 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1991 (ipa_constant_data): New type.
1992 (ipa_jump_func): Use ipa_constant_data to hold information about
1993 constant jump functions.
1994 (ipa_get_jf_constant): Adjust to jump function type changes.
1995 (ipa_get_jf_constant_rdesc): New function.
1996 (ipa_param_descriptor): New field controlled_uses.
1997 (ipa_get_controlled_uses): New function.
1998 (ipa_set_controlled_uses): Likewise.
1999 * ipa-ref.h (ipa_find_reference): Declare.
2000 * ipa-prop.c (ipa_cst_ref_desc): New type.
2001 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2003 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2004 New parameter cs. Adjust all callers.
2005 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2006 (remove_described_reference): New function.
2007 (jfunc_rdesc_usable): Likewise.
2008 (try_make_edge_direct_simple_call): Decrement controlled use count,
2009 attempt to remove reference if it hits zero.
2010 (combine_controlled_uses_counters): New function.
2011 (propagate_controlled_uses): Likewise.
2012 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2013 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2014 (ipa_print_node_params): Print described use counter.
2015 (ipa_write_jump_function): Adjust to jump function type changes.
2016 (ipa_read_jump_function): New parameter CS, pass it to
2017 ipa_set_jf_constant. Adjust caller.
2018 (ipa_write_node_info): Stream controlled use count
2019 (ipa_read_node_info): Likewise.
2020 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2022 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2023 count. Remove cloning-added reference if it reaches zero.
2024 * ipa-ref.c (ipa_find_reference): New function.
2026 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2028 * config/i386/i386.c (processor_target_table): Modified default
2029 alignment values for AMD BD and BT architectures.
2031 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2033 * tree-vect-generic.c (uniform_vector_p): Move ...
2034 * tree.c (uniform_vector_p): ... here.
2035 * tree.h (uniform_vector_p): Declare it.
2036 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2039 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2041 PR tree-optimization/57230
2042 * tree-ssa-strlen.c (handle_char_store): Record length for
2043 array store from STRING_CST.
2045 PR tree-optimization/57230
2046 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2049 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2051 * config/epiphany/epiphany.c (epiphany_init): Check size of
2052 NUM_MODES_FOR_MODE_SWITCHING.
2053 (epiphany_expand_prologue):
2054 Remove CONFIG_REGNUM initial value handling code.
2055 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2056 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2057 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2058 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2059 Don't return 1 for FP_MODE_NONE.
2060 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2061 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2062 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2063 * config/epiphany/epiphany.md (save_config): New pattern.
2065 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2067 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2069 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2071 * config/i386/i386.md (memory): Handle sseishft1.
2072 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2073 (*vec_extractv2di_1): Ditto.
2075 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2077 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2080 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2082 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2083 Add mthumb/march=armv7-a multilib.
2084 Add mthumb/march=armv7-r multilib.
2085 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2087 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2089 * config/v850/t-rtems: Add more multilibs.
2091 2013-05-10 Richard Biener <rguenther@suse.de>
2093 PR tree-optimization/57214
2094 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2095 not propagate from SSA names that occur in abnormal PHI nodes.
2097 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2099 * stor-layout.c (element_precision): New function.
2100 * machmode.h (element_precision): Declare it.
2101 * tree.c (build_minus_one_cst): New function.
2102 (element_precision): Likewise.
2103 * tree.h (build_minus_one_cst): Declare new function.
2104 (element_precision): Likewise.
2105 * fold-const.c (operand_equal_p): Use element_precision.
2106 (fold_binary_loc): Handle vector types.
2107 * convert.c (convert_to_integer): Use element_precision.
2108 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2111 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2113 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2114 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2115 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2116 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2117 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2118 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2119 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2120 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2121 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2122 (Uuw8): New constraints.
2123 (Usb4): Move into alphabetical order.
2124 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2125 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2126 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2127 previously unnamed patterns.
2128 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2129 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2130 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2131 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2132 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2133 of specific lengths.
2135 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2137 * config/i386/i386.md (rotateinv): New code attr.
2138 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2139 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2140 roll $31, %eax, etc.
2142 PR tree-optimization/45216
2143 PR tree-optimization/57157
2144 * tree-ssa-forwprop.c (simplify_rotate): New function.
2145 (ssa_forward_propagate_and_combine): Call it.
2147 2013-05-10 Richard Biener <rguenther@suse.de>
2149 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2150 disable peeling when we version for aliasing.
2151 (vector_alignment_reachable_p): Honor explicit user alignment.
2152 (vect_supportable_dr_alignment): Likewise.
2153 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2154 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2155 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2156 then peeling to arrange for the cost-model check to come first.
2158 2013-05-10 Alan Modra <amodra@gmail.com>
2160 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2161 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2162 * configure: Regenerate.
2164 2013-05-10 Alan Modra <amodra@gmail.com>
2167 * varasm.c (default_elf_select_section): Move !DECL_P check..
2168 (get_named_section): ..to here before calling get_section_name.
2170 (default_section_type_flags): Add DECL_P check.
2171 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2172 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2174 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2176 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2177 When using gen_stack_adjust_str with a register offset, add a
2178 REG_FRAME_RELATED_EXPR note.
2180 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2182 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2183 (*vec_extractv4si_zext_mem): Ditto.
2184 (*vec_extractv2di): Add 0->x and x->x alternatives.
2185 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2186 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2188 2013-05-09 Jason Merrill <jason@redhat.com>
2190 N3639 C++1y VLA support
2191 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2194 * tree.c (build_constructor_va): New.
2195 * tree.h: Declare it.
2197 2013-05-09 Martin Jambor <mjambor@suse.cz>
2200 * gimple-fold.c (canonicalize_constructor_val): Call
2201 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2203 2013-05-09 Jan Hubicka <jh@suse.cz>
2204 Richard Biener <rguenther@suse.de>
2207 * symtab.c (symtab_make_decl_local): Do not add private names.
2209 2013-05-09 Jan Hubicka <jh@suse.cz>
2212 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2213 (unlink_from_assembler_name_hash): Likewise.
2214 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2215 symtab_unregister_node, symtab_initialize_asm_name_hash,
2216 change_decl_assembler_name): Update.
2218 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2220 * config/aarch64/aarch64.md: New movtf split.
2221 (*movtf_aarch64): Update.
2222 (aarch64_movdi_tilow): Handle TF modes and rename to
2223 aarch64_movdi_<mode>low.
2224 (aarch64_movdi_tihigh): Handle TF modes and rename to
2225 aarch64_movdi_<mode>high
2226 (aarch64_movtihigh_di): Handle TF modes and rename to
2227 aarch64_mov<mode>high_di
2228 (aarch64_movtilow_di): Handle TF modes and rename to
2229 aarch64_mov<mode>low_di
2230 (aarch64_movtilow_tilow): Remove spurious whitespace.
2231 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2233 (aarch64_print_operand): Update.
2235 2013-05-09 Alan Modra <amodra@gmail.com>
2237 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2239 * configure: Regenerate.
2241 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2243 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2244 splitter preparation statements.
2245 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2246 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2249 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2251 * gimple-ssa-strength-reduction.c (count_candidates): Change
2252 return value to int.
2253 (analyze_candidates_and_replace): Change type of length to int.
2255 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2257 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2258 (*vec_extract<mode>): Use VI12_128 mode iterator.
2259 (*vec_extract<mode>_mem): Ditto.
2260 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2263 2013-05-08 Diego Novillo <dnovillo@google.com>
2268 2012-08-17 Diego Novillo <dnovillo@google.com>
2271 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2272 * config.in: Regenerate.
2273 * configure: Regenerate.
2274 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2276 2013-05-08 Jan Hubicka <jh@suse.cz>
2279 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2280 * cgraph.h (symtab_node_base): Add unique_name.
2281 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2282 input_overwrite_node, input_varpool_node): Stream unique_name.
2283 * cgraphclones.c (cgraph_create_virtual_clone,
2284 cgraph_function_versioning): Set unique_name.
2285 * ipa.c (function_and_variable_visibility): Set unique_name.
2287 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2289 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2290 (alloc_cand_and_find_basis): Restrict conditional candidate
2291 processing to CAND_MULTs.
2293 2013-05-08 Jan Hubicka <jh@suse.cz>
2296 lto-symtab.c (lto_symtab_symbol_p): New function.
2297 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2298 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2299 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2300 Skip static symbols.
2302 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2304 PR tree-optimization/57200
2305 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2306 Only call inform if the preceding warning_at returns true.
2308 2013-05-07 Han Shen <shenhan@google.com>
2310 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2311 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2312 * common.opt (fstack-protector-strong): New option.
2313 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2314 * doc/invoke.texi (Optimization Options): Document
2315 "-fstack-protector-strong".
2316 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2318 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2320 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2322 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2324 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2325 it is not lhs of the insn.
2326 (setup_reg_equiv): Remove insn having equiv memory which it is not
2328 * lra-constraints.c (process_address): Try to improve generation
2329 code for address base + disp.
2330 (lra_constraints): Make correct the code for checking insn setting
2331 up backward equivalence. Remove insn only if it is in the init
2333 * lra-eliminations.c (update_reg_eliminate): Change return value.
2334 (lra_eliminate): Use the result.
2336 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2338 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2339 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2340 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2341 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2342 register target operands.
2343 (*vec_extractv8hi_sse2): New pattern.
2344 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2345 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2346 (*vec_extract<mode>_mem): New insn and split pattern.
2348 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2350 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2351 (TARGET_ASAN_SHADOW_OFFSET): Define.
2352 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2353 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2355 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2357 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2358 (incr_vec_index): Return -1 if increment not found.
2359 (create_add_on_incoming_edge): Assert if increment not found.
2360 (record_increment): Limit number of increments recorded.
2361 (all_phi_incrs_profitable): Return false if an increment not found.
2362 (replace_profitable_candidates): Don't process increments that were
2364 (analyze_candidates_and_replace): Limit size of incr_vec.
2366 2013-05-07 Richard Biener <rguenther@suse.de>
2368 * calls.c (special_function_p): setjmp-like functions are leaf.
2369 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2370 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2372 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2374 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2375 (aarch64_simd_mov<mode>): New expander.
2376 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2377 (aarch64_simd_mov_to_<mode>high): Likewise.
2378 (aarch64_simd_mov_from_<mode>low): Likewise.
2379 (aarch64_simd_mov_from_<mode>high): Likewise.
2380 (aarch64_dup_lane<mode>): Update.
2381 (aarch64_dup_lanedi): New instruction pattern.
2382 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2383 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2385 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2387 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2388 (replace_mult_candidate): Remove unnecessary argument; remove
2389 unnecessary parameter from call to introduce_cast_before_cand.
2390 (replace_unconditional_candidate): Remove unnecessary parameter
2391 from call to replace_mult_candidate.
2392 (replace_conditional_candidate): Likewise.
2393 (insert_initializers): Use make_temp_ssa_name.
2394 (introduce_cast_before_cand): Remove unnecessary argument; use
2396 (replace_one_candidate): Remove unnecessary argument; remove
2397 unnecessary parameter from calls to introduce_cast_before_cand.
2398 (replace_profitable_candidates): Remove unnecessary parameters
2399 from calls to replace_one_candidate.
2401 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2403 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2404 phi def as possibly hiding a basis for a CAND_ADD whose operands
2405 have been commuted in the analysis.
2406 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2408 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2410 * config/aarch64/aarch64.md
2411 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2412 shift value between 0-4.
2414 2013-05-07 Richard Biener <rguenther@suse.de>
2416 * double-int.h (rshift): New overload.
2417 * double-int.c (rshift): New function.
2418 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2419 (create_reference_ops_from_ref): Remove.
2420 (vn_reference_insert): Use shared ops for constructing the
2421 reference and copy it.
2423 2013-05-07 Richard Biener <rguenther@suse.de>
2426 * tree-eh.c (sink_clobbers): Properly propagate
2427 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2429 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2431 PR tree-optimization/57149
2432 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2433 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2434 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2435 uninit_undefined_value_p instead of ssa_undefined_value_p.
2438 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2439 for modifier == EXPAND_INITIALIZER.
2441 2013-05-07 Anton Blanchard <anton@samba.org>
2443 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2444 for powerpc64 little endian.
2445 * configure: Regenerate.
2447 2013-05-06 Graham Stott <grahams@btinternet.com>
2449 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2450 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2451 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2452 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2454 2013-05-06 Graham Stott <grahams@btinternet.com>
2456 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2457 codes which allow non-lvalues.
2459 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2461 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2462 components are all 1s.
2463 (integer_minus_onep): New function.
2464 * tree.h (integer_minus_onep): Declare it.
2465 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2466 integer_minus_onep instead of integer_all_onesp.
2468 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2471 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2472 variations of these patterns.
2474 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2476 * config/i386/i386.md (isa): Add x64_sse4 member.
2477 (enabled): Handle x64_sse4.
2478 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2479 instruction for 64bit SSE4_1 targets. Update insn attributes.
2480 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2481 instruction for SSE4_1 targets. Update insn attributes.
2482 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2483 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2484 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2486 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2487 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2488 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2490 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2493 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2495 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2497 * final.c (do_assembler_dialects): Don't handle curly braces and
2498 vertical bar escaped by % as dialect delimiters.
2499 (output_asm_insn): Print curly braces and vertical bar if escaped
2500 by % and ASSEMBLER_DIALECT defined.
2501 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2502 * doc/tm.texi: Regenerated.
2504 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2506 * config/mips/mips.c: Include tree-pass.h.
2507 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2508 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2509 (pass_mips_machine_reorg2): New machine specific pass.
2510 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2511 (mips_option_override): Register the new pass.
2512 * rtl.h (cleanup_barriers): Remove prototype.
2513 (dbr_schedule): Likewise.
2514 * jump.c (cleanup_barriers): Make static.
2515 * reorg.c (dbr_schedule): Likewise.
2517 2013-05-06 Richard Biener <rguenther@suse.de>
2519 PR tree-optimization/57185
2520 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2523 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2526 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2527 between "first_arg" and "insn", not "last" and "insn".
2529 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2531 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2532 (find_candidates_in_block): Re-enable slsr_process_phi.
2533 (create_phi_basis): Fix double counting of candidate adjustment.
2535 2013-05-06 Richard Biener <rguenther@suse.de>
2538 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2539 the edge is also fallthru, preserve it and just clear the
2541 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2542 also complex, preserve that and just clear the fallthru flag.
2543 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2544 update virtual operands.
2546 2013-05-06 Alan Modra <amodra@gmail.com>
2548 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2549 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2550 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2551 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2552 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2553 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2555 2013-05-06 Alan Modra <amodra@gmail.com>
2557 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2558 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2559 (DEFAULT_ASM_ENDIAN): Define.
2560 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2561 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2562 Update -K PIC clause from sysv4.h.
2563 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2564 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2566 2013-05-06 Alan Modra <amodra@gmail.com>
2568 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2569 twice for little-endian.
2570 (ashrdi3_no_power, ashrdi3): Support little-endian.
2572 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2575 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2576 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2578 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2579 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2580 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2583 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2584 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2586 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2587 * config/pa/pa.opt: Make mbig-switch a no-op.
2588 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2589 (CASE_VECTOR_MODE): Always return SImode.
2590 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2591 for the !TARGET_BIG_SWITCH case.
2592 * config/pa/pa-linux.h: Likewise.
2593 * config/pa/pa-openbsd.h: Likewise.
2594 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2595 * config/pa/pa.md (short_jump): Remove define_insn.
2596 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2597 (casesi0): Remove define_insn.
2598 (type): Remove btable_branch.
2599 (pa_combine_type): Likewise.
2600 (in_nullified_branch_delay): Likewise.
2601 (in_call_delay): Likewise.
2602 (define_delay): Likewise.
2603 (define_insn_reservation "Z3"): Likewise.
2604 (define_insn_reservation "Z4"): Likewise.
2605 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2606 (pa_adjust_insn_length): Remove adjustment for btable branches.
2607 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2610 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
2612 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2613 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2614 Add m->r,x alternatives.
2615 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2616 splitters using SWI48x mode iterator.
2617 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2618 TARGET_64BIT. Add m->x alternative.
2619 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2620 Add o->x alternative. Enable for TARGET_SSE.
2621 (sse_storeq): Remove expander.
2622 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2623 with memory input operand.
2624 (*vec_extractv2di_1 splitter): New.
2625 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2626 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2628 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2630 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2631 (INT_LOWPART): Delete.
2632 (extract_MB): Adjust.
2633 (extract_ME): Adjust.
2634 (print_operand): Adjust.
2636 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2638 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2639 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2640 (reg_or_logical_cint_operand, easy_fp_constant,
2641 logical_const_operand): Delete "CONST_DOUBLE" case.
2642 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2643 "HOST_BITS_PER_WIDE_INT == 64" test.
2644 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
2645 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2646 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2647 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2649 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2650 CONST_DOUBLE DImode/VOIDmode case.
2651 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2652 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2653 CONST_DOUBLE VOIDmode case.
2654 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2655 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2656 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2657 Delete CONST_DOUBLE case.
2658 (splitters for mov FMOVE64 const_double): Delete
2659 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2660 "HOST_BITS_PER_WIDE_INT >= 64" test.
2661 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2663 (mov DI const_double): Delete.
2665 2013-05-04 Jakub Jelinek <jakub@redhat.com>
2667 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2668 on op shows all bits zero in mode of a lowpart subreg, return zero.
2670 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2673 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2674 to save TFmode registers and DImode to save TImode registers for
2675 caller save operations.
2676 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2677 mark being partially clobbered since they only use the first
2680 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2681 and TDmode only use the upper 64-bits of each VSX register.
2683 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2685 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2686 (find_candidates_in_block): Disable slsr_process_phi.
2688 2013-05-03 Guozhi Wei <carrot@google.com>
2690 * coverage.c (coverage_obj_init): Move the construction of gcov
2692 (build_init_ctor): ... here.
2694 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2696 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2697 (slsr_cand_d): Redefine def_phi.
2698 (stride_status, phi_adjust_status, count_phis_status): New enums.
2699 (find_phi_def): New.
2700 (find_basis_for_base_expr): New.
2701 (find_basis_for_candidate): Handle hidden bases.
2702 (alloc_cand_and_find_basis): Handle phi candidates.
2703 (slsr_process_phi): New.
2704 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2705 (create_mul_imm_cand): Likewise.
2706 (create_add_ssa_cand): Exclude phi base candidates.
2707 (create_add_imm_cand): Likewise.
2708 (slsr_process_cast): Likewise.
2709 (slsr_process_copy): Likewise.
2710 (find_candidates_in_block): Handle phi candidates.
2711 (dump_candidate): Likewise.
2712 (unconditional_cands): Delete.
2713 (unconditional_cands_with_known_stride_p): Delete.
2714 (phi_dependent_cand_p): New.
2715 (cand_increment): Handle phi-dependent candidates.
2716 (replace_dependent): Delete.
2717 (replace_mult_candidate): New.
2718 (replace_unconditional_candidate): New.
2719 (incr_vec_index): Move to avoid forward reference.
2720 (create_add_on_incoming_edge): New.
2721 (create_phi_basis): New.
2722 (replace_dependents): Delete.
2723 (replace_conditional_candidate): New.
2724 (phi_add_costs): New.
2725 (replace_uncond_cands_and_profitable_phis): New.
2726 (record_increment): Handle phi adjustments.
2727 (record_phi_increments): New.
2728 (record_increments): Handle phi adjustments.
2729 (phi_incr_cost): New.
2730 (lowest_cost_path): Handle phis.
2731 (total_savings): Likewise.
2732 (analyze_increments): Likewise.
2733 (ncd_with_phi): New.
2734 (ncd_of_cand_and_phis): New.
2735 (nearest_common_dominator_for_cands): Handle phi increments.
2736 (all_phi_incrs_profitable): New.
2737 (replace_profitable_candidates): Handle phi-dependent candidates.
2738 (analyze_candidates_and_replace): Likewise.
2740 2013-05-03 Teresa Johnson <tejohnson@google.com>
2743 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2744 do not exceed REG_BR_PROB_BASE.
2746 2013-05-03 Jeff Law <law@redhat.com>
2748 PR tree-optimization/57144
2749 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2750 operand of the condition will bit into the new type when eliminating
2751 a cast feeding a condition.
2753 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2755 PR rtl-optimization/57130
2756 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2757 of COMPARE as in_code to the recursive call if needed.
2759 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
2761 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2762 (enabled): Handle new members.
2763 * config/i386/sse.md (*vec_concatv2si): Merge from
2764 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2765 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2767 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2769 PR tree-optimization/57027
2770 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2771 for fnms opportunity, check we got the prerequisite kind
2772 of tree / gimple before using accessor functions.
2774 2013-05-03 Richard Biener <rguenther@suse.de>
2776 * double-int.h (lshift): New overload without precision
2778 (operator *=, operator +=, operator -=): Move ...
2779 * double-int.c (operator *=, operator +=, operator -=): ... here
2780 and implement more efficiently.
2781 (mul_double_with_sign): Remove.
2782 (lshift_double): Adjust to take unsinged shift argument, push
2783 dispatching code to callers.
2784 (mul_double_wide_with_sign): Add early out for callers that
2785 are not interested in high parts or overflow.
2786 (lshift): New function.
2787 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2789 (lrotate, rrotate): Use logical shifts.
2790 * expr.c (get_inner_reference): Use lshift.
2791 * fixed-value.c (do_fixed_divide): Likewise.
2792 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2793 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2794 (indirect_refs_may_alias_p): Likewise.
2795 (stmt_kills_ref_p_1): Likewise.
2797 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2799 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2801 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2803 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2804 scalar form of FABD instruction.
2806 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2808 * lra-constraints.c (process_alt_operands): Add checking alt
2809 number to choose the best alternative.
2811 2013-05-02 Richard Biener <rguenther@suse.de>
2813 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2814 bitmap and its handling.
2815 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2817 2013-05-02 Richard Biener <rguenther@suse.de>
2820 * tree-inline.c (copy_loops): Properly handle removed loops.
2821 (copy_cfg_body): Mark destination loops for fixup if source
2824 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2827 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2828 generating simple_return for naked functions.
2830 2013-05-02 Martin Jambor <mjambor@suse.cz>
2833 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2834 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2836 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2837 ipa_agg_replacement_value structures.
2838 (known_aggs_to_agg_replacement_list): Likewise.
2839 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2840 (read_agg_replacement_chain): Likewise.
2841 (ipcp_transform_function): Also check that by_ref flags match.
2843 2013-05-02 Richard Biener <rguenther@suse.de>
2845 * graphds.h (struct graph): Add obstack member.
2846 * graphds.c (new_graph): Initialize obstack and allocate
2848 (add_edge): Allocate edge from the obstack.
2849 (free_graph): Free the obstack instead of all edges and vertices.
2851 2013-05-02 Teresa Johnson <tejohnson@google.com>
2853 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2855 * cfg.c (update_bb_profile_for_threading): Ditto.
2856 * tree-inline.c (copy_bb): Ditto.
2857 (copy_edges_for_bb): Ditto.
2858 (initialize_cfun): Ditto.
2859 (copy_cfg_body): Ditto.
2860 (expand_call_inline): Ditto.
2861 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2862 (estimate_node_size_and_time): Ditto.
2863 (inline_merge_summary): Ditto.
2864 * cgraphclones.c (cgraph_clone_edge): Ditto.
2865 (cgraph_clone_node): Ditto.
2866 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2867 (compute_trg_info): Ditto.
2869 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2871 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2872 S reg when fp attribute set.
2873 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2875 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2877 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2879 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2880 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2881 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2883 2013-05-02 Richard Biener <rguenther@suse.de>
2885 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2886 (struct instantiate_cache_entry): New type.
2887 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2888 (struct instantiate_cache_type): New type.
2889 (set_instantiated_value, get_instantiated_value): Remove.
2890 (get_instantiated_value_entry): New function.
2891 (instantiate_scev_name): Use the new cache and adjust.
2892 (instantiate_scev_poly): Adjust.
2893 (instantiate_scev_binary): Likewise.
2894 (instantiate_array_ref): Likewise.
2895 (instantiate_scev_convert): Likewise.
2896 (instantiate_scev_not): Likewise.
2897 (instantiate_scev_3): Likewise.
2898 (instantiate_scev_2): Likewise.
2899 (instantiate_scev_r): Likewise.
2900 (instantiate_scev): Likewise.
2901 (resolve_mixers): Likewise.
2903 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2906 * lra-constraints.c (best_small_class_operands_num): Remove.
2907 (process_alt_operands): Remove small_class_operands_num. Take
2908 small classes operands into losers and only if the operand is not
2909 matched. Modify debugging output.
2910 (curr_insn_transform): Remove best_small_class_operands_num.
2913 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2915 * config/aarch64/aarch64-builtins.c
2916 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2917 * config/aarch64/aarch64-simd-builtins.def
2918 (reduc_splus_): Add new modes.
2919 (reduc_uplus_): New.
2920 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2921 (reduc_uplus_v4sf): Likewise.
2922 (reduc_splus_v4sf): Likewise.
2923 (aarch64_addv<mode>): Likewise.
2924 (reduc_uplus_<mode>): Likewise.
2925 (reduc_splus_<mode>): Likewise.
2926 (aarch64_addvv2di): Likewise.
2927 (reduc_uplus_v2di): Likewise.
2928 (reduc_splus_v2di): Likewise.
2929 (aarch64_addvv2si): Likewise.
2930 (reduc_uplus_v2si): Likewise.
2931 (reduc_splus_v2si): Likewise.
2932 (reduc_<sur>plus_<mode>): New.
2933 (reduc_<sur>plus_v2di): Likewise.
2934 (reduc_<sur>plus_v2si): Likewise.
2935 (reduc_<sur>plus_v4sf): Likewise.
2936 (aarch64_addpv4sf): Likewise.
2937 * config/aarch64/arm_neon.h
2938 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2939 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2940 add UNSPEC_SADDV, UNSPEC_UADDV.
2942 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2944 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2946 * config/aarch64/arm_neon.h
2947 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2949 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2951 * config/aarch64/aarch64-builtins
2952 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2954 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2956 * config/aarch64/aarch64-simd-builtins.def
2958 (reduc_smin_): Likewise.
2959 (reduc_umax_): Likewise.
2960 (reduc_umin_): Likewise.
2961 (reduc_smax_nan_): Likewise.
2962 (reduc_smin_nan_): Likewise.
2965 (smax): Update for V2SF, V4SF and V2DF modes.
2968 (smin_nan): Likewise.
2969 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2970 (<su><maxmin><mode>3): ...This, refactor.
2971 (s<maxmin><mode>3): New.
2972 (<maxmin_uns><mode>3): Likewise.
2973 (reduc_<maxmin_uns>_<mode>): Refactor.
2974 (reduc_<maxmin_uns>_v4sf): Likewise.
2975 (reduc_<maxmin_uns>_v2si): Likewise.
2976 (aarch64_<fmaxmin><mode>: Remove.
2977 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2979 (vmin<q>_f<32,64>): Likewise.
2980 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2982 (su): Add mappings for smax, smin, umax, umin.
2984 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2985 (FMAXMIN): Rename as...
2986 (FMAXMIN_UNS): ...This.
2988 (fmaxminv): Likewise.
2989 (fmaxmin): Likewise.
2991 (maxmin_uns_op): Likewise.
2993 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2995 * config/aarch64/arm_neon.h
2996 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2997 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2998 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3000 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3002 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3003 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3005 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3007 * config/aarch64/aarch64-simd.md
3008 (vcond<mode>_internal): Handle special cases for constant masks.
3009 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3010 (vcondu<mode><mode>): Likewise.
3011 (vcond<v_cmp_result><mode>): New.
3013 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3015 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3016 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3017 * config/aarch64/aarch64-simd-builtins.def
3018 (cmeq): Update to BUILTIN_VALLDI.
3023 * config/aarch64/arm_neon.h
3024 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3025 to builtins or C as appropriate.
3027 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3029 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3031 (cmhi): Rename to...
3033 * config/aarch64/aarch64-simd.md
3034 (simd_mode): Add SF.
3035 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3036 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3037 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3038 (cstore<mode>_neg): ...This.
3039 * config/aarch64/iterators.md
3041 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3043 (UCOMPARISONS): Likewise.
3044 (optab): Add missing comparisons.
3052 (V_cmp_result): Add DF, SF modes.
3053 (v_cmp_result): Likewise.
3056 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3058 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3060 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3061 define_insn to define_insn_and_split.
3062 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3063 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3064 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3065 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3066 (thumb2_negscc): Likewise.
3068 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3070 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3072 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3074 * config/arm/thumb2.md: Remove trailing whitespaces.
3076 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3078 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3079 Use gen_int_mode rather than GEN_INT.
3081 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3083 * value-prof.c (stream_in_histogram_value): Remove the strayed
3086 2013-04-30 Richard Biener <rguenther@suse.de>
3089 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3091 2013-04-30 Richard Biener <rguenther@suse.de>
3094 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3096 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3098 PR rtl-optimization/56957
3099 PR rtl-optimization/57105
3100 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3101 variable. Use just INSN_UID for determining whether an insn
3102 should be only disconnected from the insn stream.
3103 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3105 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3107 PR tree-optimization/57104
3108 * tsan.c (instrument_expr): Don't instrument accesses to
3109 DECL_HARD_REGISTER VAR_DECLs.
3111 2013-04-30 Richard Biener <rguenther@suse.de>
3113 * function.h (loops_for_fn): New inline function.
3114 (set_loops_for_fn): Likewise.
3115 * cfgloop.h (place_new_loop): Add struct function parameter.
3116 (get_loop): Likewise.
3117 (get_loops): Likewise.
3118 (number_of_loops): Likewise.
3120 (fel_init): Likewise.
3121 * cfg.c (get_loop_copy): Adjust.
3122 * cfgloop.c (flow_loops_dump): Likewise.
3123 (record_loop_exits): Likewise.
3124 (verify_loop_structure): Likewise.
3125 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3126 (estimate_reg_pressure_cost): Likewise.
3127 (mark_loop_exit_edges): Likewise.
3128 * cfgloopmanip.c (place_new_loop): Likewise.
3129 (add_loop): Likewise.
3130 (duplicate_loop): Likewise.
3131 * graph.c (draw_cfg_nodes): Likewise.
3132 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3133 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3134 (extract_affine_chrec): Likewise.
3135 (build_scop_iteration_domain): Likewise.
3136 * graphite.c (graphite_initialize): Likewise.
3137 * ira-build.c (create_loop_tree_nodes): Likewise.
3138 (more_one_region_p): Likewise.
3139 (rebuild_regno_allocno_maps): Likewise.
3140 (mark_loops_for_removal): Likewise.
3141 (mark_all_loops_for_removal): Likewise.
3142 (remove_unnecessary_regions): Likewise.
3143 (ira_build): Likewise.
3144 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3145 * loop-init.c (fix_loop_structure): Likewise.
3146 (gate_rtl_move_loop_invariants): Likewise.
3147 (gate_rtl_unswitch): Likewise.
3148 (gate_rtl_unroll_and_peel_loops): Likewise.
3149 (rtl_doloop): Likewise.
3150 * lto-streamer-in.c (input_cfg): Likewise.
3151 * lto-streamer-out.c (output_cfg): Likewise.
3152 * modulo-sched.c (sms_schedule): Likewise.
3153 * predict.c (tree_estimate_probability): Likewise.
3154 (tree_estimate_probability_driver): Likewise.
3155 (estimate_loops): Likewise.
3156 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3157 (move_sese_region_to_fn): Likewise.
3158 (debug_loop_num): Likewise.
3159 * tree-chrec.c (chrec_evaluate): Likewise.
3160 (hide_evolution_in_other_loops_than_loop): Likewise.
3161 (chrec_component_in_loop_num): Likewise.
3162 (reset_evolution_in_loop): Likewise.
3163 (evolution_function_is_invariant_rec_p): Likewise.
3164 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3165 * tree-inline.c (copy_loops): Likewise.
3166 (copy_cfg_body): Likewise.
3167 (tree_function_versioning): Likewise.
3168 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3169 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3171 (add_to_evolution_1): Likewise.
3172 (scev_const_prop): Likewise.
3173 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3174 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3175 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3176 (tree_ssa_lim_initialize): Likewise.
3177 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3178 (verify_loop_closed_ssa): Likewise.
3179 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3180 (tree_ssa_loop_im): Likewise.
3181 (tree_ssa_loop_unswitch): Likewise.
3182 (tree_vectorize): Likewise.
3183 (check_data_deps): Likewise.
3184 (tree_ssa_loop_ivcanon): Likewise.
3185 (tree_ssa_loop_bounds): Likewise.
3186 (tree_complete_unroll): Likewise.
3187 (tree_complete_unroll_inner): Likewise.
3188 (tree_parallelize_loops): Likewise.
3189 (tree_ssa_loop_prefetch): Likewise.
3190 (tree_ssa_loop_ivopts): Likewise.
3191 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3192 * tree-vectorizer.c (vectorize_loops): Likewise.
3194 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3196 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3197 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3198 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3199 with EABI_LINK_SPEC.
3201 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3204 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3207 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3210 * lra-constraints.c (process_alt_operands): Discourage a bit more
3211 using memory for pseudos. Print cost dump for alternatives.
3212 Modify cost values for conflicts with early clobbers.
3213 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3215 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3218 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3220 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3222 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3224 (movdi_aarch64): Support LDR/STR from/to D register.
3226 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3228 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3229 or higher by default.
3231 2013-04-29 Richard Biener <rguenther@suse.de>
3234 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3235 even if not adding abnormal edges for calls that can make
3238 2013-04-29 Richard Biener <rguenther@suse.de>
3241 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3243 (move_stmt_r): Remove redundant checking.
3245 2013-04-29 Teresa Johnson <tejohnson@google.com>
3248 * basic-block.h (apply_scale): New function.
3249 (apply_probability): Use apply_scale.
3250 * gimple-streamer-in.c (input_bb): Ditto.
3251 * lto-streamer-in.c (input_cfg): Ditto.
3252 * lto-cgraph.c (merge_profile_summaries): Ditto.
3253 * tree-optimize.c (execute_fixup_cfg): Ditto.
3254 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3255 (copy_edges_for_bb): Ditto.
3256 (copy_cfg_body): Ditto.
3258 2013-04-29 Tom de Vries <tom@codesourcery.com>
3260 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3261 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3262 (tail_merge_optimize): Handle current_loops == NULL.
3264 2013-04-26 Jeff Law <law@redhat.com>
3266 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3267 (simplify_cond_using_ranges): Generalize code to simplify
3268 COND_EXPRs where one argument is a constant and the other
3269 is an SSA_NAME created by an integral type conversion.
3271 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3273 * config/arm/arm.md (store_minmaxsi): Use only when
3274 optimize_insn_for_size_p.
3276 2013-04-29 Christian Bruel <christian.bruel@st.com>
3279 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3281 2013-04-29 Richard Biener <rguenther@suse.de>
3284 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3285 loop tree make sure to schedule a fixup for the child as well.
3286 (expand_omp_for_generic): Properly add loops.
3287 (expand_omp_for_static_nochunk): Likewise.
3288 (expand_omp_for_static_chunk): Likewise.
3289 (expand_omp_for): For the degenerate case fixup loops.
3290 (expand_omp_sections): Fix default bb placement in loops.
3291 (expand_omp_atomic_pipeline): Properly add loops.
3293 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3295 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3297 2013-04-29 Tom de Vries <tom@codesourcery.com>
3299 * tree-ssa-tail-merge.c: Update header comment.
3301 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3303 * config/aarch64/arm_neon.h
3304 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3305 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3306 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3307 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3308 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3309 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3310 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3311 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3313 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3315 * config/aarch64/aarch64-simd.md
3316 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3317 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3318 fix_trunc, fixuns_trunc.
3319 (ftrunc<VDQF:mode>2): New.
3320 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3321 (fix_trunc_optab): New.
3323 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3325 * config/aarch64/aarch64-builtins.c
3326 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3327 iceilf, lround, iroundf.
3329 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3332 * config/i386/i386.h (enum ix86_tune_indices)
3333 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3334 New, split from X86_TUNE_INTER_UNIT_MOVES.
3335 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3336 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3337 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3338 (TARGET_INTER_UNIT_MOVES): Remove.
3339 * config/i386/i386.c (initial_ix86_tune_features): Update.
3340 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3341 (ix86_expand_convert_uns_didf_sse): Use
3342 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3343 (ix86_expand_vector_init_one_nonzero): Ditto.
3344 (ix86_expand_vector_init_interleave): Ditto.
3345 (inline_secondary_memory_needed): Return true for moves from SSE class
3346 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3347 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3348 * config/i386/constraints.md (Yi, Ym): Depend on
3349 TARGET_INTER_UNIT_MOVES_TO_VEC.
3350 (Yj, Yn): New constraints.
3351 * config/i386/i386.md (*movdi_internal): Change constraints of
3352 operand 1 from Yi to Yj and from Ym to Yn.
3353 (*movsi_internal): Ditto.
3354 (*movdf_internal): Ditto.
3355 (*movsf_internal): Ditto.
3356 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3357 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3358 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3359 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3360 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3361 * config/i386/sse.md (movdi_to_sse): Ditto.
3362 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3363 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3364 TARGET_INTER_UNIT_MOVES.
3365 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3366 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3367 instead of TARGET_INTER_UNIT_MOVES.
3368 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3369 operand 1 from Yi to Yj and from Ym to Yn.
3371 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3373 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3374 (float_truncate_hi_): Likewise.
3375 (float_extend_lo_): Likewise.
3376 (float_truncate_lo_): Likewise.
3377 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3378 (aarch64_float_extend_lo_v2df): Likewise.
3379 (vec_unpacks_hi_v4sf): Likewise.
3380 (aarch64_float_truncate_lo_v2sf): Likewise.
3381 (aarch64_float_truncate_hi_v4sf): Likewise.
3382 (vec_pack_trunc_v2df): Likewise.
3383 (vec_pack_trunc_df): Likewise.
3385 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3387 * config/aarch64/aarch64-builtins.c
3388 (aarch64_fold_builtin): Fold float conversions.
3389 * config/aarch64/aarch64-simd-builtins.def
3390 (floatv2si, floatv4si, floatv2di): New.
3391 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3392 * config/aarch64/aarch64-simd.md
3393 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3394 * config/aarch64/iterators.md (FLOATUORS): New.
3395 (optab): Add float, floatuns.
3396 (su_optab): Likewise.
3398 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3400 * config/aarch64/aarch64-builtins.c
3401 (aarch64_builtin_vectorized_function): Use new names for
3403 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3404 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3405 (fcvtzu): Split as...
3406 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3407 (fcvtas): Split as...
3408 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3409 (fcvtau): Split as...
3410 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3411 (fcvtps): Split as...
3412 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3413 (fcvtpu): Split as...
3414 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3415 (fcvtms): Split as...
3416 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3417 (fcvtmu): Split as...
3418 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3419 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3420 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3421 (lfrintnusf, lfrintnudf): Likewise.
3422 * config/aarch64/aarch64-simd.md
3423 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3425 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3426 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3427 (fcvt_pattern): Likewise.
3429 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3431 * config/aarch64/aarch64-simd.md
3432 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3433 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3435 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3437 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3438 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3439 (vrnd<a,m,n,p>_f32): Implement using builtins.
3440 (vrnd<i,x><q>_f<32, 64>): New.
3442 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3444 * config/aarch64/aarch64-builtins.c
3445 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3446 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3447 (frintz): Rename to...
3449 (frintp): Rename to...
3451 (frintm): Rename to...
3453 (frinti): Rename to...
3454 (nearbyint): ...this.
3455 (frintx): Rename to...
3457 (frinta): Rename to...
3459 * config/aarch64/aarch64-simd.md
3460 (aarch64_frint<frint_suffix><mode>): Delete.
3461 (<frint_pattern><mode>2): Convert to insn.
3462 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3463 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3464 (frint_pattern): Likewise.
3465 (frint_suffix): Likewise.
3467 2013-04-29 Richard Biener <rguenther@suse.de>
3469 PR tree-optimization/57081
3470 * loop-init.c: Include tree-flow.h.
3471 (loop_optimizer_finalize): Free number of iteration estimates.
3472 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3474 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3476 PR tree-optimization/57083
3477 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3478 non-singleton shift count range, zero extend low_bound for uns case.
3480 * config/i386/predicates.md (general_vector_operand): New predicate.
3481 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3482 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3483 if they aren't nonimmediate operands. If their original values
3484 satisfy const_vector_equal_evenodd_p, don't shift them.
3485 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3486 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3487 if not nonimmediate_operand.
3488 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3489 instead of register_operand.
3490 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3492 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3494 * stor-layout.c (finalize_size_functions): Allocate a structure and
3495 reset cfun before dumping the functions.
3497 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3499 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3502 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3503 use xop_pmacsdqh if uns_p.
3504 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3505 the immediate rotate count.
3507 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3509 * rtl.h (struct rtx_def): Add comment for field jump.
3510 (LRA_SUBREG_P): New macro.
3511 * recog.c (register_operand): Check LRA_SUBREG_P.
3512 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3514 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3515 (lra_final_code_change): Skip subreg change for operators.
3516 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3517 if there are no operand changes.
3518 * lra-constraints.c (curr_insn_set): New.
3519 (match_reload): Set LRA_SUBREG_P.
3520 (emit_spill_move): Ditto.
3521 (check_and_process_move): Use curr_insn_set. Process only single
3522 set insns. Don't initialize sec_mem_p and change_p.
3523 (simplify_operand_subreg): Use LRA_SUBREG_P.
3524 (reg_in_class_p): New function.
3525 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3526 of #ifdef. Add code to remove cycling.
3527 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3528 non-null disp. Reload inner instead of disp when base and index
3529 are null. Try to put lo_sum into register.
3530 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3531 (check_and_process_move): Move code for move cost check to
3532 simple_move_p. Remove equiv_substitution.
3533 (simple_move_p): New function.
3534 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3535 curr_insn_set. Call check_and_process_move only for single set
3536 insns. Use the new function. Move call of check_and_process_move
3537 after operand equiv substitution and address process.
3539 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3542 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3543 with nonlocal goto receivers or returns twice calls, ignore
3544 unininitialized values from abnormal edges to nl goto receiver
3545 or returns twice call.
3547 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3549 PR tree-optimization/57051
3550 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3551 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3554 2013-04-26 Richard Biener <rguenther@suse.de>
3556 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3557 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3558 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3559 (fixup_loop_arrays_after_move): New function.
3560 (move_sese_region_to_fn): Properly outline the loop tree parts
3563 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
3565 * config/i386/i386.md (type, unit): Fix long lines.
3567 2013-04-26 Richard Biener <rguenther@suse.de>
3569 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3570 (lto-streamer-out.o): Likewise.
3571 * cfgloop.c (init_loops_structure): Export, add struct function
3572 argument and adjust.
3573 (flow_loops_find): Adjust.
3574 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3575 (init_loops_structure): Declare.
3576 * lto-streamer-in.c: Include cfgloop.h.
3577 (input_cfg): Input the loop tree.
3578 * lto-streamer-out.c: Include cfgloop.h.
3579 (output_cfg): Output the loop tree.
3580 (output_struct_function_base): Do not drop PROP_loops.
3582 2013-03-26 Richard Biener <rguenther@suse.de>
3584 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3585 (pass_build_cfg): Provide PROP_loops.
3586 (move_sese_region_to_fn): Remove loops that are outlined into fn
3588 * tree-inline.c: Include cfgloop.h.
3589 (initialize_cfun): Do not drop PROP_loops.
3590 (copy_loops): New function.
3591 (copy_cfg_body): Copy loop structure.
3592 (tree_function_versioning): Initialize destination loop tree.
3593 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3594 (pass_parallelize_loops): Do IL verification.
3595 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3596 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3597 the CFG make sure we fixup loops as well.
3598 * tree-ssa-tail-merge.c: Include cfgloop.h.
3599 (replace_block_by): When merging loop latches mark loops for fixup.
3600 * lto-streamer-out.c (output_struct_function_base): Drop
3602 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3603 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3604 * ipa-split.c: Include cfgloop.h.
3605 (split_function): Add the new return block to the loop tree root.
3606 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3607 whether we have removed the forwarder block.
3608 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3609 * cfgloop.h (place_new_loop): Declare.
3610 * cfgloopmanip.c (place_new_loop): Export.
3611 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3612 (tree-switch-conversion.o): Likewise.
3613 (tree-complex.o): Likewise.
3614 (tree-inline.o): Likewise.
3615 (tree-ssa-tailmerge.o): Likewise.
3616 (ipa-split.o): Likewise.
3617 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3618 (tree-ssa-copy.o): Likewise.
3619 * tree-switch-conversion.c: Include cfgloop.h
3620 (process_switch): If we emit a bit-test cascade, schedule loops
3622 * tree-complex.c: Include cfgloop.h.
3623 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3624 * asan.c: Include cfgloop.h.
3625 (create_cond_insert_point): Properly add new basic-blocks to
3626 loops, schedule loop fixup.
3627 * cfgloop.c (verify_loop_structure): Check that looks are not
3629 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3631 (expand_omp_for_generic): Likewise.
3632 (expand_omp_sections): Likewise.
3633 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3634 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3635 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3636 is initialized, not when loops are present.
3637 * tree-parloops.c (parallelize_loops): Remove checking here.
3638 * passes.c (init_optimization_passes): Schedule a copy-propagation
3639 pass before complete unrolling of inner loops.
3641 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3643 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3644 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3645 (colorize_init): Add argument to _WIN32 version.
3646 * toplev.c: Include diagnostic-color.h.
3647 (process_options): Default to -fdiagnostics-color=auto if
3648 GCC_COLORS env var is in the environment.
3649 * common.opt (fdiagnostics-color=): Add Var and Init.
3650 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3651 env var is in the environment, the default is auto rather than never.
3653 * diagnostic.h (file_name_as_prefix): Add context argument.
3654 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3655 the string as locus.
3656 * langhooks.c (lhd_print_error_function): Adjust caller.
3658 2013-04-25 Lawrence Crowl <crowl@google.com>
3660 * var-tracking.c (shared_hash_def::htab):
3661 Change type to hash_table. Update dependent calls and types.
3663 2013-04-25 Lawrence Crowl <crowl@google.com>
3665 * Makefile.in: Update as needed below.
3667 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3668 Move declaration to after the type's method definitons.
3670 * attribs.c (htab_t scoped_attributes::attribute_hash):
3671 Change type to hash_table. Update dependent calls and types.
3673 * bitmap.c (htab_t bitmap_desc_hash):
3674 Change type to hash_table. Update dependent calls and types.
3676 * cselib.c (htab_t cselib_hash_table):
3677 Change type to hash_table. Update dependent calls and types.
3679 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3680 (hash_string_slot_node): Move implementation into lto-streamer.h
3681 struct string_slot_hasher.
3682 (eq_string_slot_node): Likewise.
3684 * data-streamer-out.c: Update output_block::string_hash_table
3685 dependent calls and types.
3687 * dwarf2cfi.c (htab_t trace_index):
3688 Change type to hash_table. Update dependent calls and types.
3690 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3691 Change type to hash_table. Update dependent calls and types.
3692 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3693 (htab_t optimize_external_refs::map): Likewise.
3694 (htab_t output_comp_unit::extern_map): Likewise.
3695 (htab_t output_comdat_type_unit::extern_map): Likewise.
3696 (htab_t output_macinfo::macinfo_htab): Likewise.
3697 (htab_t optimize_location_lists::htab): Likewise.
3698 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3700 * except.c (htab_t ehspec_hash_type):
3701 Change type to hash_table. Update dependent calls and types.
3702 (assign_filter_values::ttypes): Likewise.
3703 (assign_filter_values::ehspec): Likewise.
3704 (sjlj_assign_call_site_values::ar_hash): Likewise.
3705 (convert_to_eh_region_ranges::ar_hash): Likewise.
3707 * gcse.c (htab_t pre_ldst_table):
3708 Change type to hash_table. Update dependent calls and types.
3710 * ggc-common.c (htab_t saving_htab):
3711 Change type to hash_table. Update dependent calls and types.
3712 (htab_t loc_hash): Likewise.
3713 (htab_t ptr_hash): Likewise.
3714 (call_count): Rename ggc_call_count.
3715 (call_alloc): Rename ggc_call_alloc.
3716 (loc_descriptor): Rename make_loc_descriptor.
3717 (add_statistics): Rename ggc_add_statistics.
3719 * ggc-common.c (saving_htab):
3720 Change type to hash_table. Update dependent calls and types.
3722 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3723 (push_gimplify_context): Likewise.
3724 (pop_gimplify_context): Likewise.
3725 (struct gimple_temp_hash_elt): Added.
3726 (struct gimplify_hasher): Likewise.
3727 (struct gimplify_ctx.temp_htab):
3728 Change type to hash_table. Update dependent calls and types.
3730 * gimple-fold.c: Include gimplify-ctx.h.
3732 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3733 Change type to hash_table. Update dependent calls and types.
3734 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3735 avoid potential global name collision.
3737 * gimplify.c: Include gimplify-ctx.h.
3738 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3739 (htab_t gimplify_ctx::temp_htab):
3740 Update dependent calls and types for new type hash_table.
3741 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3742 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3744 * gimplify-ctx.h: New.
3745 (struct gimple_temp_hash_elt): Move from gimplify.c.
3746 (class gimplify_hasher): New.
3747 (struct gimplify_ctx): Move from gimple.h.
3748 (htab_t gimplify_ctx::temp_htab):
3749 Change type to hash_table. Update dependent calls and types.
3751 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3752 (htab_t ivs_params::newivs_index):
3753 Change type to hash_table. Update dependent calls and types.
3754 (htab_t ivs_params::params_index): Likewise.
3755 (htab_t print_generated_program::params_index): Likewise.
3756 (htab_t gloog::newivs_index): Likewise.
3757 (htab_t gloog::params_index): Likewise.
3759 * graphite.c: Include graphite-htab.h.
3760 4htab_t graphite_transform_loops::bb_pbb_mapping):
3761 Change type to hash_table. Update dependent calls and types.
3763 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3764 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3765 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3767 * graphite-dependences.c: Include graphite-htab.h.
3768 (loop_is_parallel_p): Change hash table type of parameter.
3770 * graphite-htab.h: New.
3771 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3772 (extern find_pbb_via_hash): Move from graphite-poly.h.
3773 (extern loop_is_parallel_p): Move from graphite-poly.h.
3774 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3776 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3777 (extern loop_is_parallel_p): Move to graphite-htab.h.
3778 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3780 * haifa-sched.c (htab_t delay_htab):
3781 Change type to hash_table. Update dependent calls and types.
3782 (htab_t delay_htab_i2): Likewise.
3784 * ira-color.c (htab_t allocno_hard_regs_htab):
3785 Change type to hash_table. Update dependent calls and types.
3787 * ira-costs.c (htab_t cost_classes_htab):
3788 Change type to hash_table. Update dependent calls and types.
3790 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3791 Change type to hash_table. Update dependent calls and types.
3793 * loop-iv.c (htab_t bivs):
3794 Change type to hash_table. Update dependent calls and types.
3796 * loop-unroll.c (htab_t opt_info::insns_to_split):
3797 Change type to hash_table. Update dependent calls and types.
3798 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3800 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3801 (struct string_slot_hasher): New.
3802 (htab_t output_block::string_hash_table):
3803 Change type to hash_table. Update dependent calls and types.
3805 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3806 (htab_t file_name_hash_table):
3807 Change type to hash_table. Update dependent calls and types.
3809 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3812 * lto-streamer.c (htab_t tree_htab):
3813 Change type to hash_table. Update dependent calls and types.
3815 * omp-low.c: Include gimplify-ctx.h.
3817 * passes.c (htab_t name_to_pass_map):
3818 Change type to hash_table. Update dependent calls and types.
3819 (pass_traverse): Rename to passes_pass_traverse.
3821 * plugin.c (htab_t event_tab):
3822 Change type to hash_table. Update dependent calls and types.
3824 * postreload-gcse.c (htab_t expr_table):
3825 Change type to hash_table. Update dependent calls and types.
3826 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3828 * sese.c (debug_rename_map_1): Make extern.
3829 (htab_t copy_bb_and_scalar_dependences::rename_map):
3830 Change type to hash_table. Update dependent calls and types.
3832 * sese.h (extern debug_rename_map): Move to .c file.
3834 * store-motion.c (htab_t store_motion_mems_table):
3835 Change type to hash_table. Update dependent calls and types.
3837 * trans-mem.c (htab_t tm_new_mem_hash):
3838 Change type to hash_table. Update dependent calls and types.
3840 * tree-browser.c (htab_t TB_up_ht):
3841 Change type to hash_table. Update dependent calls and types.
3843 * tree-cfg.c (htab_t discriminator_per_locus):
3844 Change type to hash_table. Update dependent calls and types.
3846 * tree-complex.c: Include tree-hasher.h
3847 (htab_t complex_variable_components):
3848 Change type to hash_table. Update dependent calls and types.
3850 * tree-eh.c (htab_t finally_tree):
3851 Change type to hash_table. Update dependent calls and types.
3853 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3854 struct int_tree_hasher.
3855 (extern int_tree_map_eq): Likewise.
3856 (uid_decl_map_hash): Removed.
3857 (extern decl_tree_map_eq): Likewise.
3859 * tree-hasher.h: New.
3860 (struct int_tree_hasher): New.
3861 (typedef int_tree_htab_type): New.
3863 * tree-inline.c: Include gimplify-ctx.h.
3865 * tree-mudflap.c: Include gimplify-ctx.h.
3867 * tree-parloops.c: Include tree-hasher.h.
3868 (htab_t eliminate_local_variables_stmt::decl_address):
3869 Change type to hash_table. Update dependent calls and types.
3870 (htab_t separate_decls_in_region::decl_copies): Likewise.
3872 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3873 Change type to hash_table. Update dependent calls and types.
3875 * tree-sra.c (candidates):
3876 Change type to hash_table. Update dependent calls and types.
3878 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3880 (int_tree_map_hash): Likewise.
3882 * tree-ssa-dom.c (htab_t avail_exprs):
3883 Change type to hash_table. Update dependent calls and types.
3885 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3886 Change type to hash_table. Update dependent calls and types.
3888 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3889 Change type to hash_table. Update dependent calls and types.
3891 * tree-ssa-phiopt.c (seen_ssa_names):
3892 Change type to hash_table. Update dependent calls and types.
3894 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3895 Change type to hash_table. Update dependent calls and types.
3897 * tree-ssa-uncprop.c (equiv):
3898 Change type to hash_table. Update dependent calls and types.
3900 2013-04-25 Jakub Jelinek <jakub@redhat.com>
3902 PR rtl-optimization/57003
3903 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3904 call note_stores with kill_clobbered_value callback again after
3905 killing regs_invalidated_by_call.
3907 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3909 * config/aarch64/aarch64-simd.md
3910 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3911 (aarch64_simd_bsl<mode>): Likewise.
3912 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3914 2013-04-25 Marek Polacek <polacek@redhat.com>
3916 PR tree-optimization/57066
3917 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
3919 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3921 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3923 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3925 * config/aarch64/aarch64-builtins.c
3926 (aarch64_fold_builtin): New.
3927 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3928 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3929 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3930 * config/aarch64/arm_neon.h
3931 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3933 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3934 Tejas Belagod <tejas.belagod@arm.com>
3936 * config/aarch64/aarch64-builtins.c
3937 (aarch64_gimple_fold_builtin): New.
3938 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3939 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3940 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3942 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3944 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3946 * config/aarch64/aarch64.md
3947 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3949 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3951 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3952 (*ngcsi_uxtw): New pattern.
3954 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3955 Julian Brown <julian@codesourcery.com>
3957 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3958 (TB_DREG): Add T_V4HF.
3959 (v4hf_UP): New macro.
3960 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3961 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3962 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3964 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3965 (arm_vector_mode_supported_p): Handle V4HF.
3966 (arm_mangle_map): Handle V4HFmode.
3967 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3968 * config/arm/arm_neon_builtins.def: Add entries for
3969 vcvtv4hfv4sf, vcvtv4sfv4hf.
3970 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3971 (neon_vcvtv4hfv4sf): Likewise.
3972 * config/arm/neon-gen.ml: Handle half-precision floating point
3974 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3975 * config/arm/arm_neon.h: Regenerate.
3976 * config/arm/neon.ml (type elts): Add F16.
3977 (type vectype): Add T_float16x4, T_floatHF.
3978 (type vecmode): Add V4HF.
3979 (type features): Add Requires_FP_bit feature.
3980 (elt_width): Handle F16.
3981 (elt_class): Likewise.
3982 (elt_of_class_width): Likewise.
3983 (mode_of_elt): Refactor.
3984 (type_for_elt): Handle F16, fix error messages.
3985 (vectype_size): Handle T_float16x4.
3986 (vcvt_sh): New function.
3987 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3988 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3989 (string_of_mode): Handle V4HF.
3990 * doc/arm-neon-intrinsics.texi: Regenerate.
3992 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3994 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3995 format specifier in 'X' case.
3997 2013-04-25 Alan Modra <amodra@gmail.com>
4000 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4001 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4002 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4003 Repeat for many other rotate/shift and mask patterns using subregs.
4004 Name lshiftrt insns.
4005 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4006 on WORDS_BIG_ENDIAN.
4008 2013-04-25 Alan Modra <amodra@gmail.com>
4010 * config.gcc: Support little-endian powerpc-linux targets.
4011 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4012 (LINK_OS_LINUX_SPEC): Define.
4013 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4014 Preserve MASK_LITTLE_ENDIAN.
4015 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4016 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4017 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4018 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4019 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4020 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4021 Correct fp word order for little-endian. Don't shift toc entries
4022 smaller than a word for little-endian.
4023 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4024 (bswapdi2 splits): Correct low-part subreg for little-endian.
4025 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4026 low/high where such is correct only for be.
4027 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4028 little-endian for -mcall-aixdesc.
4030 2013-04-25 Alan Modra <amodra@gmail.com>
4032 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4033 replace_equiv_address_nv.
4035 2013-04-25 Alan Modra <amodra@gmail.com>
4037 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4039 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4042 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4043 * rtl.h (struct rtx_def): ...
4045 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4047 PR rtl-optimizations/57046
4048 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4049 for multi-reg splits.
4051 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4053 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4055 2013-04-24 Sterling Augustine <saugustine@google.com>
4057 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4058 (comp_dir_string, debug_str_dwo_section): New.
4059 (DEBUG_STR_DWO_SECTION): Rename to ...
4060 (DEBUG_DWO_STR_SECTION): ... this.
4061 (DEBUG_NORM_STR_SECTION): Delete.
4062 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4063 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4064 (find_AT_string): Move most logic to ...
4065 (find_AT_string_in_table): ... here. New.
4066 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4067 add_skeleton_AT_string. Delete logic.
4068 (output_skeleton_debug_sections): Remove call to
4069 add_top_level_skeleton_die_attrs.
4070 (add_comp_dir_attribute): Move logic to comp_dir_string.
4071 (dwarf2out_init): Initialize debug_str_dwo_section.
4072 (output_indirect_string): Call find_string_form.
4073 (output_indirect_strings): Rewrite.
4074 (prune_unused_types): Empty skeleton_debug_str_hash.
4075 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4076 (dwarf2out_finish): Call output_indirect_strings.
4078 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4080 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4082 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4084 * rtl.h (struct rtx_def): Add comment for field jump.
4085 (LRA_SUBREG_P): New macro.
4086 * recog.c (register_operand): Check LRA_SUBREG_P.
4087 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4089 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4090 (lra_final_code_change): Skip subreg change for operators.
4091 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4092 if there are no operand changes.
4093 * lra-constraints.c (curr_insn_set): New.
4094 (match_reload): Set LRA_SUBREG_P.
4095 (emit_spill_move): Ditto.
4096 (check_and_process_move): Use curr_insn_set. Process only single
4097 set insns. Don't initialize sec_mem_p and change_p.
4098 (simplify_operand_subreg): Use LRA_SUBREG_P.
4099 (reg_in_class_p): New function.
4100 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4101 of #ifdef. Add code to remove cycling.
4102 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4103 non-null disp. Reload inner instead of disp when base and index
4104 are null. Try to put lo_sum into register.
4105 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4106 (check_and_process_move): Move code for move cost check to
4107 simple_move_p. Remove equiv_substitution.
4108 (simple_move_p): New function.
4109 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4110 curr_insn_set. Call check_and_process_move only for single set
4111 insns. Use the new function. Move call of check_and_process_move
4112 after operand equiv substitution and address process.
4114 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4116 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4117 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4118 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4120 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4122 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4124 2013-04-24 Marek Polacek <polacek@redhat.com>
4126 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4127 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4128 (select_loops_exit_conditions): Likewise.
4129 (number_of_iterations_for_all_loops): Likewise.
4130 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4131 (scev_analysis): Likewise.
4133 2013-04-02 Catherine Moore <clm@codesourcery.com>
4134 Chao-ying Fu <fu@mips.com>
4136 * config/mips/micromips.md (jraddiusp): New pattern.
4137 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4138 instruction if possible.
4140 2013-04-24 Alan Modra <amodra@gmail.com>
4142 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4144 2013-04-24 Julian Brown <julian@codesourcery.com>
4145 Chung-Lin Tang <cltang@codesourcery.com>
4147 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4148 dependency behavior in enumeration type DIE generation. Add TODO note
4149 to comments about future DW_FORM_sdata/udata re-work of related code.
4151 2013-04-23 Lawrence Crowl <crowl@google.com>
4153 * Makefile.in: Update as needed below.
4155 * hash-table.h (class hash_table):
4156 Correct many methods with parameter types compare_type to the correct
4157 value_type. (Correct code was unlikely to notice the change.)
4158 (hash_table::elements_with_deleted) New.
4159 (class hashtable::iterator): New.
4160 (hashtable::begin()): New.
4161 (hashtable::end()): New.
4162 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4164 * statistics.c (statistics_hashes):
4165 Change type to hash_table. Update dependent calls and types.
4167 * tree-into-ssa.c (var_infos):
4168 Change type to hash_table. Update dependent calls and types.
4170 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4171 Change type to hash_table. Update dependent calls and types.
4173 * tree-ssa-loop-im.c (struct mem_ref.refs):
4174 Change type to hash_table. Update dependent calls and types.
4176 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4177 Change type to hash_table. Update dependent calls and types.
4179 * tree-ssa-sccvn.c (vn_tables_s::nary):
4180 Change type to hash_table. Update dependent calls and types.
4181 (vn_tables_s::phis): Likewise.
4182 (vn_tables_s::references): Likewise.
4184 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4185 (vn_reference_eq): Update parameter and return types.
4187 * tree-ssa-structalias.c (pointer_equiv_class_table):
4188 Change type to hash_table. Update dependent calls and types.
4189 (location_equiv_class_table): Likewise.
4191 * tree-vect-data-refs.c: Consequential changes for making
4192 peeling a hash_table.
4194 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4195 (destroy_loop_vec_info): Dependent hash_table update.
4197 * tree-vectorizer.h (peeling_htab):
4198 Change type to hash_table. Update dependent calls and types.
4200 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4202 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4203 to check the register content is equal or not.
4204 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4205 to assign register content record.
4206 * lra-eliminations.c (update_reg_eliminate): Use
4207 lra_update_reg_val_offset to update register content offset.
4208 * lra-int.h (struct lra_reg): Add offset member.
4209 (lra_reg_val_equal_p): New static inline function.
4210 (lra_update_reg_val_offset): New static inline function.
4211 (lra_assign_reg_val): New static inline function.
4212 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4213 to assign register content record.
4214 (initialize_lra_reg_info_element): Initial offset to zero.
4216 2013-04-23 Catherine Moore <clm@codesourcery.com>
4218 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4219 operands. Record compression.
4221 2013-04-23 Xinliang David Li <davidxl@google.com>
4223 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4225 2013-04-23 Richard Biener <rguenther@suse.de>
4228 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4229 parameter, only add abnormal goto edges from the copied body
4230 if the call could perform abnormal gotos.
4231 (copy_cfg_body): Adjust.
4233 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4235 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4237 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4239 * coretypes.h (gimple_stmt_iterator): Add struct to make
4242 2013-04-23 Richard Biener <rguenther@suse.de>
4244 PR tree-optimization/57026
4245 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4246 from SSA names occuring in abnormal PHI nodes.
4248 2013-04-22 Andi Kleen <ak@linux.intel.com>
4250 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4252 2013-04-22 Andi Kleen <ak@linux.intel.com>
4254 * lto/lto.c (print_lto_report_1): Declare early.
4255 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4257 2013-04-22 Andi Kleen <ak@linux.intel.com>
4259 * common.opt (-flto-report-wpa): Add.
4260 * doc/invoke.texi (-flto-report-wpa): Add.
4261 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4264 2013-04-22 Xinliang David Li <davidxl@google.com>
4266 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4267 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4268 * Makefile.in: New dependency
4270 David Daney <ddaney.cavm@gmail.com>
4272 * configure.ac (gcc_cv_as_micromips_support): Use the
4273 --fatal-warnings option.
4274 * configure: Regenerate.
4276 2013-04-22 Marek Polacek <polacek@redhat.com>
4279 * tsan.c (instrument_expr): Don't instrument expression
4280 in case its size is zero.
4282 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4286 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4288 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4290 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4292 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4293 (gimple_stmt_iterator): New typedef.
4294 * gimple.h (gimple_stmt_iterator): Rename to...
4295 (gimple_stmt_iterator_d): ... This.
4296 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4297 trees be valid for GIMPLE and GENERIC.
4298 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4299 * gimple-fold.c (gimple_fold_call): Call target hook
4300 gimple_fold_builtin.
4301 * hooks.c (hook_bool_gsiptr_false): New.
4302 * hooks.h (hook_bool_gsiptr_false): New.
4303 * target.def (fold_stmt): New.
4304 * doc/tm.texi: Regenerate.
4306 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4309 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4310 a set sp if no stack realignment.
4312 2013-04-22 Nick Clifton <nickc@redhat.com>
4314 * config.gcc (tilegx-linux): Extend extra_objs rather than
4316 (tilepro-linux): Likewise.
4318 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4320 * config/aarch64/aarch64-builtins.c
4322 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4323 (VAR<1-12>): Add MAP parameter.
4324 (BUILTIN_*): Likewise.
4325 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4326 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4327 (aarch64_ushl_n<mode>): Likewise.
4328 (aarch64_sshr_n<mode>): Likewise.
4329 (aarch64_ushr_n<mode>): Likewise.
4330 (aarch64_<maxmin><mode>): Likewise.
4331 (aarch64_sqrt<mode>): Likewise.
4332 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4333 (vshr<q>_n_*): Likewise.
4335 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4337 * config/aarch64/aarch64-builtins.c
4338 (aarch64_simd_builtin_type_mode): Handle SF types.
4340 (BUILTIN_GPF): Define.
4341 (aarch64_init_simd_builtins): Handle SF types.
4342 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4345 * config/aarch64/aarch64-simd.md
4346 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4347 (aarch64_frecpe<mode>): New.
4348 (aarch64_frecps<mode>): Likewise.
4349 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4350 (v8type): Add frecp<esx>.
4351 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4352 (aarch64_frecps<mode>): Likewise.
4353 * config/aarch64/iterators.md (FRECP): New.
4354 (frecp_suffix): Likewise.
4355 * config/aarch64/arm_neon.h
4356 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4358 2013-04-22 Christian Bruel <christian.bruel@st.com>
4361 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4362 (REG_CLASS_NAMES): Idem.
4363 (REG_CLASS_CONTENTS): Idem.
4364 (REGCLASS_HAS_FP_REG): Idem.
4365 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4366 (sh_conditional_register_usage): Idem.
4368 2013-04-21 Jeff Law <law@redhat.com>
4370 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4371 (ssa_forward_propagate_and_combine): Use it.
4373 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4375 * lra.c: Update the flow chart diagram.
4377 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4379 PR rtl-optimization/56847
4380 * lra-constraints.c (process_alt_operands): Discourage alternative
4381 with non-matche doffsettable memory constraint fro memory with
4384 2013-04-19 Richard Biener <rguenther@suse.de>
4386 PR tree-optimization/56982
4387 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4389 * gimplify.c (gimplify_call_expr): Notice special calls.
4390 (gimplify_modify_expr): Likewise.
4391 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4392 abnormal control flow receivers.
4393 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4394 in the same way as cfun->has_nonlocal_labels.
4395 (gimple_purge_dead_abnormal_call_edges): Likewise.
4396 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4397 receivers start a basic-block.
4399 2013-04-19 Richard Biener <rguenther@suse.de>
4401 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4403 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4404 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4405 (SLP_TREE_LOAD_PERMUTATION): Add.
4406 (vect_transform_slp_perm_load): Adjust prototype.
4407 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4408 (vect_free_slp_instance): Likewise.
4409 (vect_create_new_slp_node): Likewise.
4410 (vect_supported_slp_permutation_p): Remove.
4411 (vect_slp_rearrange_stmts): Adjust.
4412 (vect_supported_load_permutation_p): Likewise. Inline
4413 vect_supported_slp_permutation_p here.
4414 (vect_analyze_slp_instance): Compute load permutations per
4415 slp node instead of per instance.
4416 (vect_get_slp_defs): Adjust.
4417 (vect_transform_slp_perm_load): Likewise.
4418 (vect_schedule_slp_instance): Remove redundant code.
4419 (vect_schedule_slp): Remove hack for PR56270, add it ...
4420 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4421 CSE loads for SLP. Adjust.
4423 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4425 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4426 spelling in two comments.
4428 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4431 * config/arm/arm.c (load_multiple_sequence): Require SP
4432 as base register for loads if SP is in the register list.
4434 2013-04-19 Martin Jambor <mjambor@suse.cz>
4436 PR tree-optimization/56718
4437 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4438 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4439 and made public. Adjusted all callers.
4440 (ipa_intraprocedural_devirtualization): New function.
4441 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4442 (ipa_intraprocedural_devirtualization): Likewise.
4443 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4445 2013-04-19 Richard Biener <rguenther@suse.de>
4447 PR tree-optimization/57000
4448 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4450 2013-04-19 Terry Guo <terry.guo@arm.com>
4452 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4454 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4455 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4456 (cortex_m4_fmacs): Use new reservations.
4457 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4459 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4461 PR rtl-optimization/56999
4462 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4464 (lra_coalesce): Remove split_origin_bitmap and related code.
4465 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4466 ranges if necessary.
4468 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4470 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4472 (ix86_expand_call): Remove clobbered_registers array and use
4473 x86_64_ms_sysv_extra_clobbered_registers instead.
4474 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4476 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4478 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4479 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4480 (*call_value_rex64_ms_sysv): Ditto.
4482 2013-04-18 Cary Coutant <ccoutant@google.com>
4484 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4485 parent instead of die_mark.
4487 2013-04-18 Diego Novillo <dnovillo@google.com>
4489 * gimple.c (create_gimple_tmp): New.
4490 (get_expr_type): New.
4491 (build_assign): New.
4492 (build_type_cast): New.
4493 * gimple.h (enum ssa_mode): Define.
4494 (gimple_seq_set_location): New.
4495 * asan.c (build_check_stmt): Change some gimple_build_* calls
4496 to use build_assign and build_type_cast.
4498 2013-04-18 Richard Biener <rguenther@suse.de>
4500 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4501 handle negative step. Remove redundant checks.
4502 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4503 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4504 for negative step and grouped loads fail to vectorize.
4506 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4508 * emit-rtl.c (reset_insn_used_flags): New function.
4509 (reset_all_used_flags): Use it.
4510 (verify_insn_sharing): New function.
4511 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4513 2013-04-18 Jakub Jelinek <jakub@redhat.com>
4515 PR tree-optimization/56984
4516 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4517 and (x >> M) >= N don't register any assertion if N << M is the
4520 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4522 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4523 do not delete_insn insns that have not yet been emitted, only
4524 unlink them with remove_insn.
4525 * df-scan.c (df_insn_delete): Revert r197492.
4527 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4529 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4530 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4532 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4534 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4535 define_insn_and_split.
4536 (and_scc,ior_scc,negscc): Likewise.
4537 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4539 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4541 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4542 can benefit from using a sequence of LDRD instructions in epilogue
4543 instead of a single LDM instruction.
4545 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4548 * doc/extend.texi: Fix typo.
4550 2013-04-17 Richard Biener <rguenther@suse.de>
4552 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4553 (vect_build_slp_tree): ... here.
4554 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4555 match. Remove special-casing of mismatched complex loads.
4556 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4557 re-try the match with swapped commutative operands.
4558 (vect_supported_load_permutation_p): Remove special-casing of
4559 mismatched complex loads.
4560 (vect_analyze_slp_instance): Adjust.
4562 2013-04-17 Richard Biener <rguenther@suse.de>
4564 PR rtl-optimization/56921
4565 * cfgloop.h (struct loop): Add simple_loop_desc member.
4566 (struct niter_desc): Mark with GTY(()).
4567 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4568 * loop-iv.c (get_simple_loop_desc): Likewise.
4569 (free_simple_loop_desc): Likewise.
4572 2013-04-16 Richard Biener <rguenther@suse.de>
4574 PR rtl-optimization/56921
4575 * loop-init.c (pass_rtl_move_loop_invariants): Add
4576 TODO_do_not_ggc_collect to todo_flags_finish.
4577 (pass_rtl_unswitch): Same.
4578 (pass_rtl_unroll_and_peel_loops): Same.
4579 (pass_rtl_doloop): Same.
4581 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4583 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4584 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4585 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4587 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4588 * tree-streamer.c (record_common_node): Adjust reference in comment.
4590 2013-04-17 Terry Guo <terry.guo@arm.com>
4592 * config/arm/cortex-m4.md: Add a new bypass.
4594 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4596 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4598 (*subs_<optab><mode>_multp2): New pattern.
4599 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4600 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4602 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4604 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4605 (*subs_mul_imm_<mode>): New pattern.
4607 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
4610 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4611 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4612 (vsx_movti_32bit): Change j->wa to O->wa.
4614 2013-04-16 Richard Biener <rguenther@suse.de>
4616 PR rtl-optimization/56921
4617 * loop-init.c (pass_rtl_move_loop_invariants): Add
4618 TODO_do_not_ggc_collect to todo_flags_finish.
4619 (pass_rtl_unswitch): Same.
4620 (pass_rtl_unroll_and_peel_loops): Same.
4621 (pass_rtl_doloop): Same.
4623 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
4625 * config/arm/arm.c (emit_multi_reg_push): New declaration
4626 for an existing function.
4627 (arm_emit_strd_push): New function.
4628 (arm_expand_prologue): Used here.
4629 (arm_emit_ldrd_pop): New function.
4630 (arm_expand_epilogue): Used here.
4631 (arm_get_frame_offsets): Update condition.
4632 (arm_emit_multi_reg_pop): Add a special case for load of a single
4633 register with writeback.
4635 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
4637 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4640 2013-04-16 Richard Biener <rguenther@suse.de>
4642 PR tree-optimization/56756
4643 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4644 (first_mem_ref_loc): New.
4645 (execute_sm): Place the load temporarily before a previous
4646 access instead of in the latch edge to ensure its SSA dependencies
4647 are defined at points dominating the load.
4649 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4651 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4652 correct fix by moving header and footer insn to the footer of
4653 the merged basic block. Clear BB_END of the merged-away block.
4656 * emit-rtl.c (make_note_raw): New function.
4657 (link_insn_into_chain): New static inline function.
4659 (add_insn_before, add_insn_after): Factor insn chain linking code...
4660 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4661 using link_insn_into_chain.
4662 (note_outside_basic_block_p): New helper function for emit_note_after
4663 and emit_note_before.
4664 (emit_note_after): Use nobb variant of add_insn_after if the note
4665 should not be contained in a basic block.
4666 (emit_note_before): Use nobb variant of add_insn_before if the note
4667 should not be contained in a basic block.
4668 (emit_note_copy): Use make_note_raw.
4669 (emit_note): Likewise.
4670 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4671 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4672 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4673 the moved barrier the tail of the basic block it follows.
4674 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4676 2013-04-15 Jakub Jelinek <jakub@redhat.com>
4678 PR tree-optimization/56962
4679 * gimple-ssa-strength-reduction.c (record_increment): Only set
4680 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4681 either rhs1 or rhs2 is equal to c->base_expr.
4683 2013-04-15 Richard Biener <rguenther@suse.de>
4685 PR tree-optimization/56933
4686 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4688 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4689 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4690 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4691 dependence check ...
4692 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4694 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4695 GROUP_READ_WRITE_DEPENDENCE.
4697 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4699 * emit-rtl.c (reset_all_used_flags): New function.
4700 (verify_rtl_sharing): Call reset_all_used_flags before and after
4701 performing the checks.
4703 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4705 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4706 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4707 * config/arm/constraints.md (De): New constraint.
4708 * config/arm/neon.md (anddi3_neon): Delete.
4709 (neon_vand<mode>): Expand to standard anddi3 pattern.
4710 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4711 Move earlier in the file.
4712 (neon_inv_logic_op2): Likewise.
4713 (arm_anddi_operand_neon): New predicate.
4715 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4717 * configure.ac (gcc_cv_ld_as_needed): Set
4718 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4719 Use -z ignore, -z record on *-*-solaris2*.
4720 (HAVE_LD_AS_NEEDED): Update comment.
4721 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4722 * configure: Regenerate.
4723 * config.in: Regenerate.
4724 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4725 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4726 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4727 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4728 equivalents. Fix markup.
4729 * doc/tm.texi: Regenerate.
4731 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4733 * config/i386/i386.opt: New option mstack-protector-guard=.
4734 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4735 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4736 TARGET_SSP_TLS_GUARD.
4737 * config/i386/i386.c (ix86_option_override_internal): Set
4738 ix86_stack_protector_guard.
4739 * config/i386/i386.md (stack_protect_set): Enable for
4740 TARGET_SSP_TLS_GUARD only.
4741 (stack_protect_set_<mode>): Ditto.
4742 (stack_protect_test): Ditto.
4743 (stack_protect_test_<mode>): Ditto.
4744 * doc/invoke.texi (i386 Option): Document.
4746 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4749 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4750 (S_MODES): Set H_MODE bit.
4751 (SF_MODES): Set only S_MODE and SF_MODE bits.
4752 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4753 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4754 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4755 <MODE_FLOAT>: Likewise.
4757 2013-04-15 Joey Ye <joey.ye@arm.com>
4759 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4761 2013-04-15 Joey Ye <joey.ye@arm.com>
4763 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4765 (thumb_far_jump_used_p): Count instruction size and set
4768 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4770 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4771 * resource.c (mark_target_live_regs): Reformat conditional block.
4773 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4775 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4776 notes, they are emitted only just before final.
4777 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4779 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4781 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4782 * cfgrtl.c (delete_insn): Call it here instead.
4783 * lra-spills.c (lra_final_code_change): Use delete_insn.
4784 * haifa-sched.c (sched_remove_insn): Likewise.
4785 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4786 returning to the nop pool.
4787 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4788 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4790 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4792 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4793 * doc/tm.texi: Regenerated.
4795 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
4797 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4800 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4802 * df-core.c (df_find_def): Compare register numbers.
4803 (df_find_use): Likewise.
4805 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4808 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4809 lra_in_progress for return.
4811 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4813 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4814 define_insn into define_insn_and_split and emit movsicc patterns.
4816 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4818 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4820 2013-04-12 Richard Biener <rguenther@suse.de>
4822 * tree-pass.h (TODO_do_not_ggc_collect): New.
4823 * passes.c (execute_one_ipa_transform_pass): Honor
4824 TODO_do_not_ggc_collect.
4825 (execute_one_pass): Likewise.
4828 2013-04-10 Richard Biener <rguenther@suse.de>
4830 * passes.c (init_optimization_passes): Remove reload pass.
4831 * ira.c (do_reload): Merge into ...
4833 (rest_of_handle_reload): Remove.
4834 (pass_reload): Likewise.
4835 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4836 of reload for vzeroupper pass placement.
4838 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4840 PR tree-optimization/56918
4841 PR tree-optimization/56920
4842 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4843 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4844 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4845 use wide_mul_with_sign method.
4847 2013-04-12 Richard Biener <rguenther@suse.de>
4849 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4850 not be considered a gimple constant.
4852 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
4854 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4855 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4858 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4859 Jakub Jelinek <jakub@redhat.com>
4861 * opts.c: Include diagnostic-color.h.
4862 (common_handle_option): Handle OPT_fdiagnostics_color_.
4863 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4864 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4865 (diagnostic-color.o): New.
4866 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4867 (diagnostic_color_rule): New enum.
4868 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4869 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4870 the location string.
4871 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4872 either NULL, or color kind.
4873 * diagnostic-color.c: New file.
4874 * diagnostic-color.h: New file.
4875 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4877 * doc/invoke.texi (-fdiagnostics-color): Document.
4878 * pretty-print.h (pp_show_color): Define.
4879 (struct pretty_print_info): Add show_color field.
4880 * diagnostic.c: Include diagnostic-color.h.
4881 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4882 macros. Colorize error:, warning: etc. strings and also the location
4884 (diagnostic_show_locus): Colorize the caret line.
4885 * pretty-print.c: Include diagnostic-color.h.
4886 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4887 inside of %< %> quotes or quoted through q format modifier.
4889 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4891 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
4893 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4895 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4897 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4900 2013-04-11 Marek Polacek <polacek@redhat.com>
4902 PR tree-optimization/48184
4903 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
4905 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4907 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4908 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4909 (skip_simple_arithmetic): Tidy up.
4910 * tree.h (skip_simple_constant_arithmetic): Declare.
4912 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4914 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4916 2013-04-11 Richard Biener <rguenther@suse.de>
4918 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4919 generate vector constants.
4921 2013-04-11 Richard Biener <rguenther@suse.de>
4923 PR tree-optimization/56878
4924 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4925 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4927 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4928 Prefer to align the DR with the most invariant base address.
4930 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4932 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4935 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4937 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4938 floating-point vector comparisons against 0.
4940 2013-04-11 Jakub Jelinek <jakub@redhat.com>
4942 PR tree-optimization/56899
4943 * fold-const.c (extract_muldiv_1): Apply distributive law
4944 only if TYPE_OVERFLOW_WRAPS (ctype).
4946 2013-04-11 Bin Cheng <bin.cheng@arm.com>
4949 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4950 loading has side effect.
4952 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4954 * config/sparc/sparc.c: Include tree-pass.h.
4955 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4956 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4957 head of file. Change return type. Split off gate function.
4958 (sparc_gate_work_around_errata): New function.
4959 (pass_work_around_errata): New pass definition.
4960 (insert_pass_work_around_errata) New pass insert definition to
4961 insert pass_work_around_errata just after delayed-branch scheduling.
4962 (sparc_option_override): Insert the pass.
4963 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4965 2013-04-10 David S. Miller <davem@davemloft.net>
4967 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4968 or -mcpu=hypersparc.
4970 * target.def (cstore_mode): New hook.
4971 * target.h: Include insn-codes.h
4972 * targhooks.c: Likewise.
4973 (default_cstore_mode): New function.
4974 * targhooks.h: Declare it.
4975 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4976 * doc/tm.texi: Rebuild.
4977 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4978 target hook, rather than inspecting the insn_data.
4979 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4980 (TARGET_CSTORE_MODE): Redefine.
4981 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4983 * config/sparc/predicates.md (cstore_result_operand): New special
4985 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4986 Use it for operand 0.
4987 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4988 (*snesi_special): Likewise.
4989 (*snesi_zero): Likewise.
4990 (*seqsi_zero): Likewise.
4991 (*sltu_insn): Likewise.
4992 (*sgeu_insn): Likewise.
4993 (*seqdi_special): Make operand 0 and comparison operation be of
4995 (*snedi_special): Likewise.
4996 (*snedi_special_vis3): Likewise.
4997 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4998 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4999 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5000 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5001 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5002 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5003 (*sltu_extend_sp64): Likewise.
5004 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5005 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5006 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5007 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5008 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5010 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5012 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5013 (aarch64_start_file): Use the new function.
5015 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5016 Jason Merrill <jason@redhat.com>
5018 * common.opt: Add -gdwarf.
5019 * opts.c (common_handle_option): Handle it.
5020 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5022 2013-04-10 Richard Biener <rguenther@suse.de>
5024 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5025 (execute_one_ipa_transform_pass): But unconditionally here.
5026 (execute_one_pass): And here.
5027 (init_optimization_passes): Remove reload pass.
5028 * tree-pass.h (TODO_ggc_collect): Remove.
5029 (pass_reload): Likewise.
5030 * ira.c (do_reload): Merge into ...
5032 (rest_of_handle_reload): Remove.
5033 (pass_reload): Likewise.
5034 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5035 of reload for vzeroupper pass placement.
5036 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5037 and todo_flags_finish of all passes.
5039 2013-04-10 Richard Biener <rguenther@suse.de>
5041 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5042 first_const_oprnd field, rename first_def_type to first_op_type.
5043 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5044 (vect_get_and_check_slp_defs): Always use the type of the
5045 operand. Allow mixed vect_external_def, vect_constant_def types.
5046 (vect_get_constant_vectors): Handle mixed vect_external_def,
5047 vect_constant_def types.
5049 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5051 PR tree-optimization/55524
5052 * tree-ssa-math-opts.c
5053 (convert_mult_to_fma): Don't use an fms construct
5054 when we don't have an fms operation, but fnma, and it looks
5055 likely that we'll be able to use the latter.
5057 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5059 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5061 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5062 inline fail caused by overwritable functions.
5064 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5066 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5067 unnecessary bits in the constant power of two case.
5069 2013-04-10 Richard Biener <rguenther@suse.de>
5071 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5072 broken code swapping operands.
5073 (vect_build_slp_tree): Do not compute load permutations here.
5074 (vect_analyze_slp_instance): Compute load permutations here,
5075 after building the SLP tree.
5077 2013-04-09 Christian Bruel <christian.bruel@st.com>
5079 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5080 of next/prev_real_insn.
5082 2013-04-09 Jan Hubicka <jh@suse.cz>
5084 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5085 Drop aliased parameter.
5086 (function_and_variable_visibility): Do not handle alias pairs.
5087 * cgraph.c (varpool_externally_visible_p): Update prototype.
5088 * varpool.c (varpool_add_new_variable): Update.
5090 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5092 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5094 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5096 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5098 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5100 2013-04-09 Marek Polacek <polacek@redhat.com>
5102 PR tree-optimization/48762
5103 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5105 2013-04-09 Richard Biener <rguenther@suse.de>
5107 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5109 (vect_build_slp_tree): Likewise.
5110 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5111 calculating the cost of a SLP instance.
5112 (vect_analyze_slp_instance): Use it from here, after building
5115 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5118 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5119 expand_omp_for_static_chunk): Use simple_p = true in
5120 force_gimple_operand_gsi calls when assigning to addressable decls.
5122 2013-04-09 Jeff Law <law@redhat.com>
5124 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5125 when the boolean was created by converting a wider object which
5126 had a boolean range.
5128 2013-04-09 Richard Biener <rguenther@suse.de>
5130 * tree-vectorizer.h (slp_void_p): Remove.
5131 (slp_tree): Typedef before _slp_tree declaration.
5132 (struct _slp_tree): Use a vector of slp_tree as children.
5133 (vect_get_place_in_interleaving_chain): Remove.
5134 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5136 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5138 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5139 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5140 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5141 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5142 Use slp_node instead of slp_void_p and adjust.
5144 2013-04-09 Richard Biener <rguenther@suse.de>
5146 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5147 work that is not necessary.
5149 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5151 PR tree-optimization/56854
5152 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5153 forward into clobber stmts if it would change MEM_REF lhs into
5156 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5158 * tree.c (type_hash_lookup, type_hash_add): Make static.
5159 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5161 2013-04-09 Richard Biener <rguenther@suse.de>
5163 * tree.h (unsave_expr_now): Remove.
5164 * tree-inline.c (mark_local_for_remap_r): Remove.
5165 (unsave_expr_1): Likewise.
5166 (unsave_r): Likewise.
5167 (unsave_expr_now): Likewise.
5168 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5169 (propagate_tree_value): Likewise.
5171 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5173 * doc/rtl.texi (sequence): Rewrite documentation to match the
5174 current use of SEQUENCE rtl objects.
5175 * rtl.def (SEQUENCE): Likewise.
5177 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5178 Update documentation.
5179 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5180 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5182 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5184 2013-04-08 Teresa Johnson <tejohnson@google.com>
5186 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5187 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5189 (estimate_edge_size_and_time): Add comment to suggest using rounding
5191 (estimate_node_size_and_time): Ditto.
5192 (remap_edge_change_prob): Use helper rounding divide methods.
5193 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5194 (gimple_mod_pow2_value_transform): Ditto.
5195 (gimple_mod_subtract_transform): Ditto.
5196 (gimple_ic_transform): Ditto.
5197 (gimple_stringops_transform): Ditto.
5198 * stmt.c (conditional_probability): Ditto.
5199 (emit_case_dispatch_table): Ditto.
5200 * lto-cgraph.c (merge_profile_summaries): Ditto.
5201 * tree-optimize.c (execute_fixup_cfg): Ditto.
5202 * cfgcleanup.c (try_forward_edges): Ditto.
5203 * cfgloopmanip.c (scale_loop_profile): Ditto.
5205 (duplicate_loop_to_header_edge): Ditto.
5206 (lv_adjust_loop_entry_edge): Ditto.
5207 * tree-vect-loop.c (vect_transform_loop): Ditto.
5208 * profile.c (compute_branch_probabilities): Ditto.
5209 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5210 * lto-streamer-in.c (input_cfg): Ditto.
5211 * gimple-streamer-in.c (input_bb): Ditto.
5212 * ipa-cp.c (update_profiling_info): Ditto.
5213 (update_specialized_profile): Ditto.
5214 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5215 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5217 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5218 (compute_trg_info): Ditto.
5219 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5220 (purge_dead_edges): Ditto.
5221 * loop-unswitch.c (unswitch_loop): Ditto.
5222 * cgraphclones.c (cgraph_clone_edge): Ditto.
5223 (cgraph_clone_node): Ditto.
5224 * tree-inline.c (copy_bb): Ditto.
5225 (copy_edges_for_bb): Ditto.
5226 (initialize_cfun): Ditto.
5227 (copy_cfg_body): Ditto.
5228 (expand_call_inline): Ditto.
5230 2013-04-08 Kai Tietz <ktietz@redhat.com>
5232 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5233 TARGET_CYGWIN64 by TARGET_64BIT.
5235 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5237 * config/epiphany/epiphany.md (GPR_1): New constant.
5238 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5239 * config/epiphany/epiphany.c (gen_compare_reg):
5240 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5241 is already in place.
5242 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5243 Don't require being called during rtl expansion; If y operlaps r0,
5245 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5246 (epiphany_expand_epilogue): Likewise.
5248 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5249 Don't use CC_FPmode for ORDERED / UNORDERED.
5250 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5252 * config/epiphany/constraints.md (CnL): New constraint.
5253 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5254 * config/epiphany/predicates.md (add_operand): Allow 1024.
5256 * config/epiphany/epiphany.md (logical_op): New code iterator.
5257 (op_mnc): New code attribute.
5258 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5259 (mov_f+1, mov_f+2): New peephole2 patterns.
5261 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5262 (cstoresi4): Also allow re-use of zero result when doing a NE
5263 comparison to a non-zero operand.
5264 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5266 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5267 Use gen_addsi3_i / gen_subsi3_i.
5269 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5273 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5274 contain anything but clobbers, at most one __builtin_stack_restore,
5275 optionally debug stmts and final resx, and if it has at least one
5276 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5277 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5278 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5279 which isn't defaut definition, remove them.
5280 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5281 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5282 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5283 with MEM_REF LHS with SSA_NAME address.
5285 2013-04-08 Jeff Law <law@redhat.com>
5287 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5289 2013-04-08 Richard Biener <rguenther@suse.de>
5291 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5293 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5294 determined vector type.
5295 (vect_analyze_data_refs): Likewise.
5296 (vect_get_new_vect_var): Adjust.
5297 (vect_create_destination_var): Preserve SSA name versions.
5298 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5299 not dump anything here.
5301 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5303 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5304 Add member lr_slot_known.
5305 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5307 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5308 Remove code that sets lr_slot_offset according to what a previous
5309 version of epiphany_emit_save_restore used to do.
5310 (epiphany_emit_save_restore): When doing an lr save or restore,
5311 set/verify lr_slot_known and lr_slot_offset.
5313 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5316 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5319 2013-04-08 Richard Biener <rguenther@suse.de>
5321 * alias.c (find_base_term): Fix thinko in previous change.
5323 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5325 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5326 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5327 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5328 if possible to compute val.
5329 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5330 For QImode integers don't require anything about precision. Use
5331 const_with_all_bytes_same to find out if the constant doesn't have
5332 repeated bytes in it.
5334 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5336 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5339 2013-04-08 Marek Polacek <polacek@redhat.com>
5341 PR rtl-optimization/48182
5342 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5345 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5348 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5349 nuses, make sure we have a label.
5351 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5354 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5355 (rs6000_emit_swdiv_low_precision): Remove.
5356 (rs6000_emit_swdiv): Rewrite to handle between one and four
5357 iterations of Newton-Raphson generally; modify required number of
5358 iterations for some cases.
5359 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5361 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5363 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5364 set-but-unused variable.
5366 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5367 basic blocks of released function bodies garbage-collectable.
5369 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5370 (struct rtl_opt_pass): Add TODO_df_finish.
5372 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5374 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5376 * config/arm/constraints.md (q): New constraint.
5377 * config/arm/ldrdstrd.md: New file.
5378 * config/arm/arm.md (ldrdstrd.md) New include.
5379 (arm_movdi): Use "q" instead of "r" constraint
5380 for double-word memory access.
5381 (movdf_soft_insn): Likewise.
5382 * config/arm/vfp.md (movdi_vfp): Likewise.
5383 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5384 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5385 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5386 (mem_ok_for_ldrd_strd): Likewise.
5387 (output_move_double): Update assertion.
5389 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5391 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5393 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5395 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5396 define_insn_and_split.
5397 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5399 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5401 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5402 define_insn_and_split.
5403 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5404 (shiftsi3_compare): New pattern.
5406 * config/arm/unspecs.md (UNSPEC_RRX): New.
5408 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5410 * config/arm/arm.md (negdi_extendsidi): New pattern.
5411 (negdi_zero_extendsidi): Likewise.
5413 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5415 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5416 define_insn_and_split.
5417 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5418 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5420 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5422 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5423 define_insn_and_split.
5424 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5425 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5427 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5429 * config/arm/arm.md (subsi3_carryin): New pattern.
5430 (subsi3_carryin_const): Likewise.
5431 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5432 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5434 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5436 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5438 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5440 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5441 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5443 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5445 * config/arm/arm.c (arm_expand_builtin): Change fcode
5446 type to unsigned int.
5448 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5450 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5452 2013-04-04 Ian Lance Taylor <iant@google.com>
5454 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5457 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5460 * df-scan.c (df_insn_delete): Disable failing assert.
5462 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5464 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5465 New function prototype.
5466 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5467 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5468 (arm_builtin_vectorized_function): New function.
5470 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5472 * config/arm/arm_neon_builtins.def: New file.
5473 * config/arm/arm.c (neon_builtin_data): Move contents to
5474 arm_neon_builtins.def.
5475 (enum arm_builtins): Include neon builtin definitions.
5476 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5477 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5479 2013-04-04 Marek Polacek <polacek@redhat.com>
5481 PR tree-optimization/48186
5482 * predict.c (maybe_hot_frequency_p): Return false if
5483 HOT_BB_FREQUENCY_FRACTION is 0.
5484 (cgraph_maybe_hot_edge_p): Likewise.
5486 2013-04-04 Richard Biener <rguenther@suse.de>
5488 PR tree-optimization/56826
5489 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5492 2013-04-04 Richard Biener <rguenther@suse.de>
5494 PR tree-optimization/56213
5495 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5496 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5498 2013-04-04 Richard Biener <rguenther@suse.de>
5500 PR tree-optimization/56837
5501 * tree-loop-distribution.c (classify_partition): For non-zero
5502 values require that the value has the same precision as its
5503 mode to be useful as memset value.
5505 2013-04-03 Nick Clifton <nickc@redhat.com>
5507 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
5508 (fmssf4): Use fmsf.s on E3V5 architectures.
5509 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5510 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5512 2013-04-03 Jeff Law <law@redhat.com>
5514 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5515 (lra-eliminations.o): Likewise.
5517 2013-04-03 Teresa Johnson <tejohnson@google.com>
5519 * gcov-io.c (compute_working_sets): Moved most of body of old
5520 compute_working_sets here from profile.c.
5521 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
5522 (gcov_working_set_t): Moved typedef here from basic-block.h
5523 (compute_working_set): Declare.
5524 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5525 (get_working_sets): Renamed from compute_working_set,
5526 replace most of body with call to new compute_working_sets.
5527 (get_exec_counts): Replace call to compute_working_sets
5528 to get_working_sets.
5529 * profile.h (get_working_sets): Renamed from compute_working_set.
5530 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
5531 to get_working_sets.
5532 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5533 * gcov-dump.c (dump_working_sets): New function.
5535 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5537 * hwint.c (sext_hwi, zext_hwi): New functions.
5538 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5539 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5540 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5541 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5542 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5543 (sext_hwi, zext_hwi): New functions.
5545 2013-04-03 Jeff Law <law@redhat.com>
5547 PR tree-optimization/56799
5548 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5549 back test for widening conversion erroneously dropped in prior change.
5551 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5554 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5555 instead of next_real_insn.
5557 2013-04-03 Marek Polacek <polacek@redhat.com>
5560 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
5562 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5565 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5567 (thumb1_output_casesi): Likewise.
5568 (thumb2_output_casesi): Likewise.
5570 2013-04-03 Richard Biener <rguenther@suse.de>
5572 PR tree-optimization/56817
5573 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5575 (tree_unroll_loops_completely_1): ... new function to manually
5576 walk the loop tree, properly defering outer loops of unrolled
5577 loops to later iterations.
5579 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5581 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5582 (vectorizable_load): Likewise.
5583 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5584 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5586 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5588 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5591 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5593 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5595 2013-04-03 Bin Cheng <bin.cheng@arm.com>
5597 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5599 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5601 PR tree-optimization/56790
5602 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5605 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5607 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5609 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5610 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5613 2013-04-03 Jakub Jelinek <jakub@redhat.com>
5616 * tree.h (force_folding_builtin_constant_p): New decl.
5617 * builtins.c (force_folding_builtin_constant_p): New variable.
5618 (fold_builtin_constant_p): Fold immediately also if
5619 force_folding_builtin_constant_p.
5621 2013-04-03 Richard Biener <rguenther@suse.de>
5623 PR tree-optimization/56812
5624 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5625 DRs of the same interleaving chain are independent.
5627 2013-04-02 Jason Merrill <jason@redhat.com>
5629 * gdbinit.in (pbb): Use debug fn.
5631 2013-04-02 Lawrence Crowl <crowl@google.com>
5633 * sese.h (struct ivtype_map_elt_s): Remove unused.
5634 (extern debug_ivtype_map): Remove unused.
5635 (extern eq_ivtype_map_elts): Remove unused.
5636 * sese.c (debug_ivtype_map): Removed unused.
5637 (debug_ivtype_map_1): Removed unused.
5638 (debug_ivtype_elt): Remove unused.
5639 (eq_ivtype_map_elts): Remove unused.
5642 2013-04-02 Kai Tietz <ktietz@redhat.com>
5645 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5646 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
5647 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5649 (legitimize_pe_coff_symbol): Likewise.
5650 (is_imported_p): New helper-function.
5651 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5652 for Windows x64 targets.
5653 (ix86_expand_prologue): Optimize for pe-coff targets.
5654 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5655 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5656 medium/large code-model.
5657 (legitimize_pic_address): Likewise.
5658 (legitimize_tls_address): Likewise.
5659 (ix86_expand_call): Likewise.
5660 (x86_output_mi_thunk): Likewise.
5661 (get_dllimport_decl): Add new beimport argument.
5662 (construct_plt_address): Don't assert for x64 pe-coff targets.
5663 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5665 (SYMBOL_FLAG_STUBVAR): New macro.
5666 (SYMBOL_REF_STUBVAR_P): Likewise.
5667 * config/i386/winnt.c (stub_list): New structure.
5668 (stub_head): New local variable.
5669 (i386_pe_record_stub): New function.
5670 (i386_pe_file_end): Emit refptr-stubs.
5672 2013-04-02 Jakub Jelinek <jakub@redhat.com>
5674 PR rtl-optimization/56745
5675 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5676 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5679 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5680 and both of them are MEM_REFs, just compare first argument for
5681 equality and attempt to deal even with differing offsets.
5684 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5685 of gimple_clobber_p to be MEM_REF.
5686 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5687 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5688 after gimplification.
5689 * asan.c (get_mem_ref_of_assignment): Don't instrument
5690 gimple_clobber_p stmts.
5691 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5692 gimple_clobber_p stmt if they have MEM_REF lhs and
5693 are dead because of another gimple_clobber_p stmt.
5694 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5695 gimple_clobber_p stmts like debug stmts.
5696 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5697 that refer to unused VAR_DECLs or uninitialized values.
5698 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5699 gimple_clobber_p stmts if they refer to removed parameters.
5700 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5703 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
5705 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5706 using SWI48 mode attribute.
5708 2013-04-02 Wei Mi <wmi@google.com>
5710 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5711 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5712 *<rotate_insn><mode>3_mask in i386.md.
5714 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5716 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5718 2013-04-02 Richard Biener <rguenther@suse.de>
5720 PR tree-optimization/56778
5721 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5722 Runtime alias tests are not supported for gather loads.
5723 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5724 stmts referenced from SSA operands before updating SSA form.
5726 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5727 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5729 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
5730 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5731 * config/arm/cortex-a53.md: New file.
5732 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5733 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5734 * config/arm/arm.c (arm_issue_rate): Likewise.
5735 * config/arm/arm-tune.md: Regenerate
5736 * config/arm/arm-tables.opt: Regenerate.
5737 * config/arm/arm-cores.def: Add cortex-a53.
5739 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5741 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5744 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5746 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5747 scalar load/store operations using B/H registers.
5748 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5750 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5752 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5754 * config/aarch64/aarch64.c
5755 (aarch64_simd_scalar_immediate_valid_for_move): New.
5756 * config/aarch64/aarch64-protos.h
5757 (aarch64_simd_scalar_immediate_valid_for_move): New.
5758 * config/aarch64/constraints.md (Dh, Dq): New.
5759 * config/aarch64/iterators.md (hq): New.
5761 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5763 * reorg.c (get_branch_condition): Deal with conditional returns.
5764 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5766 2013-04-01 Wei Mi <wmi@google.com>
5768 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5769 Truncate operand 2 using %b asm operand modifier.
5770 (*<shift_insn><mode>3_mask): Ditto.
5771 (*<rotate_insn><mode>3_mask): Ditto.
5773 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5776 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5778 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5780 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5782 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5784 2013-03-30 Lawrence Crowl <crowl@google.com>
5786 * dse.c (clear_alias_sets): Remove never set.
5787 (disqualified_clear_alias_sets): Remove never set.
5788 (clear_alias_mode_pool): Remove never set.
5789 (dse_step0): Remove condition that is never true.
5790 (canon_address): Remove condition that is never true.
5791 (dse_step7): Remove condition that is never true.
5792 (rest_of_handle_dse): Remove condition that is never true.
5793 (rest_of_handle_dse::did_global): Remove never read from above.
5794 (dse_step2_spill): Remove never called from above.
5795 (dse_step5_spill): Remove never called from above.
5797 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5799 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5800 JUMP_TABLE_DATA changes.
5801 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5802 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5803 (Insns) <jump_table_data>: New entry.
5804 * doc/tm.texi: Regenerate.
5806 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5808 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5809 for table jump at the end of a basic block using tablejump_p.
5810 * targhooks.c (default_invalid_within_doloop): Likewise.
5811 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5812 target hook implementation that is identical to the default hook.
5813 (rs6000_invalid_within_doloop): Remove.
5815 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5816 unused variable from tablejump_p call.
5818 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5819 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5820 (INSN_DELETED_P): Likewise.
5821 (emit_jump_table_data): New prototype.
5822 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5823 after 4th as unused.
5824 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5825 * sched-vis.c (print_insn): Likewise.
5826 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5827 insn for compatibility with back ends that use next_active_insn to
5828 identify jump table data.
5829 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5830 (remove_insn): Likewise.
5831 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5833 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5834 (emit_jump_table_data): New function.
5836 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5837 basic block, a JUMP_TABLE_DATA never is.
5838 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5839 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5840 off from code handling real insns.
5841 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5842 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5843 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5844 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5845 is not a NONDEBUG_INSN_P.
5846 * ira-costs.c (scan_one_insn): Likewise.
5847 * jump.c (mark_all_labels): Likewise.
5848 (mark_jump_label_1): Likewise.
5849 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5850 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5852 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5853 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5854 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5855 JUMP_TABLE_DATA_P insns.
5856 (calculate_elim_costs_all_insns): Likewise.
5857 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5858 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5859 (delete_output_reload): Code style fixups.
5860 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5861 insn flags on this non-insn.
5862 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5863 as scheduling barriers, for pre-change compatibility.
5864 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5865 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5867 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5868 redundant JUMP_TABLE_DATA_P test.
5869 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5870 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5871 (frv_for_each_packet): Likewise.
5872 * config/i386/i386.c (min_insn_size): Likewise.
5873 (ix86_avoid_jump_mispredicts): Likewise.
5874 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5875 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5876 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5877 (mips16_insn_length): Robustify.
5878 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5879 (mips16_split_long_branches): Likewise.
5880 * config/pa/pa.c (pa_combine_instructions): Likewise.
5881 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5882 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5883 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5884 as contributing to pool range lengths.
5885 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5886 Remove redundant JUMP_TABLE_DATA_P test.
5887 (sh_loop_align): Likewise.
5888 (split_branches): Likewise.
5889 (sh_insn_length_adjustment): Likewise.
5890 * config/spu/spu.c (get_branch_target): Likewise.
5892 2013-03-29 Jan Hubicka <jh@suse.cz>
5894 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5895 gcov streaming; stream hot bb threshold to ltrans.
5896 * predict.c (get_hot_bb_threshold): Break out from ....
5897 (maybe_hot_count_p): ... here.
5898 (set_hot_bb_threshold): New function.
5899 * lto-section-in.c (lto_section_name): Add profile.
5900 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5901 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5903 (histogram_entry): New structure.
5904 (histogram, histogram_pool): New global vars.
5905 (histogram_hash): New structure.
5906 (histogram_hash::hash): New method.
5907 (histogram_hash::equal): Likewise.
5908 (account_time_size): New function.
5909 (cmp_counts): New function.
5910 (dump_histogram): New function.
5911 (ipa_profile_generate_summary): New function.
5912 (ipa_profile_write_summary): New function.
5913 (ipa_profile_read_summary): New function.
5914 (ipa_profile): Decide on threshold.
5915 (pass_ipa_profile): Add ipa_profile_write_summary and
5916 ipa_profile_read_summary.
5917 * Makefile.in (ipa.o): Update dependencies.
5918 * lto-streamer.h (LTO_section_ipa_profile): New section.
5920 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5922 * tree.h (VAR_P): New.
5924 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5927 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5929 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5931 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5932 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5933 (control_flow_insn_p): Likewise.
5934 * cfgrtl.c (duplicate_insn_chain): Likewise.
5935 * final.c (get_attr_length_1): Likewise.
5936 (shorten_branches): Likewise.
5937 (final_scan_insn): Likewise.
5938 * function.c (instantiate_virtual_regs): Likewise.
5939 * gcse.c (insert_insn_end_basic_block): Likewise.
5940 * ira-costs.c (scan_one_insn): Likewise.
5941 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5942 * lra.c (check_rtl): Likewise.
5943 * reload1.c (elimination_costs_in_insn): Likewise.
5944 * reorg.c (follow_jumps): Likewise.
5946 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5947 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5948 (thumb_far_jump_used_p): Likewise.
5949 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5950 (workaround_speculation): Likewise.
5951 (add_sched_insns_for_speculation): Likewise.
5952 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5953 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5954 (frv_for_each_packet): Likewise.
5955 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5956 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5957 (final_emit_insn_group_barriers): Likewise.
5958 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5959 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5960 (mips16_insn_length): Likewise.
5961 * config/pa/pa.c (pa_reorg): Likewise.
5962 (pa_combine_instructions): Likewise.
5963 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5964 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5965 (sh_reorg): Likewise.
5966 (split_branches): Likewise.
5967 * config/spu/spu.c (get_branch_target): Likewise.
5969 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5972 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5974 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
5975 Fix declaration name.
5977 2013-03-28 Lawrence Crowl <crowl@google.com>
5979 * graphds.h (struct graph.indicies): Remove unused.
5980 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5981 (SCOP_ORIGINAL_PDDRS): Remove unused.
5982 * sese.h (extern insert_loop_close_phis): Removed unused.
5983 (extern insert_guard_phis): Removed unused.
5984 (extern ivtype_map_elt_info): Removed unused.
5985 (new_ivtype_map_elt): Removed unused.
5986 * sese.c (ivtype_map_elt_info): Removed unused.
5988 2013-03-28 Lawrence Crowl <crowl@google.com>
5990 * Makefile.in: Add several missing include dependences.
5992 (test-dump.o): New. This object is not added to any executable,
5993 but is present for ad-hoc testing.
5995 (debug (const bitmap_head_def &)): New.
5996 (debug (const bitmap_head_def *)): New.
5998 (extern debug (const bitmap_head_def &)): New.
5999 (extern debug (const bitmap_head_def *)): New.
6001 (debug (edge_def &)): New.
6002 (debug (edge_def *)): New.
6004 (debug (basic_block_def &)): New.
6005 (debug (basic_block_def *)): New.
6007 (dump_node (const_tree, int, FILE *)): Correct source file.
6009 (debug (die_struct &)): New.
6010 (debug (die_struct *)): New.
6012 (extern debug (die_struct &)): New.
6013 (extern debug (die_struct *)): New.
6014 * gimple-pretty-print.c
6015 (debug (gimple_statement_d &)): New.
6016 (debug (gimple_statement_d *)): New.
6017 * gimple-pretty-print.h
6018 (extern debug (gimple_statement_d &)): New.
6019 (extern debug (gimple_statement_d *)): New.
6021 (debug (ira_allocno_copy &)): New.
6022 (debug (ira_allocno_copy *)): New.
6023 (debug (ira_allocno &)): New.
6024 (debug (ira_allocno *)): New.
6026 (extern debug (ira_allocno_copy &)): New.
6027 (extern debug (ira_allocno_copy *)): New.
6028 (extern debug (ira_allocno &)): New.
6029 (extern debug (ira_allocno *)): New.
6031 (debug (live_range &)): New.
6032 (debug (live_range *)): New.
6034 (debug (lra_live_range &)): New.
6035 (debug (lra_live_range *)): New.
6037 (debug (lra_live_range &)): New.
6038 (debug (lra_live_range *)): New.
6040 (debug (omega_pb_d &)): New.
6041 (debug (omega_pb_d *)): New.
6043 (extern debug (omega_pb_d &)): New.
6044 (extern debug (omega_pb_d *)): New.
6046 (debug (const rtx_def &)): New.
6047 (debug (const rtx_def *)): New.
6049 (debug_tree (tree): Move within file.
6050 (debug_raw (const tree_node &)): New.
6051 (debug_raw (const tree_node *)): New.
6052 (dump_tree_via_hooks (const tree_node *, int)): New.
6053 (debug (const tree_node &)): New.
6054 (debug (const tree_node *)): New.
6055 (debug_verbose (const tree_node &)): New.
6056 (debug_verbose (const tree_node *)): New.
6057 (debug_head (const tree_node &)): New.
6058 (debug_head (const tree_node *)): New.
6059 (debug_body (const tree_node &)): New.
6060 (debug_body (const tree_node *)): New.
6061 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6062 (debug (vec<tree, va_gc> &)): New.
6063 (debug (vec<tree, va_gc> *)): New.
6065 (extern debug (const rtx_def &)): New.
6066 (extern debug (const rtx_def *)): New.
6068 (debug_raw (simple_bitmap_def &)): New.
6069 (debug_raw (simple_bitmap_def *)): New.
6070 (debug (simple_bitmap_def &)): New.
6071 (debug (simple_bitmap_def *)): New.
6073 (extern debug (simple_bitmap_def &)): New.
6074 (extern debug (simple_bitmap_def *)): New.
6075 (extern debug_raw (simple_bitmap_def &)): New.
6076 (extern debug_raw (simple_bitmap_def *)): New.
6078 (debug (vinsn_def &)): New.
6079 (debug (vinsn_def *)): New.
6080 (debug_verbose (vinsn_def &)): New.
6081 (debug_verbose (vinsn_def *)): New.
6082 (debug (expr_def &)): New.
6083 (debug (expr_def *)): New.
6084 (debug_verbose (expr_def &)): New.
6085 (debug_verbose (expr_def *)): New.
6086 (debug (vec<rtx> &)): New.
6087 (debug (vec<rtx> *)): New.
6089 (extern debug (vinsn_def &)): New.
6090 (extern debug (vinsn_def *)): New.
6091 (extern debug_verbose (vinsn_def &)): New.
6092 (extern debug_verbose (vinsn_def *)): New.
6093 (extern debug (expr_def &)): New.
6094 (extern debug (expr_def *)): New.
6095 (extern debug_verbose (expr_def &)): New.
6096 (extern debug_verbose (expr_def *)): New.
6097 (extern debug (vec<rtx> &)): New.
6098 (extern debug (vec<rtx> *)): New.
6100 (_list_iter_cond_expr): Make inline instead of static.
6102 (debug (sreal &)): New.
6103 (debug (sreal *)): New.
6105 (extern debug (sreal &)): New.
6106 (extern debug (sreal *)): New.
6108 (extern debug_raw (const tree_node &)): New.
6109 (extern debug_raw (const tree_node *)): New.
6110 (extern debug (const tree_node &)): New.
6111 (extern debug (const tree_node *)): New.
6112 (extern debug_verbose (const tree_node &)): New.
6113 (extern debug_verbose (const tree_node *)): New.
6114 (extern debug_head (const tree_node &)): New.
6115 (extern debug_head (const tree_node *)): New.
6116 (extern debug_body (const tree_node &)): New.
6117 (extern debug_body (const tree_node *)): New.
6118 (extern debug (vec<tree, va_gc> &)): New.
6119 (extern debug (vec<tree, va_gc> *)): New.
6121 (debug (struct loop &)): New.
6122 (debug (struct loop *)): New.
6123 (debug_verbose (struct loop &)): New.
6124 (debug_verbose (struct loop *)): New.
6125 * tree-dump.c: Add header dependence.
6127 (extern debug (struct loop &)): New.
6128 (extern debug (struct loop *)): New.
6129 (extern debug_verbose (struct loop &)): New.
6130 (extern debug_verbose (struct loop *)): New.
6132 (debug (data_reference &)): New.
6133 (debug (data_reference *)): New.
6134 (debug (vec<data_reference_p> &)): New.
6135 (debug (vec<data_reference_p> *)): New.
6136 (debug (vec<ddr_p> &)): New.
6137 (debug (vec<ddr_p> *)): New.
6139 (extern debug (data_reference &)): New.
6140 (extern debug (data_reference *)): New.
6141 (extern debug (vec<data_reference_p> &)): New.
6142 (extern debug (vec<data_reference_p> *)): New.
6143 (extern debug (vec<ddr_p> &)): New.
6144 (extern debug (vec<ddr_p> *)): New.
6146 (debug (pt_solution &)): New.
6147 (debug (pt_solution *)): New.
6149 (extern debug (pt_solution &)): New.
6150 (extern debug (pt_solution *)): New.
6152 (debug (_var_map &)): New.
6153 (debug (_var_map *)): New.
6154 (debug (tree_live_info_d &)): New.
6155 (debug (tree_live_info_d *)): New.
6157 (extern debug (_var_map &)): New.
6158 (extern debug (_var_map *)): New.
6159 (extern debug (tree_live_info_d &)): New.
6160 (extern debug (tree_live_info_d *)): New.
6162 2013-03-28 Jan Hubicka <jh@suse.cz>
6164 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6166 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6168 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6169 record only when desired or required.
6171 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6173 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6174 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6176 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6178 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6179 (*andsi3_compare0_uxtw): New pattern.
6180 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6181 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6183 2013-03-28 Jan Hubicka <jh@suse.cz>
6185 * data-streamer-in.c (streamer_read_gcov_count): New function.
6186 * gimple-streamer-out.c: Include value-prof.h.
6187 (output_gimple_stmt): Output histogram.
6188 (output_bb): Use streamer_write_gcov_count.
6189 * value-prof.c: Include data-streamer.h
6190 (dump_histogram_value): Add HIST_TYPE_MAX.
6191 (stream_out_histogram_value): New function.
6192 (stream_in_histogram_value): New function.
6193 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6194 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6195 * data-streamer-out.c (streamer_write_gcov_count): New function.
6196 (streamer_write_gcov_count_stream): New function.
6197 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6198 (lto_output_node): Likewise.
6199 (input_node, input_edge): Likewise.
6200 * lto-streamer-out.c (output_cfg): Update streaming.
6201 * lto-streamer-in.c (input_cfg): Likewise.
6202 * data-streamer.h (streamer_write_gcov_count,
6203 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6204 * gimple-streamer-in.c: Include value-prof.h
6205 (input_gimple_stmt): Input histograms.
6206 (input_bb): Update profile streaming.
6208 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6210 * genmodes.c (emit_max_int): New function.
6211 (emit_insn_modes_h): Added call to emit_max_function.
6212 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6214 * machmode.def: Fixed comment.
6216 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6218 * combine.c (try_combine): Removed useless assert.
6219 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6221 2013-03-28 Marek Polacek <polacek@redhat.com>
6222 Richard Biener <rguenther@suse.de>
6224 PR tree-optimization/56695
6225 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6226 build signed result of a vector comparison.
6227 * tree-cfg.c (verify_gimple_comparison): Check that a result
6228 of a vector comparison has signed type.
6230 2013-03-28 Richard Biener <rguenther@suse.de>
6232 PR tree-optimization/37021
6233 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6234 do not restrict gaps between groups.
6235 * tree-vect-stmts.c (vectorizable_load): Properly account for
6236 a gap between groups.
6238 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6240 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6241 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6244 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6246 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6247 * doc/extend.texi (Named Address Spaces): Ditto.
6248 (Variable Attributes): Ditto.
6250 2013-03-27 Kai Tietz <ktietz@redhat.com>
6252 * config.build: Add support for cygwin x64 target.
6253 * config.gcc: Likewise.
6254 * config.host: Likewise.
6255 * configure.ac: Likewise
6256 * configure: Regenerated.
6258 2013-03-27 Kai Tietz <ktietz@redhat.com>
6260 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6261 * config/i386/t-cygwin-w64: New file.
6262 * config/i386/cygwin-w64.h: New file.
6263 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6264 and add support for x64-cygwin target.
6265 (CPP_SPEC): Likewise.
6266 (CXX_WRAP_SPEC_LIST): Undefine before define.
6267 (LIBGCJ_SONAME): Use 15 as version.
6269 2013-03-27 Richard Biener <rguenther@suse.de>
6271 PR tree-optimization/56716
6272 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6273 dumping for ref nodes.
6275 2013-03-27 Martin Jambor <mjambor@suse.cz>
6277 PR tree-optimization/55334
6278 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6279 restricted pointers to arrays.
6281 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6283 * Makefile.in (.SUFFIXES): Add .cc.
6284 (.c.o): Apply same recipe for implicit rule .cc.o.
6286 2013-03-27 Richard Biener <rguenther@suse.de>
6288 PR tree-optimization/37021
6289 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6290 REALPART/IMAGPART_EXPRs around the supported refs.
6291 * tree-ssa-structalias.c (find_func_aliases): Assume that
6292 floating-point values are not used to transfer pointers.
6294 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6296 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6297 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6298 * doc/tm.texi: Regenerate.
6299 * targhooks.h (default_has_ifunc_p): New.
6300 * targhooks.c (default_has_ifunc_p): Ditto.
6301 * config/linux-protos.h: New file.
6302 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6303 this hook for linux which disables support of indirect functions in
6305 * config/linux-android.c: New file.
6306 * config/t-linux-android.c: Ditto.
6307 * config.gcc: Added new object file linux-android.o.
6308 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6309 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6310 * varasm.c (do_assemble_alias): Likewise.
6311 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6312 doesn't support indirect functions.
6313 * configure: Regenerate.
6315 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6318 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6319 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6322 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6324 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6326 2013-03-27 Terry Guo <terry.guo@arm.com>
6328 * config/arm/arm-cores.def: Added core cortex-r7.
6329 * config/arm/arm-tune.md: Regenerated.
6330 * config/arm/arm-tables.opt: Regenerated.
6331 * doc/invoke.texi: Added entry for core cortex-r7.
6333 2013-03-27 Walter Lee <walt@tilera.com>
6335 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6336 double-decrement of next_scratch_regno.
6338 2013-03-27 Walter Lee <walt@tilera.com>
6340 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6342 (insn_v1mulus): Ditto.
6343 (insn_v2muls): Ditto.
6345 2013-03-27 Walter Lee <walt@tilera.com>
6347 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6348 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6350 2013-03-27 Walter Lee <walt@tilera.com>
6352 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6353 (*sibcall_value): Ditto.
6355 2013-03-27 Walter Lee <walt@tilera.com>
6357 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6358 (insn_mnz_v8qi): ... this ...
6359 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6361 (insn_v<n>mnz): Replaced by ...
6362 (insn_v1mnz): ... this ...
6363 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6365 (insn_mz_<mode>): Replaced by ...
6366 (insn_mz_v8qi): ... this ...
6367 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6369 (insn_v<n>mz): Replaced by ...
6370 (insn_v1mz): ... this ...
6371 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6374 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6376 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6378 2013-03-26 Roland McGrath <mcgrathr@google.com>
6380 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6381 than fprintf with a non-constant, non-format string.
6383 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6385 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6386 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6387 operand 0 predicate.
6388 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6389 attribute. Use general_x64nomem_operand as operand 1 predicate.
6390 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6391 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6392 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6393 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6394 (mov<mode>_insv_1): Remove expander. Merge insn with
6395 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6396 Use general_x64nomem_operand as operand 1 predicate.
6397 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6398 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6399 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6400 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6401 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6402 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6403 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6404 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6405 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6406 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6407 (general_x64nomem_operand): Ditto.
6409 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6411 * config/rtems.opt: Add -pthread option.
6413 2013-03-26 Richard Biener <rguenther@suse.de>
6415 * alias.c (find_base_term): Avoid redundant and not used recursion.
6416 (base_alias_check): Get the initial base term from the caller.
6417 (true_dependence_1): Compute and pass base terms to base_alias_check.
6418 (write_dependence_p): Likewise.
6419 (may_alias_p): Likewise.
6421 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6423 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6424 PC-relative load in SI modes and above only.
6426 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6428 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6429 * config/arm/iwmmxt.md (WCGR0): Update.
6430 (WCGR1, WCGR2, WCGR3): Likewise.
6432 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6434 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6435 Use x64 and nox64 isa attributes.
6437 2013-03-26 Richard Biener <rguenther@suse.de>
6439 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6440 alignment computations and rely on get_object_alignment_1
6441 for the !TYPE_P case.
6442 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6444 2013-03-26 Walter Lee <walt@tilera.com>
6446 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6447 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6449 2013-03-25 Jeff Law <law@redhat.com>
6451 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6452 check for INTEGRAL_TYPE_P that was missing due to checking in
6453 wrong version of prior patch.
6455 2013-03-25 Walter Lee <walt@tilera.com>
6457 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6458 TILEGX_INSN_SHUFFLEBYTES1.
6459 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6461 (tilegx_builtins): Ditto.
6462 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6464 2013-03-25 Walter Lee <walt@tilera.com>
6466 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6467 (floatunssisf2): New pattern.
6468 (floatsidf2): New pattern.
6469 (floatunssidf2): New pattern.
6471 2013-03-25 Walter Lee <walt@tilera.com>
6473 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6474 tests for constraint J, K, N, P.
6476 2013-03-25 Walter Lee <walt@tilera.com>
6478 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6479 Use indirect/pcrel encoding.
6480 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6483 2013-03-25 Steve Ellcey <sellcey@mips.com>
6485 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6486 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6487 * config/mips/mips.c (mips_option_override): Set IMADD default.
6488 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6489 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6490 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6491 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6492 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6494 2013-03-25 Jeff Law <law@redhat.com>
6496 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6497 slightly to avoid creating and folding useless trees. Simplify
6498 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6500 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
6502 * config/i386/i386.md (*zero_extendsidi2): Merge with
6503 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6504 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6505 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6506 targets. Clarify comment.
6508 2013-03-25 Martin Jambor <mjambor@suse.cz>
6510 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6511 pass-through jump functions differently.
6512 (ipa_read_jump_function): Likewise. Also use setter functions to set
6515 2013-03-25 Martin Jambor <mjambor@suse.cz>
6517 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6518 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6520 (ipa_get_indirect_edge_target): New function.
6521 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6522 ipa_get_indirect_edge_target. Update all callers.
6523 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6524 ipa_get_indirect_edge_target_1 instead of calling
6525 ipa_get_indirect_edge_target.
6526 (create_specialized_node): Pass aggvlas to
6527 ipcp_discover_new_direct_edges.
6529 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6531 * config/arm/arm.md (f_sels, f_seld): New types.
6532 (*cmov<mode>): New pattern.
6533 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6536 2013-03-25 Kai Tietz <ktietz@redhat.com>
6538 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6539 POSIX-printf for mingw-hosted builds.
6541 2013-03-25 Richard Biener <rguenther@suse.de>
6544 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6545 must-not-throw stmt location.
6547 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6549 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6550 Emit load-acquire versions when acq is true.
6551 (arm_emit_store_exclusive): Add rel parameter.
6552 Emit store-release versions when rel is true.
6553 (arm_split_compare_and_swap): Use acquire-release instructions
6555 of barriers when appropriate.
6556 (arm_split_atomic_op): Likewise.
6557 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6558 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6559 (VUNSPEC_SLX): Likewise.
6560 (VUNSPEC_LDA): Likewise.
6561 (VUNSPEC_STL): Likewise.
6562 * config/arm/sync.md (atomic_load<mode>): New pattern.
6563 (atomic_store<mode>): Likewise.
6564 (arm_load_acquire_exclusive<mode>): Likewise.
6565 (arm_load_acquire_exclusivesi): Likewise.
6566 (arm_load_acquire_exclusivedi): Likewise.
6567 (arm_store_release_exclusive<mode>): Likewise.
6569 2013-03-25 Catherine Moore <clm@codesourcery.com>
6571 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6572 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6573 * config/mip/predicates.md (lwsp_swsp_operand,
6574 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6575 sb16_operand, db4_operand, db7_operand, ib3_operand,
6576 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6577 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6578 andi16_operand): New predicates.
6579 * config/mips/mips.md (compression): New attribute.
6580 (enabled): New attribute.
6581 (length): Consider compression in computing length.
6582 (shift_compression): New code attribute.
6583 (*add<mode>3): New operands. Record compression.
6584 (sub<mode>3): Likewise.
6585 (one_cmpl<mode>2): Likewise.
6586 (*and<mode>3): Likewise.
6587 (*ior<mode>3): Likewise.
6588 (unnamed pattern for xor): Likewise.
6589 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6590 (*<optab><mode>3): Likewise.
6591 (*mov<mode>_internal: Likewise.
6592 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6593 (mips_unsigned_immediate_p): New.
6594 (umips_lwsp_swsp_address_p): New.
6595 (m16_based_address_p): New.
6596 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6597 (mips_unsigned_immediate_p): New prototype.
6598 (lwsp_swsp_address_p): New prototype.
6599 (m16_based_address_p): New prototype.
6600 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6601 (mips_signed_immediate_p): New function.
6602 (m16_based_address_p): New function.
6603 (lwsp_swsp_address_p): New function.
6604 (mips_print_operand_punctuation): Recognize short delay slot insns
6605 for microMIPS.add<mode>3"
6607 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6610 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6611 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6613 2013-03-25 Richard Biener <rguenther@suse.de>
6615 PR tree-optimization/56689
6616 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6619 2013-03-25 Richard Biener <rguenther@suse.de>
6621 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6623 (memory_references): Likewise.
6624 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6625 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6626 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6627 (gather_mem_refs_in_loops): Fold into ...
6628 (analyze_memory_references): ... this. Move initialization
6629 to tree_ssa_lim_initialize.
6630 (fill_always_executed_in): Rename to ...
6631 (fill_always_executed_in_1): ... this.
6632 (fill_always_executed_in): Move contains_call computation to
6633 this new function from ...
6634 (tree_ssa_lim_initialize): ... here.
6635 (tree_ssa_lim): Call fill_always_executed_in.
6637 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6639 * postreload.c (reload_combine): Fix code detecting returns.
6641 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6643 * function.c (emit_use_return_register_into_block): On cc0 targets,
6644 do not emit the sequence between cc0 setter and user.
6646 2013-03-25 Kai Tietz <ktietz@redhat.com>
6648 * config/i386/predicates.md (local_symbolic_operand): Interpret
6649 dll-imported symbols as none-local.
6651 2013-03-25 Richard Biener <rguenther@suse.de>
6653 * tree-ssa-loop-im.c (struct depend): Remove.
6654 (struct lim_aux_data): Make depends a vec of gimples.
6655 (free_lim_aux_data): Adjust.
6656 (add_dependency): Likewise.
6657 (set_level): Likewise.
6659 2013-03-25 Richard Biener <rguenther@suse.de>
6662 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6663 the pointer returned by calls with ECF_MALLOC set.
6665 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6667 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6669 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6671 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
6672 using MMXMODE mode iterator.
6673 (*move<mode>_internal): Merge with *movv2sf_internal and
6674 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6676 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6678 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6679 (record_last_mem_set_info): Likewise.
6681 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6682 of XNEWVEC followed by memset.
6683 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6685 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6687 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6688 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6689 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6690 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6691 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6692 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6693 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6694 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6695 BARRIER_P instead of GET_CODE.
6697 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6699 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6700 inaccuracy in the probing code.
6702 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6703 (ctrapdi4): Likewise.
6705 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6707 * calls.c (expand_call): Add missing guard to code handling return
6708 of non-BLKmode structures in MSB.
6709 * function.c (expand_function_end): Likewise.
6711 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6713 * combine.c (try_combine): Adjust comment. Do not add the set of
6714 insn #0 if the destination indirectly is set or dies in insn #2.
6715 Tidy up code to distribute a new note.
6717 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6719 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6720 also for alternatives 16 and 17.
6722 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6724 * config/i386/sse.md (*mov<mode>_internal): Merge with
6725 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6726 Emit insn template depending on type attribute. Use
6727 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6728 movd instead of movq mnemonic for interunit moves. Rewrite mode
6729 attribute calculation. Remove unit attribute calculation.
6730 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6731 Set prefix_data16 attribute for DImode ssemov types.
6732 Use Ym instead of y for SSE-MMX conversion alternatives.
6733 Reorder operand constraints.
6735 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6737 * df.h (df_insn_delete): Adjust prototype.
6738 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6739 and let it decide whether mark the basic block dirty.
6740 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6741 * df-scan.c (df_insn_info_delete): New helper function, split
6742 off from df_insn_delete.
6743 (df_scan_free_bb_info): Use it.
6744 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6746 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6747 that the insn is actually an insn and it has a non-NULL basic block.
6748 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6750 2013-03-22 Richard Biener <rguenther@suse.de>
6752 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6754 (mem_ref_alloc): Do not allocate them.
6755 (refs_independent_p): Do not query or maintain a cache.
6757 2013-03-22 Richard Biener <rguenther@suse.de>
6759 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6760 (gather_mem_refs_in_loops): Do not compute it.
6761 (analyze_memory_references): Do not allocate it.
6762 (tree_ssa_lim_finalize): Do not free it.
6763 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6765 2013-03-22 Richard Biener <rguenther@suse.de>
6767 * is-a.h (as_a): Use gcc_checking_assert.
6769 2013-03-22 Ian Bolton <ian.bolton@arm.com>
6771 * config/aarch64/aarch64.c (aarch64_print_operand): New
6772 format specifier for printing a constant in hex.
6773 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6774 format specifier for printing second operand.
6776 2013-03-22 Richard Biener <rguenther@suse.de>
6778 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6780 (gather_mem_refs_in_loops): Perform store accumulation here.
6781 (create_vop_ref_mapping_loop): Remove.
6782 (create_vop_ref_mapping): Likewise.
6783 (analyze_memory_references): Initialize refs_stored_in_loop.
6784 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
6785 (record_indep_loop): Remove.
6786 (record_dep_loop): New function.
6787 (ref_indep_loop_p_1): Adjust to only walk over references
6788 in the loop, not its subloops.
6789 (ref_indep_loop_p): Rename to ...
6790 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6791 maintaining a more fine-grained cache.
6792 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6793 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6795 2013-03-22 Richard Biener <rguenther@suse.de>
6797 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6798 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6799 aggregate mem_ref_loc.
6800 (free_mem_ref_locs): Inline into ...
6801 (memref_free): ... this and adjust.
6802 (mem_ref_alloc): Adjust.
6803 (mem_ref_locs_alloc): Remove.
6804 (record_mem_ref_loc): Adjust.
6805 (get_all_locs_in_loop): Rewrite into ...
6806 (for_all_locs_in_loop): ... this iterator.
6807 (rewrite_mem_ref_loc): New functor.
6808 (rewrite_mem_refs): Use for_all_locs_in_loop.
6809 (sm_set_flag_if_changed): New functor.
6810 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6811 (ref_always_accessed): New functor.
6812 (ref_always_accessed_p): Use for_all_locs_in_loop.
6814 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6816 * tree-pass.h (PROP_gimple_lvec): New.
6817 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6818 (init_optimization_passes): Move pass_lower_vector.
6819 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6821 (pass_lower_vector): Provide PROP_gimple_lvec.
6822 (pass_lower_vector_ssa): Likewise.
6823 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6825 2013-03-21 Mark Wielaard <mjw@redhat.com>
6827 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6829 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6831 * config/i386/i386.md (*movdi_internal): Disparage slightly
6832 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6833 conversion alternatives.
6835 2013-03-21 Jakub Jelinek <jakub@redhat.com>
6838 * diagnostic.def (DK_WERROR): New kind.
6839 * diagnostic.h (werrorcount): Define.
6840 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6841 promoted to DK_ERROR, increment DK_WERROR counter instead of
6843 * toplev.c (toplev_main): Call print_ignored_options even if
6844 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6845 even if just werrorcount is non-zero.
6848 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6850 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6851 (string_cst_pool_decl): New function.
6852 (optimize_one_addr_into_implicit_ptr): New function.
6853 (resolve_addr_in_expr): Optimize DWARF location expression
6854 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6855 which doesn't live in memory, but has DW_AT_location or
6856 DW_AT_const_value, or refers to a string literal, into
6857 DW_OP_GNU_implicit_pointer.
6858 (optimize_location_into_implicit_ptr): New function.
6859 (resolve_addr): If removing DW_AT_location of a variable because
6860 it was DW_OP_addr of address of the variable, but the variable doesn't
6861 live in memory, try to emit const value attribute for the initializer.
6863 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6865 * tree.h (VECTOR_TYPE_P): New macro.
6866 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6868 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6869 VEC_COND_EXPR cannot be lvalues.
6870 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6872 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6874 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6875 Restrict the transformation to equal modes.
6877 2013-03-21 Richard Biener <rguenther@suse.de>
6879 PR tree-optimization/39326
6880 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6881 (MEM_ANALYZABLE): Adjust.
6882 (record_mem_ref_loc): Move bitmap ops ...
6883 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6884 unanalyzable refs, do not record locations for it.
6885 (analyze_memory_references): Allocate ref zero as shared
6887 (refs_independent_p): Do not test for unanalyzed mems here.
6888 (ref_indep_loop_p_1): Special-case disambiguation against
6890 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
6892 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6894 * config/arm/arm-protos.h (tune_params): Add
6895 prefer_neon_for_64bits field.
6896 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6897 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6898 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6899 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6900 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6901 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6902 (arm_option_override): Handle -mneon-for-64bits new option.
6903 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6904 (prefer_neon_for_64bits): Declare new variable.
6905 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
6906 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
6907 (arch_enabled): Handle new arch types. Remove support for onlya8
6909 (one_cmpldi2): Use new arch names.
6910 (zero_extend<mode>di2, extend<mode>di2): Ditto.
6911 * config/arm/arm.opt (mneon-for-64bits): Add option.
6912 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6913 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6914 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6916 * doc/invoke.texi (-mneon-for-64bits): Document.
6918 2013-03-21 Richard Biener <rguenther@suse.de>
6920 PR tree-optimization/39326
6921 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6922 (sort_bbs_in_loop_postorder_cmp): New function.
6923 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
6925 2013-03-21 Richard Biener <rguenther@suse.de>
6927 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6928 (vect_insert_into_interleaving_chain): Likewise.
6929 (vect_drs_dependent_in_basic_block): Inline ...
6930 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6932 (vect_analyze_data_ref_dependence): ... here. Simplify.
6933 (vect_check_interleaving): Simplify.
6934 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6935 (vect_slp_analyze_data_ref_dependences): ... this new function.
6936 (dr_group_sort_cmp): New function.
6937 (vect_analyze_data_ref_accesses): Compute data-reference groups
6938 here instead of in vect_analyze_data_ref_dependence. Use
6939 a more efficient algorithm.
6940 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6941 vect_slp_analyze_data_ref_dependences. Call
6942 vect_analyze_data_ref_accesses earlier.
6943 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6944 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6945 (vect_slp_analyze_data_ref_dependences): New prototype.
6947 2013-03-21 Richard Biener <rguenther@suse.de>
6949 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6950 ref is stored in the loop.
6951 (find_refs_for_sm): Walk only over all stores.
6952 (store_motion_loop): Allocate from lim_bitmap_obstack.
6953 (store_motion): Likewise.
6955 2013-03-21 Richard Biener <rguenther@suse.de>
6957 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6958 Update virtual SSA form.
6960 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6962 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6963 * configure: Regenerate.
6964 * config.in: Regenerate.
6965 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6966 if !HAVE_LD_EH_FRAME_CIEV3.
6968 2013-03-21 Richard Biener <rguenther@suse.de>
6970 * tree-cfg.c (verify_expr_no_block): New function.
6971 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6972 nor DECL_VALUE_EXPR have locations with associated blocks.
6973 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6974 (clear_unused_block_pointer): Remove code dealing with
6975 blocks in DECL_DEBUG_EXPR locations.
6977 2013-03-21 Richard Biener <rguenther@suse.de>
6979 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6980 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6981 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6982 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6983 instead of DECL_DEBUG_EXPR_IS_FROM.
6984 * gimplify.c (gimplify_modify_expr): Likewise.
6985 * tree-cfg.c (verify_expr_location_1): Likewise.
6986 * tree-complex.c (create_one_component_var): Likewise.
6987 * tree-sra.c (create_access_replacement): Likewise.
6988 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6989 (clear_unused_block_pointer): Likewise.
6990 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6991 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6992 * var-tracking.c (var_debug_decl): Likewise.
6993 (track_expr_p): Likewise.
6994 * tree-inline.c (add_local_variables): Likewise. Set
6995 DECL_HAS_DEBUG_EXPR_P after copying it.
6996 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6997 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6999 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7002 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7003 * configure: Regenerate.
7004 * config.in: Regenerate.
7005 * config/i386/i386.md (*movdf_internal): Use
7006 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7007 movd instead of movq mnemonic for interunit moves.
7008 (*movdi_internal): Ditto.
7010 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7012 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7013 (abd<mode>_3): New pattern.
7014 (aba<mode>_3): New pattern.
7015 (fabd<mode>_3): New pattern.
7017 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7019 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7020 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7021 occurrence of REGISTER_PREFIX as its empty string.
7023 2013-03-20 Jeff Law <law@redhat.com>
7025 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7026 addititional equivalences for equality comparisons between an SSA_NAME
7027 and a constant where the SSA_NAME was set from a widening conversion.
7029 2013-03-20 Walter Lee <walt@tilera.com>
7031 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7033 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7035 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7036 depending on type attribute.
7037 (*movti_internal): Ditto.
7038 (*movtf_internal): Ditto.
7039 (*movxf_internal): Ditto.
7040 (*movdf_internal): Ditto.
7041 (*movsf_internal): Ditto.
7043 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7045 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7046 maybe_vex for sselog1 and ssemov types.
7047 (*movdi_internal): Reorder operand constraints.
7048 (*movsi_internal): Ditto. Set prefix attribute to
7049 maybe_vex for sselog1 and ssemov types.
7050 (*movtf_internal): Set prefix attribute to maybe_vex
7051 for sselog1 and ssemov types.
7052 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7053 DImode ssemov types. Reorder operand constraints.
7054 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7055 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7056 attribute for SImode ssemov types. Reorder operand constraints.
7058 2013-03-20 Martin Jambor <mjambor@suse.cz>
7060 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7061 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7063 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7065 * config/rs6000/predicates.md (indexed_address, update_address_mem
7066 update_indexed_address_mem): New predicates.
7067 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7068 attribute for load/store instructions.
7069 * config/rs6000/dfp.md (movsd_store): Likewise.
7070 (movsd_load): Likewise.
7071 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7072 (unnamed HI->DI extend define_insn): Likewise.
7073 (unnamed SI->DI extend define_insn): Likewise.
7074 (unnamed QI->SI extend define_insn): Likewise.
7075 (unnamed QI->HI extend define_insn): Likewise.
7076 (unnamed HI->SI extend define_insn): Likewise.
7077 (unnamed HI->SI extend define_insn): Likewise.
7078 (extendsfdf2_fpr): Likewise.
7079 (movsi_internal1): Likewise.
7080 (movsi_internal1_single): Likewise.
7081 (movhi_internal): Likewise.
7082 (movqi_internal): Likewise.
7083 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7084 attribute for load/store instructions.
7085 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7087 (mov<mode>_softfloat): Likewise.
7088 (mov<mode>_hardfloat32): Likewise.
7089 (mov<mode>_hardfloat64): Likewise.
7090 (mov<mode>_softfloat64): Likewise.
7091 (movdi_internal32): Likewise.
7092 (movdi_internal64): Likewise.
7093 (probe_stack_<mode>): Likewise.
7095 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7097 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7098 floating point, and decimal floating point to reload iterator.
7100 * config/rs6000/constraints.md (wl constraint): New constraints to
7101 return FLOAT_REGS if certain options are used to reduce the number
7102 of separate patterns that exist in the file.
7103 (wx constraint): Likewise.
7104 (wz constraint): Likewise.
7106 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7107 -mdebug=reg, print wg, wl, wx, and wz constraints.
7108 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7109 Initialize the reload functions for 64-bit binary/decimal floating
7111 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7112 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7113 create the buffer on the stack to overcome not having a 32-bit
7115 (rs6000_emit_move): Likewise.
7116 (rs6000_secondary_memory_needed_rtx): Likewise.
7117 (rs6000_alloc_sdmode_stack_slot): Likewise.
7118 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7119 via xxlxor, just like DFmode 0.0.
7121 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7122 define as 1 if we are running on a power7 or newer.
7123 (enum r6000_reg_class_enum): Add new constraints.
7125 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7126 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7127 with other moves by using conditional constraits (wg). Use LFIWZX
7128 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7129 (movsd splitter): Likewise.
7130 (movsd_hardfloat): Likewise.
7131 (movsd_softfloat): Likewise.
7133 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7134 binary and decimal floating point moves.
7135 (fmove_ok): New attributes to combine binary and decimal floating
7136 point moves, and to combine power6x (mfpgpr) moves along normal
7138 (real_value_to_target): Likewise.
7145 (movsf): Combine binary and decimal floating point moves. Combine
7146 power6x (mfpgpr) moves with other moves by using conditional
7147 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7148 (mov<mode> for SFmode/SDmode); Likewise.
7149 (SFmode/SDmode splitters): Likewise.
7150 (movsf_hardfloat): Likewise.
7151 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7152 (movsf_softfloat): Likewise.
7153 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7155 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7156 wx and wz constraints.
7158 * config/rs6000/constraints.md (wg constraint): New constraint to
7159 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7161 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7164 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7165 -mdebug=reg, print wg, wl, wx, and wz constraints.
7166 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7167 Initialize the reload functions for 64-bit binary/decimal floating
7169 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7170 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7171 create the buffer on the stack to overcome not having a 32-bit
7173 (rs6000_emit_move): Likewise.
7174 (rs6000_secondary_memory_needed_rtx): Likewise.
7175 (rs6000_alloc_sdmode_stack_slot): Likewise.
7176 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7177 via xxlxor, just like DFmode 0.0.
7179 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7180 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7181 with other moves by using conditional constraits (wg). Use LFIWZX
7182 and STFIWX for loading SDmode on power7.
7183 (movdd splitters): Likewise.
7184 (movdd_hardfloat32): Likewise.
7185 (movdd_softfloat32): Likewise.
7186 (movdd_hardfloat64_mfpgpr): Likewise.
7187 (movdd_hardfloat64): Likewise.
7188 (movdd_softfloat64): Likewise.
7190 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7191 64-bit binary and decimal floating point moves.
7192 (FMOVE64X): Likewise.
7193 (movdf): Combine 64-bit binary and decimal floating point moves.
7194 Combine power6x (mfpgpr) moves with other moves by using
7195 conditional constraits (wg).
7196 (mov<mode> for DFmode/DDmode): Likewise.
7197 (DFmode/DDmode splitters): Likewise.
7198 (movdf_hardfloat32): Likewise.
7199 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7200 (movdf_softfloat32): Likewise.
7201 (movdf_hardfloat64_mfpgpr): Likewise.
7202 (movdf_hardfloat64): Likewise.
7203 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7204 (movdf_softfloat64): Likewise.
7205 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7206 (reload_<mode>_load): Move to later in the file so they aren't in
7207 the middle of the floating point move insns.
7208 (reload_<mode>_store): Likewise.
7210 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7213 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7214 constraint if -mdebug=reg.
7215 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7216 Enable using dd reload support if needed.
7218 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7219 binary and decimal floating point moves in rs6000.md.
7220 (movtd_internal): Likewise.
7222 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7223 decimal floating point moves.
7225 (movtf_internal): Likewise.
7226 (mov<mode>_internal, TDmode/TFmode): Likewise.
7227 (movtf_softfloat): Likewise.
7228 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7230 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7231 movdi_internal64, using wg constraint for move direct operations.
7232 (movdi_internal64): Likewise.
7234 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7235 MODES_TIEABLE_P for selected modes. Print the numerical value of
7236 the various virtual registers. Use GPR/FPR first/last values,
7237 instead of hard coding the register numbers. Print which modes
7238 have reload functions registered.
7239 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7240 settings before/after setting cpu, target and subtarget settings.
7241 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7242 and for secondary reload failures in rs6000_secondary_reload_inner.
7243 (rs6000_secondary_reload_fail): Likewise.
7244 (rs6000_secondary_reload_inner): Likewise.
7246 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7247 macros for first/last GPR and FPR registers.
7248 (LAST_GPR_REGNO): Likewise.
7249 (FIRST_FPR_REGNO): Likewise.
7250 (LAST_FPR_REGNO): Likewise.
7252 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7253 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7254 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7255 (vcond<mode><mode>): Likewise.
7256 (vcondu<mode><mode>): Likewise.
7257 (vector_gtu<mode>): Likewise.
7258 (vector_gte<mode>): Likewise.
7259 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7260 to prevent the compiler from converting DImode operations to TImode.
7261 (ior<mode>3): Likewise.
7262 (and<mode>3): Likewise.
7263 (one_cmpl<mode>2): Likewise.
7264 (nor<mode>3): Likewise.
7265 (andc<mode>3): Likewise.
7267 * config/rs6000/constraints.md (wt constraint): New constraint
7268 that returns VSX_REGS if TImode is allowed in VSX registers.
7270 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7273 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7274 similar to TImode, but it is restricted to being in the GPRs.
7276 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7277 TImode to occupy a single VSX register.
7279 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7280 -mvsx-timode for power7/power8.
7281 (power7 cpu): Likewise.
7282 (power8 cpu): Likewise.
7284 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7285 sure that TFmode/TDmode take up two registers if they are ever
7286 allowed in the upper VSX registers.
7287 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7289 (rs6000_init_hard_regno_mode_ok): Likewise.
7290 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7291 constraint. Print if LRA is turned on.
7292 (rs6000_option_override_internal): Give an error if -mvsx-timode
7293 and VSX is not enabled.
7294 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7295 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7296 to reg+offset addressing. Use PTImode when checking offset
7297 addresses for validity.
7298 (reg_offset_addressing_ok_p): Likewise.
7299 (rs6000_legitimate_offset_address_p): Likewise.
7300 (rs6000_legitimize_address): Likewise.
7301 (rs6000_legitimize_reload_address): Likewise.
7302 (rs6000_legitimate_address_p): Likewise.
7303 (rs6000_eliminate_indexed_memrefs): Likewise.
7304 (rs6000_emit_move): Likewise.
7305 (rs6000_secondary_reload): Likewise.
7306 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7307 reloads to fpr registers to continue to use reg+offset addressing,
7308 but 64-bit reloads to altivec registers need reg+reg addressing.
7309 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7310 it. Treat LO_SUM like a PLUS operation.
7311 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7312 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7313 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7314 registers to share a register with a smaller sized type, since VSX
7315 puts scalars in the upper 64-bits.
7316 (print_operand): Add support for PTImode.
7317 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7318 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7319 registers, but don't have arithmetic support.
7320 (rs6000_memory_move_cost): Add test for VSX.
7321 (rs6000_opt_masks): Add -mvsx-timode.
7323 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7326 (VSr): Use wt constraint for TImode.
7327 (VSv): Drop TImode support.
7328 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7329 (vsx_movti_64bit): Likewise.
7330 (vsx_movti_32bit): Likewise.
7331 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7332 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7333 one '?' on the appropriate output constraint. Do not allow TImode
7334 logical operations on 32-bit systems.
7335 (vsx_ior<mode>3): Likewise.
7336 (vsx_xor<mode>3): Likewise.
7337 (vsx_one_cmpl<mode>2): Likewise.
7338 (vsx_nor<mode>3): Likewise.
7339 (vsx_andc<mode>3): Likewise.
7340 (vsx_concat_<mode>): Likewise.
7341 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7343 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7344 OPTION_MASK_VSX_TIMODE.
7345 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7346 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7348 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7349 (TI2 iterator): New iterator for TImode, PTImode.
7350 (wd mode attribute): Add values for vector types.
7351 (movti_string): Replace TI move operations with operations for TImode
7352 and PTImode. Add support for TImode being allowed in VSX registers.
7353 (mov<mode>_string, TImode/PTImode): Likewise.
7354 (movti_ppc64): Likewise.
7355 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7356 (TI mode splitters): Likewise.
7358 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7361 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7363 PR tree-optimization/56355
7364 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7365 Also handle integers with undefined overflow.
7367 2013-03-20 Catherine Moore <clm@codesourcery.com>
7368 Maciej W. Rozycki <macro@codesourcery.com>
7369 Tom de Vries <tom@codesourcery.com>
7370 Nathan Sidwell <nathan@codesourcery.com>
7371 Iain Sandoe <iain@codesourcery.com>
7372 Nathan Froyd <froydnj@codesourcery.com>
7373 Chao-ying Fu <fu@mips.com>
7375 * doc/extend.texi: (micromips, nomicromips, nocompression):
7376 Document new function attributes.
7377 * doc/invoke.texi (minterlink-compressed, mmicromips,
7378 m14k, m14ke, m14kec): Document new options.
7379 (minterlink-mips16): Update documentation.
7380 * doc/md.texi (ZC, ZD): Document new constraints.
7381 * configure.ac (gcc_cv_as_micromips): Check if linker
7382 supports the .set micromips directive.
7383 * configure: Regenerate.
7384 * config.in: Regenerate.
7385 * config/mips/mips-tables.opt: Regenerate.
7386 * config/mips/micromips.md: New file.
7387 * constraints.md (ZC, ZD): New constraints.
7388 * config/mips/predicates.md (movep_src_register): New predicate.
7389 (movep_src_operand): New predicate.
7390 (non_volatile_mem_operand): New predicate.
7391 * config/mips/mips.md (multimem): New type.
7392 (length): Differentiate between 17-bit and 18-bit branch offsets.
7393 (MOVEP1, MOVEP2): New mode iterator.
7394 (mov_<load>l): Use ZC constraint.
7395 (mov_<load>r): Likewise.
7396 (mov_<store>l): Likewise.
7397 (mov_<store>r): Likewise.
7398 (*branch_equality<mode>_inverted): Add microMIPS support.
7399 (*branch_equality<mode>): Likewise.
7400 (*jump_absolute): Likewise.
7401 (indirect_jump_<mode>): Likewise.
7402 (tablejump_<mode>): Likewise.
7403 (<optab>_internal): Likewise.
7404 (sibcall_internal): Likewise.
7405 (sibcall_value_internal): Likewise.
7406 (prefetch): Use constraint ZD.
7407 * config/mips/mips.opt (minterlink-compressed): New option.
7408 (minterlink-mips16): Now an alias for minterlink-compressed.
7409 (mmicromips): New option.
7410 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7411 (compare_and_swap_12): Likewise.
7412 (sync_add<mode>): Likewise.
7413 (sync_<optab>_12): Likewise.
7414 (sync_old_<optab>_12): Likewise.
7415 (sync_new_<optab>_12): Likewise.
7416 (sync_nand_12): Likewise.
7417 (sync_old_nand_12): Likewise.
7418 (sync_new_nand_12): Likewise.
7419 (sync_sub<mode>): Likewise.
7420 (sync_old_add<mode>): Likewise.
7421 (sync_old_sub<mode>): Likewise.
7422 (sync_new_add<mode>): Likewise.
7423 (sync_new_sub<mode>): Likewise.
7424 (sync_<optab><mode>): Likewise.
7425 (sync_old_<optab><mode>): Likewise.
7426 (sync_new_<optab><mode>): Likewise.
7427 (sync_nand<mode>): Likewise.
7428 (sync_old_nand<mode>): Likewise.
7429 (sync_new_nand<mode>): Likewise.
7430 (sync_lock_test_and_set<mode>): Likewise.
7431 (test_and_set_12): Likewise.
7432 (atomic_compare_and_swap<mode>): Likewise.
7433 (atomic_exchange<mode>_llsc): Likewise.
7434 (atomic_fetch_add<mode>_llsc): Likewise.
7435 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7436 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7437 (umips_save_restore_pattern_p): Likewise.
7438 (umips_load_store_pair_p): Likewise.
7439 (umips_output_load_store_pair): Likewise.
7440 (umips_movep_target_p): Likewise.
7441 (umips_12bit_offset_address_p): Likewise.
7442 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7443 (mips_base_mips16): Rename this...
7444 (mips_base_compression_flags): ...to this. Update all uses.
7445 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7446 (mips_mips16_decl_p): Delete.
7447 (mips_nomips16_decl_p): Delete.
7448 (mips_get_compress_on_flags): New function.
7449 (mips_get_compress_off_flags): New function.
7450 (mips_get_compress_mode): New function.
7451 (mips_get_compress_on_name): New function.
7452 (mips_get_compress_off_name): New function.
7453 (mips_insert_attributes): Support multiple compression types.
7454 (mips_merge_decl_attributes): Likewise.
7455 (umips_12bit_offset_address_p): New function.
7456 (mips_start_function_definition): Emit .set micromips directive.
7457 (mips_call_may_need_jalx_p): New function.
7458 (mips_function_ok_for_sibcall): Add microMIPS support.
7459 (mips_print_operand_punctuation): Support short delay slots and
7461 (umips_swm_mask, umips_swm_encoding): New.
7462 (umips_build_save_restore): New function.
7463 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7464 (was_mips16_p): Remove.
7465 (old_compression_mode): New.
7466 (mips_set_compression_mode): New function.
7467 (mips_set_current_function): Add microMIPS support.
7468 (mips_option_override): Likewise.
7469 (umips_save_restore_pattern_p): New function.
7470 (umips_output_save_restore): New function.
7471 (umips_load_store_pair_p_1): New function.
7472 (umips_load_store_pair_p): New function.
7473 (umips_output_load_store_pair_1): New function.
7474 (umips_output_load_store_pair): New function.
7475 (umips_movep_target_p) New function.
7476 (mips_prepare_pch_save): Add microMIPS support.
7477 * config/mips/mips.h (TARGET_COMPRESSION): New.
7478 (TARGET_CPU_CPP_BUILTINS): Update macro
7479 to use new compression flags and to support microMIPS.
7480 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7481 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7482 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7483 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7484 (ASM_SPEC): Support mmicromips and mno-micromips.
7485 (M16STORE_REG_P): New macro.
7486 (MIPS_CALL): Support TARGET_MICROMIPS.
7487 (MICROMIPS_J): New macro.
7488 (mips_base_mips16): Rename this...
7489 (mips_base_compression_flags): ...to this.
7490 (UMIPS_12BIT_OFFSET_P): New macro.
7491 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7492 (MULTILIB_DIRNAMES): Likewise.
7493 2013-03-20 Richard Biener <rguenther@suse.de>
7495 PR tree-optimization/56661
7496 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7497 the result does not have to be distinct.
7499 2013-03-20 Richard Biener <rguenther@suse.de>
7501 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7504 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7505 Steven Bosscher <steven@gcc.gnu.org>
7507 PR rtl-optimization/56605
7508 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7510 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7513 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7514 that require movd instead of movq.
7516 2013-03-20 Richard Biener <rguenther@suse.de>
7518 * tree-ssa-structalias.c (struct variable_info): Add pointer
7519 to the first field of an aggregate with sub-vars. Make
7520 this and the pointer to the next subfield its ID.
7521 (vi_next): New function.
7522 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7523 storedanything_id, integer_id): Increment by one.
7524 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7525 get_call_clobber_vi): Adjust.
7526 (solution_set_expand): Simplify and speedup.
7527 (solution_set_add): Inline into ...
7528 (set_union_with_increment): ... this. Adjust accordingly.
7529 (do_sd_constraint): Likewise.
7530 (do_ds_constraint): Likewise.
7531 (do_complex_constraint): Simplify.
7532 (build_pred_graph): Adjust.
7533 (solve_graph): Likewise. Simplify and speedup.
7534 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7535 get_constraint_for_component_ref, get_constraint_for_1,
7536 first_vi_for_offset, first_or_preceding_vi_for_offset,
7537 create_function_info_for, create_variable_info_for_1,
7538 create_variable_info_for, intra_create_variable_infos): Adjust.
7539 (init_base_vars): Push NULL for ID zero.
7540 (compute_points_to_sets): Adjust.
7542 2013-03-20 Richard Biener <rguenther@suse.de>
7544 * cfgloop.c (verify_loop_structure): Streamline and avoid
7545 ICEing on corrupt loop tree.
7546 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7549 2013-03-20 Richard Biener <rguenther@suse.de>
7551 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7552 check whether an SSA update is needed.
7554 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7556 * config/mips/constraints.md (T): Rename to...
7560 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7561 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7563 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7565 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7566 (*subsi3_carryin_uxtw): Likewise.
7568 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7570 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7571 (*rorsi3_insn_uxtw): Likewise.
7573 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7575 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7576 (*extrsi5_insn_uxtw): Likewise.
7578 2013-03-19 Richard Biener <rguenther@suse.de>
7580 PR tree-optimization/56273
7581 * passes.c (init_optimization_passes): Move second VRP after DOM.
7583 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
7585 * config/i386/i386.md (*movti_internal): Merge from
7586 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7587 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7588 nox64 isa attributes.
7590 2013-03-18 Richard Biener <rguenther@suse.de>
7592 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7594 (merge_node_constraints): Likewise.
7595 (build_succ_graph): Likewise.
7596 (valid_graph_edge): Inline into single caller.
7597 (unify_nodes): Likewise. Use bitmap_set_bit return value
7599 (scc_visit): Fix formatting and variable use.
7600 (do_sd_constraint): Use gcc_checking_assert.
7601 (do_ds_constraint): Likewise.
7602 (do_complex_constraint): Likewise.
7603 (condense_visit): Likewise. Cleanup.
7604 (dump_pred_graph): New function.
7605 (perform_var_substitution): Dump the pred-graph before
7606 variable substitution.
7607 (find_equivalent_node): Use gcc_checking_assert.
7608 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7610 2013-03-18 Richard Biener <rguenther@suse.de>
7612 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7613 Remove cond_expr_stmt_list argument and do not gimplify the
7615 (vect_loop_versioning): Adjust.
7616 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7617 Cleanup to use less temporaries.
7618 (vect_create_data_ref_ptr): Cleanup.
7620 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7622 PR tree-optimization/56635
7623 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7624 require types_compatible_p types.
7626 2013-03-18 Nick Clifton <nickc@redhat.com>
7628 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7631 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7632 Add missing line to comment describing function.
7634 2013-03-18 Richard Biener <rguenther@suse.de>
7636 PR tree-optimization/56210
7637 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7638 Handle string / character search functions.
7639 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7641 2013-03-18 Richard Biener <rguenther@suse.de>
7644 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7645 and implement properly.
7646 * gimple.h (gimple_cond_single_var_p): Remove.
7648 2013-03-18 Richard Biener <rguenther@suse.de>
7650 * tree-data-ref.h (find_data_references_in_loop): Declare.
7651 * tree-data-ref.c (get_references_in_stmt): Use a stack
7652 vector pre-allocated in the callers.
7653 (find_data_references_in_stmt): Adjust.
7654 (graphite_find_data_references_in_stmt): Likewise.
7655 (create_rdg_vertices): Likewise.
7656 (find_data_references_in_loop): Export.
7657 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7658 Compute dependences here...
7659 (vect_analyze_data_refs): ...not here. When we encounter
7660 a non-vectorizable data reference in basic-block vectorization
7661 truncate the data reference vector. Do not bother to
7662 fixup data-dependence information for gather loads.
7663 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7664 of data references, as reported.
7666 2013-03-18 Richard Biener <rguenther@suse.de>
7668 PR tree-optimization/3713
7669 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7670 has_constants and expr.
7671 (stmt_has_constants): Properly valueize SSA names when deciding
7672 whether the stmt has constants.
7674 2013-03-18 Richard Biener <rguenther@suse.de>
7676 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7677 whole function when there is nothing to do.
7678 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7679 * tree-vectorizer.c (vectorize_loops): Update virtual and
7680 loop-closed SSA once.
7681 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7683 2013-03-18 Richard Biener <rguenther@suse.de>
7686 * domwalk.c (bb_postorder): New global static.
7687 (cmp_bb_postorder): New function.
7688 (walk_dominator_tree): Replace scheme imposing an order for
7689 visiting dominator sons by one sorting them at the time they
7690 are pushed on the stack.
7692 2013-03-18 Richard Biener <rguenther@suse.de>
7694 PR tree-optimization/39326
7695 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7696 (struct mem_ref): Replace mem member with ao_ref typed member.
7697 (MEM_ANALYZABLE): Adjust.
7698 (memref_eq): Likewise.
7699 (mem_ref_alloc): Likewise.
7700 (gather_mem_refs_stmt): Likewise.
7701 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7702 (execute_sm_if_changed_flag_set): Adjust.
7703 (execute_sm): Likewise.
7704 (ref_always_accessed_p): Likewise.
7705 (refs_independent_p): Likewise.
7706 (can_sm_ref_p): Likewise.
7708 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7711 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7712 return 1 even for !unsignedp.
7714 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7716 * config/i386/i386.md (isa): Add x64 and nox64.
7717 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7718 (*pushtf): Enable *roF alternative for x64 isa only.
7719 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7720 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7721 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7722 (*movtf_internal): Merge from *movtf_internal_rex64 and
7723 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7724 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7725 nox64 isa attributes.
7726 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7727 nox64 isa attributes.
7728 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7730 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7732 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7734 2013-03-17 Jakub Jelinek <jakub@redhat.com>
7737 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7738 class names. Remove trailing comma after "ALL_REGS".
7740 2013-03-16 Jan Hubicka <jh@suse.cz>
7742 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7743 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7744 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7745 of cgraph_get_create_node.
7746 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7748 2013-03-16 Jason Merrill <jason@redhat.com>
7751 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7752 with DW_AT_default_value.
7754 2013-03-16 Jakub Jelinek <jakub@redhat.com>
7756 * BASE-VER: Set to 4.9.0.
7758 2013-03-14 Andi Kleen <ak@linux.intel.com>
7761 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7762 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7763 Document _x* TSX intrinsics.
7765 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7766 David Holsgrove <david.holsgrove@xilinx.com>
7768 * configure.ac: Add MicroBlaze TLS support detection.
7769 * configure: Regenerate.
7770 * config/microblaze/microblaze-protos.h
7771 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7772 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7773 * config/microblaze/microblaze.c (microblaze_address_type): Add
7774 ADDRESS_TLS and tls_reloc address types.
7775 (microblaze_address_info): Add tls_reloc.
7776 (TARGET_HAVE_TLS): Define.
7777 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7778 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
7779 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7780 load_tls_operand, microblaze_call_tls_get_addr,
7781 microblaze_legitimize_tls_address): New functions.
7782 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7783 (get_base_reg): Use microblaze_tls_symbol_p.
7784 (microblaze_classify_address): Handle TLS.
7785 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7786 label_mentioned_p and microblaze_tls_referenced_p.
7787 (microblaze_legitimize_address): Handle TLS.
7788 (microblaze_address_insns): Handle ADDRESS_TLS.
7789 (pic_address_needs_scratch): Handle TLS.
7790 (print_operand_address): Handle TLS.
7791 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7792 (microblaze_expand_move): Handle TLS.
7793 (microblaze_legitimate_constant_p): Check
7794 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
7795 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7796 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7797 (PIC_OFFSET_TABLE_REGNUM): Set.
7798 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7799 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7800 (addsi3, movsi_internal2, movdf_internal): Update constraints
7801 * config/microblaze/predicates.md (arith_plus_operand): Define
7802 (move_operand): Redefine as move_src_operand,
7803 check microblaze_tls_referenced_p.
7805 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7807 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7808 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7810 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7812 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7815 2013-03-14 Jakub Jelinek <jakub@redhat.com>
7817 PR tree-optimization/53265
7818 * common.opt (Waggressive-loop-optimizations): New option.
7819 * tree-ssa-loop-niter.c: Include tree-pass.h.
7820 (do_warn_aggressive_loop_optimizations): New function.
7821 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7822 if number_of_latch_executions returned constant.
7823 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7824 early. If number_of_latch_executions returned constant, set
7825 nb_iterations_upper_bound back to it.
7826 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7828 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7829 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7831 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7832 (MULTILIB_OSDIRNAMES): Set.
7833 * genmultilib: If defaultosdirname doesn't start with :: , set
7834 defaultosdirname2 instead, clear it and emit two . multilib_raw
7835 entries instead of just one.
7837 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7839 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7840 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7841 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7842 (SUBTARGET_OVERRIDE_OPTIONS): New.
7844 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7847 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7848 (musermode): Convert to Var(TARGET_USERMODE).
7849 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7850 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7851 * config/sh/sh.c (sh_option_override): Use
7852 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7853 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7855 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7857 (udivsi3_i4_single, divsi3_i4_single): Use
7858 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7860 2013-03-13 Dave Korn <dave.korn.cygwin@....>
7862 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7865 2013-03-13 Richard Biener <rguenther@suse.de>
7867 PR tree-optimization/56608
7868 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7869 calls when vectorizing basic-blocks.
7871 2013-03-13 Jakub Jelinek <jakub@redhat.com>
7874 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7877 2013-03-12 Jakub Jelinek <jakub@redhat.com>
7879 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7881 2013-03-11 Jan Hubicka <jh@suse.cz>
7884 * lto-streamer-out.c (output_symbol_p): Skip references from
7885 constructors of external variables.
7887 2013-03-11 Jan Hubicka <jh@suse.cz>
7890 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7892 * emit-rtl.c (verify_rtx_sharing): Likewise.
7893 (copy_insn_1): Likewise.
7894 * rtl.c (copy_rtx): Likewise.
7896 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
7899 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7900 output_operand_lossage message.
7902 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
7905 * arm.c (shift_op): Validate RTL pattern on the fly.
7906 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7909 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7912 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7913 new call patterns that clobber %fr12.
7914 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7915 split and postreload patterns.
7916 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7917 registers %fr12 and %fr12R as call used.
7919 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7921 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7922 (canon_address, record_store, replace_read, check_mem_read_rtx,
7923 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7924 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7925 rest_of_handle_dse): Likewise.
7927 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7930 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7932 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7933 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7934 (save_optabs_if_changed): Replace with...
7935 (init_tree_optimization_optabs): ...this.
7936 * optabs.c (save_optabs_if_changed): Rename to...
7937 (init_tree_optimization_optabs): ...this. Take the optimization node
7938 as argument. Do nothing if the base optabs are already correct.
7939 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7940 to recompute optabs.
7941 * function.h (function): Remove optabs field.
7942 * function.c (invoke_set_current_function_hook): Call
7943 init_tree_optimization_optabs. Use the result to initialize
7946 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
7948 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7949 if GTMA_HAS_NO_INSTRUMENTATION.
7950 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7951 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7952 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7953 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7954 GTMA_HAS_NO_INSTRUMENTATION.
7956 2013-03-08 Jakub Jelinek <jakub@redhat.com>
7958 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7961 2013-03-08 Marek Polacek <polacek@redhat.com>
7962 Jakub Jelinek <jakub@redhat.com>
7964 PR tree-optimization/56478
7965 * predict.c (is_comparison_with_loop_invariant_p): Change the
7966 type of loop_step to tree.
7967 (predict_loops): Adjust.
7968 (predict_iv_comparison): Perform the computations on double_ints.
7970 2013-03-08 Richard Biener <rguenther@suse.de>
7972 PR tree-optimization/56570
7973 * tree-cfg.c (verify_expr_location_1): Verify locations for
7975 * tree-sra.c (create_access_replacement): Strip locations
7976 from DECL_DEBUG_EXPRs.
7978 2013-03-08 Richard Biener <rguenther@suse.de>
7980 * tree-inline.c (expand_call_inline): Do not associate
7981 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7982 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7984 2013-03-08 Richard Biener <rguenther@suse.de>
7986 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7987 or block changes with -Og. Fix for location / block encoding
7988 changes and PHI arguments with locations.
7990 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7992 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7994 (struct output_info): Likewise.
7995 (register_overhead): Remove bad gcc_assert.
7996 (bitmap_find_bit): If there is only a single bitmap element, do not
7997 count a miss as a search.
7998 (print_statistics): Update for counter type changes.
7999 (dump_bitmap_statistics): Likewise. Print headers such that they
8000 are properly lined up with the printed counters.
8002 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8004 PR tree-optimization/56559
8005 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8006 check that it has only a single use.
8008 2013-03-07 Richard Biener <rguenther@suse.de>
8010 * doc/invoke.texi (fwhole-program): Discourage use in combination
8013 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8015 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8017 PR tree-optimization/56539
8018 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8019 instead of GSI_CONTINUE_LINKING as last argument to
8020 force_gimple_operand_gsi. Adjust function comment.
8022 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8026 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8027 promoted mode, convert the result back to the original mode.
8029 2013-03-06 Richard Biener <rguenther@suse.de>
8032 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8033 (insert_updated_phi_nodes_compare_uids): New function.
8034 (update_ssa): Sort symbols_to_rename after UID before
8035 traversing it to insert PHI nodes.
8037 2013-03-06 Richard Biener <rguenther@suse.de>
8040 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8041 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8044 2013-02-13 Richard Biener <rguenther@suse.de>
8047 * varasm.c (output_constant_def_1): Get the decl representing
8048 the constant as argument.
8049 (output_constant_def): Wrap output_constant_def_1.
8050 (make_decl_rtl): Use output_constant_def_1 with the decl
8051 representing the constant.
8052 (build_constant_desc): Optionally re-use a decl already
8053 representing the constant.
8054 (tree_output_constant_def): Adjust.
8056 2013-03-06 Joey Ye <joey.ye@arm.com>
8059 * gcc.c (convert_white_space): New function.
8060 (main): Handles white space in function name.
8062 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8065 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8066 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8067 to SH_DIV_CALL_TABLE for TARGET_SH2.
8068 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8070 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8073 2013-03-05 Sterling Augustine <saugustine@google.com>
8074 Cary Coutant <ccoutant@google.com>
8077 * dwarf2out.c (resolve_addr): Don't call
8078 remove_loc_list_addr_table_entries a second time for the same
8081 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8084 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8085 (avoid_complex_debug_insns): New function.
8086 (expand_debug_locations): Call it.
8088 PR rtl-optimization/56484
8089 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8090 lifetimes of hard registers on small register class machines.
8092 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8094 * config/microblaze/microblaze-protos.h: Rename
8095 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8096 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8098 (microblaze_fast_interrupt_function_p): New function.
8099 (microblaze_is_interrupt_handler): Rename to
8100 microblaze_is_interrupt_variant and add fast_interrupt check.
8101 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8102 (save_restore_insns): Likewise.
8103 (compute_frame_size): Likewise.
8104 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8105 (microblaze_globalize_label): Likewise.
8106 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8107 * config/microblaze/microblaze.md: Use wrapper
8108 microblaze_is_interrupt_variant.
8110 2013-03-05 Kai Tietz <ktietz@redhat.com>
8112 * sdbout.c (sdbout_one_type): Switch to current function's section
8113 supporting cold/hot.
8115 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8117 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8120 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8123 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8124 if VALGRIND_GET_VBITS is defined, temporarily make object
8125 memory all defined, and restore previous valgrind addressability
8126 and definability afterwards. Free this_object at the end.
8129 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8130 right before calling lra_create_live_ranges, also call it
8131 when clearing live_p. Only call lra_clear_live_ranges
8132 at the end if live_p.
8135 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8137 2013-03-05 Richard Biener <rguenther@suse.de>
8139 PR tree-optimization/56521
8140 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8143 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8146 * except.h (remove_unreachable_eh_regions): New prototype.
8147 * except.c (remove_eh_handler_splicer): New function, split out
8148 of remove_eh_handler.
8149 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8150 warning about running it on many EH regions one at a time.
8151 (remove_unreachable_eh_regions_worker): New function, walk the
8152 EH tree in depth-first order and remove non-marked regions.
8153 (remove_unreachable_eh_regions): New function.
8154 * tree-eh.c (mark_reachable_handlers): New function, split out
8155 from remove_unreachable_handlers.
8156 (remove_unreachable_handlers): Use mark_reachable_handlers and
8157 remove_unreachable_eh_regions.
8158 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8159 and remove_unreachable_eh_regions.
8161 2013-03-05 Richard Biener <rguenther@suse.de>
8164 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8165 not freeing them until the end.
8167 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8169 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8171 2013-03-05 Richard Biener <rguenther@suse.de>
8173 PR tree-optimization/56270
8174 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8175 of loads after scheduling an SLP instance.
8177 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8179 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8181 (check_gcc_parallelize): Run guality.exp as a separate job from
8182 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8183 struct-layout-1.exp with stackalign.exp.
8185 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8188 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8189 load_index sbitmap even if some bit in it isn't set.
8192 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8193 (discover_iteration_bound_by_body_walk): Change queues to
8194 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8195 spelling in comment. Call safe_push on queues[bound_index] directly.
8196 Release queues[queue_index] in every iteration unconditionally.
8197 Release bounds vector.
8200 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8201 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8202 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8205 2013-03-05 Richard Biener <rguenther@suse.de>
8208 * tree-inline.c (remap_blocks_to_null): New function.
8209 (expand_call_inline): When expanding a call stmt without
8210 an associated block inline remap all callee blocks to NULL.
8212 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8214 PR rtl-optimization/56494
8215 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8216 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8217 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8220 * sel-sched-ir.c (free_sched_pools): Release
8221 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8222 if succs_info_pool.max_top isn't -1.
8225 * opts.c (opts_obstack, opts_concat): Moved to...
8226 * opts-common.c (opts_obstack, opts_concat): ... here.
8228 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8231 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8233 2013-03-04 Martin Jambor <mjambor@suse.cz>
8235 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8236 all appropriate places.
8238 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8240 PR tree-optimization/56424
8241 * ipa-split.c (split_function): Do not set the RSO flag if result is
8242 not by reference and its type is a register type.
8244 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8246 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8247 (microblaze_legitimate_pic_operand): Likewise
8248 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8249 new function microblaze_legitimate_pic_operand
8250 * config/microblaze/microblaze-protos.h
8251 (microblaze_legitimate_pic_operand): Declare.
8253 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8255 * config/microblaze/predicates.md (call_insn_simple_operand):
8256 New predicate for supported rtx code types.
8257 * config/microblaze/microblaze.md (call_internal1): Use
8258 call_insn_simple_operand predicate.
8260 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8263 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8264 partitions.ordered_remove.
8267 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8268 vec_oprnds0.create (1) for modifier == NONE.
8271 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8272 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8273 vec_oprnds1 right before pushing anything to it for
8277 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8278 set nbbs to 0 instead of having separate code path.
8279 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8280 instead of false as last argument if returning NULL.
8282 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8284 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8285 the attribute is now called "target" instead of "option".
8286 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8287 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8288 attribute/pragma name for TARGET_OPTION_VALID_P and
8289 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8290 * doc/tm.texi: Regenerated.
8292 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8294 * config/microblaze/microblaze.c:
8295 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8296 * config/microblaze/microblaze.h: Add -mxl-reorder to
8298 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8299 instructions emitted if TARGET_REORDER.
8300 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8301 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8304 2013-03-01 Xinliang David Li <davidxl@google.com>
8306 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8309 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8312 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8313 vector even when returning true. Fix up function comment formatting.
8316 * ira-build.c (ira_loop_nodes_count): New variable.
8317 (create_loop_tree_nodes): Initialize it.
8318 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8321 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8322 method on dr_chain and result_chain.
8323 * tree-vect-stmts.c (vectorizable_store): Only call
8324 result_chain.create if j == 0.
8327 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8328 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8329 before overwriting it.
8331 2013-03-01 Tobias Burnus <burnus@net-b.de>
8333 * doc/extended.texi (C Extensions): Change order in @menu
8335 (Other MIPS Built-in Functions): Move last MIPS entry before
8336 "picoChip Built-in Functions".
8337 (SH Built-in Functions): Move after RX Built-in Functions.
8338 * doc/gcc.texi (Introduction): Change order in @menu
8340 * doc/md.texi (Constraints): Ditto.
8341 * gty.texi (Type Information): Ditto.
8342 (User-provided marking routines for template types): Make
8344 * doc/invoke.texi (AArch64 Options): Move before
8345 "Adapteva Epiphany Options".
8347 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8348 Jakub Jelinek <jakub@redhat.com>
8351 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8352 no_address_safety_analysis attribute.
8353 * doc/extend.texi (no_address_safety_attribute): Rename to
8354 no_sanitize_address attribute, mention no_address_safety_analysis
8355 attribute as deprecated alias.
8357 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8360 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8361 type to vec<vec<tree> > *.
8362 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8363 to be vec<tree> instead of vec<tree> *, set vec_defs
8364 to vNULL and call vec_defs.create (number_of_vects), adjust other
8366 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8367 vectorizable_condition): Adjust vect_get_slp_defs callers.
8369 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8371 * config/aarch64/aarch64.c
8372 (aarch64_float_const_representable): Remove unused variable.
8374 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8376 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8378 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8380 * config/aarch64/aarch64-builtins.c
8381 (aarch64_init_simd_builtins): Make static.
8383 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8385 * config/aarch64/aarch64.c
8386 (aarch64_simd_make_constant): Make static.
8388 2013-02-28 Martin Jambor <mjambor@suse.cz>
8390 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8391 with no initialization to the RHS of debug statements.
8393 2013-02-28 Martin Jambor <mjambor@suse.cz>
8395 PR tree-optimization/56294
8396 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8398 (get_access_replacement): Do not call create_access_replacement.
8399 Assert a replacement exists.
8400 (get_repl_default_def_ssa_name): Create the replacement declaration
8403 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8405 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8408 2013-02-28 Marek Polacek <polacek@redhat.com>
8410 PR rtl-optimization/56466
8411 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8412 if we're changing a loop.
8413 (peel_loops_completely): Likewise.
8415 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8418 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8420 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8423 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8424 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8425 INTX_FTYPE_FX, FX_FTYPE_INTX.
8426 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8428 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8430 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8431 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8432 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8433 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8434 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8435 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8436 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8437 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8438 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8439 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8440 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8441 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8442 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8443 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8444 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8445 (avrxmega6): Increase max flash segments from 5 to 6.
8446 * config/avr/t-multilib: Regenerate.
8447 * config/avr/avr-tables.opt: Regenerate.
8448 * doc/avr-mmcu.texi: Regenerate.
8450 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8452 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8453 (avr_device_to_arch): Rename to avr_device_to_ld.
8454 (avr_device_to_as): New prototype.
8455 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8456 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8457 * config/avr/driver-avr.c (avr_device_to_as): New.
8458 (avr_device_to_arch): Rename to avr_device_to_ld.
8460 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8463 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8464 method on dr_chain and result_chain.
8467 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8468 pointer_set_destroy on not_executed_last_iteration.
8471 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8474 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8475 FOR_EACH_DEFINED_FUNCTION when freeing state.
8478 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8480 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8484 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8485 known_aggs[i].items and release known_aggs vector.
8488 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8490 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8492 * config/microblaze/microblaze.c (microblaze_emit_compare):
8493 Use xor for EQ/NE comparisions.
8494 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8495 (cbranchsf4): Adjust operator to comparison_operator.
8497 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8500 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8502 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8503 vec_safe_push, always update *slot.
8504 (redirect_edge_var_map_clear): Use vec_free.
8505 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8506 (free_var_map_entry): Use vec_free.
8507 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8508 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8510 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
8513 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8514 when the may_trap_p bit of the exprs being merged differs.
8515 Reorder tests for speculativeness in the logical and operator.
8517 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8519 * incpath.c (add_standard_paths): Use reconcat instead of concat
8520 where appropriate and avoid leaking memory.
8522 * opts.h: Include obstack.h.
8523 (opts_concat): New prototype.
8524 (opts_obstack): New declaration.
8525 * opts.c (opts_concat): New function.
8526 (opts_obstack): New variable.
8527 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8528 (finish_options): Use opts_concat instead of concat
8529 and XOBNEWVEC instead of XNEWVEC.
8530 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8531 generate_option): Likewise.
8532 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8533 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8536 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8537 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8539 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8542 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8544 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8546 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8547 (arm_block_move_unaligned_straight): Likewise.
8548 (arm_adjust_block_mem): Likewise.
8550 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8553 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8554 temp, cond and label.
8555 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8558 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8559 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8562 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8563 of prologue/epilogue functions.
8566 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8567 Remove unused variable cfa_offset.
8568 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8571 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8572 type promotion to unsigned.
8575 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8576 for HOST_WIDE_INT of 32 bit / same size as int.
8577 (arm_block_move_unaligned_straight): Likewise.
8578 (arm_adjust_block_mem): Likewise.
8581 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8584 2013-02-26 Marek Polacek <polacek@redhat.com>
8586 PR tree-optimization/56426
8587 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
8589 2013-02-26 Richard Biener <rguenther@suse.de>
8592 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8593 unused variable loops.
8595 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8597 PR tree-optimization/56448
8598 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8599 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8600 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8601 later operands of the references, or even first operand for
8602 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8604 PR tree-optimization/56443
8605 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8606 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8607 to type_for_mode langhook.
8609 2013-02-25 Matt Turner <mattst88@gmail.com>
8611 * doc/invoke.texi: Document r4700.
8613 2013-02-25 Richard Biener <rguenther@suse.de>
8615 PR tree-optimization/56175
8616 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8618 (simplify_bitwise_binary): ... here. Also guard the conversion
8619 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8621 2013-02-25 Catherine Moore <clm@codesourcery.com>
8624 2013-02-24 Catherine Moore <clm@codesourcery.com>
8625 Maciej W. Rozycki <macro@codesourcery.com>
8626 Tom de Vries <tom@codesourcery.com>
8627 Nathan Sidwell <nathan@codesourcery.com>
8628 Iain Sandoe <iain@codesourcery.com>
8629 Nathan Froyd <froydnj@codesourcery.com>
8630 Chao-ying Fu <fu@mips.com>
8632 * doc/extend.texi: (micromips, nomicromips, nocompression):
8633 Document new function attributes.
8634 * doc/invoke.texi (minterlink-compressed, mmicromips,
8635 m14k, m14ke, m14kec): Document new options.
8636 (minterlink-mips16): Update documentation.
8637 * doc/md.texi (ZC, ZD): Document new constraints.
8638 * configure.ac (gcc_cv_as_micromips): Check if linker
8639 supports the .set micromips directive.
8640 * configure: Regenerate.
8641 * config.in: Regenerate.
8642 * config/mips/mips-tables.opt: Regenerate.
8643 * config/mips/micromips.md: New file.
8644 * constraints.md (ZC, AD): New constraints.
8645 * config/mips/predicates.md (movep_src_register): New predicate.
8646 (movep_src_operand): New predicate.
8647 (non_volatile_mem_operand): New predicate.
8648 * config/mips/mips.md (multimem): New type.
8649 (length): Differentiate between 17-bit and 18-bit branch offsets.
8650 (MOVEP1, MOVEP2): New mode iterator.
8651 (mov_<load>l): Use ZC constraint.
8652 (mov_<load>r): Likewise.
8653 (mov_<store>l): Likewise.
8654 (mov_<store>r): Likewise.
8655 (*branch_equality<mode>_inverted): Add microMIPS support.
8656 (*branch_equality<mode>): Likewise.
8657 (*jump_absolute): Likewise.
8658 (indirect_jump_<mode>): Likewise.
8659 (tablejump_<mode>): Likewise.
8660 (<optab>_internal): Likewise.
8661 (sibcall_internal): Likewise.
8662 (sibcall_value_internal): Likewise.
8663 (prefetch): Use constraint ZD.
8664 * config/mips/mips.opt (minterlink-compressed): New option.
8665 (minterlink-mips16): Now an alias for minterlink-compressed.
8666 (mmicromips): New option.
8667 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8668 (compare_and_swap_12): Likewise.
8669 (sync_add<mode>): Likewise.
8670 (sync_<optab>_12): Likewise.
8671 (sync_old_<optab>_12): Likewise.
8672 (sync_new_<optab>_12): Likewise.
8673 (sync_nand_12): Likewise.
8674 (sync_old_nand_12): Likewise.
8675 (sync_new_nand_12): Likewise.
8676 (sync_sub<mode>): Likewise.
8677 (sync_old_add<mode>): Likewise.
8678 (sync_old_sub<mode>): Likewise.
8679 (sync_new_add<mode>): Likewise.
8680 (sync_new_sub<mode>): Likewise.
8681 (sync_<optab><mode>): Likewise.
8682 (sync_old_<optab><mode>): Likewise.
8683 (sync_new_<optab><mode>): Likewise.
8684 (sync_nand<mode>): Likewise.
8685 (sync_old_nand<mode>): Likewise.
8686 (sync_new_nand<mode>): Likewise.
8687 (sync_lock_test_and_set<mode>): Likewise.
8688 (test_and_set_12): Likewise.
8689 (atomic_compare_and_swap<mode>): Likewise.
8690 (atomic_exchange<mode>_llsc): Likewise.
8691 (atomic_fetch_add<mode>_llsc): Likewise.
8692 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8693 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8694 (umips_save_restore_pattern_p): Likewise.
8695 (umips_load_store_pair_p): Likewise.
8696 (umips_output_load_store_pair): Likewise.
8697 (umips_movep_target_p): Likewise.
8698 (umips_12bit_offset_address_p): Likewise.
8699 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8700 (mips_base_mips16): Rename this...
8701 (mips_base_compression_flags): ...to this. Update all uses.
8702 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8703 (mips_mips16_decl_p): Delete.
8704 (mips_nomips16_decl_p): Delete.
8705 (mips_get_compress_on_flags): New function.
8706 (mips_get_compress_off_flags): New function.
8707 (mips_get_compress_mode): New function.
8708 (mips_get_compress_on_name): New function.
8709 (mips_get_compress_off_name): New function.
8710 (mips_insert_attributes): Support multiple compression types.
8711 (mips_merge_decl_attributes): Likewise.
8712 (umips_12bit_offset_address_p): New function.
8713 (mips_start_function_definition): Emit .set micromips directive.
8714 (mips_call_may_need_jalx_p): New function.
8715 (mips_function_ok_for_sibcall): Add microMIPS support.
8716 (mips_print_operand_punctuation): Support short delay slots and
8718 (umips_swm_mask, umips_swm_encoding): New.
8719 (umips_build_save_restore): New function.
8720 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8721 (was_mips16_p): Remove.
8722 (old_compression_mode): New.
8723 (mips_set_compression_mode): New function.
8724 (mips_set_current_function): Add microMIPS support.
8725 (mips_option_override): Likewise.
8726 (umips_save_restore_pattern_p): New function.
8727 (umips_output_save_restore): New function.
8728 (umips_load_store_pair_p_1): New function.
8729 (umips_load_store_pair_p): New function.
8730 (umips_output_load_store_pair_1): New function.
8731 (umips_output_load_store_pair): New function.
8732 (umips_movep_target_p) New function.
8733 (mips_prepare_pch_save): Add microMIPS support.
8734 * config/mips/mips.h (TARGET_COMPRESSION): New.
8735 (TARGET_CPU_CPP_BUILTINS): Update macro
8736 to use new compression flags and to support microMIPS.
8737 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8738 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8739 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8740 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8741 (ASM_SPEC): Support mmicromips and mno-micromips.
8742 (M16STORE_REG_P): New macro.
8743 (MIPS_CALL): Support TARGET_MICROMIPS.
8744 (MICROMIPS_J): New macro.
8745 (mips_base_mips16): Rename this...
8746 (mips_base_compression_flags): ...to this.
8747 (UMIPS_12BIT_OFFSET_P): New macro.
8748 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8749 (MULTILIB_DIRNAMES): Likewise.
8751 2013-02-25 Tom de Vries <tom@codesourcery.com>
8753 PR rtl-optimization/56131
8754 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8755 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8756 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8758 2013-02-25 Tobias Burnus <burnus@net-b.de>
8760 * doc/invoke.texi (-fsanitize=): Move from optimization
8761 to debugging options.
8763 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8765 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8767 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8768 Alexander Monakov <amonakov@ispras.ru>
8771 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8772 flush pending lists also on non-jumps. Adjust comment.
8774 2013-02-24 Catherine Moore <clm@codesourcery.com>
8775 Maciej W. Rozycki <macro@codesourcery.com>
8776 Tom de Vries <tom@codesourcery.com>
8777 Nathan Sidwell <nathan@codesourcery.com>
8778 Iain Sandoe <iain@codesourcery.com>
8779 Nathan Froyd <froydnj@codesourcery.com>
8780 Chao-ying Fu <fu@mips.com>
8782 * doc/extend.texi: (micromips, nomicromips, nocompression):
8783 Document new function attributes.
8784 * doc/invoke.texi (minterlink-compressed, mmicromips,
8785 m14k, m14ke, m14kec): Document new options.
8786 (minterlink-mips16): Update documentation.
8787 * doc/md.texi (ZC, ZD): Document new constraints.
8788 * configure.ac (gcc_cv_as_micromips): Check if linker
8789 supports the .set micromips directive.
8790 * configure: Regenerate.
8791 * config.in: Regenerate.
8792 * config/mips/mips-tables.opt: Regenerate.
8793 * config/mips/micromips.md: New file.
8794 * constraints.md (ZC, AD): New constraints.
8795 * config/mips/predicates.md (movep_src_register): New predicate.
8796 (movep_src_operand): New predicate.
8797 (non_volatile_mem_operand): New predicate.
8798 * config/mips/mips.md (multimem): New type.
8799 (length): Differentiate between 17-bit and 18-bit branch offsets.
8800 (MOVEP1, MOVEP2): New mode iterator.
8801 (mov_<load>l): Use ZC constraint.
8802 (mov_<load>r): Likewise.
8803 (mov_<store>l): Likewise.
8804 (mov_<store>r): Likewise.
8805 (*branch_equality<mode>_inverted): Add microMIPS support.
8806 (*branch_equality<mode>): Likewise.
8807 (*jump_absolute): Likewise.
8808 (indirect_jump_<mode>): Likewise.
8809 (tablejump_<mode>): Likewise.
8810 (<optab>_internal): Likewise.
8811 (sibcall_internal): Likewise.
8812 (sibcall_value_internal): Likewise.
8813 (prefetch): Use constraint ZD.
8814 * config/mips/mips.opt (minterlink-compressed): New option.
8815 (minterlink-mips16): Now an alias for minterlink-compressed.
8816 (mmicromips): New option.
8817 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8818 (compare_and_swap_12): Likewise.
8819 (sync_add<mode>): Likewise.
8820 (sync_<optab>_12): Likewise.
8821 (sync_old_<optab>_12): Likewise.
8822 (sync_new_<optab>_12): Likewise.
8823 (sync_nand_12): Likewise.
8824 (sync_old_nand_12): Likewise.
8825 (sync_new_nand_12): Likewise.
8826 (sync_sub<mode>): Likewise.
8827 (sync_old_add<mode>): Likewise.
8828 (sync_old_sub<mode>): Likewise.
8829 (sync_new_add<mode>): Likewise.
8830 (sync_new_sub<mode>): Likewise.
8831 (sync_<optab><mode>): Likewise.
8832 (sync_old_<optab><mode>): Likewise.
8833 (sync_new_<optab><mode>): Likewise.
8834 (sync_nand<mode>): Likewise.
8835 (sync_old_nand<mode>): Likewise.
8836 (sync_new_nand<mode>): Likewise.
8837 (sync_lock_test_and_set<mode>): Likewise.
8838 (test_and_set_12): Likewise.
8839 (atomic_compare_and_swap<mode>): Likewise.
8840 (atomic_exchange<mode>_llsc): Likewise.
8841 (atomic_fetch_add<mode>_llsc): Likewise.
8842 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8843 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8844 (umips_save_restore_pattern_p): Likewise.
8845 (umips_load_store_pair_p): Likewise.
8846 (umips_output_load_store_pair): Likewise.
8847 (umips_movep_target_p): Likewise.
8848 (umips_12bit_offset_address_p): Likewise.
8849 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8850 (mips_base_mips16): Rename this...
8851 (mips_base_compression_flags): ...to this. Update all uses.
8852 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8853 (mips_mips16_decl_p): Delete.
8854 (mips_nomips16_decl_p): Delete.
8855 (mips_get_compress_on_flags): New function.
8856 (mips_get_compress_off_flags): New function.
8857 (mips_get_compress_mode): New function.
8858 (mips_get_compress_on_name): New function.
8859 (mips_get_compress_off_name): New function.
8860 (mips_insert_attributes): Support multiple compression types.
8861 (mips_merge_decl_attributes): Likewise.
8862 (umips_12bit_offset_address_p): New function.
8863 (mips_start_function_definition): Emit .set micromips directive.
8864 (mips_call_may_need_jalx_p): New function.
8865 (mips_function_ok_for_sibcall): Add microMIPS support.
8866 (mips_print_operand_punctuation): Support short delay slots and
8868 (umips_swm_mask, umips_swm_encoding): New.
8869 (umips_build_save_restore): New function.
8870 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8871 (was_mips16_p): Remove.
8872 (old_compression_mode): New.
8873 (mips_set_compression_mode): New function.
8874 (mips_set_current_function): Add microMIPS support.
8875 (mips_option_override): Likewise.
8876 (umips_save_restore_pattern_p): New function.
8877 (umips_output_save_restore): New function.
8878 (umips_load_store_pair_p_1): New function.
8879 (umips_load_store_pair_p): New function.
8880 (umips_output_load_store_pair_1): New function.
8881 (umips_output_load_store_pair): New function.
8882 (umips_movep_target_p) New function.
8883 (mips_prepare_pch_save): Add microMIPS support.
8884 * config/mips/mips.h (TARGET_COMPRESSION): New.
8885 (TARGET_CPU_CPP_BUILTINS): Update macro
8886 to use new compression flags and to support microMIPS.
8887 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8888 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8889 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8890 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8891 (ASM_SPEC): Support mmicromips and mno-micromips.
8892 (M16STORE_REG_P): New macro.
8893 (MIPS_CALL): Support TARGET_MICROMIPS.
8894 (MICROMIPS_J): New macro.
8895 (mips_base_mips16): Rename this...
8896 (mips_base_compression_flags): ...to this.
8897 (UMIPS_12BIT_OFFSET_P): New macro.
8898 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8899 (MULTILIB_DIRNAMES): Likewise.
8901 2013-02-24 Jakub Jelinek <jakub@redhat.com>
8904 * target-globals.c (save_target_globals): For init_reg_sets and
8905 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8907 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8909 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8910 * config/aarch64/t-aarch64
8911 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8913 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8916 * lra-constraints.c (process_alt_operands): Reload operand
8917 conflicting with earlier clobber only if no more other conflicting
8920 2013-02-22 Jakub Jelinek <jakub@redhat.com>
8923 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8924 if not linking a shared library.
8926 2013-02-22 Seth LaForge <sethml@google.com>
8928 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8930 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8932 * config/arm/arm.md (split for extendsidi): Update condition.
8933 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8934 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8935 (qhs_zextenddi_cstr): Likewise.
8937 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8940 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8941 avoid signed wrapping.
8942 (expand_mult): Handle properly multiplication by
8943 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8944 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8945 in the compiler if coeff is HOST_WIDE_INT_MIN.
8946 (expand_divmod): Don't make ext_op1 static, change it's type to
8947 uhwi. Avoid undefined behavior in -INTVAL (op1).
8949 PR rtl-optimization/50339
8950 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8952 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8953 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8954 into splitting_ashiftrt field.
8955 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8957 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8960 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
8963 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8964 are sure to go irrevocable.
8966 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
8968 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8969 scalars are valid operands.
8971 2013-02-21 Martin Jambor <mjambor@suse.cz>
8973 PR tree-optimization/56310
8974 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8975 only matching indices and non-negative final offsets.
8976 (intersect_aggregates_with_edge): Pass src_idx to
8977 agg_replacements_to_vector. Pass src_idx insstead of index to
8978 intersect_with_agg_replacements.
8980 2013-02-21 Martin Jambor <mjambor@suse.cz>
8982 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8983 instead of hard-wired defaults.
8985 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8987 * doc/invoke.texi (MIPS Options): Update documentation of the
8988 floating-point multiply-accumulate instruction restrictions.
8990 2013-02-21 Kostya Serebryany <kcc@google.com>
8992 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8993 asan_shadow_offset on x86_64 linux.
8995 2013-02-21 Richard Biener <rguenther@suse.de>
8997 PR tree-optimization/56415
8999 2013-02-11 Richard Biener <rguenther@suse.de>
9001 PR tree-optimization/56273
9002 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9005 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9008 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9012 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9013 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9015 2013-02-20 Jan Hubicka <jh@suse.cz>
9017 PR tree-optimization/56265
9018 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9019 when target is referenced for first time.
9021 2013-02-20 Richard Biener <rguenther@suse.de>
9023 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9024 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9025 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9026 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9027 not return anything.
9028 (rename_ssa_copies): Do not remove unused locals.
9029 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9030 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9031 * passes.c (execute_function_todo): Do not schedule unused locals
9032 removal if cleanup_tree_cfg did something.
9033 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9034 about the number of removed locals.
9036 2013-02-20 Richard Biener <rguenther@suse.de>
9038 PR tree-optimization/56398
9039 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9041 2013-02-20 Martin Jambor <mjambor@suse.cz>
9043 PR tree-optimization/55334
9044 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9045 restricted pointers to arrays.
9047 2013-02-20 Richard Biener <rguenther@suse.de>
9048 Jakub Jelinek <jakub@redhat.com>
9050 PR tree-optimization/56396
9051 * tree-ssa-ccp.c (n_const_val): New static variable.
9052 (get_value): Return NULL for SSA names we don't have a lattice
9054 (ccp_initialize): Initialize n_const_val.
9055 * tree-ssa-copy.c (n_copy_of): New static variable.
9056 (init_copy_prop): Initialize n_copy_of.
9057 (get_value): Return NULL_TREE for SSA names we don't have a
9060 2013-02-20 Martin Jambor <mjambor@suse.cz>
9062 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9064 2013-02-20 Richard Biener <rguenther@suse.de>
9066 * genpreds.c (write_lookup_constraint): Do not compare first
9067 letter of the constraint again.
9069 2013-02-20 Richard Biener <rguenther@suse.de>
9071 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9073 (get_use_iv_cost): Terminate hashtable walk when coming across
9076 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9078 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9079 reassociation for avx2 targets.
9081 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9083 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9084 Add version check for v8.10.a to enable microblaze_has_clz
9085 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9086 version and TARGET_PATTERN_COMPARE check
9087 * config/microblaze/microblaze.md: New clzsi2 instruction
9089 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9091 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9092 function before branching.
9094 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9096 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9098 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9100 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9103 * sel-sched.c: Include ira.h.
9104 (implicit_clobber_conflict_p): New function.
9105 (moveup_expr): Use it.
9106 * Makefile.in (sel-sched.o): Depend on ira.h.
9108 2013-02-19 Richard Biener <rguenther@suse.de>
9110 PR tree-optimization/56384
9111 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9112 (vn_hash_type): Split out from ...
9113 (vn_hash_constant_with_type): ... here.
9114 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9115 (vn_phi_eq): Compare types from vn_phi_s structure.
9116 (vn_phi_lookup): Populate vn_phi_s type.
9117 (vn_phi_insert): Likewise.
9119 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9121 PR tree-optimization/56350
9122 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9123 if haven't found reduction or nested cycle operand, rather than
9124 asserting we must find it.
9126 PR tree-optimization/56381
9127 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9130 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9131 Jakub Jelinek <jakub@redhat.com>
9134 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9135 (swap_optab_enable): Same.
9136 (init_all_optabs): Use argument instead of global.
9137 * tree.h (struct tree_optimization_option): New field target_optabs.
9138 * expr.h (init_all_optabs): Add argument to prototype.
9139 (TREE_OPTIMIZATION_OPTABS): New.
9140 (save_optabs_if_changed): Protoize.
9141 * optabs.h: Declare this_fn_optabs.
9142 * optabs.c (save_optabs_if_changed): New.
9143 Declare this_fn_optabs.
9144 (init_optabs): Add argument to init_all_optabs() call.
9145 * function.c (invoke_set_current_function_hook): Handle per
9147 * function.h (struct function): New field optabs.
9148 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9149 optimization_current_node has changed.
9150 * target-globals.h (save_target_globals_default_opts): Protoize.
9151 * target-globals.c (save_target_globals_default_opts): New.
9153 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9156 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9157 registers %fr12 and %fr12R as call used.
9160 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9161 and HImode, require all displacements to be an integer multiple of
9163 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9164 only allow QImode and HImode when reload is in progress and strict is
9165 true. Likewise for symbolic addresses. Use base14_operand to check
9166 displacements in REG+BASE addresses.
9168 2013-02-18 Richard Biener <rguenther@suse.de>
9170 PR tree-optimization/56366
9171 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9172 handle sign-conversion of outer-loop initial induction value.
9174 2013-02-18 Richard Biener <rguenther@suse.de>
9177 * cfghooks.c (merge_blocks): If we merge a latch into another
9178 block adjust references to it.
9179 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9180 (verify_loop_structure): Verify that a recorded latch is in fact
9183 2013-02-18 Richard Biener <rguenther@suse.de>
9185 PR tree-optimization/56321
9186 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9187 order SSA name release and virtual operand unlinking.
9189 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9191 * config/microblaze/microblaze.md (save_stack_block): Define.
9192 (restore_stack_block): Likewise.
9194 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9196 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9197 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9198 * config/microblaze/microblaze.c (microblaze_option_override):
9199 Bail out early for PIC modes when target does not support PIC.
9201 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9203 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9204 Replace with a microblaze version.
9205 (microblaze_trampoline_init): Adapt for microblaze.
9206 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9209 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9210 Dodji Seketeli <dodji@redhat.com>
9213 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9214 (instrument_mem_region_access): Do not forget to always put
9215 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9216 0) statement, even for cases where either 'base' or 'base + len'
9217 are not instrumented -- because they have been previously
9218 instrumented. Simplify the logic by putting all the statements
9219 instrument 'base + len' inside a sequence, and then insert that
9220 sequence right before the current insertion point. Then, to
9221 instrument 'base + len', just get an iterator on that statement.
9222 And do not forget to update the pointer to iterator the function
9223 received as argument.
9225 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9227 PR rtl-optimization/56348
9228 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9230 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9232 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9233 (clean_graph_dump_file): Pass base to start_graph_dump.
9235 2013-02-14 Richard Henderson <rth@redhat.com>
9238 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9240 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9242 * collect2-aix.h: Define F_LOADONLY.
9244 2013-02-14 Richard Biener <rguenther@suse.de>
9247 * varasm.c (output_constant_def_1): Get the decl representing
9248 the constant as argument.
9249 (output_constant_def): Wrap output_constant_def_1.
9250 (make_decl_rtl): Use output_constant_def_1 with the decl
9251 representing the constant.
9252 (build_constant_desc): Optionally re-use a decl already
9253 representing the constant.
9254 (tree_output_constant_def): Adjust.
9256 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9259 * asan.c (instrument_builtin_call): Really put the length of the
9260 second source argument into src1_len.
9262 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9264 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9265 argument. If it is false, don't create edge from then_bb to
9267 (insert_if_then_before_iter): Pass true to it.
9268 (build_check_stmt): Pass false to it.
9269 (transform_statements): Flush hash table only on extended basic
9270 block boundaries, rather than at the beginning of every bb.
9271 Don't flush hash table on nonfreeing_call_p calls.
9272 * tree-flow.h (nonfreeing_call_p): New prototype.
9273 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9275 2013-02-13 David S. Miller <davem@davemloft.net>
9277 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9279 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9282 * ira.c (max_regno_before_ira): Move from ...
9284 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9287 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9289 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9291 2013-02-13 Richard Biener <rguenther@suse.de>
9294 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9295 globals in MEM_REFs.
9297 2013-02-13 Richard Biener <rguenther@suse.de>
9299 * loop-init.c (loop_optimizer_init): Clear loop state when
9300 re-initializing preserved loops.
9301 * loop-unswitch.c (unswitch_single_loop): Return whether
9302 we unswitched the loop. Do not verify loop state here.
9303 (unswitch_loops): When we unswitched a loop discover new loops.
9305 2013-02-13 Kostya Serebryany <kcc@google.com>
9307 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9309 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9311 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9313 Avoid instrumenting duplicated memory access in the same basic block
9314 * Makefile.in (asan.o): Add new dependency on hash-table.h
9315 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9316 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9317 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9318 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9319 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9320 (get_mem_ref_of_assignment): New functions.
9321 (get_mem_refs_of_builtin_call): Extract from
9322 instrument_builtin_call and tweak a little bit to make it fit with
9324 (instrument_builtin_call): Use the new
9325 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9326 of is_gimple_builtin_call.
9327 (instrument_derefs, instrument_mem_region_access): Insert the
9328 instrumented memory reference into the hash table.
9329 (maybe_instrument_assignment): Renamed instrument_assignment into
9330 this, and change it to advance the iterator when instrumentation
9331 actually happened and return true in that case. This makes it
9332 homogeneous with maybe_instrument_assignment, and thus give a
9333 chance to callers to be more 'regular'.
9334 (transform_statements): Clear the memory reference hash table
9335 whenever we enter a new BB, when we cross a function call, or when
9336 we are done transforming statements. Use
9337 maybe_instrument_assignment instead of instrumentation. No more
9338 need to special case maybe_instrument_assignment and advance the
9339 iterator after calling it; it's now handled just like
9340 maybe_instrument_call. Update comment.
9342 2013-02-13 Richard Biener <rguenther@suse.de>
9344 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9345 Fix loop discovery code.
9347 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9350 * lra-constraints.c (process_alt_operands): Match early clobber
9351 operand with itself. Check conflicts with earlyclobber only if
9352 the operand is not reloaded. Prefer to reload conflicting operand
9353 if earlyclobber and matching operands are the same.
9355 2013-02-12 Richard Biener <rguenther@suse.de>
9358 * lto-streamer-out.c (write_symbol): Do not output symbols
9359 for hard register variables.
9361 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9364 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9365 (umulsidi3_insn, mulsidi3_insn): New insns.
9367 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9369 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9370 (struct tune_params): Add vec_costs field.
9371 * config/arm/arm.c (arm_builtin_vectorization_cost)
9372 (arm_add_stmt_cost): New functions.
9373 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9374 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9375 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9376 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9377 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9378 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9379 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9381 2013-02-12 Richard Biener <rguenther@suse.de>
9384 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9385 decls again if possible.
9387 2013-02-12 Richard Biener <rguenther@suse.de>
9390 * tree-ssa.c (verify_ssa_name): Fix check, move
9391 SSA_NAME_IN_FREE_LIST check up.
9393 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9394 Steven Bosscher <steven@gcc.gnu.org>
9396 PR rtl-optimization/56151
9397 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9398 equal to op0 or op1, and last_insn pattern is CODE operation
9399 with MEM dest and one of the operands matches that MEM.
9401 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9403 * doc/extend.texi: Document Function Multiversioning and "default"
9404 parameter string to target attribute.
9405 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9406 target attribute parameter is "default".
9407 (ix86_compare_version_priority): Remove checks for target attribute.
9408 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9409 Remove check for target attribute equal to NULL. Add assert.
9410 (ix86_generate_version_dispatcher_body): Change error to sorry.
9412 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9413 Jack Howarth <howarth@bromo.med.uc.edu>
9414 Patrick Marlier <patrick.marlier@gmail.com>
9417 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9418 define ENDFILE_SPEC as TM_DESTRUCTOR.
9419 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9421 2013-02-11 Alexander Potapenko <glider@google.com>
9422 Jack Howarth <howarth@bromo.med.uc.edu>
9423 Jakub Jelinek <jakub@redhat.com>
9426 * config/darwin.c (cdtor_record): Rename ctor_record.
9427 (sort_cdtor_records): Rename sort_ctor_records.
9428 (finalize_dtors): New routine to sort destructors by
9429 priority before use in assemble_integer.
9430 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9432 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9434 PR rtl-optimization/56275
9435 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9436 offset is non-negative and less than cmode size before
9437 calling simplify_subreg.
9439 2013-02-11 Richard Biener <rguenther@suse.de>
9441 PR tree-optimization/56264
9442 * cfgloop.h (fix_loop_structure): Adjust prototype.
9443 * loop-init.c (fix_loop_structure): Return the number of
9444 newly discovered loops.
9445 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9446 are discovered, do a full loop-closed SSA rewrite.
9448 2013-02-11 Richard Biener <rguenther@suse.de>
9450 PR tree-optimization/56273
9451 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9453 (check_array_ref): Fix missing newline in dumps.
9454 (search_for_addr_array): Likewise.
9456 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9458 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9460 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9463 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9465 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9467 PR rtl-optimization/56246
9468 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9470 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9471 constraints are satisfied.
9473 2013-02-08 Jeff Law <law@redhat.com>
9476 * emit-rtl.c (reg_is_parm_p): New function.
9477 * regs.h (reg_is_parm_p): New prototype.
9478 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9479 callee-clobbered registers.
9481 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9484 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9485 If there is no implicit builtin declaration, just return NULL.
9487 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9489 * config/i386/sse.md (FMAMODEM): New mode iterator.
9490 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9491 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9493 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9495 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9496 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9497 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9499 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9501 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9502 (microblaze*-*-elf): Likewise.
9503 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9505 * config/microblaze/microblaze-c.c: Add builtin defines for
9506 _LITTLE_ENDIAN and _BIG_ENDIAN.
9507 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9508 add to TARGET_DEFAULT flags.
9509 Expand ASM_SPEC and LINK_SPEC.
9510 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9511 * config/microblaze/microblaze.md: Update extendsidi2 and
9512 movdi_internal instructions to use low-order / high-order reg
9514 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9515 options and inversemask / mask of LITTLE_ENDIAN.
9516 * config/microblaze/t-microblaze: Expand multilib options to
9517 include mlittle-endian (le) and update exceptions patterns.
9519 2013-02-08 Jakub Jelinek <jakub@redhat.com>
9521 PR rtl-optimization/56195
9522 * lra-constraints.c (get_reload_reg): Don't reuse regs
9523 if they have smaller mode than requested, if they have
9524 wider mode than requested, try to return a SUBREG.
9526 PR tree-optimization/56250
9527 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9528 if type is unsigned and code isn't MULT_EXPR.
9530 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9532 PR tree-optimization/56064
9533 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9534 bits according to mode.
9535 * fixed-value.h (fixed_from_double_int)
9536 (const_fixed_from_double_int): Adjust comments.
9538 2013-02-08 Richard Biener <rguenther@suse.de>
9541 * lto-streamer.h (struct data_in): Remove current_file, current_line
9542 and current_col members.
9543 * lto-streamer-out.c (lto_output_location): Stream changed bits
9544 en-block for efficiency.
9545 * lto-streamer-in.c (clear_line_info): Remove.
9546 (lto_input_location): Cache current file, line and column
9547 globally via local statics. Read changed bits en-block.
9548 (input_function): Do not call clear_line_info.
9549 (lto_read_body): Likewise.
9550 (lto_input_toplevel_asms): Likewise.
9552 2013-02-08 Michael Matz <matz@suse.de>
9554 PR tree-optimization/52448
9555 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9556 (nt_call_phase): New static.
9557 (add_or_mark_expr): Only mark accesses with newer phase than any
9559 (nonfreeing_call_p): New.
9560 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9561 (nt_fini_block): Keep blocks marked as visited.
9562 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9564 2013-02-08 Richard Biener <rguenther@suse.de>
9566 * ira.c (ira): Free broken dominator information.
9568 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9570 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9572 2013-02-08 Marek Polacek <polacek@redhat.com>
9574 * cfgloop.c (verify_loop_structure): Add more checking of headers.
9576 2013-02-08 Richard Biener <rguenther@suse.de>
9579 * cfgloop.h (flow_loops_find): Adjust.
9580 (bb_loop_header_p): Declare.
9581 * cfgloop.c (bb_loop_header_p): New function split out from ...
9582 (flow_loops_find): ... here. Adjust function signature,
9583 support incremental loop structure update.
9584 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9585 * cfgloopmanip.c (fix_loop_structure): Move ...
9586 * loop-init.c (fix_loop_structure): ... here.
9587 (apply_loop_flags): Split out from ...
9588 (loop_optimizer_init): ... here.
9589 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9590 in incremental mode, only remove dead loops here.
9592 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9595 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9596 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9597 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9598 (*round<mode>3.libgcc): New insns for fixed-modes.
9599 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9600 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9601 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9602 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9603 implementations. Define to __builtin_avr_absFX,
9604 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9605 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9606 __builtin_avr_countlsFX, respectively.
9607 * config/avr/avr-c.c (target.h): Include it.
9608 (enum avr_builtin_id): New enum.
9609 (avr_resolve_overloaded_builtin): New static function.
9610 (avr_register_target_pragmas): Use it to set
9611 targetm.resolve_overloaded_builtin.
9612 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9613 tree nodes used by DEF_BUILTIN.
9614 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9615 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9616 <AVR_BUILTIN_xxBITS>: Same.
9618 2013-02-08 Richard Biener <rguenther@suse.de>
9620 * cfgloop.c (verify_loop_structure): Properly handle
9621 a loop exiting to another loop header.
9622 * ira-int.h (ira_loops): Remove.
9623 * ira.c (ira_loops): Remove.
9624 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9625 (do_reload): Use loop_optimizer_finalize.
9626 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9627 number_of_loops to access the loop tree.
9628 (more_one_region_p): Likewise.
9629 (finish_loop_tree_nodes): Likewise.
9630 (rebuild_regno_allocno_maps): Likewise.
9631 (mark_loops_for_removal): Likewise.
9632 (mark_all_loops_for_removal): Likewise.
9633 (remove_unnecessary_regions): Likewise.
9634 (ira_build): Likewise.
9635 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9637 2013-02-08 Richard Biener <rguenther@suse.de>
9639 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9640 * ipa-pure-const.c (analyze_function): Avoid calling
9641 mark_irreducible_loops twice.
9642 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
9644 2013-02-07 David S. Miller <davem@davemloft.net>
9646 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9648 * var-tracking.c (vt_add_function_parameter): Test the presence of
9649 HAVE_window_save properly and do not remap argument registers when
9650 we have a leaf function.
9652 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
9655 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9657 * config/i386/i386.c (ix86_print_operand): Ditto.
9659 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9661 * lra-constraints.c (process_alt_operands): Fix recently added comment.
9663 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9665 PR rtl-optimization/56225
9666 * lra-constraints.c (process_alt_operands): Check that reload hard
9667 reg can hold value for strict_low_part.
9669 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9672 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9673 dwarf2out_end_function.
9674 (in_first_function_p, maybe_at_text_label_p,
9675 first_loclabel_num_not_at_text_label): New variables.
9676 (dwarf2out_var_location): In the first function find out
9677 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
9678 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9681 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9683 PR rtl-optimization/56178
9684 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9685 SUBREG of a register. Tidy up related block of code.
9686 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9687 note if the source is a register or a SUBREG of a register.
9689 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9692 * config/rs6000/rs6000.md (ptrm): New mode attr.
9693 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9694 call_value_indirect_aix<pttrsize>,
9695 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9698 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9700 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9701 if -bnortl. Convert to strcmp and strncmp.
9703 2013-02-07 Alan Modra <amodra@gmail.com>
9706 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9707 addresses won't wrap when offsetting.
9708 (rs6000_secondary_reload): Provide secondary reloads needed for
9709 wrapping LO_SUM addresses.
9711 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9713 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9714 MACH, just __MACH__.
9716 2013-02-06 Richard Biener <rguenther@suse.de>
9718 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9719 instead of calling fix_loop_structure.
9721 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9724 * omp-low.c (use_pointer_for_field): Return false if
9725 lower_send_shared_vars doesn't generate any copy-out code.
9727 2013-02-06 Tom de Vries <tom@codesourcery.com>
9729 PR rtl-optimization/56131
9730 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9731 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9732 of the label is NULL. Add comment.
9734 2013-02-05 Jakub Jelinek <jakub@redhat.com>
9736 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9739 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9740 (STATIC_LIBTSAN_LIBS): Likewise.
9741 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9742 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9743 is defined, don't add anything else beyond that.
9744 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9745 (LINK_COMMAND_SPEC): Use them.
9747 PR tree-optimization/56205
9748 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9749 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9750 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9752 2013-02-05 Richard Biener <rguenther@suse.de>
9754 PR tree-optimization/53342
9755 PR tree-optimization/53185
9756 * tree-vectorizer.h (vect_check_strided_load): Remove.
9757 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9758 not disallow peeling for vectorized strided loads.
9759 (vect_check_strided_load): Make static and simplify.
9760 (vect_analyze_data_refs): Adjust.
9761 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9762 correctly when vectorizing strided loads.
9764 2013-02-05 Richard Biener <rguenther@suse.de>
9766 * doc/install.texi: Refer to ISL, not PPL.
9768 2013-02-05 Jan Hubicka <jh@suse.cz>
9770 PR tree-optimization/55789
9771 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9773 2013-02-05 Jan Hubicka <jh@suse.cz>
9775 PR tree-optimization/55789
9776 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9777 the dead call anyway.
9779 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9782 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9784 2013-02-04 Alexander Potapenko <glider@google.com>
9785 Jack Howarth <howarth@bromo.med.uc.edu>
9786 Jakub Jelinek <jakub@redhat.com>
9789 * config/darwin.c (sort_ctor_records): Stabilized qsort
9790 on constructor priority by using original position.
9791 (finalize_ctors): New routine to sort constructors by
9792 priority before use in assemble_integer.
9793 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9795 2013-02-04 Jakub Jelinek <jakub@redhat.com>
9798 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9799 about visibility on artificial decls.
9800 * config/sol2.c (solaris_assemble_visibility): Likewise.
9802 2013-02-04 Kai Tietz <ktietz@redhat.com>
9805 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9806 argument and improve checking of return-argument types for 16-byte
9808 (ix86_function_value_1): Add additional valtype argument on call
9809 of function_value_64.
9810 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9811 handling infunction_value_64 function.
9813 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9815 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
9817 2013-02-04 Richard Biener <rguenther@suse.de>
9819 PR tree-optimization/56188
9820 * tree-ssa-structalias.c (label_visit): Consider case with
9821 initially non-empty points-to set.
9822 (perform_var_substitution): Dump node mapping and clean up.
9824 2013-02-04 Richard Guenther <rguenther@suse.de>
9827 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9828 node prevail as last resort.
9829 (lto_symtab_merge_decls): Remove guard on LTRANS here.
9830 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
9832 2013-02-04 Richard Biener <rguenther@suse.de>
9834 PR tree-optimization/56113
9835 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9837 (equiv_class_lookup_or_add): ... this.
9838 (label_visit): Adjust and fix error in previous patch.
9839 (perform_var_substitution): Adjust.
9841 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9843 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9844 * config/sh/sh4-300.md: Likewise.
9845 * config/sh/sh4a.md: Likewise.
9846 * config/sh/constraints.md: Likewise.
9847 * config/sh/sh.md: Likewise.
9848 * config/sh/netbsd-elf.h: Likewise.
9849 * config/sh/predicates.md: Likewise.
9850 * config/sh/sh-protos.h: Likewise.
9851 * config/sh/ushmedia.h: Likewise.
9852 * config/sh/linux.h: Likewise.
9853 * config/sh/sh.c: Likewise.
9854 * config/sh/superh.h: Likewise.
9855 * config/sh/elf.h: Likewise.
9856 * config/sh/sh4.md: Likewise.
9857 * config/sh/sh.h: Likewise.
9859 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9861 * config/pa/constraints.md: Adjust unused letters. Change "T"
9862 constraint to match_test floating_point_store_memory_operand().
9863 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9864 (base14_operand): New.
9865 (floating_point_store_memory_operand): New.
9866 (integer_store_memory_operand): Revise to use base14_operand and
9867 reg_plus_base_memory_operand.
9868 (move_dest_operand): Allow symbolic_memory_operands.
9869 (symbolic_memory_operand): Check for LO_SOM.
9870 (symbolic_operand): Change default case to break.
9871 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9872 CONST_DOUBLE values to be reloaded by putting them into memory when
9873 the destination is a floating point register.
9874 (movdf): Remove code to handle CONST_DOUBLE.
9876 (reload_indf_r1): New.
9877 (reload_insf_r1): New.
9878 Consistently use "Q" and "T" constraints with integer and floating
9879 point move instructions, respectively.
9880 (movdi): Remove FAIL.
9881 Change predicate for source operand unamed DImode move from
9882 general_operand to move_src_operand.
9883 (umulsidi3): Change predicate for destination operand to
9885 Likewise for similar unamed patterns.
9886 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9887 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9888 (hppa_legitimize_address): Simplify mask calculation.
9889 (pa_emit_move_sequence): Revised handling of secondary reloads from
9890 REG+D addresses for floating point loads and stores. Directly handle
9891 loading CONST0_RTX (mode) to a floating point register.
9892 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9893 to floating point registers. Don't restrict secondary reloads to
9894 floating point registers to integer modes. Revise some comments and
9896 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9897 (pa_legitimate_address_p): New.
9898 (pa_legitimize_reload_address): New.
9899 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9900 (STRICT_REG_OK_FOR_BASE_P): New.
9901 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9902 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9904 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
9905 Andrew Dixie <andrewd@gentrack.com>
9907 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9910 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9912 * expmed.c (extract_bit_field_1): Pass the full width of the
9913 structure to get_best_reg_extraction_insn.
9915 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9918 * configure.ac (use_cxa_atexit): Add AIX.
9919 * configure: Regenerate.
9921 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9923 2013-02-01 Jakub Jelinek <jakub@redhat.com>
9926 * final.c (need_profile_function): New variable.
9927 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9928 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9929 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9930 notes, targetm.asm_out.function_prologue doesn't emit anything,
9931 HAVE_prologue and profiler should be emitted before prologue,
9932 set need_profile_function instead of emitting it.
9933 (final_scan_insn): If need_profile_function, emit
9934 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9935 NOTE_INSN_FUNCTION_BEG note.
9937 2013-02-01 Richard Henderson <rth@redhat.com>
9939 * config/rs6000/rs6000.md (smulditi3): New.
9942 * config/alpha/alpha.md (umulditi3): New.
9944 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9946 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9947 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9949 2013-02-01 Richard Biener <rguenther@suse.de>
9951 PR tree-optimization/56113
9952 * tree-ssa-structalias.c (label_visit): Reduce work for
9953 single-predecessor nodes.
9955 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9957 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9958 range isn't testing for zero.
9960 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9963 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9965 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9966 Nick Clifton <nickc@redhat.com>
9968 * config/v850/constraints.md (Q): Define as a memory constraint.
9969 * config/v850/predicates.md (label_ref_operand): New predicate.
9970 (e3v5_shift_operand): New predicate.
9971 (ior_operator): New predicate.
9972 * config/v850/t-v850: Add e3v5 multilib.
9973 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9974 (v850_gen_movdi): Prototype.
9975 * config/v850/v850.c: Add support for e3v5 architecture.
9976 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9978 (construct_save_jarl): Add e3v5 long JARL support.
9979 (v850_adjust_insn_length): New function. Adjust length of call
9980 insns when using e3v5 instructions.
9981 (v850_gen_movdi): New function: Generate instructions to move a
9983 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9984 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9985 (TARGET_USE_FPU): Enable for e3v5.
9986 (CONST_OK_FOR_W): New macro.
9987 (ADJUST_INSN_LENGTH): Define.
9988 * config/v850/v850.md (UNSPEC_LOOP): Define.
9989 (attr cpu): Add v850e3v5.
9990 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9991 (movdi): New pattern.
9992 (movdi_internal): New pattern.
9993 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9994 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9995 (cstoresf4): Likewise.
9996 (cstoredf4): Likewise.
9997 (insv): New pattern.
9998 (rotlso3_a): New pattern.
9999 (rotlsi3_b): New pattern
10000 (rotlsi3_v850e3v5): New pattern.
10001 (doloop_begin): New pattern.
10002 (fix_loop_counter): New pattern.
10003 (doloop_end): New pattern.
10004 (branch_normal): Add e3v5 long branch support.
10005 (branch_invert): Likewise.
10006 (branch_z_normal): Likewise.
10007 (branch_z_invert): Likewise.
10008 (branch_nz_normal): Likewise.
10009 (branch_nz_invert): Likewise.
10010 (call_internal_short): Add e3v5 register-indirect JARL support.
10011 (call_internal_long): Likewise.
10012 (call_value_internal_short): Likewise.
10013 (call_value_internal_long): Likewise.
10014 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10015 (mloop): New option.
10016 * config.gcc: Add support for configuring v840e3v5 target.
10017 * doc/invoke.texi: Document new v850 specific command line options.
10019 2013-01-31 Paul Koning <ni1d@arrl.net>
10023 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10024 children if parent is a class.
10025 (prune_unused_types_prune): Don't add DW_AT_declaration.
10027 2013-01-31 Richard Biener <rguenther@suse.de>
10029 PR tree-optimization/56157
10030 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10031 match up operand with SLP child.
10033 2013-01-31 Jason Merrill <jason@redhat.com>
10036 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10037 parameters the first time.
10038 (gen_scheduled_generic_parms_dies): Check completeness here.
10040 2013-01-31 Richard Biener <rguenther@suse.de>
10042 PR middle-end/53073
10043 * common.opt (faggressive-loop-optimizations): New flag,
10044 enabled by default.
10045 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10046 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10047 infer_loop_bounds_from_undefined by it.
10049 2013-01-31 Richard Biener <rguenther@suse.de>
10051 PR tree-optimization/56150
10052 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10053 visit virtual operands.
10054 (find_uses_to_rename_bb): Likewise.
10056 2013-01-31 Richard Biener <rguenther@suse.de>
10058 PR tree-optimization/56150
10059 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10060 mixed store non-store stmts.
10062 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10065 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10066 LIBASAN_EARLY_SPEC is defined.
10067 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10068 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10070 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10073 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10074 invalid args instead of ICEing on it.
10075 (ix86_valid_target_attribute_tree): Return error_mark_node if
10076 ix86_valid_target_attribute_inner_p failed.
10077 (ix86_valid_target_attribute_p): Return false only if
10078 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10079 target("default") attribute.
10080 (sorted_attr_string): Change argument from const char * to tree,
10081 merge in all target attribute arguments rather than just one.
10082 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10083 instead of free. Avoid using strcat.
10084 (ix86_mangle_function_version_assembler_name): Mangle
10085 target("default") as if no target attribute is present. Adjust
10086 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10087 instead of xmalloc and XDELETEVEC instead of free.
10088 (ix86_function_versions): Don't return true if one of the decls
10089 doesn't have target attribute. If they don't and one of the decls
10090 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10091 sorted_attr_string caller. Use XDELETEVEC instead of free.
10092 (ix86_supports_function_versions): Remove.
10093 (make_name): Fix up formatting.
10094 (make_dispatcher_decl): Remove resolver_name and its initialization.
10095 Avoid leaking memory.
10096 (is_function_default_version): Return true if there is
10097 target("default") attribute rather than no target attribute at all.
10098 (make_resolver_func): Avoid leaking memory.
10099 (ix86_generate_version_dispatcher_body): Likewise.
10100 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10101 * target.def (supports_function_versions): Remove.
10102 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10103 * doc/tm.texi: Regenerated.
10105 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10107 PR rtl-optimization/56144
10108 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10109 for values with side effects.
10111 2013-01-30 Richard Biener <rguenther@suse.de>
10113 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10114 (sparseset_pop): Likewise.
10115 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10116 to be able to use quick_push in the worker loop.
10118 2013-01-30 Marek Polacek <polacek@redhat.com>
10120 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10122 2013-01-30 Richard Biener <rguenther@suse.de>
10125 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10127 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10129 PR tree-optimization/56064
10130 * fixed-value.c (fixed_from_double_int): New function.
10131 * fixed-value.h (fixed_from_double_int): New prototype.
10132 (const_fixed_from_double_int): New static inline function.
10133 * fold-const.c (native_interpret_fixed): New static function.
10134 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10135 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10136 (native_encode_fixed): New static function.
10137 (native_encode_expr) <FIXED_CST>: Use it.
10138 (native_interpret_int): Move double_int worker code to...
10139 * double-int.c (double_int::from_buffer): ...this new static method.
10140 * double-int.h (double_int::from_buffer): Prototype it.
10142 2013-01-30 Richard Biener <rguenther@suse.de>
10144 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10145 New pointer-map and obstack.
10146 (init_alias_vars): Allocate pointer-map and obstack.
10147 (delete_points_to_sets): Free them.
10148 (find_what_var_points_to): Cache result.
10149 (find_what_p_points_to): Adjust for changed interface of
10150 find_what_var_points_to.
10151 (compute_points_to_sets): Likewise.
10152 (ipa_pta_execute): Likewise.
10154 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10156 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10157 * configure: Regenerate.
10158 * config.in: Regenerate.
10159 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10160 #nobits/#progbits if supported.
10162 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10165 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10166 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10167 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10169 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10171 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10172 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10174 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10176 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10177 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10179 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10181 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10183 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10184 * config/arm/cortex-a7.md: New bypasses using
10185 arm_mac_accumulator_is_result.
10187 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10189 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10190 (cortex_a7_neon_mla): Likewise.
10191 (cortex_a7_fpfmad): New reservation.
10192 (cortex_a7_fpmacs): Use ffmas and update required units.
10193 (cortex_a7_fpmuld): Update required units and latency.
10194 (cortex_a7_fpmacd): Likewise.
10195 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10196 (cortex_a7_neon). Likewise.
10197 (bypass) Update participating units.
10199 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10201 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10202 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10204 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10205 (vfp_fmul): Use ffmad.
10206 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10207 (cortex_r4_fmacd): Use ffmad.
10208 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10209 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10210 (cortex_a9_fmacd): Use ffmad.
10211 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10212 (cortex_a8_vfp_macd): Use ffmad.
10213 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10214 (cortex_a5_fpmacd): Use ffmad.
10215 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10216 (cortex_a15_vfp_macd): Use ffmad.
10217 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10219 2013-01-29 Jason Merrill <jason@redhat.com>
10222 * varasm.c (default_assemble_visibility): Don't warn about
10223 visibility on artificial decls.
10225 2013-01-29 Richard Biener <rguenther@suse.de>
10227 PR tree-optimization/56113
10228 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10230 (label_visit): Free duplicate bitmaps and record the leader instead.
10231 (perform_var_substitution): Adjust.
10233 2013-01-29 Richard Biener <rguenther@suse.de>
10235 PR tree-optimization/55270
10236 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10237 the CFG, schedule loops for fixup.
10239 2013-01-29 Nick Clifton <nickc@redhat.com>
10241 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10244 2013-01-28 Leif Ekblad <leif@rdos.net>
10246 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10247 * config/i386/i386.h (TARGET_RDOS): New macro.
10248 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10249 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10250 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10251 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10252 DEFAULT_LARGE_SECTION_THRESHOLD.
10253 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10254 * config/i386/rdos.h: New file.
10255 * config/i386/rdos64.h: New file.
10257 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10260 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10263 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10265 PR rtl-optimization/56117
10266 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10267 call cselib_lookup_from_insn on the MEM before calling
10268 add_insn_mem_dependence.
10270 2013-01-28 Richard Biener <rguenther@suse.de>
10272 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10273 to a stmt that didn't have one.
10274 (copy_phis_for_bb): Likewise for PHI arguments.
10275 (copy_debug_stmt): Likewise for debug stmts.
10277 2013-01-28 Richard Biener <rguenther@suse.de>
10279 PR tree-optimization/56034
10280 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10281 (partition_builtin_p): Adjust.
10282 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10283 it is the last partition.
10284 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10285 up the vertex for the definition.
10286 (classify_partition): Classify whether a partition is a
10287 PKIND_REDUCTION, thus has uses outside of the loop.
10288 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10289 Merge all PKIND_REDUCTION partitions into the last partition.
10290 (tree_loop_distribution): Seed partitions from reductions as well.
10292 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10294 PR tree-optimization/56125
10295 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10296 pow(x,c) into sqrt(x) * powi(x, n/2) or
10297 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10298 optimizing for size.
10299 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10300 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10303 PR tree-optimization/56094
10304 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10305 to UNKNOWN_LOCATION while gimplifying expr.
10307 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10310 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10311 operand 0 in movabs insn template for -masm=intel asm alternative.
10312 (*movabs<mode>_2): Ditto for operand 1.
10314 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10317 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10320 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10322 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10325 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10327 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10328 Undef to avoid warning.
10330 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10332 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10333 * configure: Regenerate.
10335 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10337 PR tree-optimization/56098
10338 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10339 for stmts with volatile ops.
10340 (cond_store_replacement): Don't optimize if assign has volatile ops.
10341 (cond_if_else_store_replacement_1): Don't optimize if either
10342 then_assign or else_assign have volatile ops.
10343 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10346 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10348 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10350 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10352 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10353 missing ':' in asm example.
10355 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10357 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10358 entries into lane and laneq entries.
10359 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10360 Remove AdvSIMD scalar modes.
10361 (aarch64_sq<r>dmulh_laneq<mode>): New.
10362 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10364 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10365 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10366 * config/aarch64/iterators.md (VCOND): New.
10369 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10372 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10373 Add NULL LIBNAME argument to existing definitions.
10374 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10375 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10376 * config/avr/avr.c (DEF_BUILTIN): Same.
10377 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10378 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10379 implementation is available (DECL_ASSEMBLER_NAME is set).
10380 (avr_fold_absfx): New static function.
10381 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10382 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10383 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10384 AVR_BUILTIN_ABSLLK.
10385 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10386 (abshk, absk, abslk, absllk): Provide as static inline functions.
10388 2013-01-25 Marek Polacek <polacek@redhat.com>
10390 PR tree-optimization/56035
10391 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10393 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10395 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10396 (*movtf_internal_rex64): Add (!o,C) alternative
10397 (*movxf_internal_rex64): Ditto.
10398 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10400 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10402 * doc/invoke.texi: fix typo.
10403 * doc/objc.texi: fix typo.
10405 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10407 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10408 for the first two alternatives.
10410 2013-01-24 Diego Novillo <dnovillo@google.com>
10412 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10413 (ggc-zone.o): Remove.
10414 * configure.ac: Remove option --with-gc.
10415 * configure: Re-generate.
10416 * doc/install.texi: Remove documentation for --with-gc.
10417 * gengtype.c (write_enum_defn): Remove. Update all users.
10418 (write_Types_process_field): Remove generation of gt_e_* argument.
10419 (output_type_enum): Remove. Update all users.
10420 (write_enum_defn): Remove. Update all users.
10421 (enum alloc_zone): Remove. Update all users.
10422 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10423 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10424 Update all callers.
10425 (struct ptr_data): Remove field TYPE. Update all users.
10426 (gt_pch_note_object): Remove argument TYPE. Update all users.
10427 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10429 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10430 (struct alloc_zone): Remove.
10431 (ggc_internal_alloc_zone_stat): Remove.
10432 (ggc_internal_cleared_alloc_zone_stat): Remove.
10433 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10434 (ggc_pch_count_object): Remove last argument. Update all users.
10435 (ggc_pch_alloc_object): Remove last argument. Update all users.
10436 (struct alloc_zone): Remove.
10437 * ggc-zone.c: Remove.
10438 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10439 (struct alloc_zone): Remove.
10440 (ggc_alloc_typed_stat): Remove.
10441 (ggc_alloc_typed): Remove.
10442 (ggc_splay_alloc): Remove first argument.
10443 (rtl_zone): Remove. Update all users.
10444 (tree_zone): Remove. Update all users.
10445 (tree_id_zone): Remove. Update all users.
10446 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10447 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10448 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10449 * tree-ssanames.c: Remove references to zone allocator in comments.
10451 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10453 * config/avr/avr.c (avr_out_fract): Make register numbers that
10454 might be outside of source operand signed.
10456 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10458 * config/i386/constraints.md (Yf): New constraint.
10459 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10460 of f constraint to conditionaly disable x87 register preferences.
10461 (*movdf_internal): Ditto.
10462 (*movsf_internal): Ditto.
10464 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10466 PR inline-asm/55934
10467 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10468 that have operands with impossible constraints.
10469 Add a FIXME for a speed-up opportunity.
10470 * lra-constraints.c (process_alt_operands): Verify that a class
10471 selected from constraints on asms is valid for the operand mode.
10472 (curr_insn_transform): Remove incorrect comment.
10474 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10476 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10477 TOC operand is a valid symbol ref in the constant pool.
10479 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10481 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10483 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10486 * config/avr/stdfix.h: New file.
10487 * t-avr (stdfix-gcc.h): New rule to build it.
10488 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10490 2013-01-23 Kostya Serebryany <kcc@google.com>
10492 * config/darwin.h: remove dependency on
10493 CoreFoundation (asan on Mac OS).
10495 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10498 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10499 instead of cmpdi_operand for first comparison operand.
10500 Don't assert that comparison operands aren't both constants.
10502 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10504 * doc/install.texi (Downloading the Source): Update references to
10505 downloading separate components.
10507 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10509 * doc/extend.texi (__int128): Improve grammar.
10511 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
10514 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10515 alternative to (o,r).
10516 (*movdi_internal_rex64): Remove (!o,n) alternative.
10517 (DImode immediate->memory splitter): Remove.
10518 (DImode immediate->memory peephole2): Remove.
10519 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10520 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10521 alternative to (!o,*r).
10522 (*movtf_internal_sse): New pattern.
10523 (*movxf_internal_rex64): New pattern.
10524 (*movxf_internal): Disable for TARGET_64BIT.
10525 (*movdf_internal_rex64): Remove (!o,F) alternative.
10527 2013-01-22 Jakub Jelinek <jakub@redhat.com>
10529 PR middle-end/56074
10530 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10531 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10532 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10533 stmt locations where LOCATION_LOCUS of the stmt location is
10534 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10537 * config/i386/i386.md (UNSPEC_STOS): New.
10538 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10539 *strsetqi_1): Add UNSPEC_STOS.
10541 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10544 * doc/invoke.texi: Remove left over -Wsynth example.
10546 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10548 PR tree-optimization/56051
10549 * fold-const.c (fold_binary_loc): Don't fold
10550 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10551 a narrowing conversion, or widening conversion from signed
10554 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10556 PR rtl-optimization/56023
10557 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10558 dependent on debug instruction.
10560 2013-01-21 Martin Jambor <mjambor@suse.cz>
10562 PR middle-end/56022
10563 * function.c (allocate_struct_function): Call
10564 invoke_set_current_function_hook earlier.
10566 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10568 * reload1.c (init_reload): Only initialize reload_obstack
10569 during the first call.
10571 2013-01-21 Marek Polacek <polacek@redhat.com>
10573 * cfgloop.c (verify_loop_structure): Fix up grammar.
10575 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10577 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10578 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10580 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10583 * config/arm/marvell-pj4.md: Update copyright year.
10584 Fix up use of alu to alu_reg and simple_alu_imm.
10586 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10588 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10590 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10593 * lra-constraints.c (curr_insn_transform): Don't reuse original
10594 insn for secondary memory move when memory mode should be different.
10596 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10598 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10599 atomic_storedi_1): New patterns.
10601 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10603 btver2 pipeline descriptions.
10604 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10606 * config/i386/i386.md (btver2_decode): New type attributes.
10607 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
10609 * config/i386/btver2.md: New file describing btver2 pipelines.
10611 2013-01-19 Andrew Pinski <apinski@cavium.com>
10613 PR tree-optimization/52631
10614 * tree-ssa-sccvn (visit_use): Before looking up the original
10615 statement, try looking up the simplified expression.
10617 2013-01-19 Anthony Green <green@moxielogic.com>
10619 * config/moxie/moxie.c (moxie_expand_prologue): Set
10620 current_function_static_stack_size.
10622 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10624 PR tree-optimization/56029
10625 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10626 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10628 2013-01-18 Sharad Singhai <singhai@google.com>
10630 PR tree-optimization/55995
10631 * dumpfile.c (dump_loc): Print location only if available.
10632 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10634 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10637 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10638 secondary memory move.
10639 (inherit_reload_reg): Use rclass instead of cl for
10640 check_secondary_memory_needed_p.
10642 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10644 PR middle-end/56015
10645 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
10646 the case where writing real complex part of target modifies op1.
10648 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10650 * config/aarch64/aarch64-simd.md
10651 (aarch64_vcond_internal<mode>): Handle unordered cases.
10652 * config/aarch64/iterators.md (v_cmp_result): New.
10654 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10655 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10657 * config/arm/marvell-pj4.md: New file.
10658 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10659 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10660 (generic_vfp): Likewise.
10661 * config/arm/arm-cores.def: Add marvell-pj4.
10662 * config/arm/arm-tune.md: Regenerate.
10663 * config/arm/arm-tables.opt: Regenerate.
10664 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10665 * doc/invoke.texi: Document marvell-pj4.
10667 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10669 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10671 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10676 * var-tracking.c (negative_power_of_two_p): New.
10677 (global_get_addr_cache, local_get_addr_cache): New.
10678 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10679 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10681 (vt_stack_offset_p): Remove.
10682 (vt_canon_true_dep): Always canonicalize loc's address.
10683 (clobber_overlapping_mems): Make sure we have a MEM.
10684 (local_get_addr_clear_given_value): New.
10685 (val_reset): Clear local cached entries.
10686 (compute_bb_dataflow): Create and release the local cache.
10687 Disable duplicate MEMs clobbering.
10688 (emit_notes_in_bb): Clobber MEMs likewise.
10689 (vt_emit_notes): Create and release the local cache.
10690 (vt_initialize, vt_finalize): Create and release the global
10691 cache, respectively.
10692 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
10694 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10696 PR libmudflap/53359
10697 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10698 not found in the symtab.
10700 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10703 PR rtl-optimization/55547
10704 PR rtl-optimization/53827
10707 * alias.c (offset_overlap_p): New, factored out of...
10708 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10709 the conservative special case for symbolic constants. Don't
10710 adjust zero sizes on alignment.
10712 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10714 PR rtl-optimization/52573
10715 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10716 REG_UNUSED for the same register.
10718 2013-01-17 Richard Biener <rguenther@suse.de>
10719 Marek Polacek <polacek@redhat.com>
10721 PR rtl-optimization/55833
10722 * loop-unswitch.c (unswitch_loops): Move loop verification...
10723 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10724 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10725 Set it to true when we're removing a loop from hierarchy tree in
10726 an irreducible region.
10727 (fix_bb_placements): Adjust caller.
10728 (fix_loop_placements): Likewise.
10730 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
10732 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10733 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10734 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10735 Remove ID. Adjust comments.
10736 * config/avr/avr-c.c (avr_builtin_name): Remove.
10737 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10738 * config/avr/avr.c (avr_tolower): New static function.
10739 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10740 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10741 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10744 2013-01-17 Jan Hubicka <jh@suse.cz>
10746 PR tree-optimization/55273
10747 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10749 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
10752 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10753 store through atomic_store<mode>_1.
10754 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10756 2013-01-17 Martin Jambor <mjambor@suse.cz>
10758 PR tree-optimizations/55264
10759 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10760 for virtual methods.
10761 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10762 virtual methods before inlining is over.
10763 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10765 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10768 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10770 PR rtl-optimization/56005
10771 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10772 pending reads for prefetch.
10774 2013-01-16 Ian Bolton <ian.bolton@arm.com>
10776 * config/aarch64/aarch64.md
10777 (*cstoresi_neg_uxtw): New pattern.
10778 (*cmovsi_insn_uxtw): New pattern.
10779 (*<optab>si3_uxtw): New pattern.
10780 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10781 (*<optab>si3_insn_uxtw): New pattern.
10782 (*bswapsi2_uxtw): New pattern.
10784 2013-01-16 Richard Biener <rguenther@suse.de>
10786 * tree-inline.c (tree_function_versioning): Remove set but
10787 never used variable.
10789 2013-01-16 Richard Biener <rguenther@suse.de>
10791 PR tree-optimization/55964
10792 * tree-flow.h (rename_variables_in_loop): Remove.
10793 (rename_variables_in_bb): Likewise.
10794 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10795 (copy_loop_before): Adjust and delete update-ssa status.
10796 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
10797 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
10798 (rename_variables_in_loop): Remove.
10799 (slpeel_update_phis_for_duplicate_loop): Likewise.
10800 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10801 use available cfg machinery instead of duplicating it.
10802 Update PHI nodes and perform poor-mans SSA update here.
10803 (slpeel_tree_peel_loop_to_edge): Adjust.
10805 2013-01-16 Richard Biener <rguenther@suse.de>
10807 PR tree-optimization/54767
10808 PR tree-optimization/53465
10809 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10810 (vrp_visit_phi_node): For PHI arguments coming via backedges
10811 drop all symbolical range information.
10812 (execute_vrp): Compute backedges.
10814 2013-01-16 Richard Biener <rguenther@suse.de>
10816 * doc/install.texi: Update CLooG and ISL requirements to
10819 2013-01-16 Christian Bruel <christian.bruel@st.com>
10822 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10823 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10824 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10826 2013-01-16 DJ Delorie <dj@redhat.com>
10828 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10829 (UNSPECV_SP_SWITCH_E): New.
10830 (sp_switch_1): Change to an unspec.
10831 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10834 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
10836 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10837 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10838 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10839 (expand_mem_thread_fence): Ditto.
10840 (expand_mem_signal_fence): Ditto.
10841 (expand_atomic_load): Ditto.
10842 (expand_atomic_store): Ditto.
10844 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
10846 PR rtl-optimization/55547
10847 PR rtl-optimization/53827
10850 * alias.c (memrefs_conflict_p): Set sizes to negative after
10853 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10856 * function.c (thread_prologue_and_epilogue_insns): Always
10857 add crtl->drap_reg to set_up_by_prologue.set, even if
10858 stack_realign_drap is false.
10860 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10862 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10863 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10864 *call): Fix indention.
10866 2013-01-15 Tom de Vries <tom@codesourcery.com>
10869 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10872 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10874 PR rtl-optimization/55153
10875 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10877 2013-01-15 Martin Jambor <mjambor@suse.cz>
10879 PR tree-optimization/55920
10880 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10881 accesses as grp_to_be_debug_replaced.
10883 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10885 PR tree-optimization/55920
10886 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10887 there is non-useless type conversion needed from debug rhs to lhs,
10888 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10890 2013-01-15 Joseph Myers <joseph@codesourcery.com>
10891 Mikael Pettersson <mikpe@it.uu.se>
10894 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10896 (ASM_OUTPUT_CASE_LABEL): Remove.
10897 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10898 * final.c (shorten_branches): Update alignment of labels before
10899 jump tables if CASE_VECTOR_SHORTEN_MODE.
10901 2013-01-15 Richard Biener <rguenther@suse.de>
10904 * system.h: Do not include gmp.h for building host tools.
10906 2013-01-15 Richard Biener <rguenther@suse.de>
10908 PR middle-end/55882
10909 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10910 account for bitpos when computing alignment.
10912 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10914 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10915 (ix86_target_macros_internal): Likewise.
10917 * config/i386/i386.c (m_CORE2I7): Removed.
10918 (m_CORE_HASWELL): New macro.
10919 (m_CORE_ALL): Likewise.
10920 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10921 (initial_ix86_arch_features): Likewise.
10922 (processor_target_table): Initializations for Core avx2.
10923 (cpu_names): New names "core-avx2".
10924 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10925 PROCESSOR_CORE_HASWELL.
10926 (ix86_issue_rate): New case.
10927 (ia32_multipass_dfa_lookahead): Likewise.
10928 (ix86_sched_init_global): Likewise.
10930 * config/i386/i386.h (TARGET_HASWELL): New macro.
10931 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10932 (processor_type): New PROCESSOR_HASWELL.
10934 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10936 PR tree-optimization/55955
10937 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10938 *SHIFT_EXPR and *ROTATE_EXPR codes.
10940 PR tree-optimization/48766
10941 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10942 -ftrapv disable -fwrapv.
10944 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10947 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10948 etc. to 1 and not to __flash.
10949 Use LL suffix for __INT24_MAX__ with -mint8.
10950 Use ULL suffix for __UINT24_MAX__ with -mint8.
10952 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10954 * config/avr/avr-arch.h
10955 (struct base_arch_s): Use typedef avr_arch_t instead.
10956 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10957 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10958 * config/avr/avr.c: Same.
10959 * config/avr/avr-devices.c: Same.
10960 * config/avr/driver-avr.c: Same.
10961 * config/avr/gen-avr-mmcu-texi.c: Same.
10962 * config/avr/avr-mcus.def: Adjust comment.
10964 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10966 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10967 * config/aarch64/iterators.md (VALLDI): New.
10969 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
10970 Andi Kleen <ak@linux.intel.com>
10973 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10974 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10977 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10979 * config/avr/avr-stdint.h: Remove trailing blanks.
10980 * config/avr/avr-log.h: Same.
10981 * config/avr/avr-arch.h: Same.
10982 * config/avr/avr-devices.c: Same.
10983 * config/avr/avr-dimode.md: Same.
10984 * config/avr/predicates.md: Same.
10985 * config/avr/avr-c.c: Same. And fix typo.
10987 * config/avr/avr-protos.h: Same. And:
10988 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10989 (init_cumulative_args): Rename to avr_init_cumulative_args.
10990 (expand_prologue): Rename to avr_expand_prologue.
10991 (expand_epilogue): Rename to avr_expand_epilogue.
10992 (adjust_insn_length): Rename to avr_adjust_insn_length.
10993 (notice_update_cc): Rename to avr_notice_update_cc.
10994 (final_prescan_insn): Rename to avr_final_prescan_insn.
10995 * config/avr/avr.c: Same.
10996 * config/avr/avr.h: Same.
10997 * config/avr/avr.md: Remove trailing blanks.
10998 (prologue): Use avr_expand_prologue.
10999 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11001 2013-01-14 Richard Biener <rguenther@suse.de>
11003 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11004 verify_location, collect_subblocks): New functions.
11005 (verify_gimple_in_cfg): Verify that locations only reference
11006 BLOCKs in the functions BLOCK tree.
11008 2013-01-14 Richard Biener <rguenther@suse.de>
11010 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11012 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11014 (insert_out_of_ssa_copy_on_edge): Likewise.
11015 (rewrite_close_phi_out_of_ssa): Likewise.
11016 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11018 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11019 propagated constants.
11020 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11023 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11025 * config/avr/avr-modes.def: Add GPL copyright notice.
11027 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11029 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11030 MEMMODEL_MASK to determine memory model.
11031 (atomic_store<mode>): Ditto from operands[2].
11032 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11034 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11037 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11038 (fold_gimple_assign): Don't call unshare_expr here.
11039 (fold_ctor_reference): Call unshare_expr.
11041 2013-01-13 Terry Guo <terry.guo@arm.com>
11043 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11044 * doc/fragments.texi: Document MULTILIB_REUSE.
11045 * gcc.c (multilib_reuse): New internal spec.
11046 (set_multilib_dir): Also search multilib from multilib_reuse.
11047 * genmultilib (tmpmultilib3): Refactor code.
11048 (tmpmultilib4): Ditto.
11049 (multilib_reuse): New multilib argument.
11051 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11053 * Makefile.in: Update copyright.
11055 2013-01-12 Tom de Vries <tom@codesourcery.com>
11057 PR middle-end/55890
11058 * calls.c (expand_call): Check if arg_nr is valid.
11060 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11062 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11063 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11064 documentation. Add missing '__' in front of
11065 __builtin_ia32_packssdw256.
11067 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11070 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11071 NO_REGS for larl operands.
11072 (s390_reload_larl_operand): Use s390_load_address instead of
11075 2013-01-11 Richard Biener <rguenther@suse.de>
11077 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11078 (verify_node_sharing): ... here.
11079 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11081 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11083 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11084 Substitute TREECHECKING.
11085 * configure: Regenerate.
11086 * Makefile.in (TREECHECKING): New.
11088 2013-01-11 Richard Guenther <rguenther@suse.de>
11090 PR tree-optimization/44061
11091 * tree-vrp.c (extract_range_basic): Compute zero as
11092 value-range for __builtin_constant_p of function parameters.
11094 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11096 Update copyright years.
11098 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11100 PR rtl-optimization/55672
11101 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11102 const to be eliminable.
11104 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11106 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11107 * configure: Regenerate.
11109 2013-01-10 Richard Biener <rguenther@suse.de>
11111 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11113 2013-01-10 Richard Biener <rguenther@suse.de>
11116 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11117 locations for virtual PHI arguments.
11118 (rewrite_update_phi_arguments): Likewise.
11120 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11122 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11125 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11127 PR tree-optimization/55921
11128 * tree-complex.c (expand_complex_asm): New function.
11129 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11131 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11134 * config/s390/s390.c (s390_symref_operand_p)
11135 (s390_loadrelative_operand_p): Merge the two functions.
11136 (s390_check_qrst_address, print_operand_address): Add parameters
11137 to s390_loadrelative_operand_p invokation.
11138 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11139 (s390_reload_larl_operand, s390_secondary_reload): Use
11140 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11141 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11143 2013-01-09 Mike Stump <mikestump@comcast.net>
11145 * dse.c (record_store): Remove unnecessary assert.
11147 2013-01-09 Jan Hubicka <jh@suse.cz>
11149 PR tree-optimization/55569
11150 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11151 * cfgloop.h (scale_loop_profile): Likewise.
11153 2013-01-09 Jan Hubicka <jh@suse.cz>
11156 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11158 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11160 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11162 PR middle-end/55114
11163 * expr.h (maybe_emit_group_store): Declare.
11164 * expr.c (maybe_emit_group_store): New function.
11165 * builtins.c (expand_builtin_int_roundingfn): Call it.
11166 (expand_builtin_int_roundingfn_2): Likewise.
11168 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11170 PR rtl-optimization/55829
11171 * lra-constraints.c (match_reload): Add code for absent output.
11172 (curr_insn_transform): Add code for reloads of matched inputs
11175 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11177 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11178 attribute of movddup insn to DF.
11179 (*vec_interleave_lowv2df): Ditto.
11180 (vec_dupv2df): Ditto.
11182 2013-01-09 Jan Hubicka <jh@suse.cz>
11184 PR tree-optimiation/55875
11185 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11186 EVERY_ITERATION parameter.
11187 (number_of_iterations_exit): Check if exit is executed every iteration.
11188 (idx_infer_loop_bounds): Similarly here.
11189 (n_of_executions_at_most): Simplify
11190 to only test for cases where statement is dominated by the
11191 particular bound; handle correctly the "postdominance" test.
11192 (scev_probably_wraps_p): Use max loop iterations info
11193 as a global bound first.
11195 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11196 Nick Clifton <nickc@redhat.com>
11198 * config/v850/v850.md (cbranchsf4): New pattern.
11199 (cstoresf4): New pattern.
11200 (cbranchdf4): New pattern.
11201 (cstoredf4): New pattern.
11202 (movsicc): Disallow floating point comparisons.
11203 (cmpsf_le_insn): Fix order of operators.
11204 (cmpsf_lt_insn): Likewise.
11205 (cmpsf_eq_insn): Likewise.
11206 (cmpdf_le_insn): Likewise.
11207 (cmpdf_lt_insn): Likewise.
11208 (cmpdf_eq_insn): Likewise.
11209 (cmpsf_ge_insn): Use LE comparison.
11210 (cmpdf_ge_insn): Likewise.
11211 (cmpsf_gt_insn): Use LT comparison.
11212 (cmpdf_gt_insn): Likewise.
11213 (cmpsf_ne_insn): Delete pattern.
11214 (cmpdf_ne_insn): Delete pattern.
11215 * config/v850/v850.c (v850_gen_float_compare): Use
11216 gen_cmpdf_eq_insn for NE comparison.
11217 (v850_float_z_comparison_operator)
11218 (v850_float_nz_comparison_operator): Move from here ...
11219 * config/v850/predicates.md: ... to here. Move GT and GE
11220 comparisons into v850_float_z_comparison_operator.
11221 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11223 (v850_float_nz_comparison_operator): Likewise.
11225 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11227 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11228 with calls to gen_insvsi/gen_insvdi.
11230 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11232 * config/i386/i386.c (initial_ix86_tune_features): Set up
11233 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11235 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11236 Jakub Jelinek <jakub@redhat.com>
11238 PR tree-optimization/48189
11239 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11240 If nitercst is 0, don't predict the exit edge.
11242 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11244 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11245 in asm_fprintf with reg_names.
11246 (aarch64_print_operand_address): Likewise.
11247 (aarch64_return_addr): Likewise.
11248 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11250 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11252 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11253 (INT_U6_BITS): Likewise.
11254 * config/pa/predicates.md (uint6_operand): New predicate.
11255 (shift5_operand, shift6_operand): Likewise.
11256 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11258 (lshrdi3): Use shift6_operand.
11259 (shrpsi4, shrpdi4): New insn patterns.
11260 (extzv): Delete expander.
11261 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11262 predicates in unamed zero extract patterns. Tighten common constraint.
11263 (extv): Delete expander.
11264 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11265 predicates in unamed sign extract patterns. Tighten common constraint.
11266 (insv): Delete expander.
11267 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11268 predicates in unamed insert patterns. Tighten common constraint.
11269 Change uint32_operand predicate to uint6_operand predicate in unamed
11270 DImode pattern to insert constant values of type 1...1xxxx.
11272 2013-01-04 Jan Hubicka <jh@suse.cz>
11274 PR tree-optimization/55823
11275 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11278 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11279 Uros Bizjak <ubizjak@gmail.com>
11281 PR rtl-optimization/55845
11282 * df-problems.c (can_move_insns_across): Stop scanning at
11283 volatile_insn_p source instruction or give up if
11284 across_from .. across_to range contains any volatile_insn_p
11287 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11289 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11290 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11292 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11293 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11295 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11298 * asan.c (asan_clear_shadow): New function.
11299 (asan_emit_stack_protection): Use it.
11301 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11303 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11304 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11305 with tab instead of space.
11307 2013-01-08 Nick Clifton <nickc@redhat.com>
11309 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11310 register bank 0 at the start of an interrupt handler.
11311 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11314 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11316 * config/aarch64/aarch64-simd.md
11317 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11318 (aarch64_simd_bsl): Likewise.
11319 (aarch64_vcond_internal<mode>): Likewise.
11320 (vcond<mode><mode>): Likewise.
11321 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11322 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11324 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11326 * config/aarch64/aarch64-builtins.c
11327 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11329 2013-01-08 Martin Jambor <mjambor@suse.cz>
11332 * tree-sra.c (analyze_access_subtree): Return true also after
11333 potentially creating a debug-only replacement.
11335 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11337 PR middle-end/55890
11338 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11340 PR tree-optimization/54120
11341 * tree-vrp.c (range_fits_type_p): Don't allow
11342 src_precision < precision from signed vr to unsigned_p
11343 if vr->min or vr->max is negative.
11344 (simplify_float_conversion_using_ranges): Test can_float_p
11345 against CODE_FOR_nothing.
11347 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11348 Richard Biener <rguenther@suse.de>
11350 PR middle-end/55851
11351 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11352 types instead of just INTEGER_TYPE types.
11354 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11356 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11359 2013-01-07 Steve Ellcey <sellcey@mips.com>
11362 * config/mips/mips.opt: Change mad to mmad to match documentation.
11364 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11367 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11368 .progmemx.data now.
11370 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11373 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11374 (avr_addrspace_t): Add .section_name field.
11375 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11377 (avr_addrspace): Same. Initialize .section_name. Remove last
11378 NULL entry. Put __memx into .progmemx.data.
11379 (progmem_section_prefix): Remove.
11380 (avr_asm_init_sections): No need to initialize progmem_section.
11381 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11382 section name prefix.
11383 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11384 retrieve the progmem section.
11385 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11386 boundary to run over avr_addrspace[].
11387 (avr_register_target_pragmas): Ditto.
11389 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11391 * varasm.c (output_constant_def_contents): For asan_protect_global
11392 protected strings, adjust DECL_ALIGN if needed, before testing for
11394 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11395 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11397 (output_object_block): For asan protected decls, emit asan padding
11398 after their contents.
11399 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11400 (asan_finish_file): Test it here instead.
11402 2013-01-07 Nick Clifton <nickc@redhat.com>
11403 Matthias Klose <doko@debian.org>
11404 Doug Kwan <dougkwan@google.com>
11405 H.J. Lu <hongjiu.lu@intel.com>
11408 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11410 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11412 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11414 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11416 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11418 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11421 * doc/install.texi (Cross-Compiler-Specific Options): Document
11424 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11426 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11427 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11428 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11429 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11430 vqmovun_high_s64): Fix source operand number and update copyright.
11432 2013-01-07 Richard Biener <rguenther@suse.de>
11434 PR middle-end/55890
11435 * gimple.h (gimple_call_builtin_p): New overload.
11436 * gimple.c (validate_call): New function.
11437 (gimple_call_builtin_p): Likewise.
11438 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11439 Use gimple_call_builtin_p.
11440 (find_func_clobbers): Likewise.
11441 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11442 (strlen_optimize_stmt): Likewise.
11444 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11446 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11447 (vld1q_dup_*): Likewise.
11448 (vld1_*): Likewise.
11449 (vld1q_*): Likewise.
11450 (vld1_lane_*): Likewise.
11451 (vld1q_lane_*): Likewise.
11453 2013-01-07 Richard Biener <rguenther@suse.de>
11455 * lto-streamer.h (LTO_minor_version): Bump to 2.
11457 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11459 * config/aarch64/aarch64-protos.h
11460 (aarch64_const_double_zero_rtx_p): Rename to...
11461 (aarch64_float_const_zero_rtx_p): ...this.
11462 (aarch64_float_const_representable_p): New.
11463 (aarch64_output_simd_mov_immediate): Likewise.
11464 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11465 move immediate case.
11466 * config/aarch64/aarch64.c
11467 (aarch64_const_double_zero_rtx_p): Rename to...
11468 (aarch64_float_const_zero_rtx_p): ...this.
11469 (aarch64_print_operand): Allow printing of new constants.
11470 (aarch64_valid_floating_const): New.
11471 (aarch64_legitimate_constant_p): Check for valid floating-point
11473 (aarch64_simd_valid_immediate): Likewise.
11474 (aarch64_vect_float_const_representable_p): New.
11475 (aarch64_float_const_representable_p): Likewise.
11476 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11477 (aarch64_output_simd_mov_immediate): New.
11478 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11479 (*movdf_aarch64): Likewise.
11480 * config/aarch64/constraints.md (Ufc): New.
11481 (Y): call aarch64_float_const_zero_rtx.
11482 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11484 2013-01-07 Richard Biener <rguenther@suse.de>
11486 PR tree-optimization/55888
11487 PR tree-optimization/55862
11488 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11489 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11490 not if it is contained therein.
11492 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11494 * config/avr/t-avr: Typo.
11496 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11499 * config/avr/t-avr: Don't automatically rebuild
11500 $(srcdir)/config/avr/t-multilib
11501 $(srcdir)/config/avr/avr-tables.opt
11502 $(srcdir)/doc/avr-mmcu.texi
11503 (avr-mcus): New phony target to build them on request.
11504 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11505 * avr/avr-mcus.def: Adjust comments.
11507 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
11509 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11511 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11513 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11515 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11517 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11519 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
11521 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11522 to generate profiling.
11523 * config/rs6000/aix64.h (LIB_SPEC): Same.
11525 2013-01-04 Andrew Pinski <apinski@cavium.com>
11527 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11529 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11531 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
11533 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11535 (ix86_expand_move): Ditto.
11536 (ix86_zero_extend_to_Pmode): Ditto.
11537 (ix86_expand_call): Ditto.
11538 (ix86_expand_special_args_builtin): Ditto.
11539 (ix86_expand_builtin): Ditto.
11541 2013-01-04 Richard Biener <rguenther@suse.de>
11543 PR tree-optimization/55862
11544 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11545 translating them through PHI nodes.
11547 2013-01-04 Martin Jambor <mjambor@suse.cz>
11549 PR tree-optimization/55755
11550 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11551 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11553 2013-01-04 Marek Polacek <polacek@redhat.com>
11555 PR middle-end/55859
11556 * opts.c (default_options_optimization): Clarify error message.
11558 2013-01-04 Richard Biener <rguenther@suse.de>
11560 PR middle-end/55863
11561 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11564 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11567 * config/pa/pa.md (movsi): Revert previous change.
11568 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11571 2013-01-03 Richard Henderson <rth@redhat.com>
11573 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11574 after eliminating TLS symbols.
11576 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
11579 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11580 * graphite-poly.c (debug_gmp_value): Likewise.
11582 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
11585 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11586 selected code model, define __code_mode_small__, __code_model_medium__,
11587 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11588 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11589 xchg temporary register with %k. Declare temporary register as
11591 [__x86_64__]: For medium and large code models, preserve %rbx register.
11593 2013-01-03 Richard Biener <rguenther@suse.de>
11595 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
11596 (dump_subscript): Adjust.
11597 (finalize_ddr_dependent): Do not dump redundant info.
11598 (analyze_siv_subscript): Adjust.
11599 (subscript_dependence_tester): Likewise.
11600 (compute_affine_dependence): Likewise.
11602 2013-01-03 Richard Biener <rguenther@suse.de>
11605 2013-01-03 Richard Biener <rguenther@suse.de>
11607 PR tree-optimization/55857
11608 * tree-vect-stmts.c (vectorizable_load): Do not setup
11609 re-alignment for invariant loads.
11611 2013-01-02 Richard Biener <rguenther@suse.de>
11613 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11614 invariant load do not generate a vector load from the scalar location.
11616 2013-01-03 Richard Biener <rguenther@suse.de>
11618 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11619 for not vectorizing.
11620 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11621 not build INDIRECT_REFs, call get_name once only.
11622 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11623 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11625 2013-01-03 Richard Biener <rguenther@suse.de>
11627 PR tree-optimization/55857
11628 * tree-vect-stmts.c (vectorizable_load): Do not setup
11629 re-alignment for invariant loads.
11631 2013-01-03 Richard Biener <rguenther@suse.de>
11634 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11635 prefer a built-in decl.
11637 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11639 * gcc.c (process_command): Update copyright notice dates.
11640 * gcov.c (print_version): Likewise.
11641 * gcov-dump.c (print_version): Likewise.
11643 PR rtl-optimization/55838
11644 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11645 iv0.step, iv1.step and step.
11647 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11648 Marc Glisse <marc.glisse@inria.fr>
11650 PR tree-optimization/55832
11651 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11652 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11653 integer_{one,zero}_node.
11655 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11658 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11659 * var-tracking.c (reverse_op): Don't add reverse ops to
11660 VALUEs that have already
11661 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
11663 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11665 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11667 2013-01-02 Teresa Johnson <tejohnson@google.com>
11669 * dumpfile.c (dump_loc): Print filename with location.
11670 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11671 new location_t parameter to emit complete unroll message with
11672 new dump framework.
11673 (canonicalize_loop_induction_variables): Compute loops location
11674 and pass to try_unroll_loop_completely.
11675 * loop-unroll.c (report_unroll_peel): New function.
11676 (peel_loops_completely): Use new dump format with location
11677 for main dumpfile message, and invoke report_unroll_peel on success.
11678 (decide_unrolling_and_peeling): Ditto.
11679 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11680 by report_unroll_peel.
11681 (decide_peel_completely): Ditto.
11682 (decide_unroll_constant_iterations): Ditto.
11683 (decide_unroll_runtime_iterations): Ditto.
11684 (decide_peel_simple): Ditto.
11685 (decide_unroll_stupid): Ditto.
11686 * cfgloop.c (get_loop_location): New function.
11687 * cfgloop.h (get_loop_location): Declare.
11689 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11691 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11694 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11696 PR middle-end/55198
11697 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11698 BLKmode objects when EXPAND_MEMORY is specified.
11700 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11702 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11704 (fold_builtin_cpu): Do not share cpu model decls across statements.
11706 2013-01-02 Jason Merrill <jason@redhat.com>
11709 * tree.c (build_array_type_1): Revert earlier change.
11711 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11713 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11715 * config/aarch64/aarch64-tune.md: Re-generate.
11717 2013-01-02 Richard Biener <rguenther@suse.de>
11719 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11720 invariant load do not generate a vector load from the scalar location.
11722 2013-01-02 Richard Biener <rguenther@suse.de>
11725 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11726 * configure: Regenerate.
11728 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11730 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11731 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11732 (expand_builtin_int_roundingfn_2): Keep the original target around
11733 for the fallback case.
11735 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11737 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11738 to be clear for sign changes.
11740 2013-01-01 Jan Hubicka <jh@suse.cz>
11742 * ipa-inline-analysis.c: Fix formatting.
11744 2013-01-01 Jakub Jelinek <jakub@redhat.com>
11746 PR tree-optimization/55831
11747 * tree-vect-loop.c (get_initial_def_for_induction): Use
11748 gsi_after_labels instead of gsi_start_bb.
11750 Copyright (C) 2013 Free Software Foundation, Inc.
11752 Copying and distribution of this file, with or without modification,
11753 are permitted in any medium without royalty provided the copyright
11754 notice and this notice are preserved.