1 2013-06-05 Richard Biener <rguenther@suse.de>
3 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
4 index associated with the tree we are supposed to replace.
5 * tree-streamer-out.c (pack_ts_base_value_fields): Output
6 TREE_ASM_WRITTEN as zero for everything but SSA names.
8 2013-06-05 David Malcolm <dmalcolm@redhat.com>
10 * tree-ssa-structalias.c (call_stmt_vars): Make static.
12 2013-06-04 Jan Hubicka <jh@suse.cz>
14 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
15 (input_node, input_varpool_node): Handle correctly external same
17 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
18 nodes at ltrans stage.
20 2013-06-04 Jan Hubicka <jh@suse.cz>
22 * ipa-inline.c (update_caller_keys): Fix availability test.
23 (update_callee_keys): Likewise.
24 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25 to follow ELF standard.
27 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
29 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
30 (mips64r5900el-*-elf*): New configurations.
31 * config/mips/mips-cpus.def (r5900): New processor.
32 * config/mips/mips-tables.opt: Regenerate.
33 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
34 (mips_issue_rate): Handle PROCESSOR_R5900.
35 (mips_reorg_process_insns): Force reorder mode for the R5900.
36 * config/mips/mips.h (TARGET_MIPS5900): Define.
37 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
39 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
41 * config/mips/mips.md (processor): Add r5900.
42 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
44 2013-06-04 Ian Bolton <ian.bolton@arm.com>
46 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
47 into function to generate MOVI instruction.
48 * config/aarch64/aarch64.c (aarch64_simd_container_mode):
50 (aarch64_preferred_simd_mode): Turn into wrapper.
51 (aarch64_output_scalar_simd_mov_immediate): New function.
52 * config/aarch64/aarch64-protos.h: Add prototype for above.
54 2013-06-04 Ian Bolton <ian.bolton@arm.com>
56 * config/aarch64/aarch64.c (simd_immediate_info): Remove
58 (sizetochar): Return signed char.
59 (aarch64_simd_valid_immediate): Remove elchar and other
60 unnecessary variables.
61 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
62 Calculate element_char as required.
63 * config/aarch64/aarch64-protos.h: Update and move prototype
64 for aarch64_output_simd_mov_immediate.
65 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
68 2013-06-04 Ian Bolton <ian.bolton@arm.com>
70 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
71 information completed by aarch64_simd_valid_immediate.
72 (aarch64_legitimate_constant_p): Update arguments.
73 (aarch64_simd_valid_immediate): Work with struct rather than many
75 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
76 (aarch64_simd_make_constant): Update arguments.
77 (aarch64_output_simd_mov_immediate): Work with struct rather than
78 many pointers. Output immediate directly rather than as operand.
79 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
81 * config/aarch64/constraints.md (Dn): Update arguments.
83 2013-06-04 Ian Bolton <ian.bolton@arm.com>
85 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
87 (aarch64_simd_immediate_valid_for_move): Remove.
88 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
89 (aarch64_simd_make_constant): Update call.
90 (aarch64_output_simd_mov_immediate): Update call.
91 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
93 * config/aarch64/constraints.md (Dn): Update call.
95 2013-06-04 Ian Bolton <ian.bolton@arm.com>
97 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
98 return type to bool for prototype.
99 (aarch64_legitimate_constant_p): Check for true instead of not -1.
100 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
101 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
103 2013-06-04 Catherine Moore <clm@codesourcery.com>
105 * config/mips/mips.opt (meva): New.
106 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS):
108 (ASM_SPEC): Handle -meva.
109 * doc/invoke.texi (meva): Document.
111 2013-06-04 Alan Modra <amodra@gmail.com>
113 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
116 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
118 * rtl.def: Add extra fourth optional field to define_cond_exec.
119 * gensupport.c (process_one_cond_exec): Process attributes from
121 * doc/md.texi: Document fourth field in define_cond_exec.
123 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
125 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
126 out the processing order as in store_bit_field_1.
128 2013-06-04 Jan Hubicka <jh@suse.cz>
131 * cgraphunit.c (cgraph_process_same_body_aliases): Create
132 non-VAR_DECL node if it does not exist yet.
134 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
136 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
137 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
138 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
139 target_cpu_default setting.
141 2013-06-03 Teresa Johnson <tejohnson@google.com>
143 * dumpfile.c (opt_info_switch_p): Change -fopt-info
144 default to -fopt-info=optimized instead of all.
145 * doc/invoke.texi: Ditto.
146 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
147 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
148 (execute_vect_slp): Emit BB vectorization success under
149 MSG_OPTIMIZED_LOCATIONS.
150 * tree-vect-slp.c (vect_slp_transform_bb): Change
151 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
152 * tree-vect-loop.c (vect_transform_loop): Ditto.
154 2013-06-03 Jason Merrill <jason@redhat.com>
157 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
158 Use TARGET_EXPR for C++.
160 2013-06-03 Jakub Jelinek <jakub@redhat.com>
162 PR rtl-optimization/57268
163 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
164 if DEBUG_INSN_P (insn).
167 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
169 PR rtl-optimization/57268
170 * sched-deps.c (sched_analyze_2): Flush dependence lists if
171 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
173 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
175 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
176 (ix86_avoid_lea_for_addr): Likewise.
177 (exact_dependency_1): Likewise.
178 (ix86_adjust_cost): Likewise.
179 (swap_top_of_ready_list): Fix formatting and !reload_completed check
181 (do_reorder_for_imul): Fix typo, formatting and
182 !reload_completed check removed.
183 (ix86_sched_reorder): Fix typo and formatting.
184 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
187 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
189 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
191 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
193 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
194 <STRING_CST>: Likewise.
195 <VECTOR_CST>: Likewise.
197 2013-06-01 Janus Weil <janus@gcc.gnu.org>
198 Mikael Morin <mikael@gcc.gnu.org>
200 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
201 * config.in: Regenerated.
202 * configure: Regenerated.
204 2013-06-01 Jan Hubicka <jh@suse.cz>
207 * cgraphunit.c (compile): When weakref is not supported,
208 set up transparent aliases before final output pass.
209 * varasm.c (assemble_alias): Do not try to do it here.
211 2013-06-01 Jan Hubicka <jh@suse.cz>
214 * passes.c (for_per_function): Skip unanalyzed functions.
216 2013-06-01 Jan Hubicka <jh@suse.cz>
218 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
219 (lto_symtab_merge_symbols_1): ... this one.
220 (lto_symtab_merge_cgraph_nodes): Rename to ...
221 (lto_symtab_merge_symbols): ... this one; simplify.
222 * cgraph.c (same_body_aliases_done): Rename to ...
223 (cpp_implicit_aliases_done): ... this one.
224 (cgraph_create_function_alias): Update.
225 (cgraph_same_body_alias): Update.
226 (dump_cgraph_node): Remove alias dumping; simplify
228 (verify_edge_corresponds_to_fndecl): Simplify.
229 * cgraph.h (symtab_node_base): Add cpp_implicit_alias,
231 (cgraph_node): Remove same_body_alias.
232 (varpool_node): Remove alias_of and extra_name_alias.
233 (same_body_aliases_done): Rename to ..
234 (cpp_implicit_aliases_done): ... this one.
235 (symtab_alias_ultimate_target): Add default parameter.
236 (symtab_resolve_alias): New function.
237 (fixup_same_cpp_alias_visibility): Declare.
238 (cgraph_function_node): Add default parameter.
239 (cgraph_node_asm_name): Likewise.
240 (cgraph_function_or_thunk_node): Add default parameter; do
241 not ICE when it is NULL.
242 (varpool_variable_node): Likewise.
243 * tree-emutls.c (create_emultls_var): Update.
244 (ipa_lower_emutls): Update.
245 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
246 (cgraph_reset_node): Reset alias info.
247 (cgraph_finalize_function): Update.
248 (fixup_same_cpp_alias_visibility): Move to symtab.c.
249 (analyze_function): Simplify.
250 (cgraph_process_same_body_aliases): Simplify.
251 (analyze_functions): Fixup same body aliases.
252 (handle_alias_pairs): Simplify.
253 (assemble_thunk): Update.
254 (assemble_thunks_and_aliases): Update.
255 (output_weakrefs): Rewrite.
256 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
257 (lto_output_varpool_node): Likewise.
258 (compute_ltrans_boundary): Remve assert.
259 (get_alias_symbol): New functoin.
260 (input_node): Rewrite alias handling.
261 (input_varpool_node): Likewise.
262 * ipa-pure-const.c (propagate_pure_const): Fix formating.
263 * ipa.c (process_references): Handle weakrefs correctly.
264 (symtab_remove_unreachable_nodes): Likewise.
265 * trans-mem.c (get_cg_data): Update.
266 (ipa_tm_create_version_alias): Update.
267 (ipa_tm_execute): Update.
268 * symtab.c (dump_symtab_base): Dump aliases.
269 (verify_symtab_base): Verify aliases.
270 (symtab_node_availability): New function.
271 (symtab_alias_ultimate_target): Simplify.
272 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
273 handle all the fixup cases.
274 (symtab_resolve_alias): New function.
275 * passes.c (ipa_write_summaries): Handle weakrefs.
276 * varpool.c (varpool_analyze_node): Simplify.
277 (assemble_aliases): Update.
278 (varpool_create_variable_alias): Simplify.
279 (varpool_extra_name_alias): Simplify.
280 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
281 (lto_symtab_merge_symbols): ... this one.
283 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
286 PR rtl-optimization/57268
287 * sched-deps.c (sched_analyze_2): Flush dependence lists if
288 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
290 2013-06-01 Tobias Burnus <burnus@net-b.de>
293 2013-05-31 Tobias Burnus <burnus@net-b.de>
296 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
299 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
301 PR rtl-optimization/57268
302 * sched-deps.c (sched_analyze_2): Flush dependence lists if
303 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
305 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
307 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
308 unordered comparison operators when -fno-trapping-math is in effect
310 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
311 and implement unordered comparison operators properly on the e500.
313 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
315 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
316 for constant scalar integers.
317 (simplify_relational_operation_1): Likewise.
319 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
321 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
322 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
325 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
326 Igor Zamyatin <igor.zamyatin@intel.com>
328 Silvermont (SLM) architecture performance tuning.
329 * config/i386/i386.h (enum ix86_tune_indices): Add
330 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
331 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
333 * config/i386/i386.c (initial_ix86_tune_features)
334 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
335 (ix86_lea_outperforms): Handle Silvermont tuning.
336 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
338 (ix86_use_lea_for_mov): Likewise.
339 (ix86_avoid_lea_for_addr): Likewise.
340 (ix86_lea_for_add_ok): Likewise.
341 (exact_dependency_1): New function.
342 (exact_store_load_dependency): Likewise.
343 (ix86_adjust_cost): Handle Silvermont tuning.
344 (do_reoder_for_imul): Likewise.
345 (swap_top_of_ready_list): New function.
346 (ix86_sched_reorder): Changed to handle Silvermont tuning.
348 * config/i386/i386.md (peepholes that split memory operand in fp
351 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
353 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
354 Remove un-necessary braces.
356 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
358 * config/aarch64/aarch64.c (aarch64_classify_symbol):
359 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
361 2013-05-31 Tobias Burnus <burnus@net-b.de>
364 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
367 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
370 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
371 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
372 * config/arm/neon.md (iordi3_neon): Remove.
373 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
374 * config/arm/predicates.md (imm_for_neon_logic_operand):
375 Move to earlier in the file.
376 (neon_logic_op2): Likewise.
377 (arm_iordi_operand_neon): New predicate.
379 2013-05-31 Richard Biener <rguenther@suse.de>
381 PR tree-optimization/57478
382 PR tree-optimization/57453
383 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
386 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
388 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
389 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
391 2013-05-30 Tobias Burnus <burnus@net-b.de>
392 Thomas Koenig <tkoenig@gcc.gnu.org>
395 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
396 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
398 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
400 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
402 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
404 * target.def (register_usage_leveling_p): New hook.
405 * targhooks.c (default_register_usage_leveling_p): New.
406 * targhooks.h (default_register_usage_leveling_p): New prototype.
407 * lra-assigns.c (register_usage_leveling_p): Use the hook.
408 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
409 * doc/tm.texi: Update.
410 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
412 2013-05-30 Ian Bolton <ian.bolton@arm.com>
414 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
415 (*insv_reg<mode>): New define_insn.
417 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
419 PR rtl-optimization/57439
420 * postreload.c (move2add_valid_value_p): Check that we have
421 a zero subreg_regno_offset when accessing the register in
424 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
425 Igor Zamyatin <igor.zamyatin@intel.com>
427 Silvermont (SLM) architecture pipeline model, tuning and
429 * config.gcc: Add slm config options and target.
431 * config/i386/slm.md: New.
433 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
435 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
437 (ix86_target_macros_internal): Likewise.
439 * gcc/config/i386/i386.c (slm_cost): New cost.
440 (m_SLM): New macro flag.
441 (initial_ix86_tune_features): Set m_SLM.
442 (x86_accumulate_outgoing_args): Likewise.
443 (x86_arch_always_fancy_math_387): Likewise.
444 (processor_target_table): Add slm cost.
445 (cpu_names): Add slm cpu name.
446 (x86_option_override_internal): Set SLM ISA.
447 (ix86_issue_rate): New case PROCESSOR_SLM.
448 (ia32_multipass_dfa_lookahead): Likewise.
449 (fold_builtin_cpu): Add slm.
451 * config/i386/i386.h (TARGET_SLM): New target macro.
452 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
453 (processor_type): Add PROCESSOR_SLM.
455 * config/i386/i386.md (cpu): Add new value "slm".
456 (slm.md): Include slm.md.
458 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
459 Zhenqiang Chen <zhenqiang.chen@linaro.org>
461 * config/arm/arm-protos.h: Add and update function protos.
462 * config/arm/arm.c (use_simple_return_p): New added.
463 (thumb2_expand_return): Check simple_return flag.
464 * config/arm/arm.md: Add simple_return and conditional simple_return.
465 * config/arm/iterators.md: Add iterator for return and simple_return.
467 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
469 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
470 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
471 (arm_emit_vfp_multi_reg_pop): Likewise.
472 (thumb2_emit_ldrd_pop): Likewise.
473 (arm_expand_epilogue): Add misc REG_CFA notes.
474 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
476 2013-05-29 Lawrence Crowl <crowl@google.com>
478 * config/arm/t-arm: Update for below.
480 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
481 Change type to hash_table. Update dependent calls and types.
483 * config/i386/t-cygming: Update for below.
485 * config/i386/t-interix: Update for below.
487 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
488 Change type to hash_table. Update dependent calls and types.
489 (i386_find_on_wrapper_list::wrappers): Likewise.
491 * config/ia64/t-ia64: Update for below.
493 * config/ia64/ia64.c (bundle_state_table):
494 Change type to hash_table. Update dependent calls and types.
496 * config/mips/mips.c (mips_reorg_process_insns::htab):
497 Change type to hash_table. Update dependent calls and types.
499 * config/sol2.c (solaris_comdat_htab):
500 Change type to hash_table. Update dependent calls and types.
502 * config/t-sol2: Update for above.
504 2013-05-29 Teresa Johnson <tejohnson@google.com>
506 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
507 functions are not yet marked as defined.
509 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
510 Pat Haugen <pthaugen@us.ibm.com>
511 Peter Bergner <bergner@vnet.ibm.com>
513 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
517 (vrotl<mode>3): Likewise.
518 (vashl<mode>3): Likewise.
519 (vlshr<mode>3): Likewise.
520 (vashr<mode>3): Likewise.
522 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
523 support for power8 V2DI builtins.
525 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
526 power8 V2DI builtins.
543 (vcmpequd): Likewise.
544 (vcmpgtsd): Likewise.
545 (vcmpgtud): Likewise.
546 (vcmpequd_p): Likewise.
547 (vcmpgtsd_p): Likewise.
548 (vcmpgtud_p): Likewise.
566 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
567 support for power8 V2DI instructions.
569 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
570 power8 V2DI instructions. Combine pack and unpack insns to use an
571 iterator for each mode. Check whether a particular mode supports
572 Altivec instructions instead of just checking TARGET_ALTIVEC.
573 (UNSPEC_VPKUWUM): Likewise.
574 (UNSPEC_VPKSHSS): Likewise.
575 (UNSPEC_VPKSWSS): Likewise.
576 (UNSPEC_VPKUHUS): Likewise.
577 (UNSPEC_VPKSHUS): Likewise.
578 (UNSPEC_VPKUWUS): Likewise.
579 (UNSPEC_VPKSWUS): Likewise.
580 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
581 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
582 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
583 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
584 (UNSPEC_VUPKHSB): Likewise.
585 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
586 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
587 (UNSPEC_VUPKHSH): Likewise.
588 (UNSPEC_VUPKLSB): Likewise.
589 (UNSPEC_VUPKLSH): Likewise.
592 (VI_scalar): Likewise.
595 (VP_small): Likewise.
596 (VP_small_lc): Likewise.
598 (add<mode>3): Likewise.
599 (altivec_vaddcuw): Likewise.
600 (altivec_vaddu<VI_char>s): Likewise.
601 (altivec_vadds<VI_char>s): Likewise.
602 (sub<mode>3): Likewise.
603 (altivec_vsubcuw): Likewise.
604 (altivec_vsubu<VI_char>s): Likewise.
605 (altivec_vsubs<VI_char>s): Likewise.
606 (altivec_vavgs<VI_char>): Likewise.
607 (altivec_vcmpbfp): Likewise.
608 (altivec_eq<mode>): Likewise.
609 (altivec_gt<mode>): Likewise.
610 (altivec_gtu<mode>): Likewise.
611 (umax<mode>3): Likewise.
612 (smax<mode>3): Likewise.
613 (umin<mode>3): Likewise.
614 (smin<mode>3): Likewise.
615 (altivec_vpkuhum): Likewise.
616 (altivec_vpkuwum): Likewise.
617 (altivec_vpkshss): Likewise.
618 (altivec_vpkswss): Likewise.
619 (altivec_vpkuhus): Likewise.
620 (altivec_vpkshus): Likewise.
621 (altivec_vpkuwus): Likewise.
622 (altivec_vpkswus): Likewise.
623 (altivec_vpks<VI_char>ss): Likewise.
624 (altivec_vpks<VI_char>us): Likewise.
625 (altivec_vpku<VI_char>us): Likewise.
626 (altivec_vpku<VI_char>um): Likewise.
627 (altivec_vrl<VI_char>): Likewise.
628 (altivec_vsl<VI_char>): Likewise.
629 (altivec_vsr<VI_char>): Likewise.
630 (altivec_vsra<VI_char>): Likewise.
631 (altivec_vsldoi_<mode>): Likewise.
632 (altivec_vupkhsb): Likewise.
633 (altivec_vupkhs<VU_char>): Likewise.
634 (altivec_vupkls<VU_char>): Likewise.
635 (altivec_vupkhsh): Likewise.
636 (altivec_vupklsb): Likewise.
637 (altivec_vupklsh): Likewise.
638 (altivec_vcmpequ<VI_char>_p): Likewise.
639 (altivec_vcmpgts<VI_char>_p): Likewise.
640 (altivec_vcmpgtu<VI_char>_p): Likewise.
641 (abs<mode>2): Likewise.
642 (vec_unpacks_hi_v16qi): Likewise.
643 (vec_unpacks_hi_v8hi): Likewise.
644 (vec_unpacks_lo_v16qi): Likewise.
645 (vec_unpacks_hi_<VP_small_lc>): Likewise.
646 (vec_unpacks_lo_v8hi): Likewise.
647 (vec_unpacks_lo_<VP_small_lc>): Likewise.
648 (vec_pack_trunc_v8h): Likewise.
649 (vec_pack_trunc_v4si): Likewise.
650 (vec_pack_trunc_<mode>): Likewise.
652 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
654 (vec_vmaxsd): Likewise.
655 (vec_vmaxud): Likewise.
656 (vec_vminsd): Likewise.
657 (vec_vminud): Likewise.
658 (vec_vpksdss): Likewise.
659 (vec_vpksdus): Likewise.
660 (vec_vpkudum): Likewise.
661 (vec_vpkudus): Likewise.
662 (vec_vrld): Likewise.
663 (vec_vsld): Likewise.
664 (vec_vsrad): Likewise.
665 (vec_vsrd): Likewise.
666 (vec_vsubudm): Likewise.
667 (vec_vupkhsw): Likewise.
668 (vec_vupklsw): Likewise.
670 2013-05-29 Jan Hubicka <jh@suse.cz>
672 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
673 flags; reorder rest of fields in more consistent way.
674 (varpool_node): Remove analyzed, finalized and alias.
675 (cgraph_ndoe): Likewise.
676 (symtab_alias_ultimate_target): New function.
677 (cgraph_function_node): Move offline.
678 (cgraph_reset_node): Declare.
679 (cgraph_comdat_can_be_unshared_p): Remove.
680 (varpool_remove_initializer): Declare.
681 (varpool_first_defined_variable, varpool_next_defined_variable
682 cgraph_first_defined_function, cgraph_next_defined_function): Update.
683 (cgraph_function_with_gimple_body_p): Update.
684 (varpool_all_refs_explicit_p): Update.
685 (symtab_alias_target): New function.
686 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
687 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
688 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
689 (varpool_variable_node): Likewise.
690 * cgraph.c (cgraph_create_function_alias): Update.
691 (cgraph_add_thunk): Update.
692 (cgraph_remove_node): Update.
693 (dump_cgraph_node): Do not dump removed flags.
694 (cgraph_function_body_availability): Update.
695 (cgraph_propagate_frequency): Update.
696 (verify_cgraph_node): Check sanity of local flag.
697 (cgraph_function_node): Move here from cgraph.h; revamp for
698 cgraph_function_or_thunk_node.
699 * lto-symtab.c (lto_varpool_replace_node): Update.
700 (lto_symtab_resolve_can_prevail_p): Update.
701 (lto_symtab_merge_cgraph_nodes): Update.
702 * ipa-cp.c (determine_versionability, initialize_node_lattices,
703 propagate_constants_accross_call, devirtualization_time_bonus,
704 ipcp_propagate_stage): Update.
705 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
706 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
707 * ipa-reference.c (propagate): Update.
708 (write_node_summary_p): Update.
709 * toplev.c (wrapup_global_declaration_2): Update.
710 * cgraphunit.c (cgraph_analyze_function): Rename to ...
711 (analyze_function) ... this one.
712 (cgraph_process_new_functions): Update.
713 (cgraph_reset_node): Export.
714 (cgraph_finalize_function): Update.
715 (cgraph_add_new_function): Update.
716 (process_function_and_variable_attributes): Update.
717 (varpool_finalize_decl): Update.
718 (symbol_finalized): Remove.
719 (symbol_finalized_and_needed): Rename to ...
720 (symbol_defined_and_needed): ... update.
721 (cgraph_analyze_functions): Update.
722 (handle_alias_pairs): Update.
723 (mark_functions_to_output): Update.
724 (assemble_thunk): Update.
725 (output_in_order): Update.
726 (output_weakrefs): Update.
727 (finalize_compilation_unit): Update.
728 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
729 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
730 input_node, input_varpool_node): Update.
731 * dbxout.c (dbxout_expand_expr): Update.
732 * cgraphclones.c (cgraph_clone_node): Update.
733 (cgraph_copy_node_for_versioning): Update.
734 (cgraph_materialize_clone): Update.
735 (cgraph_materialize_all_clones): Update.
736 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
737 propagate_pure_const, propagate_nothrow): Update.
738 * lto-streamer-out.c (lto_output, write_symbol): Update.
739 * ipa-utils.c (ipa_reverse_postorder): Update.
740 * ipa-inline.c (can_inline_edge_p): Update.
741 (update_caller_keys, ipa_inline): Update.
742 * dwarf2out.c (reference_to_unused,
743 premark_types_used_by_global_vars_helper): Update.
744 * tree-eh.c (tree_could_trap_p): Update.
745 * ipa-split.c (consider_split, execute_split_functions): Update.
746 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
747 has_addr_references_p): Update;
748 move ahead in file for better readability.
749 (process_references): Simplify.
750 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
752 (cgraph_comdat_can_be_unshared_p): Make static.
753 (cgraph_externally_visible_p): Update.
754 (varpool_externally_visible_p): Update.
755 (function_and_variable_visibility): Update.
756 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
757 ipa_tm_mark_force_output_node): Update.
758 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
759 estimate_edge_devirt_benefit, inline_generate_summary,
760 inline_write_summary): Update.
761 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
762 * ipa-prop.c (ipa_compute_jump_functions): Update.
763 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
764 read_replacements_section): Update.
765 * varasm.c (mark_decl_referenced): Update.
766 (assemble_alias, dump_tm_clone_pairs): Update.
767 * tree-inline.c (copy_bb): Update.
768 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
770 * symtab.c (dump_symtab_base): Print new flags.
771 (verify_symtab_base): Verify new flags.
772 (symtab_alias_ultimate_target): New function.
773 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
774 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
776 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
777 * i386.c (ix86_get_function_versions_dispatcher,
778 ix86_generate_version_dispatcher_body): Update.
779 (fold_builtin_cpu): Use varpool_add_new_variable.
780 * varpool.c (varpool_remove_initializer): Break out from ...
781 (varpool_remove_node): ... this one.
782 (dump_varpool_node, varpool_node_for_asm,
783 cgraph_variable_initializer_availability, varpool_analyze_node,
784 varpool_assemble_decl, varpool_remove_unreferenced_decls,
785 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
787 2013-05-29 Jan Hubicka <jh@suse.cz>
789 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
791 2013-05-29 Easwaran Raman <eraman@google.com>
793 PR tree-optimization/57442
794 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
795 when control exits the main loop.
797 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
799 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
801 * rx/rx.opt: Add macro for rx100 with string rx100 and value
803 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
804 * rx/t-rx: Add rx100 under multi library matches option for nofpu
807 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
809 PR tree-optimization/57441
810 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
811 Don't limit size of incr_vec to number of candidates.
813 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
815 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
816 and mips16 directories.
817 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
819 (MULTILIB_DIRNAMES): Ditto.
820 (MULTILIB_EXCEPTIONS): Add new exceptions.
821 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
822 (MULTILIB_DIRNAMES): Ditto.
823 (MULTILIB_EXCEPTIONS): Add new exceptions.
825 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
826 Marcus Shawcroft <marcus.shawcroft@arm.com>
828 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
829 SYMBOL_TINY_ABSOLUTE.
830 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
831 SYMBOL_TINY_ABSOLUTE.
832 (aarch64_expand_mov_immediate): Likewise.
833 (aarch64_classify_symbol): Likewise.
834 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
835 Permit SYMBOL_TINY_ABSOLUTE.
836 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
838 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
839 Marcus Shawcroft <marcus.shawcroft@arm.com>
841 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
842 Refactor if/switch. Replace gcc_assert with if.
844 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
846 * config/i386/i386.c (initial_ix86_tune_features): Enable
847 FP Reassociation for AMD bdver1 and bdver2.
849 2013-05-29 Martin Jambor <mjambor@suse.cz>
851 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
852 and IMAGPART_EXPR do not occur within other handled_components.
854 2013-05-29 Richard Biener <rguenther@suse.de>
856 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
857 access on whether the use is in the BB we currently try to
859 (vect_bb_vectorization_profitable_p): Pass the BB we currently
860 vectorize to vect_bb_slp_scalar_cost.
862 2013-05-29 Richard Biener <rguenther@suse.de>
864 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
865 computing scalar cost offsetted by stmts that are kept live
867 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
868 for computation of scalar cost.
870 2013-05-28 Steve Ellcey <sellcey@mips.com>
872 * config/mips/mips-cpus.def (mips32r2): Change processor type.
874 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
876 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
877 array notation built-in reduction functions.
878 * doc/passes.texi (Passes): Added documentation about changes done
880 * doc/invoke.texi (C Dialect Options): Added documentation about
882 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
883 (BUILTINS_DEF): Depend on cilkplus.def.
884 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
885 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
886 * cilkplus.def: New file.
888 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
890 PR rtl-optimization/57439
891 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
893 2013-05-28 Easwaran Raman <eraman@google.com>
895 PR tree-optimization/57337
896 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
897 (find_insert_point): Correctly identify the insertion point
898 when two statements with the same UID is compared.
900 2013-05-28 Richard Biener <rguenther@suse.de>
902 PR tree-optimization/56787
903 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
904 from the list of data references.
905 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
907 (vect_analyze_loop_operations): Likewise.
908 (vect_transform_loop): Remove clobbers.
910 2013-05-28 Martin Jambor <mjambor@suse.cz>
912 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
913 and REALPART_EXPRs have scalar type.
915 2013-05-28 Richard Biener <rguenther@suse.de>
917 PR tree-optimization/57411
918 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
920 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
921 virtual operand propagation.
923 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
925 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
926 destination register for bmasksi_vis.
927 (vector_init_bshuffle): Likewise.
928 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
930 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
932 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
933 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
934 mode if the instruction isn't available in the original mode.
935 * config/sparc/sparc.opt (mfix-ut699): New option.
936 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
937 (divdf3): Turn into expander.
938 (divdf3_nofix): New insn.
939 (divdf3_fix): Likewise.
940 (divsf3): Disable if -mfix-ut699.
941 (sqrtdf2): Turn into expander.
942 (sqrtdf2_nofix): New insn.
943 (sqrtdf2_fix): Likewise.
944 (sqrtsf2): Disable if -mfix-ut699.
946 2013-05-27 Richard Biener <rguenther@suse.de>
949 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
950 block for the new loop.
952 2013-05-27 Richard Biener <rguenther@suse.de>
954 PR tree-optimization/57343
955 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
956 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
957 (number_of_iterations_cond): Do not build the folded tree.
959 2013-05-27 Richard Biener <rguenther@suse.de>
963 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
964 OEP_CONSTANT_ADDRESS_OF retained.
966 PR tree-optimization/57417
967 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
969 (set_ssa_val_to): Compare addresses using
970 get_addr_base_and_unit_offset.
972 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
974 PR rtl-optimization/56833
975 * postreload.c (move2add_record_mode): New function.
976 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
977 (move2add_use_add2_insn): Use move2add_record_sym_value.
978 (move2add_use_add3_insn): Likewise.
979 (reload_cse_move2add): Use move2add_valid_value_p and
980 move2add_record_mode. Invalidate call-clobbered and REG_INC
981 affected regs by setting reg_mode to VOIDmode.
982 (move2add_note_store): Don't pretend the inside of a SUBREG is
983 the actual destination. Invalidate single/leading registers by
984 setting reg_mode to VOIDmode.
985 Use move2add_record_sym_value, move2add_valid_value_p and
986 move2add_record_mode.
988 2013-05-27 Richard Biener <rguenther@suse.de>
990 PR tree-optimization/57396
991 * tree-affine.c (double_int_constant_multiple_p): Properly
992 return false for val == 0 and div != 0.
994 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
996 * config/mips/mips.h: Use #elif in preprocessor conditions.
998 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1001 * config/mips/constraints.md (kl): New constraint.
1002 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1003 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1004 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1006 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1008 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1011 * config/mips/mips.c (mips_can_inline_p): New function.
1012 (TARGET_CAN_INLINE_P): Define.
1014 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1016 * sched-int.h (ds_t, dw_t): Make unsigned int.
1017 Fix documentation that describes how all the ds_t bits are used.
1018 Reserve the last bit for delayed-branch scheduling.
1019 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1020 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1021 (gen_dep_weak_1): Remove prototype.
1022 * sched-deps.c (get_dep_weak_1): Make static.
1023 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1024 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1025 * doc/tm.texi: Regenerate.
1026 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1028 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1031 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1033 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1034 Sandra Loosemore <sandra@codesourcery.com>
1036 * config.gcc (powerpc-*): Allow native for with-cpu.
1038 2013-05-24 Jeff Law <law@redhat.com>
1040 PR tree-optimization/57124
1041 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1042 conversion feeding a condition if the range has an overflow
1043 if -fstrict-overflow. Add warnings for when we do make the
1046 2013-05-24 Dehao Chen <dehao@google.com>
1048 * tree-cfg.c (locus_discrim_map): Fix the typo.
1049 (locus_discrim_hasher): Likewise.
1050 (locus_discrim_hasher::hash): Likewise.
1051 (locus_discrim_hasher::equal): Likewise.
1053 2013-05-24 Martin Jambor <mjambor@suse.cz>
1055 PR tree-optimization/57294
1056 * cgraph.h (ipa_record_stmt_references): Declare.
1057 * cgraphbuild.c (ipa_record_stmt_references): New function.
1058 (build_cgraph_edges): Use ipa_record_stmt_references.
1059 (rebuild_cgraph_edges): Likewise.
1060 (cgraph_rebuild_references): Likewise.
1061 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1062 associated with the old statement and build references from the
1063 newly built statements.
1064 * ipa-ref.c (ipa_remove_stmt_references): New function.
1065 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1067 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1069 * lra-constraints.c (emit_spill_move): Use smaller mode for
1071 (check_and_process_move): Consider mem-reg moves for secondary
1073 (curr_insn_transform): Don't lose insns emitted before for
1074 secondary memory moves.
1075 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1076 reg set up in the current insn.
1078 2013-05-24 Dehao Chen <dehao@google.com>
1080 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1082 (locus_descrim_hasher::equal): Likewise.
1083 (build_gimple_cfg): New discriminator assignment algorithm.
1084 (make_edges): Likewise.
1085 (next_discriminator_for_locus): Likewise.
1086 (same_line_p): Likewise.
1087 (assign_discriminators): Likewise.
1088 (make_cond_expr_edges): Likewise.
1089 (make_gimple_switch_edges): Likewise.
1090 (make_goto_expr_edges): Likewise.
1091 (make_gimple_asm_edges): Likewise.
1093 2013-05-24 Ian Bolton <ian.bolton@arm.com>
1095 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1096 X format specifier to only display bottom 16 bits.
1097 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1098 immediate to match for operand 2, since it will be masked.
1100 2013-05-24 Richard Biener <rguenther@suse.de>
1102 PR tree-optimization/57287
1103 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1104 all SSA names that occur in abnormal PHIs.
1106 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1109 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1110 that index is not negative.
1112 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1114 PR rtl-optimization/55177
1115 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1116 (simplify_byte_swapping_operation): New.
1117 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1118 (simplify_relational_operation_1): Deal with BSWAP.
1120 2013-05-23 Richard Henderson <rth@redhat.com>
1123 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1124 (ix86_reorg): Call it.
1126 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1129 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1130 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1131 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1133 2013-05-23 Christian Bruel <christian.bruel@st.com>
1136 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1138 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1139 Marcus Shawcroft <marcus.shawcroft@arm.com>
1141 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1142 * config/aarch64/constraints.md (Usa): Remove.
1143 * doc/md.texi (AArch64 Usa): Remove.
1145 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1146 Marcus Shawcroft <marcus.shawcroft@arm.com>
1148 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1149 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1150 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1151 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1153 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1155 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1156 instruction (AdvSIMD).
1157 * config/aarch64/aarch64-builtins.c
1158 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1159 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1161 2013-05-23 Martin Jambor <mjambor@suse.cz>
1164 * tree.h (contains_bitfld_component_ref_p): Declare.
1165 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1166 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1168 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1169 not access a bit-field. Assert all final offsets are byte-aligned.
1171 2013-05-23 Richard Biener <rguenther@suse.de>
1173 PR tree-optimization/57380
1174 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1175 least one invariant or re-used load.
1176 * passes.c (init_optimization_passes): Move pass_phiprop before
1179 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1181 * config/aarch64/aarch64-simd.md
1182 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1184 2013-05-23 Richard Biener <rguenther@suse.de>
1187 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1188 OEP_CONSTANT_ADDRESS_OF retained.
1190 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1193 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1194 don't lower unit. Handle unit not being always BITS_PER_WORD.
1196 2013-05-23 Richard Biener <rguenther@suse.de>
1198 PR rtl-optimization/57341
1199 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1200 instead of true_dependence.
1202 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1204 * bb-reorder.c (branch_threshold): Make const.
1205 (exec_threshold): Ditto.
1207 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1208 Pat Haugen <pthaugen@us.ibm.com>
1209 Peter Bergner <bergner@vnet.ibm.com>
1211 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1212 documentation for the power8 crypto builtins.
1214 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1216 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1217 macros for defining power8 builtin functions.
1218 (BU_P8V_AV_2): Likewise.
1219 (BU_P8V_AV_P): Likewise.
1220 (BU_P8V_VSX_1): Likewise.
1221 (BU_P8V_OVERLOAD_1): Likewise.
1222 (BU_P8V_OVERLOAD_2): Likewise.
1223 (BU_CRYPTO_1): Likewise.
1224 (BU_CRYPTO_2): Likewise.
1225 (BU_CRYPTO_3): Likewise.
1226 (BU_CRYPTO_OVERLOAD_1): Likewise.
1227 (BU_CRYPTO_OVERLOAD_2): Likewise.
1228 (XSCVSPDP): Fix typo, point to the correct instruction.
1229 (VCIPHER): Add power8 crypto builtins.
1230 (VCIPHERLAST): Likewise.
1231 (VNCIPHER): Likewise.
1232 (VNCIPHERLAST): Likewise.
1233 (VPMSUMB): Likewise.
1234 (VPMSUMH): Likewise.
1235 (VPMSUMW): Likewise.
1236 (VPERMXOR_V2DI): Likewise.
1237 (VPERMXOR_V4SI: Likewise.
1238 (VPERMXOR_V8HI: Likewise.
1239 (VPERMXOR_V16QI: Likewise.
1240 (VSHASIGMAW): Likewise.
1241 (VSHASIGMAD): Likewise.
1243 (VPERMXOR): Likewise.
1244 (VSHASIGMA): Likewise.
1246 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1247 __CRYPTO__ if the crypto instructions are available.
1248 (altivec_overloaded_builtins): Add support for overloaded power8
1251 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1252 support for power8 crypto builtins.
1253 (builtin_function_type): Likewise.
1254 (altivec_init_builtins): Add support for builtins that take vector
1255 long long (V2DI) arguments.
1257 * config/rs6000/crypto.md: New file, define power8 crypto
1260 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1261 Pat Haugen <pthaugen@us.ibm.com>
1262 Peter Bergner <bergner@vnet.ibm.com>
1264 * doc/invoke.texi (Option Summary): Add power8 options.
1265 (RS/6000 and PowerPC Options): Likewise.
1267 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1268 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1269 wm, wn, wr documentation.
1271 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1272 registers if direct move instructions are enabled.
1273 (wn): New constraint for no registers.
1274 (wq): New constraint for quad word even GPR registers.
1275 (wr): New constraint if 64-bit instructions are enabled.
1276 (wv): New constraint if power8 vector instructions are enabled.
1277 (wQ): New constraint for quad word memory locations.
1279 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1280 constraint for 0..15 for crypto instructions.
1281 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1282 as GPR and floating point registers.
1283 (int_reg_operand): New predicate to match only GPR registers.
1284 (base_reg_operand): New predicate to match base registers.
1285 (quad_int_reg_operand): New predicate to match even GPR registers
1286 for quad memory operations.
1287 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1288 operations in both GPR and VSX registers.
1289 (quad_memory_operand): New predicate for quad memory operations.
1290 (reg_or_indexed_operand): New predicate for direct move support.
1292 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1293 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1294 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1295 (POWERPC_MASKS): Add power8 options.
1296 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1299 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1300 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1302 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1303 (-mpower8-fusion): New power8 options.
1304 (-mpower8-fusion-sign): Likewise.
1305 (-mpower8-vector): Likewise.
1306 (-mcrypto): Likewise.
1307 (-mdirect-move): Likewise.
1308 (-mquad-memory): Likewise.
1310 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1312 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1314 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1315 (rs6000_debug_vector_unit): Add p8_vector.
1316 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1317 definitions. Also print fusion state.
1318 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1319 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1320 (rs6000_option_override_internal): Add support for power8.
1321 (rs6000_common_init_builtins): Add debugging for skipped builtins
1323 (rs6000_adjust_cost): Add power8 support.
1324 (rs6000_issue_rate): Likewise.
1325 (insn_must_be_first_in_group): Likewise.
1326 (insn_must_be_last_in_group): Likewise.
1327 (force_new_group): Likewise.
1328 (rs6000_register_move_cost): Likewise.
1329 (rs6000_opt_masks): Likewise.
1331 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1332 power8 capable assembler, default to power7 options.
1333 (TARGET_DIRECT_MOVE): Likewise.
1334 (TARGET_CRYPTO): Likewise.
1335 (TARGET_P8_VECTOR): Likewise.
1336 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1337 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1338 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1339 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1340 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1341 (TARGET_XSCVDPSPN): Likewise.
1342 (TARGET_XSCVSPDPN): Likewsie.
1343 (TARGET_SYNC_HI_QI): Likewise.
1344 (TARGET_SYNC_TI): Likewise.
1345 (MASK_CRYPTO): Likewise.
1346 (MASK_DIRECT_MOVE): Likewise.
1347 (MASK_P8_FUSION): Likewise.
1348 (MASK_P8_VECTOR): Likewise.
1349 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1350 temporary used by some of the direct move instructions to get two FP
1351 temporary registers does not force creation of a stack frame.
1352 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1353 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1354 that any VSX registers are tieable, even if they are also an
1355 Altivec vector mode.
1356 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1357 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1358 (RS6000_BTM_CRYPTO): Likewise.
1359 (RS6000_BTM_COMMON): Likewise.
1361 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1362 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1363 (enum rs6000_vector): Add power8 vector support.
1365 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1369 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1370 (any_sibcall_could_use_r3): this and handle indirect calls.
1371 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1373 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1375 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1377 2013-05-22 Richard Biener <rguenther@suse.de>
1380 * profile.c (branch_prob): Do not split blocks that are
1381 abnormally receiving from ECF_RETURNS_TWICE functions.
1383 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1385 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1386 address mode. Move pointer mode initialization to the same place.
1388 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1390 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1391 while it has any effect.
1393 2013-05-21 Easwaran Raman <eraman@google.com>
1395 PR tree-optimization/57322
1396 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1397 UID of the statement added to the BB to be 1.
1399 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1401 PR tree-optimization/57331
1402 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1403 of conversion from pointer type to integral type with integer.
1405 2013-05-21 Martin Jambor <mjambor@suse.cz>
1408 * ipa-prop.c (ipa_read_node_info): Process param_used and
1409 controlled_uses in the same order as when writing.
1411 2013-05-21 Magnus Granberg <baldrick@free.fr>
1414 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1416 2013-05-21 Richard Biener <rguenther@suse.de>
1418 PR tree-optimization/57318
1419 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1420 estimate stmts with side-effects as likely eliminated.
1422 2013-05-21 Richard Biener <rguenther@suse.de>
1424 PR tree-optimization/57330
1425 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1426 preserve the call stmts fntype.
1428 2013-05-21 Richard Biener <rguenther@suse.de>
1430 PR tree-optimization/57303
1431 * tree-ssa-sink.c (statement_sink_location): Improve killing
1432 stmt detection and properly handle self-assignments.
1434 2013-05-21 Christian Bruel <christian.bruel@st.com>
1436 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1437 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1438 registers. Set register size out of the PARALLEL loop.
1440 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1443 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1444 (*fmasf4, *fmasf4_media): New insns.
1446 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1448 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1449 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1450 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1451 (mips_idiv_insns): Update the comments to say that the returned
1452 instruction counts are in units of BASE_INSN_LENGTH.
1453 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1454 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1455 using 2 rather than 4 as the length of indirect MIPS16 and
1456 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1457 length of a NOP. Don't divide MIPS16 lengths by 2.
1458 (mips16_split_long_branches): Assume a branch is long if the
1459 length is greater than 4 rather than 8.
1460 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1461 rather than multiplying them by 2. Multiply instruction counts
1462 by BASE_INSN_LENGTH rather than 4.
1463 (*jump_mips16, tls_get_tp_mips16_<mode>)
1464 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1466 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1468 * config/mips/mips.md (extended_mips16): Remove branch case.
1469 (length): Remove duplicated extended_mips16 test.
1471 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1473 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1475 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1477 * recog.h (Recog_data): Rename to...
1478 (recog_data_d): ...this.
1479 (recog_data): Update accordingly.
1480 * recog.c (recog_data): Likewise.
1481 * reload.c (save_recog_data): Likewise.
1482 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1483 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1485 2013-05-17 Julian Brown <julian@codesourcery.com>
1487 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1488 found in a REG_EQUAL note, invalidate it.
1490 2013-05-17 Easwaran Raman <eraman@google.com>
1492 * tree-ssa-reassoc.c (find_insert_point): New function.
1493 (insert_stmt_after): Likewise.
1494 (get_def_stmt): Likewise.
1495 (ensure_ops_are_available): Likewise.
1496 (not_dominated_by): Likewise.
1497 (rewrite_expr_tree): Do not move statements beyond what is
1498 necessary. Remove call to swap_ops_for_binary_stmt...
1499 (reassociate_bb): ... and move it here.
1500 (build_and_add_sum): Assign UIDs for new statements.
1501 (linearize_expr): Likewise.
1502 (do_reassoc): Renumber gimple statement UIDs.
1504 2013-05-17 Jan Hubicka <jh@suse.cz>
1506 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1508 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1509 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1511 (output_weakrefs): Update.
1513 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1514 Martin Jambor <mjambor@suse.cz>
1517 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1518 value that corresponds to the given aggval is found in values vector.
1520 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1522 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1523 sse, sse2, sse3, ssse3 and sse4a flags to options.
1525 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1527 * gengtype-state.c: (s_expr_writer): New class, to handle
1528 prettifying of output layout of s-expressions.
1529 (state_writer): New class, to write out gtype.state.
1530 (state_written_type_count): Move this variable into member data of
1532 (s_expr_writer::s_expr_writer): New code: constructor for new class
1533 (state_writer::state_writer(): ditto
1534 (s_expr_writer::write_new_line): New function
1535 (s_expr_writer::write_any_indent): ditto
1536 (s_expr_writer::begin_s_expr): ditto
1537 (s_expr_writer::end_s_expr): ditto
1538 (write_state_fileloc): convert to method of state_writer...
1539 (state_writer:: write_state_fileloc): ...and use methods of
1540 s_expr_writer to write indentation into the gtype.state output file
1541 to visually represent the hierarchical structure of the list
1543 (write_state_fields): ditto, renaming to...
1544 (state_writer::write_state_fields)
1545 (write_state_a_string): ditto, renaming to...
1546 (state_writer::write_state_a_string)
1547 (write_state_string_option): ditto, renaming to...
1548 (state_writer::write_state_string_option)
1549 (write_state_type_option): ditto, renaming to...
1550 (state_writer::write_state_type_option)
1551 (write_state_nested_option): ditto, renaming to...
1552 (state_writer::write_state_nested_option)
1553 (write_state_option): ditto, renaming to...
1554 (state_writer::write_state_option)
1555 (write_state_options): ditto, renaming to...
1556 (state_writer::write_state_options)
1557 (write_state_lang_bitmap): ditto, renaming to...
1558 (state_writer::write_state_lang_bitmap)
1559 (write_state_version): ditto, renaming to...
1560 (state_writer::write_state_version)
1561 (write_state_scalar_type): ditto, renaming to...
1562 (state_writer::write_state_scalar_type)
1563 (write_state_string_type): ditto, renaming to...
1564 (state_writer::write_state_string_type)
1565 (write_state_undefined_type): ditto, renaming to...
1566 (state_writer::write_state_undefined_type)
1567 (write_state_struct_union_type): ditto, renaming to...
1568 (state_writer::write_state_struct_union_type)
1569 (write_state_struct_type): ditto, renaming to...
1570 (state_writer::write_state_struct_type)
1571 (write_state_user_struct_type): ditto, renaming to...
1572 (state_writer::write_state_user_struct_type)
1573 (write_state_lang_struct_type): ditto, renaming to...
1574 (state_writer::write_state_lang_struct_type)
1575 (write_state_param_struct_type): ditto, renaming to...
1576 (state_writer::write_state_param_struct_type)
1577 (write_state_pointer_type): ditto, renaming to...
1578 (state_writer::write_state_pointer_type)
1579 (write_state_array_type): ditto, renaming to...
1580 (state_writer::write_state_array_type)
1581 (write_state_gc_used): ditto, renaming to...
1582 (state_writer::write_state_gc_used)
1583 (write_state_common_type_content): ditto, renaming to...
1584 (state_writer::write_state_common_type_content)
1585 (write_state_type): ditto, renaming to...
1586 (state_writer::write_state_type)
1587 (write_state_pair_list): ditto, renaming to...
1588 (state_writer::write_state_pair_list)
1589 (write_state_pair): ditto, renaming to...
1590 (state_writer::write_state_pair)
1591 (write_state_typedefs): ditto, renaming to...
1592 (state_writer::write_state_typedefs)
1593 (write_state_structures): ditto, renaming to...
1594 (state_writer::write_state_structures)
1595 (write_state_param_structs): ditto, renaming to...
1596 (state_writer::write_state_param_structs)
1597 (write_state_variables): ditto, renaming to...
1598 (state_writer::write_state_variables)
1599 (write_state_srcdir): ditto, renaming to...
1600 (state_writer::write_state_srcdir)
1601 (write_state_files_list): ditto, renaming to...
1602 (state_writer::write_state_files_list)
1603 (write_state_languages): ditto, renaming to...
1604 (state_writer::write_state_languages)
1605 (write_state): create a state_writer instance and use it when
1606 writing out the state file
1608 2013-05-17 Mike Stump <mikestump@comcast.net>
1610 PR rtl-optimization/57304
1611 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1612 accessing DF_REF_REAL_LOC.
1614 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1616 PR rtl-optimization/57281
1617 PR rtl-optimization/57300
1618 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1619 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1620 what the other splitter did if the registers are dead.
1622 2013-05-17 Richard Biener <rguenther@suse.de>
1624 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1627 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1629 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1632 2013-05-17 Marek Polacek <polacek@redhat.com>
1634 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1635 length when doing non-zero store of storing '\0' to '\0'.
1637 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1639 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1640 vect_external_def oprnd1 with loop_vinfo, try to emit
1641 optional cast, negation and and stmts on the loop preheader
1642 edge instead of into the pattern def seq.
1644 PR tree-optimization/57051
1645 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1646 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1648 2013-05-16 Nick Clifton <nickc@redhat.com>
1650 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1651 (rl78_is_naked_func): New function.
1652 (rl78_expand_prologue): Skip prologue generation for naked
1654 (rl78_expand_epilogue): Skip epilogue generation for naked
1656 * doc/extend.texi (naked): Add RL78 to the list of processors
1657 that supports this attribute.
1659 2013-05-16 Jeff Law <law@redhat.com>
1661 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1663 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1665 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1666 cache parameters using detect_caches_amd also for CYRIX,
1667 NSC and TM2 signatures.
1669 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1670 Dzianis Kahanovich <mahatma@eu.by>
1674 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1675 VIA/Centaur processors and determine their cache parameters
1676 using detect_caches_amd.
1678 2013-05-16 Teresa Johnson <tejohnson@google.com>
1680 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1681 (rtl_verify_edges): New function.
1682 (rtl_verify_bb_insns): Ditto.
1683 (rtl_verify_bb_pointers): Ditto.
1684 (rtl_verify_bb_insn_chain): Ditto.
1685 (rtl_verify_fallthru): Ditto.
1686 (rtl_verify_bb_layout): Ditto.
1687 (rtl_verify_flow_info_1): Outline checks into new functions.
1688 (rtl_verify_flow_info): Ditto.
1690 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
1692 * cfghooks.c (copy_bbs): Add update_dominance argument.
1693 * cfghooks.h (copy_bbs): Update prototype.
1694 * tree-cfg.c (gimple_duplicate_sese_region):
1695 Add update_dominance argument.
1696 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1697 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1698 gimple_duplicate_sese_region call.
1699 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1700 Update copy_bbs call.
1701 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1702 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1704 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1706 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1707 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1708 vect_recog_rotate_pattern.
1709 (vect_recog_rotate_pattern): New function.
1711 2013-05-16 Jason Merrill <jason@redhat.com>
1713 * Makefile.in (LLINKER): New variable.
1714 (mostlyclean): Remove link mutex.
1715 * configure.ac: Handle --enable-link-mutex.
1716 * lock-and-run.sh: New script.
1718 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1721 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1724 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1726 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1728 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1730 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1731 * config/arm/arm.c (next_consecutive_mem): New function.
1732 (gen_movmem_ldrd_strd): Likewise.
1733 * config/arm/arm.md (movmemqi): Update condition and code.
1734 (unaligned_loaddi, unaligned_storedi): New patterns.
1736 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1738 * config.gcc: Obsolete *-*-solaris2.9*.
1739 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1741 2013-05-16 Richard Biener <rguenther@suse.de>
1743 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1744 earlier, after GRAPHITE transforms and IV canonicalization.
1746 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1748 * omp-low.c (extract_omp_for_data): For collapsed loops,
1749 if at least one of the loops is known at compile time to
1750 iterate zero times, set count to 0.
1751 (expand_omp_regimplify_p): New function.
1752 (expand_omp_for_generic): For collapsed loops, if at least
1753 one of the loops isn't known to iterate at least once,
1754 add runtime check with setting count to 0.
1755 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1756 For unsigned types if it isn't known at compile time that
1757 the loop will iterate at least once, add runtime check to bypass
1758 the whole loop if initial condition isn't true.
1760 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1762 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1764 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
1767 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1768 transformations to avoid an infinite loop.
1770 2013-05-16 Marek Polacek <polacek@redhat.com>
1772 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1774 2013-05-15 Leif Ekblad <leif@rdos.net>
1776 * config/i386/i386.c (ix86_decompose_address): Use
1777 DEFAULT_TLS_SEG_REG to access TLS segment register.
1778 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1779 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1780 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1782 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1785 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1786 sibling calls to functions that would normally be lazily bound,
1787 unless $gp is call-clobbered.
1789 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1791 * config/i386/i386.c (ix86_option_override_internal): Update
1792 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1793 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1794 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1795 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1797 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1799 2013-05-15 Andreas Schwab <schwab@suse.de>
1801 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1802 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1805 2013-05-15 Teresa Johnson <tejohnson@google.com>
1807 * loop-unroll.c (report_unroll_peel): Check decision before
1808 emitting unroll/peel message.
1810 2013-05-15 Teresa Johnson <tejohnson@google.com>
1812 * function.h (has_bb_partition): New rtl_data flag.
1813 (bb_reorder_complete): Ditto.
1814 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1815 instead of flag_reorder_blocks_and_partition.
1816 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1817 with some enhancements.
1818 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1819 * bb-reorder.c (connect_traces): Check for has_bb_partition
1820 instead of flag_reorder_blocks_and_partition.
1821 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1822 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1823 verify_hot_cold_block_grouping.
1824 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1826 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1829 * config/arm/predicates.md (call_insn_operand): New predicate.
1830 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1831 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1832 if insn is not a tail call.
1833 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1835 * config/arm/arm.h (enum reg_class): New caller save register class.
1836 (REG_CLASS_NAMES): Likewise.
1837 (REG_CLASS_CONTENTS): Likewise.
1838 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1841 2013-05-15 Richard Biener <rguenther@suse.de>
1843 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1844 of MSG_OPTIMIZED_LOCATIONS.
1845 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1846 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1848 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1849 of MSG_OPTIMIZED_LOCATIONS.
1850 (execute_vect_slp): Likewise.
1851 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1852 (vect_create_cond_for_alias_checks): Likewise.
1853 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1854 (vect_recog_widen_mult_pattern): Likewise.
1855 (vect_recog_widen_sum_pattern): Likewise.
1856 (vect_recog_over_widening_pattern): Likewise.
1857 (vect_recog_widen_shift_pattern): Likewise.
1858 (vect_recog_vector_vector_shift_pattern): Likewise.
1859 (vect_recog_divmod_pattern): Likewise.
1860 (vect_recog_mixed_size_cond_pattern): Likewise.
1861 (vect_recog_bool_pattern): Likewise.
1862 (vect_pattern_recog_1): Likewise.
1864 2013-05-15 Martin Jambor <mjambor@suse.cz>
1866 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1867 non-functions to builtin_unreachable.
1868 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1869 correct when new direct edges were discovered.
1871 2013-05-15 Martin Jambor <mjambor@suse.cz>
1873 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1874 header, print symbol order instead of node uid, print more information
1875 about indirect edge targets.
1876 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1878 (ipa_make_edge_direct_to_target): Likewise.
1879 (remove_described_reference): Likewise.
1880 (propagate_controlled_uses): Likewise.
1881 (ipa_print_node_params): Also print symbol order.
1882 (ipcp_transform_function): Print symbol order instead of node uids.
1883 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1884 (cgraph_get_create_real_symbol_node): Likewise.
1885 * ipa-cp.c (print_lattice): Likewise.
1886 (print_all_lattices): Likewise.
1887 (determine_versionability): Likewise.
1888 (initialize_node_lattices): Likewise.
1889 (estimate_local_effects): Likewise.
1890 (update_profiling_info): Likewise.
1891 (create_specialized_node): Likewise.
1892 (perhaps_add_new_callers): Likewise.
1893 (decide_about_value): Likewise.
1894 (decide_whether_version_node): Likewise.
1895 (identify_dead_nodes): Likewise.
1896 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1897 (dump_inline_summary): Likewise.
1898 (estimate_node_size_and_time): Likewise.
1899 (inline_analyze_function): Likewise.
1900 * ipa-inline.c (report_inline_failed_reason): Likewise.
1901 (want_early_inline_function_p): Likewise.
1902 (edge_badness): Likewise.
1903 (update_edge_key): Likewise.
1904 (inline_small_functions): Likewise. Add dumping of order to two other
1906 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1907 instead of node uids.
1908 (propagate_pure_const): Likewise.
1909 (propagate_pure_const): Likewise.
1910 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1911 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1912 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1914 * tree-pretty-print.c (dump_function_header): Likewise.
1915 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1916 Print symbol order instead of node uids.
1918 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1920 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1921 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1923 2013-05-15 Richard Biener <rguenther@suse.de>
1925 PR tree-optimization/57275
1926 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1927 return value for fail to do runtime alias checks for gather loads.
1929 2013-05-15 Jan Hubicka <jh@suse.cz>
1933 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1934 weakrefs are not external.
1935 (lto_symtab_merge_decls): Fix thinko when dealing with
1936 non-lto_symtab decls.
1937 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1938 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1939 * varpool.c (dump_varpool_node): Dump more flags.
1941 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1943 * config/i386/i386.c (processor_alias_table): Add instruction
1944 FSGSBASE for AMD bdver3 architecture.
1946 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1948 * tree.c (warn_deprecated_use): Print file:line using locus color.
1949 * diagnostic.c (diagnostic_report_current_module): Print file:line
1950 and file:line:column using locus color.
1952 2013-05-14 Mike Stump <mikestump@comcast.net>
1954 * gdbinit.in: Add __null.
1956 2013-05-14 Mike Stump <mikestump@comcast.net>
1958 * recog.h: Rename struct recog_data to Recog_data.
1959 * recog.c: Likewise.
1960 * reload.c (can_reload_into): Likewise.
1961 * config/picochip/picochip.c: Likewise.
1963 2013-05-14 Mike Stump <mikestump@comcast.net>
1965 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1967 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1969 * resource.h (struct resources): Remove unch_memory member.
1970 (CLEAR_RESOURCE): Don't clear unch_memory.
1971 * resource.c (mark_referenced_resources): Don't set it.
1972 (mark_set_resources): Likewise.
1973 (mark_target_live_regs): Don't clear it.
1974 (init_resource_info): Likewise.
1975 * reorg.c (resource_conflicts_p): Don't compare it.
1976 (redundant_insn): Don't set it.
1978 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1980 * emit-rtl.c (next_label): Remove unused function.
1981 (skip_consecutive_labels, link_cc0_insns): Move to ...
1982 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1983 only place where these functions are used, and make them static.
1985 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1987 * fold-const.c (fold_negate_expr): Handle vectors.
1988 (fold_truth_not_expr): Make it static.
1989 (fold_invert_truthvalue): New static function.
1990 (invert_truthvalue_loc): Handle vectors. Do not call
1991 fold_truth_not_expr directly.
1992 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1993 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1994 (fold_comparison): Handle vector constants.
1995 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1996 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1997 * tree.h (fold_truth_not_expr): Remove declaration.
1999 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2001 * config/aarch64/aarch64-simd.md
2002 (aarch64_vcond_internal<mode>): Rename to...
2003 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2004 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2005 float modes. Clarify all iterator modes.
2006 (vcond<mode><mode>): Use new name for vcond expanders.
2007 (vcond<v_cmp_result><mode>): Likewise.
2008 (vcondu<mode><mode>: Likewise.
2009 * config/aarch64/iterators.md (VDQF_COND): New.
2011 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2014 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2015 variable for the shift amount. Check that we shift by non-negative
2018 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2021 * config/arm/arm.h (EPILOGUE_USES): Only return true
2022 for LR_REGNUM after epilogue_completed.
2024 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2026 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2029 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2032 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2033 and Solaris 11+/x86 with gld.
2034 * configure: Regenerate.
2036 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2038 * expmed.c (expand_shift_1): Canonicalize rotates by
2039 constant bitsize / 2 to bitsize - 1.
2040 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2041 case ROTATERT>: Likewise.
2044 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2046 * config/i386/i386.md (rotateinv): New code attr.
2047 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2048 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2049 roll $31, %eax, etc.
2051 2013-05-14 Richard Biener <rguenther@suse.de>
2054 * tree-eh.c (sink_clobbers): Give up for successors with
2055 multiple predecessors and no virtual uses.
2057 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2059 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2060 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2062 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2065 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2066 the case when both op0 and op1 have VOIDmode.
2068 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2070 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2071 in multiply-accumulate mode.
2073 2013-05-13 Guozhi Wei <carrot@google.com>
2075 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2077 2013-05-13 Kai Tietz <ktietz@redhat.com>
2080 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2081 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2082 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2083 * config/i386/i386.c (ix86_option_override_internal): Likewise.
2084 (ix86_expand_prologue): Likewise.
2085 (ix86_expand_split_stack_prologue): Likewise.
2086 (legitimate_pic_address_disp_p): Likewise.
2087 (legitimize_pic_address): Likewise.
2088 (legitimize_tls_address): Likewise.
2089 (legitimize_pe_coff_symbol): Likewise.
2090 (output_pic_addr_const): Likewise.
2091 (construct_plt_address): Likewise.
2092 (ix86_expand_call): Likewise.
2093 (x86_output_mi_thunk): Likewise.
2094 (x86_function_profiler): Likewise.
2096 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2098 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2099 similar switch cases.
2100 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2101 (aarch64_simd_mov_to_<mode>low): Delete.
2102 (aarch64_simd_mov_to_<mode>high): Delete.
2103 (move_lo_quad_<mode>): Add w<-r alternative.
2104 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2105 (aarch64_simd_mov_from_*): Update type attribute.
2106 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2109 2013-05-13 Jan Hubicka <jh@suse.cz>
2111 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2112 * config/i386/i386.c (ix86_compute_frame_layout,
2113 ix86_expand_epilogue, emit_i387_cw_initialization,
2114 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2115 ix86_local_alignment): Fix use of size/speed predicates.
2117 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2119 PR tree-optimization/45216
2120 PR tree-optimization/57157
2121 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2122 the (-Y) & (B - 1) variant if OP is |.
2123 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2124 return shifted. Use (-op1) & (prec - 1) as other_amount
2125 instead of prec - op1.
2127 2013-05-13 Martin Jambor <mjambor@suse.cz>
2130 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2131 (ipa_constant_data): New type.
2132 (ipa_jump_func): Use ipa_constant_data to hold information about
2133 constant jump functions.
2134 (ipa_get_jf_constant): Adjust to jump function type changes.
2135 (ipa_get_jf_constant_rdesc): New function.
2136 (ipa_param_descriptor): New field controlled_uses.
2137 (ipa_get_controlled_uses): New function.
2138 (ipa_set_controlled_uses): Likewise.
2139 * ipa-ref.h (ipa_find_reference): Declare.
2140 * ipa-prop.c (ipa_cst_ref_desc): New type.
2141 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2143 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2144 New parameter cs. Adjust all callers.
2145 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2146 (remove_described_reference): New function.
2147 (jfunc_rdesc_usable): Likewise.
2148 (try_make_edge_direct_simple_call): Decrement controlled use count,
2149 attempt to remove reference if it hits zero.
2150 (combine_controlled_uses_counters): New function.
2151 (propagate_controlled_uses): Likewise.
2152 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2153 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2154 (ipa_print_node_params): Print described use counter.
2155 (ipa_write_jump_function): Adjust to jump function type changes.
2156 (ipa_read_jump_function): New parameter CS, pass it to
2157 ipa_set_jf_constant. Adjust caller.
2158 (ipa_write_node_info): Stream controlled use count
2159 (ipa_read_node_info): Likewise.
2160 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2162 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2163 count. Remove cloning-added reference if it reaches zero.
2164 * ipa-ref.c (ipa_find_reference): New function.
2166 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2168 * config/i386/i386.c (processor_target_table): Modified default
2169 alignment values for AMD BD and BT architectures.
2171 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2173 * tree-vect-generic.c (uniform_vector_p): Move ...
2174 * tree.c (uniform_vector_p): ... here.
2175 * tree.h (uniform_vector_p): Declare it.
2176 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2179 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2181 PR tree-optimization/57230
2182 * tree-ssa-strlen.c (handle_char_store): Record length for
2183 array store from STRING_CST.
2185 PR tree-optimization/57230
2186 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2189 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2191 * config/epiphany/epiphany.c (epiphany_init): Check size of
2192 NUM_MODES_FOR_MODE_SWITCHING.
2193 (epiphany_expand_prologue):
2194 Remove CONFIG_REGNUM initial value handling code.
2195 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2196 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2197 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2198 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2199 Don't return 1 for FP_MODE_NONE.
2200 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2201 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2202 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2203 * config/epiphany/epiphany.md (save_config): New pattern.
2205 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2207 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2209 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2211 * config/i386/i386.md (memory): Handle sseishft1.
2212 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2213 (*vec_extractv2di_1): Ditto.
2215 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2217 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2220 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2222 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2223 Add mthumb/march=armv7-a multilib.
2224 Add mthumb/march=armv7-r multilib.
2225 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2227 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2229 * config/v850/t-rtems: Add more multilibs.
2231 2013-05-10 Richard Biener <rguenther@suse.de>
2233 PR tree-optimization/57214
2234 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2235 not propagate from SSA names that occur in abnormal PHI nodes.
2237 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2239 * stor-layout.c (element_precision): New function.
2240 * machmode.h (element_precision): Declare it.
2241 * tree.c (build_minus_one_cst): New function.
2242 (element_precision): Likewise.
2243 * tree.h (build_minus_one_cst): Declare new function.
2244 (element_precision): Likewise.
2245 * fold-const.c (operand_equal_p): Use element_precision.
2246 (fold_binary_loc): Handle vector types.
2247 * convert.c (convert_to_integer): Use element_precision.
2248 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2251 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2253 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2254 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2255 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2256 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2257 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2258 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2259 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2260 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2261 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2262 (Uuw8): New constraints.
2263 (Usb4): Move into alphabetical order.
2264 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2265 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2266 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2267 previously unnamed patterns.
2268 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2269 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2270 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2271 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2272 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2273 of specific lengths.
2275 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2277 * config/i386/i386.md (rotateinv): New code attr.
2278 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2279 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2280 roll $31, %eax, etc.
2282 PR tree-optimization/45216
2283 PR tree-optimization/57157
2284 * tree-ssa-forwprop.c (simplify_rotate): New function.
2285 (ssa_forward_propagate_and_combine): Call it.
2287 2013-05-10 Richard Biener <rguenther@suse.de>
2289 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2290 disable peeling when we version for aliasing.
2291 (vector_alignment_reachable_p): Honor explicit user alignment.
2292 (vect_supportable_dr_alignment): Likewise.
2293 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2294 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2295 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2296 then peeling to arrange for the cost-model check to come first.
2298 2013-05-10 Alan Modra <amodra@gmail.com>
2300 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2301 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2302 * configure: Regenerate.
2304 2013-05-10 Alan Modra <amodra@gmail.com>
2307 * varasm.c (default_elf_select_section): Move !DECL_P check..
2308 (get_named_section): ..to here before calling get_section_name.
2310 (default_section_type_flags): Add DECL_P check.
2311 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2312 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2314 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2316 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2317 When using gen_stack_adjust_str with a register offset, add a
2318 REG_FRAME_RELATED_EXPR note.
2320 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2322 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2323 (*vec_extractv4si_zext_mem): Ditto.
2324 (*vec_extractv2di): Add 0->x and x->x alternatives.
2325 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2326 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2328 2013-05-09 Jason Merrill <jason@redhat.com>
2330 N3639 C++1y VLA support
2331 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2334 * tree.c (build_constructor_va): New.
2335 * tree.h: Declare it.
2337 2013-05-09 Martin Jambor <mjambor@suse.cz>
2340 * gimple-fold.c (canonicalize_constructor_val): Call
2341 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2343 2013-05-09 Jan Hubicka <jh@suse.cz>
2344 Richard Biener <rguenther@suse.de>
2347 * symtab.c (symtab_make_decl_local): Do not add private names.
2349 2013-05-09 Jan Hubicka <jh@suse.cz>
2352 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2353 (unlink_from_assembler_name_hash): Likewise.
2354 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2355 symtab_unregister_node, symtab_initialize_asm_name_hash,
2356 change_decl_assembler_name): Update.
2358 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2360 * config/aarch64/aarch64.md: New movtf split.
2361 (*movtf_aarch64): Update.
2362 (aarch64_movdi_tilow): Handle TF modes and rename to
2363 aarch64_movdi_<mode>low.
2364 (aarch64_movdi_tihigh): Handle TF modes and rename to
2365 aarch64_movdi_<mode>high
2366 (aarch64_movtihigh_di): Handle TF modes and rename to
2367 aarch64_mov<mode>high_di
2368 (aarch64_movtilow_di): Handle TF modes and rename to
2369 aarch64_mov<mode>low_di
2370 (aarch64_movtilow_tilow): Remove spurious whitespace.
2371 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2373 (aarch64_print_operand): Update.
2375 2013-05-09 Alan Modra <amodra@gmail.com>
2377 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2379 * configure: Regenerate.
2381 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2383 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2384 splitter preparation statements.
2385 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2386 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2389 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2391 * gimple-ssa-strength-reduction.c (count_candidates): Change
2392 return value to int.
2393 (analyze_candidates_and_replace): Change type of length to int.
2395 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2397 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2398 (*vec_extract<mode>): Use VI12_128 mode iterator.
2399 (*vec_extract<mode>_mem): Ditto.
2400 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2403 2013-05-08 Diego Novillo <dnovillo@google.com>
2408 2012-08-17 Diego Novillo <dnovillo@google.com>
2411 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2412 * config.in: Regenerate.
2413 * configure: Regenerate.
2414 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2416 2013-05-08 Jan Hubicka <jh@suse.cz>
2419 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2420 * cgraph.h (symtab_node_base): Add unique_name.
2421 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2422 input_overwrite_node, input_varpool_node): Stream unique_name.
2423 * cgraphclones.c (cgraph_create_virtual_clone,
2424 cgraph_function_versioning): Set unique_name.
2425 * ipa.c (function_and_variable_visibility): Set unique_name.
2427 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2429 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2430 (alloc_cand_and_find_basis): Restrict conditional candidate
2431 processing to CAND_MULTs.
2433 2013-05-08 Jan Hubicka <jh@suse.cz>
2436 lto-symtab.c (lto_symtab_symbol_p): New function.
2437 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2438 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2439 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2440 Skip static symbols.
2442 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2444 PR tree-optimization/57200
2445 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2446 Only call inform if the preceding warning_at returns true.
2448 2013-05-07 Han Shen <shenhan@google.com>
2450 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2451 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2452 * common.opt (fstack-protector-strong): New option.
2453 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2454 * doc/invoke.texi (Optimization Options): Document
2455 "-fstack-protector-strong".
2456 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2458 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2460 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2462 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2464 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2465 it is not lhs of the insn.
2466 (setup_reg_equiv): Remove insn having equiv memory which it is not
2468 * lra-constraints.c (process_address): Try to improve generation
2469 code for address base + disp.
2470 (lra_constraints): Make correct the code for checking insn setting
2471 up backward equivalence. Remove insn only if it is in the init
2473 * lra-eliminations.c (update_reg_eliminate): Change return value.
2474 (lra_eliminate): Use the result.
2476 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2478 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2479 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2480 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2481 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2482 register target operands.
2483 (*vec_extractv8hi_sse2): New pattern.
2484 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2485 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2486 (*vec_extract<mode>_mem): New insn and split pattern.
2488 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2490 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2491 (TARGET_ASAN_SHADOW_OFFSET): Define.
2492 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2493 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2495 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2497 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2498 (incr_vec_index): Return -1 if increment not found.
2499 (create_add_on_incoming_edge): Assert if increment not found.
2500 (record_increment): Limit number of increments recorded.
2501 (all_phi_incrs_profitable): Return false if an increment not found.
2502 (replace_profitable_candidates): Don't process increments that were
2504 (analyze_candidates_and_replace): Limit size of incr_vec.
2506 2013-05-07 Richard Biener <rguenther@suse.de>
2508 * calls.c (special_function_p): setjmp-like functions are leaf.
2509 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2510 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2512 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2514 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2515 (aarch64_simd_mov<mode>): New expander.
2516 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2517 (aarch64_simd_mov_to_<mode>high): Likewise.
2518 (aarch64_simd_mov_from_<mode>low): Likewise.
2519 (aarch64_simd_mov_from_<mode>high): Likewise.
2520 (aarch64_dup_lane<mode>): Update.
2521 (aarch64_dup_lanedi): New instruction pattern.
2522 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2523 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2525 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2527 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2528 (replace_mult_candidate): Remove unnecessary argument; remove
2529 unnecessary parameter from call to introduce_cast_before_cand.
2530 (replace_unconditional_candidate): Remove unnecessary parameter
2531 from call to replace_mult_candidate.
2532 (replace_conditional_candidate): Likewise.
2533 (insert_initializers): Use make_temp_ssa_name.
2534 (introduce_cast_before_cand): Remove unnecessary argument; use
2536 (replace_one_candidate): Remove unnecessary argument; remove
2537 unnecessary parameter from calls to introduce_cast_before_cand.
2538 (replace_profitable_candidates): Remove unnecessary parameters
2539 from calls to replace_one_candidate.
2541 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2543 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2544 phi def as possibly hiding a basis for a CAND_ADD whose operands
2545 have been commuted in the analysis.
2546 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2548 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2550 * config/aarch64/aarch64.md
2551 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2552 shift value between 0-4.
2554 2013-05-07 Richard Biener <rguenther@suse.de>
2556 * double-int.h (rshift): New overload.
2557 * double-int.c (rshift): New function.
2558 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2559 (create_reference_ops_from_ref): Remove.
2560 (vn_reference_insert): Use shared ops for constructing the
2561 reference and copy it.
2563 2013-05-07 Richard Biener <rguenther@suse.de>
2566 * tree-eh.c (sink_clobbers): Properly propagate
2567 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2569 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2571 PR tree-optimization/57149
2572 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2573 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2574 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2575 uninit_undefined_value_p instead of ssa_undefined_value_p.
2578 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2579 for modifier == EXPAND_INITIALIZER.
2581 2013-05-07 Anton Blanchard <anton@samba.org>
2583 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2584 for powerpc64 little endian.
2585 * configure: Regenerate.
2587 2013-05-06 Graham Stott <grahams@btinternet.com>
2589 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2590 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2591 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2592 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2594 2013-05-06 Graham Stott <grahams@btinternet.com>
2596 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2597 codes which allow non-lvalues.
2599 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2601 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2602 components are all 1s.
2603 (integer_minus_onep): New function.
2604 * tree.h (integer_minus_onep): Declare it.
2605 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2606 integer_minus_onep instead of integer_all_onesp.
2608 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2611 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2612 variations of these patterns.
2614 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2616 * config/i386/i386.md (isa): Add x64_sse4 member.
2617 (enabled): Handle x64_sse4.
2618 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2619 instruction for 64bit SSE4_1 targets. Update insn attributes.
2620 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2621 instruction for SSE4_1 targets. Update insn attributes.
2622 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2623 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2624 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2626 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2627 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2628 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2630 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2633 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2635 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2637 * final.c (do_assembler_dialects): Don't handle curly braces and
2638 vertical bar escaped by % as dialect delimiters.
2639 (output_asm_insn): Print curly braces and vertical bar if escaped
2640 by % and ASSEMBLER_DIALECT defined.
2641 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2642 * doc/tm.texi: Regenerated.
2644 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2646 * config/mips/mips.c: Include tree-pass.h.
2647 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2648 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2649 (pass_mips_machine_reorg2): New machine specific pass.
2650 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2651 (mips_option_override): Register the new pass.
2652 * rtl.h (cleanup_barriers): Remove prototype.
2653 (dbr_schedule): Likewise.
2654 * jump.c (cleanup_barriers): Make static.
2655 * reorg.c (dbr_schedule): Likewise.
2657 2013-05-06 Richard Biener <rguenther@suse.de>
2659 PR tree-optimization/57185
2660 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2663 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2666 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2667 between "first_arg" and "insn", not "last" and "insn".
2669 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2671 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2672 (find_candidates_in_block): Re-enable slsr_process_phi.
2673 (create_phi_basis): Fix double counting of candidate adjustment.
2675 2013-05-06 Richard Biener <rguenther@suse.de>
2678 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2679 the edge is also fallthru, preserve it and just clear the
2681 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2682 also complex, preserve that and just clear the fallthru flag.
2683 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2684 update virtual operands.
2686 2013-05-06 Alan Modra <amodra@gmail.com>
2688 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2689 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2690 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2691 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2692 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2693 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2695 2013-05-06 Alan Modra <amodra@gmail.com>
2697 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2698 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2699 (DEFAULT_ASM_ENDIAN): Define.
2700 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2701 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2702 Update -K PIC clause from sysv4.h.
2703 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2704 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2706 2013-05-06 Alan Modra <amodra@gmail.com>
2708 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2709 twice for little-endian.
2710 (ashrdi3_no_power, ashrdi3): Support little-endian.
2712 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2715 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2716 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2718 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2719 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2720 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2723 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2724 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2726 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2727 * config/pa/pa.opt: Make mbig-switch a no-op.
2728 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2729 (CASE_VECTOR_MODE): Always return SImode.
2730 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2731 for the !TARGET_BIG_SWITCH case.
2732 * config/pa/pa-linux.h: Likewise.
2733 * config/pa/pa-openbsd.h: Likewise.
2734 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2735 * config/pa/pa.md (short_jump): Remove define_insn.
2736 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2737 (casesi0): Remove define_insn.
2738 (type): Remove btable_branch.
2739 (pa_combine_type): Likewise.
2740 (in_nullified_branch_delay): Likewise.
2741 (in_call_delay): Likewise.
2742 (define_delay): Likewise.
2743 (define_insn_reservation "Z3"): Likewise.
2744 (define_insn_reservation "Z4"): Likewise.
2745 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2746 (pa_adjust_insn_length): Remove adjustment for btable branches.
2747 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2750 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
2752 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2753 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2754 Add m->r,x alternatives.
2755 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2756 splitters using SWI48x mode iterator.
2757 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2758 TARGET_64BIT. Add m->x alternative.
2759 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2760 Add o->x alternative. Enable for TARGET_SSE.
2761 (sse_storeq): Remove expander.
2762 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2763 with memory input operand.
2764 (*vec_extractv2di_1 splitter): New.
2765 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2766 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2768 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2770 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2771 (INT_LOWPART): Delete.
2772 (extract_MB): Adjust.
2773 (extract_ME): Adjust.
2774 (print_operand): Adjust.
2776 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2778 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2779 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2780 (reg_or_logical_cint_operand, easy_fp_constant,
2781 logical_const_operand): Delete "CONST_DOUBLE" case.
2782 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2783 "HOST_BITS_PER_WIDE_INT == 64" test.
2784 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
2785 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2786 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2787 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2789 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2790 CONST_DOUBLE DImode/VOIDmode case.
2791 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2792 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2793 CONST_DOUBLE VOIDmode case.
2794 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2795 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2796 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2797 Delete CONST_DOUBLE case.
2798 (splitters for mov FMOVE64 const_double): Delete
2799 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2800 "HOST_BITS_PER_WIDE_INT >= 64" test.
2801 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2803 (mov DI const_double): Delete.
2805 2013-05-04 Jakub Jelinek <jakub@redhat.com>
2807 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2808 on op shows all bits zero in mode of a lowpart subreg, return zero.
2810 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2813 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2814 to save TFmode registers and DImode to save TImode registers for
2815 caller save operations.
2816 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2817 mark being partially clobbered since they only use the first
2820 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2821 and TDmode only use the upper 64-bits of each VSX register.
2823 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2825 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2826 (find_candidates_in_block): Disable slsr_process_phi.
2828 2013-05-03 Guozhi Wei <carrot@google.com>
2830 * coverage.c (coverage_obj_init): Move the construction of gcov
2832 (build_init_ctor): ... here.
2834 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2836 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2837 (slsr_cand_d): Redefine def_phi.
2838 (stride_status, phi_adjust_status, count_phis_status): New enums.
2839 (find_phi_def): New.
2840 (find_basis_for_base_expr): New.
2841 (find_basis_for_candidate): Handle hidden bases.
2842 (alloc_cand_and_find_basis): Handle phi candidates.
2843 (slsr_process_phi): New.
2844 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2845 (create_mul_imm_cand): Likewise.
2846 (create_add_ssa_cand): Exclude phi base candidates.
2847 (create_add_imm_cand): Likewise.
2848 (slsr_process_cast): Likewise.
2849 (slsr_process_copy): Likewise.
2850 (find_candidates_in_block): Handle phi candidates.
2851 (dump_candidate): Likewise.
2852 (unconditional_cands): Delete.
2853 (unconditional_cands_with_known_stride_p): Delete.
2854 (phi_dependent_cand_p): New.
2855 (cand_increment): Handle phi-dependent candidates.
2856 (replace_dependent): Delete.
2857 (replace_mult_candidate): New.
2858 (replace_unconditional_candidate): New.
2859 (incr_vec_index): Move to avoid forward reference.
2860 (create_add_on_incoming_edge): New.
2861 (create_phi_basis): New.
2862 (replace_dependents): Delete.
2863 (replace_conditional_candidate): New.
2864 (phi_add_costs): New.
2865 (replace_uncond_cands_and_profitable_phis): New.
2866 (record_increment): Handle phi adjustments.
2867 (record_phi_increments): New.
2868 (record_increments): Handle phi adjustments.
2869 (phi_incr_cost): New.
2870 (lowest_cost_path): Handle phis.
2871 (total_savings): Likewise.
2872 (analyze_increments): Likewise.
2873 (ncd_with_phi): New.
2874 (ncd_of_cand_and_phis): New.
2875 (nearest_common_dominator_for_cands): Handle phi increments.
2876 (all_phi_incrs_profitable): New.
2877 (replace_profitable_candidates): Handle phi-dependent candidates.
2878 (analyze_candidates_and_replace): Likewise.
2880 2013-05-03 Teresa Johnson <tejohnson@google.com>
2883 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2884 do not exceed REG_BR_PROB_BASE.
2886 2013-05-03 Jeff Law <law@redhat.com>
2888 PR tree-optimization/57144
2889 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2890 operand of the condition will bit into the new type when eliminating
2891 a cast feeding a condition.
2893 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2895 PR rtl-optimization/57130
2896 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2897 of COMPARE as in_code to the recursive call if needed.
2899 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
2901 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2902 (enabled): Handle new members.
2903 * config/i386/sse.md (*vec_concatv2si): Merge from
2904 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2905 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2907 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2909 PR tree-optimization/57027
2910 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2911 for fnms opportunity, check we got the prerequisite kind
2912 of tree / gimple before using accessor functions.
2914 2013-05-03 Richard Biener <rguenther@suse.de>
2916 * double-int.h (lshift): New overload without precision
2918 (operator *=, operator +=, operator -=): Move ...
2919 * double-int.c (operator *=, operator +=, operator -=): ... here
2920 and implement more efficiently.
2921 (mul_double_with_sign): Remove.
2922 (lshift_double): Adjust to take unsinged shift argument, push
2923 dispatching code to callers.
2924 (mul_double_wide_with_sign): Add early out for callers that
2925 are not interested in high parts or overflow.
2926 (lshift): New function.
2927 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2929 (lrotate, rrotate): Use logical shifts.
2930 * expr.c (get_inner_reference): Use lshift.
2931 * fixed-value.c (do_fixed_divide): Likewise.
2932 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2933 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2934 (indirect_refs_may_alias_p): Likewise.
2935 (stmt_kills_ref_p_1): Likewise.
2937 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2939 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2941 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2943 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2944 scalar form of FABD instruction.
2946 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2948 * lra-constraints.c (process_alt_operands): Add checking alt
2949 number to choose the best alternative.
2951 2013-05-02 Richard Biener <rguenther@suse.de>
2953 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2954 bitmap and its handling.
2955 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2957 2013-05-02 Richard Biener <rguenther@suse.de>
2960 * tree-inline.c (copy_loops): Properly handle removed loops.
2961 (copy_cfg_body): Mark destination loops for fixup if source
2964 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2967 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2968 generating simple_return for naked functions.
2970 2013-05-02 Martin Jambor <mjambor@suse.cz>
2973 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2974 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2976 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2977 ipa_agg_replacement_value structures.
2978 (known_aggs_to_agg_replacement_list): Likewise.
2979 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2980 (read_agg_replacement_chain): Likewise.
2981 (ipcp_transform_function): Also check that by_ref flags match.
2983 2013-05-02 Richard Biener <rguenther@suse.de>
2985 * graphds.h (struct graph): Add obstack member.
2986 * graphds.c (new_graph): Initialize obstack and allocate
2988 (add_edge): Allocate edge from the obstack.
2989 (free_graph): Free the obstack instead of all edges and vertices.
2991 2013-05-02 Teresa Johnson <tejohnson@google.com>
2993 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2995 * cfg.c (update_bb_profile_for_threading): Ditto.
2996 * tree-inline.c (copy_bb): Ditto.
2997 (copy_edges_for_bb): Ditto.
2998 (initialize_cfun): Ditto.
2999 (copy_cfg_body): Ditto.
3000 (expand_call_inline): Ditto.
3001 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3002 (estimate_node_size_and_time): Ditto.
3003 (inline_merge_summary): Ditto.
3004 * cgraphclones.c (cgraph_clone_edge): Ditto.
3005 (cgraph_clone_node): Ditto.
3006 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3007 (compute_trg_info): Ditto.
3009 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3011 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3012 S reg when fp attribute set.
3013 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3015 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3017 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3019 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3020 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3021 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3023 2013-05-02 Richard Biener <rguenther@suse.de>
3025 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3026 (struct instantiate_cache_entry): New type.
3027 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3028 (struct instantiate_cache_type): New type.
3029 (set_instantiated_value, get_instantiated_value): Remove.
3030 (get_instantiated_value_entry): New function.
3031 (instantiate_scev_name): Use the new cache and adjust.
3032 (instantiate_scev_poly): Adjust.
3033 (instantiate_scev_binary): Likewise.
3034 (instantiate_array_ref): Likewise.
3035 (instantiate_scev_convert): Likewise.
3036 (instantiate_scev_not): Likewise.
3037 (instantiate_scev_3): Likewise.
3038 (instantiate_scev_2): Likewise.
3039 (instantiate_scev_r): Likewise.
3040 (instantiate_scev): Likewise.
3041 (resolve_mixers): Likewise.
3043 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3046 * lra-constraints.c (best_small_class_operands_num): Remove.
3047 (process_alt_operands): Remove small_class_operands_num. Take
3048 small classes operands into losers and only if the operand is not
3049 matched. Modify debugging output.
3050 (curr_insn_transform): Remove best_small_class_operands_num.
3053 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3055 * config/aarch64/aarch64-builtins.c
3056 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3057 * config/aarch64/aarch64-simd-builtins.def
3058 (reduc_splus_): Add new modes.
3059 (reduc_uplus_): New.
3060 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3061 (reduc_uplus_v4sf): Likewise.
3062 (reduc_splus_v4sf): Likewise.
3063 (aarch64_addv<mode>): Likewise.
3064 (reduc_uplus_<mode>): Likewise.
3065 (reduc_splus_<mode>): Likewise.
3066 (aarch64_addvv2di): Likewise.
3067 (reduc_uplus_v2di): Likewise.
3068 (reduc_splus_v2di): Likewise.
3069 (aarch64_addvv2si): Likewise.
3070 (reduc_uplus_v2si): Likewise.
3071 (reduc_splus_v2si): Likewise.
3072 (reduc_<sur>plus_<mode>): New.
3073 (reduc_<sur>plus_v2di): Likewise.
3074 (reduc_<sur>plus_v2si): Likewise.
3075 (reduc_<sur>plus_v4sf): Likewise.
3076 (aarch64_addpv4sf): Likewise.
3077 * config/aarch64/arm_neon.h
3078 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3079 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3080 add UNSPEC_SADDV, UNSPEC_UADDV.
3082 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3084 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3086 * config/aarch64/arm_neon.h
3087 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3089 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3091 * config/aarch64/aarch64-builtins
3092 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3094 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3096 * config/aarch64/aarch64-simd-builtins.def
3098 (reduc_smin_): Likewise.
3099 (reduc_umax_): Likewise.
3100 (reduc_umin_): Likewise.
3101 (reduc_smax_nan_): Likewise.
3102 (reduc_smin_nan_): Likewise.
3105 (smax): Update for V2SF, V4SF and V2DF modes.
3108 (smin_nan): Likewise.
3109 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3110 (<su><maxmin><mode>3): ...This, refactor.
3111 (s<maxmin><mode>3): New.
3112 (<maxmin_uns><mode>3): Likewise.
3113 (reduc_<maxmin_uns>_<mode>): Refactor.
3114 (reduc_<maxmin_uns>_v4sf): Likewise.
3115 (reduc_<maxmin_uns>_v2si): Likewise.
3116 (aarch64_<fmaxmin><mode>: Remove.
3117 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3119 (vmin<q>_f<32,64>): Likewise.
3120 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3122 (su): Add mappings for smax, smin, umax, umin.
3124 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3125 (FMAXMIN): Rename as...
3126 (FMAXMIN_UNS): ...This.
3128 (fmaxminv): Likewise.
3129 (fmaxmin): Likewise.
3131 (maxmin_uns_op): Likewise.
3133 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3135 * config/aarch64/arm_neon.h
3136 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3137 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3138 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3140 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3142 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3143 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3145 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3147 * config/aarch64/aarch64-simd.md
3148 (vcond<mode>_internal): Handle special cases for constant masks.
3149 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3150 (vcondu<mode><mode>): Likewise.
3151 (vcond<v_cmp_result><mode>): New.
3153 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3155 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3156 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3157 * config/aarch64/aarch64-simd-builtins.def
3158 (cmeq): Update to BUILTIN_VALLDI.
3163 * config/aarch64/arm_neon.h
3164 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3165 to builtins or C as appropriate.
3167 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3169 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3171 (cmhi): Rename to...
3173 * config/aarch64/aarch64-simd.md
3174 (simd_mode): Add SF.
3175 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3176 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3177 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3178 (cstore<mode>_neg): ...This.
3179 * config/aarch64/iterators.md
3181 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3183 (UCOMPARISONS): Likewise.
3184 (optab): Add missing comparisons.
3192 (V_cmp_result): Add DF, SF modes.
3193 (v_cmp_result): Likewise.
3196 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3198 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3200 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3201 define_insn to define_insn_and_split.
3202 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3203 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3204 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3205 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3206 (thumb2_negscc): Likewise.
3208 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3210 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3212 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3214 * config/arm/thumb2.md: Remove trailing whitespaces.
3216 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3218 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3219 Use gen_int_mode rather than GEN_INT.
3221 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3223 * value-prof.c (stream_in_histogram_value): Remove the strayed
3226 2013-04-30 Richard Biener <rguenther@suse.de>
3229 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3231 2013-04-30 Richard Biener <rguenther@suse.de>
3234 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3236 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3238 PR rtl-optimization/56957
3239 PR rtl-optimization/57105
3240 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3241 variable. Use just INSN_UID for determining whether an insn
3242 should be only disconnected from the insn stream.
3243 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3245 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3247 PR tree-optimization/57104
3248 * tsan.c (instrument_expr): Don't instrument accesses to
3249 DECL_HARD_REGISTER VAR_DECLs.
3251 2013-04-30 Richard Biener <rguenther@suse.de>
3253 * function.h (loops_for_fn): New inline function.
3254 (set_loops_for_fn): Likewise.
3255 * cfgloop.h (place_new_loop): Add struct function parameter.
3256 (get_loop): Likewise.
3257 (get_loops): Likewise.
3258 (number_of_loops): Likewise.
3260 (fel_init): Likewise.
3261 * cfg.c (get_loop_copy): Adjust.
3262 * cfgloop.c (flow_loops_dump): Likewise.
3263 (record_loop_exits): Likewise.
3264 (verify_loop_structure): Likewise.
3265 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3266 (estimate_reg_pressure_cost): Likewise.
3267 (mark_loop_exit_edges): Likewise.
3268 * cfgloopmanip.c (place_new_loop): Likewise.
3269 (add_loop): Likewise.
3270 (duplicate_loop): Likewise.
3271 * graph.c (draw_cfg_nodes): Likewise.
3272 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3273 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3274 (extract_affine_chrec): Likewise.
3275 (build_scop_iteration_domain): Likewise.
3276 * graphite.c (graphite_initialize): Likewise.
3277 * ira-build.c (create_loop_tree_nodes): Likewise.
3278 (more_one_region_p): Likewise.
3279 (rebuild_regno_allocno_maps): Likewise.
3280 (mark_loops_for_removal): Likewise.
3281 (mark_all_loops_for_removal): Likewise.
3282 (remove_unnecessary_regions): Likewise.
3283 (ira_build): Likewise.
3284 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3285 * loop-init.c (fix_loop_structure): Likewise.
3286 (gate_rtl_move_loop_invariants): Likewise.
3287 (gate_rtl_unswitch): Likewise.
3288 (gate_rtl_unroll_and_peel_loops): Likewise.
3289 (rtl_doloop): Likewise.
3290 * lto-streamer-in.c (input_cfg): Likewise.
3291 * lto-streamer-out.c (output_cfg): Likewise.
3292 * modulo-sched.c (sms_schedule): Likewise.
3293 * predict.c (tree_estimate_probability): Likewise.
3294 (tree_estimate_probability_driver): Likewise.
3295 (estimate_loops): Likewise.
3296 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3297 (move_sese_region_to_fn): Likewise.
3298 (debug_loop_num): Likewise.
3299 * tree-chrec.c (chrec_evaluate): Likewise.
3300 (hide_evolution_in_other_loops_than_loop): Likewise.
3301 (chrec_component_in_loop_num): Likewise.
3302 (reset_evolution_in_loop): Likewise.
3303 (evolution_function_is_invariant_rec_p): Likewise.
3304 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3305 * tree-inline.c (copy_loops): Likewise.
3306 (copy_cfg_body): Likewise.
3307 (tree_function_versioning): Likewise.
3308 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3309 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3311 (add_to_evolution_1): Likewise.
3312 (scev_const_prop): Likewise.
3313 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3314 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3315 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3316 (tree_ssa_lim_initialize): Likewise.
3317 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3318 (verify_loop_closed_ssa): Likewise.
3319 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3320 (tree_ssa_loop_im): Likewise.
3321 (tree_ssa_loop_unswitch): Likewise.
3322 (tree_vectorize): Likewise.
3323 (check_data_deps): Likewise.
3324 (tree_ssa_loop_ivcanon): Likewise.
3325 (tree_ssa_loop_bounds): Likewise.
3326 (tree_complete_unroll): Likewise.
3327 (tree_complete_unroll_inner): Likewise.
3328 (tree_parallelize_loops): Likewise.
3329 (tree_ssa_loop_prefetch): Likewise.
3330 (tree_ssa_loop_ivopts): Likewise.
3331 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3332 * tree-vectorizer.c (vectorize_loops): Likewise.
3334 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3336 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3337 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3338 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3339 with EABI_LINK_SPEC.
3341 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3344 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3347 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3350 * lra-constraints.c (process_alt_operands): Discourage a bit more
3351 using memory for pseudos. Print cost dump for alternatives.
3352 Modify cost values for conflicts with early clobbers.
3353 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3355 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3358 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3360 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3362 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3364 (movdi_aarch64): Support LDR/STR from/to D register.
3366 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3368 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3369 or higher by default.
3371 2013-04-29 Richard Biener <rguenther@suse.de>
3374 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3375 even if not adding abnormal edges for calls that can make
3378 2013-04-29 Richard Biener <rguenther@suse.de>
3381 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3383 (move_stmt_r): Remove redundant checking.
3385 2013-04-29 Teresa Johnson <tejohnson@google.com>
3388 * basic-block.h (apply_scale): New function.
3389 (apply_probability): Use apply_scale.
3390 * gimple-streamer-in.c (input_bb): Ditto.
3391 * lto-streamer-in.c (input_cfg): Ditto.
3392 * lto-cgraph.c (merge_profile_summaries): Ditto.
3393 * tree-optimize.c (execute_fixup_cfg): Ditto.
3394 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3395 (copy_edges_for_bb): Ditto.
3396 (copy_cfg_body): Ditto.
3398 2013-04-29 Tom de Vries <tom@codesourcery.com>
3400 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3401 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3402 (tail_merge_optimize): Handle current_loops == NULL.
3404 2013-04-26 Jeff Law <law@redhat.com>
3406 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3407 (simplify_cond_using_ranges): Generalize code to simplify
3408 COND_EXPRs where one argument is a constant and the other
3409 is an SSA_NAME created by an integral type conversion.
3411 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3413 * config/arm/arm.md (store_minmaxsi): Use only when
3414 optimize_insn_for_size_p.
3416 2013-04-29 Christian Bruel <christian.bruel@st.com>
3419 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3421 2013-04-29 Richard Biener <rguenther@suse.de>
3424 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3425 loop tree make sure to schedule a fixup for the child as well.
3426 (expand_omp_for_generic): Properly add loops.
3427 (expand_omp_for_static_nochunk): Likewise.
3428 (expand_omp_for_static_chunk): Likewise.
3429 (expand_omp_for): For the degenerate case fixup loops.
3430 (expand_omp_sections): Fix default bb placement in loops.
3431 (expand_omp_atomic_pipeline): Properly add loops.
3433 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3435 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3437 2013-04-29 Tom de Vries <tom@codesourcery.com>
3439 * tree-ssa-tail-merge.c: Update header comment.
3441 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3443 * config/aarch64/arm_neon.h
3444 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3445 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3446 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3447 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3448 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3449 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3450 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3451 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3453 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3455 * config/aarch64/aarch64-simd.md
3456 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3457 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3458 fix_trunc, fixuns_trunc.
3459 (ftrunc<VDQF:mode>2): New.
3460 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3461 (fix_trunc_optab): New.
3463 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3465 * config/aarch64/aarch64-builtins.c
3466 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3467 iceilf, lround, iroundf.
3469 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3472 * config/i386/i386.h (enum ix86_tune_indices)
3473 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3474 New, split from X86_TUNE_INTER_UNIT_MOVES.
3475 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3476 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3477 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3478 (TARGET_INTER_UNIT_MOVES): Remove.
3479 * config/i386/i386.c (initial_ix86_tune_features): Update.
3480 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3481 (ix86_expand_convert_uns_didf_sse): Use
3482 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3483 (ix86_expand_vector_init_one_nonzero): Ditto.
3484 (ix86_expand_vector_init_interleave): Ditto.
3485 (inline_secondary_memory_needed): Return true for moves from SSE class
3486 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3487 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3488 * config/i386/constraints.md (Yi, Ym): Depend on
3489 TARGET_INTER_UNIT_MOVES_TO_VEC.
3490 (Yj, Yn): New constraints.
3491 * config/i386/i386.md (*movdi_internal): Change constraints of
3492 operand 1 from Yi to Yj and from Ym to Yn.
3493 (*movsi_internal): Ditto.
3494 (*movdf_internal): Ditto.
3495 (*movsf_internal): Ditto.
3496 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3497 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3498 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3499 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3500 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3501 * config/i386/sse.md (movdi_to_sse): Ditto.
3502 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3503 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3504 TARGET_INTER_UNIT_MOVES.
3505 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3506 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3507 instead of TARGET_INTER_UNIT_MOVES.
3508 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3509 operand 1 from Yi to Yj and from Ym to Yn.
3511 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3513 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3514 (float_truncate_hi_): Likewise.
3515 (float_extend_lo_): Likewise.
3516 (float_truncate_lo_): Likewise.
3517 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3518 (aarch64_float_extend_lo_v2df): Likewise.
3519 (vec_unpacks_hi_v4sf): Likewise.
3520 (aarch64_float_truncate_lo_v2sf): Likewise.
3521 (aarch64_float_truncate_hi_v4sf): Likewise.
3522 (vec_pack_trunc_v2df): Likewise.
3523 (vec_pack_trunc_df): Likewise.
3525 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3527 * config/aarch64/aarch64-builtins.c
3528 (aarch64_fold_builtin): Fold float conversions.
3529 * config/aarch64/aarch64-simd-builtins.def
3530 (floatv2si, floatv4si, floatv2di): New.
3531 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3532 * config/aarch64/aarch64-simd.md
3533 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3534 * config/aarch64/iterators.md (FLOATUORS): New.
3535 (optab): Add float, floatuns.
3536 (su_optab): Likewise.
3538 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3540 * config/aarch64/aarch64-builtins.c
3541 (aarch64_builtin_vectorized_function): Use new names for
3543 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3544 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3545 (fcvtzu): Split as...
3546 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3547 (fcvtas): Split as...
3548 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3549 (fcvtau): Split as...
3550 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3551 (fcvtps): Split as...
3552 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3553 (fcvtpu): Split as...
3554 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3555 (fcvtms): Split as...
3556 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3557 (fcvtmu): Split as...
3558 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3559 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3560 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3561 (lfrintnusf, lfrintnudf): Likewise.
3562 * config/aarch64/aarch64-simd.md
3563 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3565 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3566 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3567 (fcvt_pattern): Likewise.
3569 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3571 * config/aarch64/aarch64-simd.md
3572 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3573 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3575 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3577 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3578 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3579 (vrnd<a,m,n,p>_f32): Implement using builtins.
3580 (vrnd<i,x><q>_f<32, 64>): New.
3582 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3584 * config/aarch64/aarch64-builtins.c
3585 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3586 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3587 (frintz): Rename to...
3589 (frintp): Rename to...
3591 (frintm): Rename to...
3593 (frinti): Rename to...
3594 (nearbyint): ...this.
3595 (frintx): Rename to...
3597 (frinta): Rename to...
3599 * config/aarch64/aarch64-simd.md
3600 (aarch64_frint<frint_suffix><mode>): Delete.
3601 (<frint_pattern><mode>2): Convert to insn.
3602 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3603 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3604 (frint_pattern): Likewise.
3605 (frint_suffix): Likewise.
3607 2013-04-29 Richard Biener <rguenther@suse.de>
3609 PR tree-optimization/57081
3610 * loop-init.c: Include tree-flow.h.
3611 (loop_optimizer_finalize): Free number of iteration estimates.
3612 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3614 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3616 PR tree-optimization/57083
3617 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3618 non-singleton shift count range, zero extend low_bound for uns case.
3620 * config/i386/predicates.md (general_vector_operand): New predicate.
3621 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3622 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3623 if they aren't nonimmediate operands. If their original values
3624 satisfy const_vector_equal_evenodd_p, don't shift them.
3625 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3626 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3627 if not nonimmediate_operand.
3628 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3629 instead of register_operand.
3630 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3632 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3634 * stor-layout.c (finalize_size_functions): Allocate a structure and
3635 reset cfun before dumping the functions.
3637 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3639 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3642 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3643 use xop_pmacsdqh if uns_p.
3644 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3645 the immediate rotate count.
3647 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3649 * rtl.h (struct rtx_def): Add comment for field jump.
3650 (LRA_SUBREG_P): New macro.
3651 * recog.c (register_operand): Check LRA_SUBREG_P.
3652 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3654 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3655 (lra_final_code_change): Skip subreg change for operators.
3656 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3657 if there are no operand changes.
3658 * lra-constraints.c (curr_insn_set): New.
3659 (match_reload): Set LRA_SUBREG_P.
3660 (emit_spill_move): Ditto.
3661 (check_and_process_move): Use curr_insn_set. Process only single
3662 set insns. Don't initialize sec_mem_p and change_p.
3663 (simplify_operand_subreg): Use LRA_SUBREG_P.
3664 (reg_in_class_p): New function.
3665 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3666 of #ifdef. Add code to remove cycling.
3667 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3668 non-null disp. Reload inner instead of disp when base and index
3669 are null. Try to put lo_sum into register.
3670 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3671 (check_and_process_move): Move code for move cost check to
3672 simple_move_p. Remove equiv_substitution.
3673 (simple_move_p): New function.
3674 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3675 curr_insn_set. Call check_and_process_move only for single set
3676 insns. Use the new function. Move call of check_and_process_move
3677 after operand equiv substitution and address process.
3679 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3682 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3683 with nonlocal goto receivers or returns twice calls, ignore
3684 unininitialized values from abnormal edges to nl goto receiver
3685 or returns twice call.
3687 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3689 PR tree-optimization/57051
3690 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3691 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3694 2013-04-26 Richard Biener <rguenther@suse.de>
3696 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3697 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3698 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3699 (fixup_loop_arrays_after_move): New function.
3700 (move_sese_region_to_fn): Properly outline the loop tree parts
3703 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
3705 * config/i386/i386.md (type, unit): Fix long lines.
3707 2013-04-26 Richard Biener <rguenther@suse.de>
3709 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3710 (lto-streamer-out.o): Likewise.
3711 * cfgloop.c (init_loops_structure): Export, add struct function
3712 argument and adjust.
3713 (flow_loops_find): Adjust.
3714 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3715 (init_loops_structure): Declare.
3716 * lto-streamer-in.c: Include cfgloop.h.
3717 (input_cfg): Input the loop tree.
3718 * lto-streamer-out.c: Include cfgloop.h.
3719 (output_cfg): Output the loop tree.
3720 (output_struct_function_base): Do not drop PROP_loops.
3722 2013-03-26 Richard Biener <rguenther@suse.de>
3724 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3725 (pass_build_cfg): Provide PROP_loops.
3726 (move_sese_region_to_fn): Remove loops that are outlined into fn
3728 * tree-inline.c: Include cfgloop.h.
3729 (initialize_cfun): Do not drop PROP_loops.
3730 (copy_loops): New function.
3731 (copy_cfg_body): Copy loop structure.
3732 (tree_function_versioning): Initialize destination loop tree.
3733 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3734 (pass_parallelize_loops): Do IL verification.
3735 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3736 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3737 the CFG make sure we fixup loops as well.
3738 * tree-ssa-tail-merge.c: Include cfgloop.h.
3739 (replace_block_by): When merging loop latches mark loops for fixup.
3740 * lto-streamer-out.c (output_struct_function_base): Drop
3742 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3743 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3744 * ipa-split.c: Include cfgloop.h.
3745 (split_function): Add the new return block to the loop tree root.
3746 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3747 whether we have removed the forwarder block.
3748 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3749 * cfgloop.h (place_new_loop): Declare.
3750 * cfgloopmanip.c (place_new_loop): Export.
3751 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3752 (tree-switch-conversion.o): Likewise.
3753 (tree-complex.o): Likewise.
3754 (tree-inline.o): Likewise.
3755 (tree-ssa-tailmerge.o): Likewise.
3756 (ipa-split.o): Likewise.
3757 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3758 (tree-ssa-copy.o): Likewise.
3759 * tree-switch-conversion.c: Include cfgloop.h
3760 (process_switch): If we emit a bit-test cascade, schedule loops
3762 * tree-complex.c: Include cfgloop.h.
3763 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3764 * asan.c: Include cfgloop.h.
3765 (create_cond_insert_point): Properly add new basic-blocks to
3766 loops, schedule loop fixup.
3767 * cfgloop.c (verify_loop_structure): Check that looks are not
3769 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3771 (expand_omp_for_generic): Likewise.
3772 (expand_omp_sections): Likewise.
3773 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3774 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3775 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3776 is initialized, not when loops are present.
3777 * tree-parloops.c (parallelize_loops): Remove checking here.
3778 * passes.c (init_optimization_passes): Schedule a copy-propagation
3779 pass before complete unrolling of inner loops.
3781 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3783 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3784 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3785 (colorize_init): Add argument to _WIN32 version.
3786 * toplev.c: Include diagnostic-color.h.
3787 (process_options): Default to -fdiagnostics-color=auto if
3788 GCC_COLORS env var is in the environment.
3789 * common.opt (fdiagnostics-color=): Add Var and Init.
3790 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3791 env var is in the environment, the default is auto rather than never.
3793 * diagnostic.h (file_name_as_prefix): Add context argument.
3794 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3795 the string as locus.
3796 * langhooks.c (lhd_print_error_function): Adjust caller.
3798 2013-04-25 Lawrence Crowl <crowl@google.com>
3800 * var-tracking.c (shared_hash_def::htab):
3801 Change type to hash_table. Update dependent calls and types.
3803 2013-04-25 Lawrence Crowl <crowl@google.com>
3805 * Makefile.in: Update as needed below.
3807 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3808 Move declaration to after the type's method definitons.
3810 * attribs.c (htab_t scoped_attributes::attribute_hash):
3811 Change type to hash_table. Update dependent calls and types.
3813 * bitmap.c (htab_t bitmap_desc_hash):
3814 Change type to hash_table. Update dependent calls and types.
3816 * cselib.c (htab_t cselib_hash_table):
3817 Change type to hash_table. Update dependent calls and types.
3819 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3820 (hash_string_slot_node): Move implementation into lto-streamer.h
3821 struct string_slot_hasher.
3822 (eq_string_slot_node): Likewise.
3824 * data-streamer-out.c: Update output_block::string_hash_table
3825 dependent calls and types.
3827 * dwarf2cfi.c (htab_t trace_index):
3828 Change type to hash_table. Update dependent calls and types.
3830 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3831 Change type to hash_table. Update dependent calls and types.
3832 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3833 (htab_t optimize_external_refs::map): Likewise.
3834 (htab_t output_comp_unit::extern_map): Likewise.
3835 (htab_t output_comdat_type_unit::extern_map): Likewise.
3836 (htab_t output_macinfo::macinfo_htab): Likewise.
3837 (htab_t optimize_location_lists::htab): Likewise.
3838 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3840 * except.c (htab_t ehspec_hash_type):
3841 Change type to hash_table. Update dependent calls and types.
3842 (assign_filter_values::ttypes): Likewise.
3843 (assign_filter_values::ehspec): Likewise.
3844 (sjlj_assign_call_site_values::ar_hash): Likewise.
3845 (convert_to_eh_region_ranges::ar_hash): Likewise.
3847 * gcse.c (htab_t pre_ldst_table):
3848 Change type to hash_table. Update dependent calls and types.
3850 * ggc-common.c (htab_t saving_htab):
3851 Change type to hash_table. Update dependent calls and types.
3852 (htab_t loc_hash): Likewise.
3853 (htab_t ptr_hash): Likewise.
3854 (call_count): Rename ggc_call_count.
3855 (call_alloc): Rename ggc_call_alloc.
3856 (loc_descriptor): Rename make_loc_descriptor.
3857 (add_statistics): Rename ggc_add_statistics.
3859 * ggc-common.c (saving_htab):
3860 Change type to hash_table. Update dependent calls and types.
3862 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3863 (push_gimplify_context): Likewise.
3864 (pop_gimplify_context): Likewise.
3865 (struct gimple_temp_hash_elt): Added.
3866 (struct gimplify_hasher): Likewise.
3867 (struct gimplify_ctx.temp_htab):
3868 Change type to hash_table. Update dependent calls and types.
3870 * gimple-fold.c: Include gimplify-ctx.h.
3872 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3873 Change type to hash_table. Update dependent calls and types.
3874 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3875 avoid potential global name collision.
3877 * gimplify.c: Include gimplify-ctx.h.
3878 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3879 (htab_t gimplify_ctx::temp_htab):
3880 Update dependent calls and types for new type hash_table.
3881 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3882 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3884 * gimplify-ctx.h: New.
3885 (struct gimple_temp_hash_elt): Move from gimplify.c.
3886 (class gimplify_hasher): New.
3887 (struct gimplify_ctx): Move from gimple.h.
3888 (htab_t gimplify_ctx::temp_htab):
3889 Change type to hash_table. Update dependent calls and types.
3891 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3892 (htab_t ivs_params::newivs_index):
3893 Change type to hash_table. Update dependent calls and types.
3894 (htab_t ivs_params::params_index): Likewise.
3895 (htab_t print_generated_program::params_index): Likewise.
3896 (htab_t gloog::newivs_index): Likewise.
3897 (htab_t gloog::params_index): Likewise.
3899 * graphite.c: Include graphite-htab.h.
3900 4htab_t graphite_transform_loops::bb_pbb_mapping):
3901 Change type to hash_table. Update dependent calls and types.
3903 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3904 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3905 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3907 * graphite-dependences.c: Include graphite-htab.h.
3908 (loop_is_parallel_p): Change hash table type of parameter.
3910 * graphite-htab.h: New.
3911 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3912 (extern find_pbb_via_hash): Move from graphite-poly.h.
3913 (extern loop_is_parallel_p): Move from graphite-poly.h.
3914 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3916 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3917 (extern loop_is_parallel_p): Move to graphite-htab.h.
3918 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3920 * haifa-sched.c (htab_t delay_htab):
3921 Change type to hash_table. Update dependent calls and types.
3922 (htab_t delay_htab_i2): Likewise.
3924 * ira-color.c (htab_t allocno_hard_regs_htab):
3925 Change type to hash_table. Update dependent calls and types.
3927 * ira-costs.c (htab_t cost_classes_htab):
3928 Change type to hash_table. Update dependent calls and types.
3930 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3931 Change type to hash_table. Update dependent calls and types.
3933 * loop-iv.c (htab_t bivs):
3934 Change type to hash_table. Update dependent calls and types.
3936 * loop-unroll.c (htab_t opt_info::insns_to_split):
3937 Change type to hash_table. Update dependent calls and types.
3938 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3940 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3941 (struct string_slot_hasher): New.
3942 (htab_t output_block::string_hash_table):
3943 Change type to hash_table. Update dependent calls and types.
3945 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3946 (htab_t file_name_hash_table):
3947 Change type to hash_table. Update dependent calls and types.
3949 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3952 * lto-streamer.c (htab_t tree_htab):
3953 Change type to hash_table. Update dependent calls and types.
3955 * omp-low.c: Include gimplify-ctx.h.
3957 * passes.c (htab_t name_to_pass_map):
3958 Change type to hash_table. Update dependent calls and types.
3959 (pass_traverse): Rename to passes_pass_traverse.
3961 * plugin.c (htab_t event_tab):
3962 Change type to hash_table. Update dependent calls and types.
3964 * postreload-gcse.c (htab_t expr_table):
3965 Change type to hash_table. Update dependent calls and types.
3966 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3968 * sese.c (debug_rename_map_1): Make extern.
3969 (htab_t copy_bb_and_scalar_dependences::rename_map):
3970 Change type to hash_table. Update dependent calls and types.
3972 * sese.h (extern debug_rename_map): Move to .c file.
3974 * store-motion.c (htab_t store_motion_mems_table):
3975 Change type to hash_table. Update dependent calls and types.
3977 * trans-mem.c (htab_t tm_new_mem_hash):
3978 Change type to hash_table. Update dependent calls and types.
3980 * tree-browser.c (htab_t TB_up_ht):
3981 Change type to hash_table. Update dependent calls and types.
3983 * tree-cfg.c (htab_t discriminator_per_locus):
3984 Change type to hash_table. Update dependent calls and types.
3986 * tree-complex.c: Include tree-hasher.h
3987 (htab_t complex_variable_components):
3988 Change type to hash_table. Update dependent calls and types.
3990 * tree-eh.c (htab_t finally_tree):
3991 Change type to hash_table. Update dependent calls and types.
3993 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3994 struct int_tree_hasher.
3995 (extern int_tree_map_eq): Likewise.
3996 (uid_decl_map_hash): Removed.
3997 (extern decl_tree_map_eq): Likewise.
3999 * tree-hasher.h: New.
4000 (struct int_tree_hasher): New.
4001 (typedef int_tree_htab_type): New.
4003 * tree-inline.c: Include gimplify-ctx.h.
4005 * tree-mudflap.c: Include gimplify-ctx.h.
4007 * tree-parloops.c: Include tree-hasher.h.
4008 (htab_t eliminate_local_variables_stmt::decl_address):
4009 Change type to hash_table. Update dependent calls and types.
4010 (htab_t separate_decls_in_region::decl_copies): Likewise.
4012 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4013 Change type to hash_table. Update dependent calls and types.
4015 * tree-sra.c (candidates):
4016 Change type to hash_table. Update dependent calls and types.
4018 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4020 (int_tree_map_hash): Likewise.
4022 * tree-ssa-dom.c (htab_t avail_exprs):
4023 Change type to hash_table. Update dependent calls and types.
4025 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4026 Change type to hash_table. Update dependent calls and types.
4028 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4029 Change type to hash_table. Update dependent calls and types.
4031 * tree-ssa-phiopt.c (seen_ssa_names):
4032 Change type to hash_table. Update dependent calls and types.
4034 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4035 Change type to hash_table. Update dependent calls and types.
4037 * tree-ssa-uncprop.c (equiv):
4038 Change type to hash_table. Update dependent calls and types.
4040 2013-04-25 Jakub Jelinek <jakub@redhat.com>
4042 PR rtl-optimization/57003
4043 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4044 call note_stores with kill_clobbered_value callback again after
4045 killing regs_invalidated_by_call.
4047 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4049 * config/aarch64/aarch64-simd.md
4050 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4051 (aarch64_simd_bsl<mode>): Likewise.
4052 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4054 2013-04-25 Marek Polacek <polacek@redhat.com>
4056 PR tree-optimization/57066
4057 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4059 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4061 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4063 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4065 * config/aarch64/aarch64-builtins.c
4066 (aarch64_fold_builtin): New.
4067 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4068 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4069 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4070 * config/aarch64/arm_neon.h
4071 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4073 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4074 Tejas Belagod <tejas.belagod@arm.com>
4076 * config/aarch64/aarch64-builtins.c
4077 (aarch64_gimple_fold_builtin): New.
4078 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4079 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4080 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4082 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4084 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4086 * config/aarch64/aarch64.md
4087 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4089 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4091 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4092 (*ngcsi_uxtw): New pattern.
4094 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4095 Julian Brown <julian@codesourcery.com>
4097 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4098 (TB_DREG): Add T_V4HF.
4099 (v4hf_UP): New macro.
4100 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4101 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4102 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4104 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4105 (arm_vector_mode_supported_p): Handle V4HF.
4106 (arm_mangle_map): Handle V4HFmode.
4107 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4108 * config/arm/arm_neon_builtins.def: Add entries for
4109 vcvtv4hfv4sf, vcvtv4sfv4hf.
4110 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4111 (neon_vcvtv4hfv4sf): Likewise.
4112 * config/arm/neon-gen.ml: Handle half-precision floating point
4114 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4115 * config/arm/arm_neon.h: Regenerate.
4116 * config/arm/neon.ml (type elts): Add F16.
4117 (type vectype): Add T_float16x4, T_floatHF.
4118 (type vecmode): Add V4HF.
4119 (type features): Add Requires_FP_bit feature.
4120 (elt_width): Handle F16.
4121 (elt_class): Likewise.
4122 (elt_of_class_width): Likewise.
4123 (mode_of_elt): Refactor.
4124 (type_for_elt): Handle F16, fix error messages.
4125 (vectype_size): Handle T_float16x4.
4126 (vcvt_sh): New function.
4127 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4128 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4129 (string_of_mode): Handle V4HF.
4130 * doc/arm-neon-intrinsics.texi: Regenerate.
4132 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4134 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4135 format specifier in 'X' case.
4137 2013-04-25 Alan Modra <amodra@gmail.com>
4140 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4141 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4142 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4143 Repeat for many other rotate/shift and mask patterns using subregs.
4144 Name lshiftrt insns.
4145 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4146 on WORDS_BIG_ENDIAN.
4148 2013-04-25 Alan Modra <amodra@gmail.com>
4150 * config.gcc: Support little-endian powerpc-linux targets.
4151 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4152 (LINK_OS_LINUX_SPEC): Define.
4153 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4154 Preserve MASK_LITTLE_ENDIAN.
4155 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4156 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4157 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4158 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4159 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4160 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4161 Correct fp word order for little-endian. Don't shift toc entries
4162 smaller than a word for little-endian.
4163 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4164 (bswapdi2 splits): Correct low-part subreg for little-endian.
4165 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4166 low/high where such is correct only for be.
4167 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4168 little-endian for -mcall-aixdesc.
4170 2013-04-25 Alan Modra <amodra@gmail.com>
4172 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4173 replace_equiv_address_nv.
4175 2013-04-25 Alan Modra <amodra@gmail.com>
4177 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4179 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4182 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4183 * rtl.h (struct rtx_def): ...
4185 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4187 PR rtl-optimizations/57046
4188 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4189 for multi-reg splits.
4191 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4193 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4195 2013-04-24 Sterling Augustine <saugustine@google.com>
4197 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4198 (comp_dir_string, debug_str_dwo_section): New.
4199 (DEBUG_STR_DWO_SECTION): Rename to ...
4200 (DEBUG_DWO_STR_SECTION): ... this.
4201 (DEBUG_NORM_STR_SECTION): Delete.
4202 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4203 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4204 (find_AT_string): Move most logic to ...
4205 (find_AT_string_in_table): ... here. New.
4206 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4207 add_skeleton_AT_string. Delete logic.
4208 (output_skeleton_debug_sections): Remove call to
4209 add_top_level_skeleton_die_attrs.
4210 (add_comp_dir_attribute): Move logic to comp_dir_string.
4211 (dwarf2out_init): Initialize debug_str_dwo_section.
4212 (output_indirect_string): Call find_string_form.
4213 (output_indirect_strings): Rewrite.
4214 (prune_unused_types): Empty skeleton_debug_str_hash.
4215 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4216 (dwarf2out_finish): Call output_indirect_strings.
4218 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4220 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4222 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4224 * rtl.h (struct rtx_def): Add comment for field jump.
4225 (LRA_SUBREG_P): New macro.
4226 * recog.c (register_operand): Check LRA_SUBREG_P.
4227 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4229 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4230 (lra_final_code_change): Skip subreg change for operators.
4231 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4232 if there are no operand changes.
4233 * lra-constraints.c (curr_insn_set): New.
4234 (match_reload): Set LRA_SUBREG_P.
4235 (emit_spill_move): Ditto.
4236 (check_and_process_move): Use curr_insn_set. Process only single
4237 set insns. Don't initialize sec_mem_p and change_p.
4238 (simplify_operand_subreg): Use LRA_SUBREG_P.
4239 (reg_in_class_p): New function.
4240 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4241 of #ifdef. Add code to remove cycling.
4242 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4243 non-null disp. Reload inner instead of disp when base and index
4244 are null. Try to put lo_sum into register.
4245 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4246 (check_and_process_move): Move code for move cost check to
4247 simple_move_p. Remove equiv_substitution.
4248 (simple_move_p): New function.
4249 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4250 curr_insn_set. Call check_and_process_move only for single set
4251 insns. Use the new function. Move call of check_and_process_move
4252 after operand equiv substitution and address process.
4254 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4256 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4257 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4258 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4260 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4262 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4264 2013-04-24 Marek Polacek <polacek@redhat.com>
4266 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4267 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4268 (select_loops_exit_conditions): Likewise.
4269 (number_of_iterations_for_all_loops): Likewise.
4270 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4271 (scev_analysis): Likewise.
4273 2013-04-02 Catherine Moore <clm@codesourcery.com>
4274 Chao-ying Fu <fu@mips.com>
4276 * config/mips/micromips.md (jraddiusp): New pattern.
4277 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4278 instruction if possible.
4280 2013-04-24 Alan Modra <amodra@gmail.com>
4282 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4284 2013-04-24 Julian Brown <julian@codesourcery.com>
4285 Chung-Lin Tang <cltang@codesourcery.com>
4287 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4288 dependency behavior in enumeration type DIE generation. Add TODO note
4289 to comments about future DW_FORM_sdata/udata re-work of related code.
4291 2013-04-23 Lawrence Crowl <crowl@google.com>
4293 * Makefile.in: Update as needed below.
4295 * hash-table.h (class hash_table):
4296 Correct many methods with parameter types compare_type to the correct
4297 value_type. (Correct code was unlikely to notice the change.)
4298 (hash_table::elements_with_deleted) New.
4299 (class hashtable::iterator): New.
4300 (hashtable::begin()): New.
4301 (hashtable::end()): New.
4302 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4304 * statistics.c (statistics_hashes):
4305 Change type to hash_table. Update dependent calls and types.
4307 * tree-into-ssa.c (var_infos):
4308 Change type to hash_table. Update dependent calls and types.
4310 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4311 Change type to hash_table. Update dependent calls and types.
4313 * tree-ssa-loop-im.c (struct mem_ref.refs):
4314 Change type to hash_table. Update dependent calls and types.
4316 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4317 Change type to hash_table. Update dependent calls and types.
4319 * tree-ssa-sccvn.c (vn_tables_s::nary):
4320 Change type to hash_table. Update dependent calls and types.
4321 (vn_tables_s::phis): Likewise.
4322 (vn_tables_s::references): Likewise.
4324 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4325 (vn_reference_eq): Update parameter and return types.
4327 * tree-ssa-structalias.c (pointer_equiv_class_table):
4328 Change type to hash_table. Update dependent calls and types.
4329 (location_equiv_class_table): Likewise.
4331 * tree-vect-data-refs.c: Consequential changes for making
4332 peeling a hash_table.
4334 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4335 (destroy_loop_vec_info): Dependent hash_table update.
4337 * tree-vectorizer.h (peeling_htab):
4338 Change type to hash_table. Update dependent calls and types.
4340 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4342 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4343 to check the register content is equal or not.
4344 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4345 to assign register content record.
4346 * lra-eliminations.c (update_reg_eliminate): Use
4347 lra_update_reg_val_offset to update register content offset.
4348 * lra-int.h (struct lra_reg): Add offset member.
4349 (lra_reg_val_equal_p): New static inline function.
4350 (lra_update_reg_val_offset): New static inline function.
4351 (lra_assign_reg_val): New static inline function.
4352 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4353 to assign register content record.
4354 (initialize_lra_reg_info_element): Initial offset to zero.
4356 2013-04-23 Catherine Moore <clm@codesourcery.com>
4358 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4359 operands. Record compression.
4361 2013-04-23 Xinliang David Li <davidxl@google.com>
4363 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4365 2013-04-23 Richard Biener <rguenther@suse.de>
4368 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4369 parameter, only add abnormal goto edges from the copied body
4370 if the call could perform abnormal gotos.
4371 (copy_cfg_body): Adjust.
4373 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4375 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4377 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4379 * coretypes.h (gimple_stmt_iterator): Add struct to make
4382 2013-04-23 Richard Biener <rguenther@suse.de>
4384 PR tree-optimization/57026
4385 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4386 from SSA names occuring in abnormal PHI nodes.
4388 2013-04-22 Andi Kleen <ak@linux.intel.com>
4390 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4392 2013-04-22 Andi Kleen <ak@linux.intel.com>
4394 * lto/lto.c (print_lto_report_1): Declare early.
4395 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4397 2013-04-22 Andi Kleen <ak@linux.intel.com>
4399 * common.opt (-flto-report-wpa): Add.
4400 * doc/invoke.texi (-flto-report-wpa): Add.
4401 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4404 2013-04-22 Xinliang David Li <davidxl@google.com>
4406 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4407 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4408 * Makefile.in: New dependency
4410 David Daney <ddaney.cavm@gmail.com>
4412 * configure.ac (gcc_cv_as_micromips_support): Use the
4413 --fatal-warnings option.
4414 * configure: Regenerate.
4416 2013-04-22 Marek Polacek <polacek@redhat.com>
4419 * tsan.c (instrument_expr): Don't instrument expression
4420 in case its size is zero.
4422 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4426 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4428 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4430 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4432 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4433 (gimple_stmt_iterator): New typedef.
4434 * gimple.h (gimple_stmt_iterator): Rename to...
4435 (gimple_stmt_iterator_d): ... This.
4436 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4437 trees be valid for GIMPLE and GENERIC.
4438 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4439 * gimple-fold.c (gimple_fold_call): Call target hook
4440 gimple_fold_builtin.
4441 * hooks.c (hook_bool_gsiptr_false): New.
4442 * hooks.h (hook_bool_gsiptr_false): New.
4443 * target.def (fold_stmt): New.
4444 * doc/tm.texi: Regenerate.
4446 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4449 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4450 a set sp if no stack realignment.
4452 2013-04-22 Nick Clifton <nickc@redhat.com>
4454 * config.gcc (tilegx-linux): Extend extra_objs rather than
4456 (tilepro-linux): Likewise.
4458 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4460 * config/aarch64/aarch64-builtins.c
4462 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4463 (VAR<1-12>): Add MAP parameter.
4464 (BUILTIN_*): Likewise.
4465 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4466 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4467 (aarch64_ushl_n<mode>): Likewise.
4468 (aarch64_sshr_n<mode>): Likewise.
4469 (aarch64_ushr_n<mode>): Likewise.
4470 (aarch64_<maxmin><mode>): Likewise.
4471 (aarch64_sqrt<mode>): Likewise.
4472 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4473 (vshr<q>_n_*): Likewise.
4475 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4477 * config/aarch64/aarch64-builtins.c
4478 (aarch64_simd_builtin_type_mode): Handle SF types.
4480 (BUILTIN_GPF): Define.
4481 (aarch64_init_simd_builtins): Handle SF types.
4482 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4485 * config/aarch64/aarch64-simd.md
4486 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4487 (aarch64_frecpe<mode>): New.
4488 (aarch64_frecps<mode>): Likewise.
4489 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4490 (v8type): Add frecp<esx>.
4491 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4492 (aarch64_frecps<mode>): Likewise.
4493 * config/aarch64/iterators.md (FRECP): New.
4494 (frecp_suffix): Likewise.
4495 * config/aarch64/arm_neon.h
4496 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4498 2013-04-22 Christian Bruel <christian.bruel@st.com>
4501 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4502 (REG_CLASS_NAMES): Idem.
4503 (REG_CLASS_CONTENTS): Idem.
4504 (REGCLASS_HAS_FP_REG): Idem.
4505 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4506 (sh_conditional_register_usage): Idem.
4508 2013-04-21 Jeff Law <law@redhat.com>
4510 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4511 (ssa_forward_propagate_and_combine): Use it.
4513 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4515 * lra.c: Update the flow chart diagram.
4517 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4519 PR rtl-optimization/56847
4520 * lra-constraints.c (process_alt_operands): Discourage alternative
4521 with non-matche doffsettable memory constraint fro memory with
4524 2013-04-19 Richard Biener <rguenther@suse.de>
4526 PR tree-optimization/56982
4527 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4529 * gimplify.c (gimplify_call_expr): Notice special calls.
4530 (gimplify_modify_expr): Likewise.
4531 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4532 abnormal control flow receivers.
4533 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4534 in the same way as cfun->has_nonlocal_labels.
4535 (gimple_purge_dead_abnormal_call_edges): Likewise.
4536 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4537 receivers start a basic-block.
4539 2013-04-19 Richard Biener <rguenther@suse.de>
4541 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4543 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4544 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4545 (SLP_TREE_LOAD_PERMUTATION): Add.
4546 (vect_transform_slp_perm_load): Adjust prototype.
4547 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4548 (vect_free_slp_instance): Likewise.
4549 (vect_create_new_slp_node): Likewise.
4550 (vect_supported_slp_permutation_p): Remove.
4551 (vect_slp_rearrange_stmts): Adjust.
4552 (vect_supported_load_permutation_p): Likewise. Inline
4553 vect_supported_slp_permutation_p here.
4554 (vect_analyze_slp_instance): Compute load permutations per
4555 slp node instead of per instance.
4556 (vect_get_slp_defs): Adjust.
4557 (vect_transform_slp_perm_load): Likewise.
4558 (vect_schedule_slp_instance): Remove redundant code.
4559 (vect_schedule_slp): Remove hack for PR56270, add it ...
4560 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4561 CSE loads for SLP. Adjust.
4563 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4565 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4566 spelling in two comments.
4568 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4571 * config/arm/arm.c (load_multiple_sequence): Require SP
4572 as base register for loads if SP is in the register list.
4574 2013-04-19 Martin Jambor <mjambor@suse.cz>
4576 PR tree-optimization/56718
4577 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4578 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4579 and made public. Adjusted all callers.
4580 (ipa_intraprocedural_devirtualization): New function.
4581 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4582 (ipa_intraprocedural_devirtualization): Likewise.
4583 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4585 2013-04-19 Richard Biener <rguenther@suse.de>
4587 PR tree-optimization/57000
4588 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4590 2013-04-19 Terry Guo <terry.guo@arm.com>
4592 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4594 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4595 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4596 (cortex_m4_fmacs): Use new reservations.
4597 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4599 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4601 PR rtl-optimization/56999
4602 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4604 (lra_coalesce): Remove split_origin_bitmap and related code.
4605 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4606 ranges if necessary.
4608 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4610 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4612 (ix86_expand_call): Remove clobbered_registers array and use
4613 x86_64_ms_sysv_extra_clobbered_registers instead.
4614 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4616 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4618 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4619 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4620 (*call_value_rex64_ms_sysv): Ditto.
4622 2013-04-18 Cary Coutant <ccoutant@google.com>
4624 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4625 parent instead of die_mark.
4627 2013-04-18 Diego Novillo <dnovillo@google.com>
4629 * gimple.c (create_gimple_tmp): New.
4630 (get_expr_type): New.
4631 (build_assign): New.
4632 (build_type_cast): New.
4633 * gimple.h (enum ssa_mode): Define.
4634 (gimple_seq_set_location): New.
4635 * asan.c (build_check_stmt): Change some gimple_build_* calls
4636 to use build_assign and build_type_cast.
4638 2013-04-18 Richard Biener <rguenther@suse.de>
4640 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4641 handle negative step. Remove redundant checks.
4642 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4643 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4644 for negative step and grouped loads fail to vectorize.
4646 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4648 * emit-rtl.c (reset_insn_used_flags): New function.
4649 (reset_all_used_flags): Use it.
4650 (verify_insn_sharing): New function.
4651 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4653 2013-04-18 Jakub Jelinek <jakub@redhat.com>
4655 PR tree-optimization/56984
4656 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4657 and (x >> M) >= N don't register any assertion if N << M is the
4660 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4662 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4663 do not delete_insn insns that have not yet been emitted, only
4664 unlink them with remove_insn.
4665 * df-scan.c (df_insn_delete): Revert r197492.
4667 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4669 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4670 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4672 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4674 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4675 define_insn_and_split.
4676 (and_scc,ior_scc,negscc): Likewise.
4677 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4679 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4681 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4682 can benefit from using a sequence of LDRD instructions in epilogue
4683 instead of a single LDM instruction.
4685 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4688 * doc/extend.texi: Fix typo.
4690 2013-04-17 Richard Biener <rguenther@suse.de>
4692 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4693 (vect_build_slp_tree): ... here.
4694 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4695 match. Remove special-casing of mismatched complex loads.
4696 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4697 re-try the match with swapped commutative operands.
4698 (vect_supported_load_permutation_p): Remove special-casing of
4699 mismatched complex loads.
4700 (vect_analyze_slp_instance): Adjust.
4702 2013-04-17 Richard Biener <rguenther@suse.de>
4704 PR rtl-optimization/56921
4705 * cfgloop.h (struct loop): Add simple_loop_desc member.
4706 (struct niter_desc): Mark with GTY(()).
4707 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4708 * loop-iv.c (get_simple_loop_desc): Likewise.
4709 (free_simple_loop_desc): Likewise.
4712 2013-04-16 Richard Biener <rguenther@suse.de>
4714 PR rtl-optimization/56921
4715 * loop-init.c (pass_rtl_move_loop_invariants): Add
4716 TODO_do_not_ggc_collect to todo_flags_finish.
4717 (pass_rtl_unswitch): Same.
4718 (pass_rtl_unroll_and_peel_loops): Same.
4719 (pass_rtl_doloop): Same.
4721 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4723 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4724 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4725 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4727 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4728 * tree-streamer.c (record_common_node): Adjust reference in comment.
4730 2013-04-17 Terry Guo <terry.guo@arm.com>
4732 * config/arm/cortex-m4.md: Add a new bypass.
4734 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4736 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4738 (*subs_<optab><mode>_multp2): New pattern.
4739 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4740 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4742 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4744 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4745 (*subs_mul_imm_<mode>): New pattern.
4747 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
4750 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4751 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4752 (vsx_movti_32bit): Change j->wa to O->wa.
4754 2013-04-16 Richard Biener <rguenther@suse.de>
4756 PR rtl-optimization/56921
4757 * loop-init.c (pass_rtl_move_loop_invariants): Add
4758 TODO_do_not_ggc_collect to todo_flags_finish.
4759 (pass_rtl_unswitch): Same.
4760 (pass_rtl_unroll_and_peel_loops): Same.
4761 (pass_rtl_doloop): Same.
4763 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
4765 * config/arm/arm.c (emit_multi_reg_push): New declaration
4766 for an existing function.
4767 (arm_emit_strd_push): New function.
4768 (arm_expand_prologue): Used here.
4769 (arm_emit_ldrd_pop): New function.
4770 (arm_expand_epilogue): Used here.
4771 (arm_get_frame_offsets): Update condition.
4772 (arm_emit_multi_reg_pop): Add a special case for load of a single
4773 register with writeback.
4775 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
4777 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4780 2013-04-16 Richard Biener <rguenther@suse.de>
4782 PR tree-optimization/56756
4783 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4784 (first_mem_ref_loc): New.
4785 (execute_sm): Place the load temporarily before a previous
4786 access instead of in the latch edge to ensure its SSA dependencies
4787 are defined at points dominating the load.
4789 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4791 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4792 correct fix by moving header and footer insn to the footer of
4793 the merged basic block. Clear BB_END of the merged-away block.
4796 * emit-rtl.c (make_note_raw): New function.
4797 (link_insn_into_chain): New static inline function.
4799 (add_insn_before, add_insn_after): Factor insn chain linking code...
4800 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4801 using link_insn_into_chain.
4802 (note_outside_basic_block_p): New helper function for emit_note_after
4803 and emit_note_before.
4804 (emit_note_after): Use nobb variant of add_insn_after if the note
4805 should not be contained in a basic block.
4806 (emit_note_before): Use nobb variant of add_insn_before if the note
4807 should not be contained in a basic block.
4808 (emit_note_copy): Use make_note_raw.
4809 (emit_note): Likewise.
4810 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4811 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4812 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4813 the moved barrier the tail of the basic block it follows.
4814 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4816 2013-04-15 Jakub Jelinek <jakub@redhat.com>
4818 PR tree-optimization/56962
4819 * gimple-ssa-strength-reduction.c (record_increment): Only set
4820 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4821 either rhs1 or rhs2 is equal to c->base_expr.
4823 2013-04-15 Richard Biener <rguenther@suse.de>
4825 PR tree-optimization/56933
4826 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4828 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4829 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4830 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4831 dependence check ...
4832 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4834 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4835 GROUP_READ_WRITE_DEPENDENCE.
4837 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4839 * emit-rtl.c (reset_all_used_flags): New function.
4840 (verify_rtl_sharing): Call reset_all_used_flags before and after
4841 performing the checks.
4843 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4845 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4846 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4847 * config/arm/constraints.md (De): New constraint.
4848 * config/arm/neon.md (anddi3_neon): Delete.
4849 (neon_vand<mode>): Expand to standard anddi3 pattern.
4850 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4851 Move earlier in the file.
4852 (neon_inv_logic_op2): Likewise.
4853 (arm_anddi_operand_neon): New predicate.
4855 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4857 * configure.ac (gcc_cv_ld_as_needed): Set
4858 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4859 Use -z ignore, -z record on *-*-solaris2*.
4860 (HAVE_LD_AS_NEEDED): Update comment.
4861 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4862 * configure: Regenerate.
4863 * config.in: Regenerate.
4864 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4865 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4866 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4867 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4868 equivalents. Fix markup.
4869 * doc/tm.texi: Regenerate.
4871 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4873 * config/i386/i386.opt: New option mstack-protector-guard=.
4874 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4875 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4876 TARGET_SSP_TLS_GUARD.
4877 * config/i386/i386.c (ix86_option_override_internal): Set
4878 ix86_stack_protector_guard.
4879 * config/i386/i386.md (stack_protect_set): Enable for
4880 TARGET_SSP_TLS_GUARD only.
4881 (stack_protect_set_<mode>): Ditto.
4882 (stack_protect_test): Ditto.
4883 (stack_protect_test_<mode>): Ditto.
4884 * doc/invoke.texi (i386 Option): Document.
4886 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4889 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4890 (S_MODES): Set H_MODE bit.
4891 (SF_MODES): Set only S_MODE and SF_MODE bits.
4892 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4893 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4894 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4895 <MODE_FLOAT>: Likewise.
4897 2013-04-15 Joey Ye <joey.ye@arm.com>
4899 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4901 2013-04-15 Joey Ye <joey.ye@arm.com>
4903 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4905 (thumb_far_jump_used_p): Count instruction size and set
4908 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4910 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4911 * resource.c (mark_target_live_regs): Reformat conditional block.
4913 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4915 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4916 notes, they are emitted only just before final.
4917 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4919 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4921 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4922 * cfgrtl.c (delete_insn): Call it here instead.
4923 * lra-spills.c (lra_final_code_change): Use delete_insn.
4924 * haifa-sched.c (sched_remove_insn): Likewise.
4925 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4926 returning to the nop pool.
4927 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4928 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4930 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4932 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4933 * doc/tm.texi: Regenerated.
4935 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
4937 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4940 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4942 * df-core.c (df_find_def): Compare register numbers.
4943 (df_find_use): Likewise.
4945 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4948 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4949 lra_in_progress for return.
4951 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4953 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4954 define_insn into define_insn_and_split and emit movsicc patterns.
4956 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4958 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4960 2013-04-12 Richard Biener <rguenther@suse.de>
4962 * tree-pass.h (TODO_do_not_ggc_collect): New.
4963 * passes.c (execute_one_ipa_transform_pass): Honor
4964 TODO_do_not_ggc_collect.
4965 (execute_one_pass): Likewise.
4968 2013-04-10 Richard Biener <rguenther@suse.de>
4970 * passes.c (init_optimization_passes): Remove reload pass.
4971 * ira.c (do_reload): Merge into ...
4973 (rest_of_handle_reload): Remove.
4974 (pass_reload): Likewise.
4975 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4976 of reload for vzeroupper pass placement.
4978 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4980 PR tree-optimization/56918
4981 PR tree-optimization/56920
4982 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4983 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4984 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4985 use wide_mul_with_sign method.
4987 2013-04-12 Richard Biener <rguenther@suse.de>
4989 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4990 not be considered a gimple constant.
4992 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
4994 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4995 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4998 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4999 Jakub Jelinek <jakub@redhat.com>
5001 * opts.c: Include diagnostic-color.h.
5002 (common_handle_option): Handle OPT_fdiagnostics_color_.
5003 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5004 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5005 (diagnostic-color.o): New.
5006 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5007 (diagnostic_color_rule): New enum.
5008 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5009 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5010 the location string.
5011 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5012 either NULL, or color kind.
5013 * diagnostic-color.c: New file.
5014 * diagnostic-color.h: New file.
5015 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5017 * doc/invoke.texi (-fdiagnostics-color): Document.
5018 * pretty-print.h (pp_show_color): Define.
5019 (struct pretty_print_info): Add show_color field.
5020 * diagnostic.c: Include diagnostic-color.h.
5021 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5022 macros. Colorize error:, warning: etc. strings and also the location
5024 (diagnostic_show_locus): Colorize the caret line.
5025 * pretty-print.c: Include diagnostic-color.h.
5026 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5027 inside of %< %> quotes or quoted through q format modifier.
5029 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5031 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5033 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5035 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5037 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5040 2013-04-11 Marek Polacek <polacek@redhat.com>
5042 PR tree-optimization/48184
5043 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5045 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5047 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5048 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5049 (skip_simple_arithmetic): Tidy up.
5050 * tree.h (skip_simple_constant_arithmetic): Declare.
5052 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5054 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5056 2013-04-11 Richard Biener <rguenther@suse.de>
5058 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5059 generate vector constants.
5061 2013-04-11 Richard Biener <rguenther@suse.de>
5063 PR tree-optimization/56878
5064 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5065 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5067 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5068 Prefer to align the DR with the most invariant base address.
5070 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5072 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5075 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5077 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5078 floating-point vector comparisons against 0.
5080 2013-04-11 Jakub Jelinek <jakub@redhat.com>
5082 PR tree-optimization/56899
5083 * fold-const.c (extract_muldiv_1): Apply distributive law
5084 only if TYPE_OVERFLOW_WRAPS (ctype).
5086 2013-04-11 Bin Cheng <bin.cheng@arm.com>
5089 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5090 loading has side effect.
5092 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5094 * config/sparc/sparc.c: Include tree-pass.h.
5095 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5096 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5097 head of file. Change return type. Split off gate function.
5098 (sparc_gate_work_around_errata): New function.
5099 (pass_work_around_errata): New pass definition.
5100 (insert_pass_work_around_errata) New pass insert definition to
5101 insert pass_work_around_errata just after delayed-branch scheduling.
5102 (sparc_option_override): Insert the pass.
5103 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5105 2013-04-10 David S. Miller <davem@davemloft.net>
5107 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5108 or -mcpu=hypersparc.
5110 * target.def (cstore_mode): New hook.
5111 * target.h: Include insn-codes.h
5112 * targhooks.c: Likewise.
5113 (default_cstore_mode): New function.
5114 * targhooks.h: Declare it.
5115 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5116 * doc/tm.texi: Rebuild.
5117 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5118 target hook, rather than inspecting the insn_data.
5119 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5120 (TARGET_CSTORE_MODE): Redefine.
5121 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5123 * config/sparc/predicates.md (cstore_result_operand): New special
5125 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5126 Use it for operand 0.
5127 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5128 (*snesi_special): Likewise.
5129 (*snesi_zero): Likewise.
5130 (*seqsi_zero): Likewise.
5131 (*sltu_insn): Likewise.
5132 (*sgeu_insn): Likewise.
5133 (*seqdi_special): Make operand 0 and comparison operation be of
5135 (*snedi_special): Likewise.
5136 (*snedi_special_vis3): Likewise.
5137 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5138 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5139 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5140 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5141 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5142 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5143 (*sltu_extend_sp64): Likewise.
5144 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5145 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5146 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5147 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5148 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5150 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5152 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5153 (aarch64_start_file): Use the new function.
5155 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5156 Jason Merrill <jason@redhat.com>
5158 * common.opt: Add -gdwarf.
5159 * opts.c (common_handle_option): Handle it.
5160 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5162 2013-04-10 Richard Biener <rguenther@suse.de>
5164 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5165 (execute_one_ipa_transform_pass): But unconditionally here.
5166 (execute_one_pass): And here.
5167 (init_optimization_passes): Remove reload pass.
5168 * tree-pass.h (TODO_ggc_collect): Remove.
5169 (pass_reload): Likewise.
5170 * ira.c (do_reload): Merge into ...
5172 (rest_of_handle_reload): Remove.
5173 (pass_reload): Likewise.
5174 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5175 of reload for vzeroupper pass placement.
5176 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5177 and todo_flags_finish of all passes.
5179 2013-04-10 Richard Biener <rguenther@suse.de>
5181 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5182 first_const_oprnd field, rename first_def_type to first_op_type.
5183 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5184 (vect_get_and_check_slp_defs): Always use the type of the
5185 operand. Allow mixed vect_external_def, vect_constant_def types.
5186 (vect_get_constant_vectors): Handle mixed vect_external_def,
5187 vect_constant_def types.
5189 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5191 PR tree-optimization/55524
5192 * tree-ssa-math-opts.c
5193 (convert_mult_to_fma): Don't use an fms construct
5194 when we don't have an fms operation, but fnma, and it looks
5195 likely that we'll be able to use the latter.
5197 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5199 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5201 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5202 inline fail caused by overwritable functions.
5204 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5206 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5207 unnecessary bits in the constant power of two case.
5209 2013-04-10 Richard Biener <rguenther@suse.de>
5211 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5212 broken code swapping operands.
5213 (vect_build_slp_tree): Do not compute load permutations here.
5214 (vect_analyze_slp_instance): Compute load permutations here,
5215 after building the SLP tree.
5217 2013-04-09 Christian Bruel <christian.bruel@st.com>
5219 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5220 of next/prev_real_insn.
5222 2013-04-09 Jan Hubicka <jh@suse.cz>
5224 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5225 Drop aliased parameter.
5226 (function_and_variable_visibility): Do not handle alias pairs.
5227 * cgraph.c (varpool_externally_visible_p): Update prototype.
5228 * varpool.c (varpool_add_new_variable): Update.
5230 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5232 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5234 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5236 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5238 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5240 2013-04-09 Marek Polacek <polacek@redhat.com>
5242 PR tree-optimization/48762
5243 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5245 2013-04-09 Richard Biener <rguenther@suse.de>
5247 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5249 (vect_build_slp_tree): Likewise.
5250 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5251 calculating the cost of a SLP instance.
5252 (vect_analyze_slp_instance): Use it from here, after building
5255 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5258 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5259 expand_omp_for_static_chunk): Use simple_p = true in
5260 force_gimple_operand_gsi calls when assigning to addressable decls.
5262 2013-04-09 Jeff Law <law@redhat.com>
5264 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5265 when the boolean was created by converting a wider object which
5266 had a boolean range.
5268 2013-04-09 Richard Biener <rguenther@suse.de>
5270 * tree-vectorizer.h (slp_void_p): Remove.
5271 (slp_tree): Typedef before _slp_tree declaration.
5272 (struct _slp_tree): Use a vector of slp_tree as children.
5273 (vect_get_place_in_interleaving_chain): Remove.
5274 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5276 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5278 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5279 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5280 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5281 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5282 Use slp_node instead of slp_void_p and adjust.
5284 2013-04-09 Richard Biener <rguenther@suse.de>
5286 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5287 work that is not necessary.
5289 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5291 PR tree-optimization/56854
5292 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5293 forward into clobber stmts if it would change MEM_REF lhs into
5296 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5298 * tree.c (type_hash_lookup, type_hash_add): Make static.
5299 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5301 2013-04-09 Richard Biener <rguenther@suse.de>
5303 * tree.h (unsave_expr_now): Remove.
5304 * tree-inline.c (mark_local_for_remap_r): Remove.
5305 (unsave_expr_1): Likewise.
5306 (unsave_r): Likewise.
5307 (unsave_expr_now): Likewise.
5308 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5309 (propagate_tree_value): Likewise.
5311 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5313 * doc/rtl.texi (sequence): Rewrite documentation to match the
5314 current use of SEQUENCE rtl objects.
5315 * rtl.def (SEQUENCE): Likewise.
5317 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5318 Update documentation.
5319 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5320 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5322 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5324 2013-04-08 Teresa Johnson <tejohnson@google.com>
5326 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5327 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5329 (estimate_edge_size_and_time): Add comment to suggest using rounding
5331 (estimate_node_size_and_time): Ditto.
5332 (remap_edge_change_prob): Use helper rounding divide methods.
5333 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5334 (gimple_mod_pow2_value_transform): Ditto.
5335 (gimple_mod_subtract_transform): Ditto.
5336 (gimple_ic_transform): Ditto.
5337 (gimple_stringops_transform): Ditto.
5338 * stmt.c (conditional_probability): Ditto.
5339 (emit_case_dispatch_table): Ditto.
5340 * lto-cgraph.c (merge_profile_summaries): Ditto.
5341 * tree-optimize.c (execute_fixup_cfg): Ditto.
5342 * cfgcleanup.c (try_forward_edges): Ditto.
5343 * cfgloopmanip.c (scale_loop_profile): Ditto.
5345 (duplicate_loop_to_header_edge): Ditto.
5346 (lv_adjust_loop_entry_edge): Ditto.
5347 * tree-vect-loop.c (vect_transform_loop): Ditto.
5348 * profile.c (compute_branch_probabilities): Ditto.
5349 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5350 * lto-streamer-in.c (input_cfg): Ditto.
5351 * gimple-streamer-in.c (input_bb): Ditto.
5352 * ipa-cp.c (update_profiling_info): Ditto.
5353 (update_specialized_profile): Ditto.
5354 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5355 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5357 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5358 (compute_trg_info): Ditto.
5359 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5360 (purge_dead_edges): Ditto.
5361 * loop-unswitch.c (unswitch_loop): Ditto.
5362 * cgraphclones.c (cgraph_clone_edge): Ditto.
5363 (cgraph_clone_node): Ditto.
5364 * tree-inline.c (copy_bb): Ditto.
5365 (copy_edges_for_bb): Ditto.
5366 (initialize_cfun): Ditto.
5367 (copy_cfg_body): Ditto.
5368 (expand_call_inline): Ditto.
5370 2013-04-08 Kai Tietz <ktietz@redhat.com>
5372 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5373 TARGET_CYGWIN64 by TARGET_64BIT.
5375 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5377 * config/epiphany/epiphany.md (GPR_1): New constant.
5378 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5379 * config/epiphany/epiphany.c (gen_compare_reg):
5380 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5381 is already in place.
5382 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5383 Don't require being called during rtl expansion; If y operlaps r0,
5385 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5386 (epiphany_expand_epilogue): Likewise.
5388 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5389 Don't use CC_FPmode for ORDERED / UNORDERED.
5390 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5392 * config/epiphany/constraints.md (CnL): New constraint.
5393 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5394 * config/epiphany/predicates.md (add_operand): Allow 1024.
5396 * config/epiphany/epiphany.md (logical_op): New code iterator.
5397 (op_mnc): New code attribute.
5398 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5399 (mov_f+1, mov_f+2): New peephole2 patterns.
5401 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5402 (cstoresi4): Also allow re-use of zero result when doing a NE
5403 comparison to a non-zero operand.
5404 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5406 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5407 Use gen_addsi3_i / gen_subsi3_i.
5409 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5413 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5414 contain anything but clobbers, at most one __builtin_stack_restore,
5415 optionally debug stmts and final resx, and if it has at least one
5416 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5417 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5418 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5419 which isn't defaut definition, remove them.
5420 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5421 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5422 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5423 with MEM_REF LHS with SSA_NAME address.
5425 2013-04-08 Jeff Law <law@redhat.com>
5427 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5429 2013-04-08 Richard Biener <rguenther@suse.de>
5431 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5433 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5434 determined vector type.
5435 (vect_analyze_data_refs): Likewise.
5436 (vect_get_new_vect_var): Adjust.
5437 (vect_create_destination_var): Preserve SSA name versions.
5438 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5439 not dump anything here.
5441 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5443 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5444 Add member lr_slot_known.
5445 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5447 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5448 Remove code that sets lr_slot_offset according to what a previous
5449 version of epiphany_emit_save_restore used to do.
5450 (epiphany_emit_save_restore): When doing an lr save or restore,
5451 set/verify lr_slot_known and lr_slot_offset.
5453 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5456 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5459 2013-04-08 Richard Biener <rguenther@suse.de>
5461 * alias.c (find_base_term): Fix thinko in previous change.
5463 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5465 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5466 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5467 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5468 if possible to compute val.
5469 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5470 For QImode integers don't require anything about precision. Use
5471 const_with_all_bytes_same to find out if the constant doesn't have
5472 repeated bytes in it.
5474 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5476 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5479 2013-04-08 Marek Polacek <polacek@redhat.com>
5481 PR rtl-optimization/48182
5482 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5485 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5488 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5489 nuses, make sure we have a label.
5491 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5494 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5495 (rs6000_emit_swdiv_low_precision): Remove.
5496 (rs6000_emit_swdiv): Rewrite to handle between one and four
5497 iterations of Newton-Raphson generally; modify required number of
5498 iterations for some cases.
5499 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5501 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5503 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5504 set-but-unused variable.
5506 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5507 basic blocks of released function bodies garbage-collectable.
5509 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5510 (struct rtl_opt_pass): Add TODO_df_finish.
5512 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5514 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5516 * config/arm/constraints.md (q): New constraint.
5517 * config/arm/ldrdstrd.md: New file.
5518 * config/arm/arm.md (ldrdstrd.md) New include.
5519 (arm_movdi): Use "q" instead of "r" constraint
5520 for double-word memory access.
5521 (movdf_soft_insn): Likewise.
5522 * config/arm/vfp.md (movdi_vfp): Likewise.
5523 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5524 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5525 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5526 (mem_ok_for_ldrd_strd): Likewise.
5527 (output_move_double): Update assertion.
5529 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5531 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5533 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5535 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5536 define_insn_and_split.
5537 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5539 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5541 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5542 define_insn_and_split.
5543 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5544 (shiftsi3_compare): New pattern.
5546 * config/arm/unspecs.md (UNSPEC_RRX): New.
5548 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5550 * config/arm/arm.md (negdi_extendsidi): New pattern.
5551 (negdi_zero_extendsidi): Likewise.
5553 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5555 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5556 define_insn_and_split.
5557 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5558 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5560 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5562 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5563 define_insn_and_split.
5564 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5565 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5567 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5569 * config/arm/arm.md (subsi3_carryin): New pattern.
5570 (subsi3_carryin_const): Likewise.
5571 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5572 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5574 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5576 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5578 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5580 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5581 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5583 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5585 * config/arm/arm.c (arm_expand_builtin): Change fcode
5586 type to unsigned int.
5588 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5590 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5592 2013-04-04 Ian Lance Taylor <iant@google.com>
5594 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5597 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5600 * df-scan.c (df_insn_delete): Disable failing assert.
5602 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5604 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5605 New function prototype.
5606 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5607 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5608 (arm_builtin_vectorized_function): New function.
5610 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5612 * config/arm/arm_neon_builtins.def: New file.
5613 * config/arm/arm.c (neon_builtin_data): Move contents to
5614 arm_neon_builtins.def.
5615 (enum arm_builtins): Include neon builtin definitions.
5616 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5617 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5619 2013-04-04 Marek Polacek <polacek@redhat.com>
5621 PR tree-optimization/48186
5622 * predict.c (maybe_hot_frequency_p): Return false if
5623 HOT_BB_FREQUENCY_FRACTION is 0.
5624 (cgraph_maybe_hot_edge_p): Likewise.
5626 2013-04-04 Richard Biener <rguenther@suse.de>
5628 PR tree-optimization/56826
5629 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5632 2013-04-04 Richard Biener <rguenther@suse.de>
5634 PR tree-optimization/56213
5635 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5636 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5638 2013-04-04 Richard Biener <rguenther@suse.de>
5640 PR tree-optimization/56837
5641 * tree-loop-distribution.c (classify_partition): For non-zero
5642 values require that the value has the same precision as its
5643 mode to be useful as memset value.
5645 2013-04-03 Nick Clifton <nickc@redhat.com>
5647 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
5648 (fmssf4): Use fmsf.s on E3V5 architectures.
5649 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5650 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5652 2013-04-03 Jeff Law <law@redhat.com>
5654 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5655 (lra-eliminations.o): Likewise.
5657 2013-04-03 Teresa Johnson <tejohnson@google.com>
5659 * gcov-io.c (compute_working_sets): Moved most of body of old
5660 compute_working_sets here from profile.c.
5661 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
5662 (gcov_working_set_t): Moved typedef here from basic-block.h
5663 (compute_working_set): Declare.
5664 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5665 (get_working_sets): Renamed from compute_working_set,
5666 replace most of body with call to new compute_working_sets.
5667 (get_exec_counts): Replace call to compute_working_sets
5668 to get_working_sets.
5669 * profile.h (get_working_sets): Renamed from compute_working_set.
5670 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
5671 to get_working_sets.
5672 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5673 * gcov-dump.c (dump_working_sets): New function.
5675 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5677 * hwint.c (sext_hwi, zext_hwi): New functions.
5678 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5679 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5680 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5681 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5682 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5683 (sext_hwi, zext_hwi): New functions.
5685 2013-04-03 Jeff Law <law@redhat.com>
5687 PR tree-optimization/56799
5688 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5689 back test for widening conversion erroneously dropped in prior change.
5691 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5694 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5695 instead of next_real_insn.
5697 2013-04-03 Marek Polacek <polacek@redhat.com>
5700 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
5702 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5705 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5707 (thumb1_output_casesi): Likewise.
5708 (thumb2_output_casesi): Likewise.
5710 2013-04-03 Richard Biener <rguenther@suse.de>
5712 PR tree-optimization/56817
5713 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5715 (tree_unroll_loops_completely_1): ... new function to manually
5716 walk the loop tree, properly defering outer loops of unrolled
5717 loops to later iterations.
5719 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5721 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5722 (vectorizable_load): Likewise.
5723 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5724 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5726 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5728 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5731 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5733 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5735 2013-04-03 Bin Cheng <bin.cheng@arm.com>
5737 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5739 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5741 PR tree-optimization/56790
5742 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5745 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5747 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5749 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5750 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5753 2013-04-03 Jakub Jelinek <jakub@redhat.com>
5756 * tree.h (force_folding_builtin_constant_p): New decl.
5757 * builtins.c (force_folding_builtin_constant_p): New variable.
5758 (fold_builtin_constant_p): Fold immediately also if
5759 force_folding_builtin_constant_p.
5761 2013-04-03 Richard Biener <rguenther@suse.de>
5763 PR tree-optimization/56812
5764 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5765 DRs of the same interleaving chain are independent.
5767 2013-04-02 Jason Merrill <jason@redhat.com>
5769 * gdbinit.in (pbb): Use debug fn.
5771 2013-04-02 Lawrence Crowl <crowl@google.com>
5773 * sese.h (struct ivtype_map_elt_s): Remove unused.
5774 (extern debug_ivtype_map): Remove unused.
5775 (extern eq_ivtype_map_elts): Remove unused.
5776 * sese.c (debug_ivtype_map): Removed unused.
5777 (debug_ivtype_map_1): Removed unused.
5778 (debug_ivtype_elt): Remove unused.
5779 (eq_ivtype_map_elts): Remove unused.
5782 2013-04-02 Kai Tietz <ktietz@redhat.com>
5785 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5786 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
5787 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5789 (legitimize_pe_coff_symbol): Likewise.
5790 (is_imported_p): New helper-function.
5791 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5792 for Windows x64 targets.
5793 (ix86_expand_prologue): Optimize for pe-coff targets.
5794 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5795 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5796 medium/large code-model.
5797 (legitimize_pic_address): Likewise.
5798 (legitimize_tls_address): Likewise.
5799 (ix86_expand_call): Likewise.
5800 (x86_output_mi_thunk): Likewise.
5801 (get_dllimport_decl): Add new beimport argument.
5802 (construct_plt_address): Don't assert for x64 pe-coff targets.
5803 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5805 (SYMBOL_FLAG_STUBVAR): New macro.
5806 (SYMBOL_REF_STUBVAR_P): Likewise.
5807 * config/i386/winnt.c (stub_list): New structure.
5808 (stub_head): New local variable.
5809 (i386_pe_record_stub): New function.
5810 (i386_pe_file_end): Emit refptr-stubs.
5812 2013-04-02 Jakub Jelinek <jakub@redhat.com>
5814 PR rtl-optimization/56745
5815 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5816 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5819 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5820 and both of them are MEM_REFs, just compare first argument for
5821 equality and attempt to deal even with differing offsets.
5824 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5825 of gimple_clobber_p to be MEM_REF.
5826 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5827 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5828 after gimplification.
5829 * asan.c (get_mem_ref_of_assignment): Don't instrument
5830 gimple_clobber_p stmts.
5831 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5832 gimple_clobber_p stmt if they have MEM_REF lhs and
5833 are dead because of another gimple_clobber_p stmt.
5834 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5835 gimple_clobber_p stmts like debug stmts.
5836 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5837 that refer to unused VAR_DECLs or uninitialized values.
5838 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5839 gimple_clobber_p stmts if they refer to removed parameters.
5840 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5843 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
5845 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5846 using SWI48 mode attribute.
5848 2013-04-02 Wei Mi <wmi@google.com>
5850 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5851 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5852 *<rotate_insn><mode>3_mask in i386.md.
5854 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5856 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5858 2013-04-02 Richard Biener <rguenther@suse.de>
5860 PR tree-optimization/56778
5861 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5862 Runtime alias tests are not supported for gather loads.
5863 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5864 stmts referenced from SSA operands before updating SSA form.
5866 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5867 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5869 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
5870 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5871 * config/arm/cortex-a53.md: New file.
5872 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5873 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5874 * config/arm/arm.c (arm_issue_rate): Likewise.
5875 * config/arm/arm-tune.md: Regenerate
5876 * config/arm/arm-tables.opt: Regenerate.
5877 * config/arm/arm-cores.def: Add cortex-a53.
5879 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5881 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5884 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5886 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5887 scalar load/store operations using B/H registers.
5888 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5890 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5892 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5894 * config/aarch64/aarch64.c
5895 (aarch64_simd_scalar_immediate_valid_for_move): New.
5896 * config/aarch64/aarch64-protos.h
5897 (aarch64_simd_scalar_immediate_valid_for_move): New.
5898 * config/aarch64/constraints.md (Dh, Dq): New.
5899 * config/aarch64/iterators.md (hq): New.
5901 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5903 * reorg.c (get_branch_condition): Deal with conditional returns.
5904 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5906 2013-04-01 Wei Mi <wmi@google.com>
5908 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5909 Truncate operand 2 using %b asm operand modifier.
5910 (*<shift_insn><mode>3_mask): Ditto.
5911 (*<rotate_insn><mode>3_mask): Ditto.
5913 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5916 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5918 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5920 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5922 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5924 2013-03-30 Lawrence Crowl <crowl@google.com>
5926 * dse.c (clear_alias_sets): Remove never set.
5927 (disqualified_clear_alias_sets): Remove never set.
5928 (clear_alias_mode_pool): Remove never set.
5929 (dse_step0): Remove condition that is never true.
5930 (canon_address): Remove condition that is never true.
5931 (dse_step7): Remove condition that is never true.
5932 (rest_of_handle_dse): Remove condition that is never true.
5933 (rest_of_handle_dse::did_global): Remove never read from above.
5934 (dse_step2_spill): Remove never called from above.
5935 (dse_step5_spill): Remove never called from above.
5937 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5939 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5940 JUMP_TABLE_DATA changes.
5941 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5942 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5943 (Insns) <jump_table_data>: New entry.
5944 * doc/tm.texi: Regenerate.
5946 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5948 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5949 for table jump at the end of a basic block using tablejump_p.
5950 * targhooks.c (default_invalid_within_doloop): Likewise.
5951 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5952 target hook implementation that is identical to the default hook.
5953 (rs6000_invalid_within_doloop): Remove.
5955 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5956 unused variable from tablejump_p call.
5958 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5959 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5960 (INSN_DELETED_P): Likewise.
5961 (emit_jump_table_data): New prototype.
5962 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5963 after 4th as unused.
5964 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5965 * sched-vis.c (print_insn): Likewise.
5966 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5967 insn for compatibility with back ends that use next_active_insn to
5968 identify jump table data.
5969 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5970 (remove_insn): Likewise.
5971 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5973 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5974 (emit_jump_table_data): New function.
5976 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5977 basic block, a JUMP_TABLE_DATA never is.
5978 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5979 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5980 off from code handling real insns.
5981 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5982 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5983 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5984 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5985 is not a NONDEBUG_INSN_P.
5986 * ira-costs.c (scan_one_insn): Likewise.
5987 * jump.c (mark_all_labels): Likewise.
5988 (mark_jump_label_1): Likewise.
5989 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5990 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5992 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5993 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5994 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5995 JUMP_TABLE_DATA_P insns.
5996 (calculate_elim_costs_all_insns): Likewise.
5997 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5998 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5999 (delete_output_reload): Code style fixups.
6000 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6001 insn flags on this non-insn.
6002 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6003 as scheduling barriers, for pre-change compatibility.
6004 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6005 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6007 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6008 redundant JUMP_TABLE_DATA_P test.
6009 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6010 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6011 (frv_for_each_packet): Likewise.
6012 * config/i386/i386.c (min_insn_size): Likewise.
6013 (ix86_avoid_jump_mispredicts): Likewise.
6014 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6015 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6016 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6017 (mips16_insn_length): Robustify.
6018 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6019 (mips16_split_long_branches): Likewise.
6020 * config/pa/pa.c (pa_combine_instructions): Likewise.
6021 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6022 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6023 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6024 as contributing to pool range lengths.
6025 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6026 Remove redundant JUMP_TABLE_DATA_P test.
6027 (sh_loop_align): Likewise.
6028 (split_branches): Likewise.
6029 (sh_insn_length_adjustment): Likewise.
6030 * config/spu/spu.c (get_branch_target): Likewise.
6032 2013-03-29 Jan Hubicka <jh@suse.cz>
6034 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6035 gcov streaming; stream hot bb threshold to ltrans.
6036 * predict.c (get_hot_bb_threshold): Break out from ....
6037 (maybe_hot_count_p): ... here.
6038 (set_hot_bb_threshold): New function.
6039 * lto-section-in.c (lto_section_name): Add profile.
6040 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6041 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6043 (histogram_entry): New structure.
6044 (histogram, histogram_pool): New global vars.
6045 (histogram_hash): New structure.
6046 (histogram_hash::hash): New method.
6047 (histogram_hash::equal): Likewise.
6048 (account_time_size): New function.
6049 (cmp_counts): New function.
6050 (dump_histogram): New function.
6051 (ipa_profile_generate_summary): New function.
6052 (ipa_profile_write_summary): New function.
6053 (ipa_profile_read_summary): New function.
6054 (ipa_profile): Decide on threshold.
6055 (pass_ipa_profile): Add ipa_profile_write_summary and
6056 ipa_profile_read_summary.
6057 * Makefile.in (ipa.o): Update dependencies.
6058 * lto-streamer.h (LTO_section_ipa_profile): New section.
6060 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6062 * tree.h (VAR_P): New.
6064 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6067 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6069 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6071 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6072 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6073 (control_flow_insn_p): Likewise.
6074 * cfgrtl.c (duplicate_insn_chain): Likewise.
6075 * final.c (get_attr_length_1): Likewise.
6076 (shorten_branches): Likewise.
6077 (final_scan_insn): Likewise.
6078 * function.c (instantiate_virtual_regs): Likewise.
6079 * gcse.c (insert_insn_end_basic_block): Likewise.
6080 * ira-costs.c (scan_one_insn): Likewise.
6081 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6082 * lra.c (check_rtl): Likewise.
6083 * reload1.c (elimination_costs_in_insn): Likewise.
6084 * reorg.c (follow_jumps): Likewise.
6086 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6087 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6088 (thumb_far_jump_used_p): Likewise.
6089 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6090 (workaround_speculation): Likewise.
6091 (add_sched_insns_for_speculation): Likewise.
6092 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6093 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6094 (frv_for_each_packet): Likewise.
6095 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6096 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6097 (final_emit_insn_group_barriers): Likewise.
6098 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6099 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6100 (mips16_insn_length): Likewise.
6101 * config/pa/pa.c (pa_reorg): Likewise.
6102 (pa_combine_instructions): Likewise.
6103 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6104 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6105 (sh_reorg): Likewise.
6106 (split_branches): Likewise.
6107 * config/spu/spu.c (get_branch_target): Likewise.
6109 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6112 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6114 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6115 Fix declaration name.
6117 2013-03-28 Lawrence Crowl <crowl@google.com>
6119 * graphds.h (struct graph.indicies): Remove unused.
6120 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6121 (SCOP_ORIGINAL_PDDRS): Remove unused.
6122 * sese.h (extern insert_loop_close_phis): Removed unused.
6123 (extern insert_guard_phis): Removed unused.
6124 (extern ivtype_map_elt_info): Removed unused.
6125 (new_ivtype_map_elt): Removed unused.
6126 * sese.c (ivtype_map_elt_info): Removed unused.
6128 2013-03-28 Lawrence Crowl <crowl@google.com>
6130 * Makefile.in: Add several missing include dependences.
6132 (test-dump.o): New. This object is not added to any executable,
6133 but is present for ad-hoc testing.
6135 (debug (const bitmap_head_def &)): New.
6136 (debug (const bitmap_head_def *)): New.
6138 (extern debug (const bitmap_head_def &)): New.
6139 (extern debug (const bitmap_head_def *)): New.
6141 (debug (edge_def &)): New.
6142 (debug (edge_def *)): New.
6144 (debug (basic_block_def &)): New.
6145 (debug (basic_block_def *)): New.
6147 (dump_node (const_tree, int, FILE *)): Correct source file.
6149 (debug (die_struct &)): New.
6150 (debug (die_struct *)): New.
6152 (extern debug (die_struct &)): New.
6153 (extern debug (die_struct *)): New.
6154 * gimple-pretty-print.c
6155 (debug (gimple_statement_d &)): New.
6156 (debug (gimple_statement_d *)): New.
6157 * gimple-pretty-print.h
6158 (extern debug (gimple_statement_d &)): New.
6159 (extern debug (gimple_statement_d *)): New.
6161 (debug (ira_allocno_copy &)): New.
6162 (debug (ira_allocno_copy *)): New.
6163 (debug (ira_allocno &)): New.
6164 (debug (ira_allocno *)): New.
6166 (extern debug (ira_allocno_copy &)): New.
6167 (extern debug (ira_allocno_copy *)): New.
6168 (extern debug (ira_allocno &)): New.
6169 (extern debug (ira_allocno *)): New.
6171 (debug (live_range &)): New.
6172 (debug (live_range *)): New.
6174 (debug (lra_live_range &)): New.
6175 (debug (lra_live_range *)): New.
6177 (debug (lra_live_range &)): New.
6178 (debug (lra_live_range *)): New.
6180 (debug (omega_pb_d &)): New.
6181 (debug (omega_pb_d *)): New.
6183 (extern debug (omega_pb_d &)): New.
6184 (extern debug (omega_pb_d *)): New.
6186 (debug (const rtx_def &)): New.
6187 (debug (const rtx_def *)): New.
6189 (debug_tree (tree): Move within file.
6190 (debug_raw (const tree_node &)): New.
6191 (debug_raw (const tree_node *)): New.
6192 (dump_tree_via_hooks (const tree_node *, int)): New.
6193 (debug (const tree_node &)): New.
6194 (debug (const tree_node *)): New.
6195 (debug_verbose (const tree_node &)): New.
6196 (debug_verbose (const tree_node *)): New.
6197 (debug_head (const tree_node &)): New.
6198 (debug_head (const tree_node *)): New.
6199 (debug_body (const tree_node &)): New.
6200 (debug_body (const tree_node *)): New.
6201 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6202 (debug (vec<tree, va_gc> &)): New.
6203 (debug (vec<tree, va_gc> *)): New.
6205 (extern debug (const rtx_def &)): New.
6206 (extern debug (const rtx_def *)): New.
6208 (debug_raw (simple_bitmap_def &)): New.
6209 (debug_raw (simple_bitmap_def *)): New.
6210 (debug (simple_bitmap_def &)): New.
6211 (debug (simple_bitmap_def *)): New.
6213 (extern debug (simple_bitmap_def &)): New.
6214 (extern debug (simple_bitmap_def *)): New.
6215 (extern debug_raw (simple_bitmap_def &)): New.
6216 (extern debug_raw (simple_bitmap_def *)): New.
6218 (debug (vinsn_def &)): New.
6219 (debug (vinsn_def *)): New.
6220 (debug_verbose (vinsn_def &)): New.
6221 (debug_verbose (vinsn_def *)): New.
6222 (debug (expr_def &)): New.
6223 (debug (expr_def *)): New.
6224 (debug_verbose (expr_def &)): New.
6225 (debug_verbose (expr_def *)): New.
6226 (debug (vec<rtx> &)): New.
6227 (debug (vec<rtx> *)): New.
6229 (extern debug (vinsn_def &)): New.
6230 (extern debug (vinsn_def *)): New.
6231 (extern debug_verbose (vinsn_def &)): New.
6232 (extern debug_verbose (vinsn_def *)): New.
6233 (extern debug (expr_def &)): New.
6234 (extern debug (expr_def *)): New.
6235 (extern debug_verbose (expr_def &)): New.
6236 (extern debug_verbose (expr_def *)): New.
6237 (extern debug (vec<rtx> &)): New.
6238 (extern debug (vec<rtx> *)): New.
6240 (_list_iter_cond_expr): Make inline instead of static.
6242 (debug (sreal &)): New.
6243 (debug (sreal *)): New.
6245 (extern debug (sreal &)): New.
6246 (extern debug (sreal *)): New.
6248 (extern debug_raw (const tree_node &)): New.
6249 (extern debug_raw (const tree_node *)): New.
6250 (extern debug (const tree_node &)): New.
6251 (extern debug (const tree_node *)): New.
6252 (extern debug_verbose (const tree_node &)): New.
6253 (extern debug_verbose (const tree_node *)): New.
6254 (extern debug_head (const tree_node &)): New.
6255 (extern debug_head (const tree_node *)): New.
6256 (extern debug_body (const tree_node &)): New.
6257 (extern debug_body (const tree_node *)): New.
6258 (extern debug (vec<tree, va_gc> &)): New.
6259 (extern debug (vec<tree, va_gc> *)): New.
6261 (debug (struct loop &)): New.
6262 (debug (struct loop *)): New.
6263 (debug_verbose (struct loop &)): New.
6264 (debug_verbose (struct loop *)): New.
6265 * tree-dump.c: Add header dependence.
6267 (extern debug (struct loop &)): New.
6268 (extern debug (struct loop *)): New.
6269 (extern debug_verbose (struct loop &)): New.
6270 (extern debug_verbose (struct loop *)): New.
6272 (debug (data_reference &)): New.
6273 (debug (data_reference *)): New.
6274 (debug (vec<data_reference_p> &)): New.
6275 (debug (vec<data_reference_p> *)): New.
6276 (debug (vec<ddr_p> &)): New.
6277 (debug (vec<ddr_p> *)): New.
6279 (extern debug (data_reference &)): New.
6280 (extern debug (data_reference *)): New.
6281 (extern debug (vec<data_reference_p> &)): New.
6282 (extern debug (vec<data_reference_p> *)): New.
6283 (extern debug (vec<ddr_p> &)): New.
6284 (extern debug (vec<ddr_p> *)): New.
6286 (debug (pt_solution &)): New.
6287 (debug (pt_solution *)): New.
6289 (extern debug (pt_solution &)): New.
6290 (extern debug (pt_solution *)): New.
6292 (debug (_var_map &)): New.
6293 (debug (_var_map *)): New.
6294 (debug (tree_live_info_d &)): New.
6295 (debug (tree_live_info_d *)): New.
6297 (extern debug (_var_map &)): New.
6298 (extern debug (_var_map *)): New.
6299 (extern debug (tree_live_info_d &)): New.
6300 (extern debug (tree_live_info_d *)): New.
6302 2013-03-28 Jan Hubicka <jh@suse.cz>
6304 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6306 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6308 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6309 record only when desired or required.
6311 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6313 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6314 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6316 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6318 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6319 (*andsi3_compare0_uxtw): New pattern.
6320 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6321 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6323 2013-03-28 Jan Hubicka <jh@suse.cz>
6325 * data-streamer-in.c (streamer_read_gcov_count): New function.
6326 * gimple-streamer-out.c: Include value-prof.h.
6327 (output_gimple_stmt): Output histogram.
6328 (output_bb): Use streamer_write_gcov_count.
6329 * value-prof.c: Include data-streamer.h
6330 (dump_histogram_value): Add HIST_TYPE_MAX.
6331 (stream_out_histogram_value): New function.
6332 (stream_in_histogram_value): New function.
6333 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6334 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6335 * data-streamer-out.c (streamer_write_gcov_count): New function.
6336 (streamer_write_gcov_count_stream): New function.
6337 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6338 (lto_output_node): Likewise.
6339 (input_node, input_edge): Likewise.
6340 * lto-streamer-out.c (output_cfg): Update streaming.
6341 * lto-streamer-in.c (input_cfg): Likewise.
6342 * data-streamer.h (streamer_write_gcov_count,
6343 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6344 * gimple-streamer-in.c: Include value-prof.h
6345 (input_gimple_stmt): Input histograms.
6346 (input_bb): Update profile streaming.
6348 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6350 * genmodes.c (emit_max_int): New function.
6351 (emit_insn_modes_h): Added call to emit_max_function.
6352 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6354 * machmode.def: Fixed comment.
6356 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6358 * combine.c (try_combine): Removed useless assert.
6359 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6361 2013-03-28 Marek Polacek <polacek@redhat.com>
6362 Richard Biener <rguenther@suse.de>
6364 PR tree-optimization/56695
6365 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6366 build signed result of a vector comparison.
6367 * tree-cfg.c (verify_gimple_comparison): Check that a result
6368 of a vector comparison has signed type.
6370 2013-03-28 Richard Biener <rguenther@suse.de>
6372 PR tree-optimization/37021
6373 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6374 do not restrict gaps between groups.
6375 * tree-vect-stmts.c (vectorizable_load): Properly account for
6376 a gap between groups.
6378 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6380 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6381 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6384 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6386 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6387 * doc/extend.texi (Named Address Spaces): Ditto.
6388 (Variable Attributes): Ditto.
6390 2013-03-27 Kai Tietz <ktietz@redhat.com>
6392 * config.build: Add support for cygwin x64 target.
6393 * config.gcc: Likewise.
6394 * config.host: Likewise.
6395 * configure.ac: Likewise
6396 * configure: Regenerated.
6398 2013-03-27 Kai Tietz <ktietz@redhat.com>
6400 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6401 * config/i386/t-cygwin-w64: New file.
6402 * config/i386/cygwin-w64.h: New file.
6403 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6404 and add support for x64-cygwin target.
6405 (CPP_SPEC): Likewise.
6406 (CXX_WRAP_SPEC_LIST): Undefine before define.
6407 (LIBGCJ_SONAME): Use 15 as version.
6409 2013-03-27 Richard Biener <rguenther@suse.de>
6411 PR tree-optimization/56716
6412 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6413 dumping for ref nodes.
6415 2013-03-27 Martin Jambor <mjambor@suse.cz>
6417 PR tree-optimization/55334
6418 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6419 restricted pointers to arrays.
6421 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6423 * Makefile.in (.SUFFIXES): Add .cc.
6424 (.c.o): Apply same recipe for implicit rule .cc.o.
6426 2013-03-27 Richard Biener <rguenther@suse.de>
6428 PR tree-optimization/37021
6429 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6430 REALPART/IMAGPART_EXPRs around the supported refs.
6431 * tree-ssa-structalias.c (find_func_aliases): Assume that
6432 floating-point values are not used to transfer pointers.
6434 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6436 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6437 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6438 * doc/tm.texi: Regenerate.
6439 * targhooks.h (default_has_ifunc_p): New.
6440 * targhooks.c (default_has_ifunc_p): Ditto.
6441 * config/linux-protos.h: New file.
6442 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6443 this hook for linux which disables support of indirect functions in
6445 * config/linux-android.c: New file.
6446 * config/t-linux-android.c: Ditto.
6447 * config.gcc: Added new object file linux-android.o.
6448 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6449 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6450 * varasm.c (do_assemble_alias): Likewise.
6451 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6452 doesn't support indirect functions.
6453 * configure: Regenerate.
6455 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6458 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6459 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6462 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6464 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6466 2013-03-27 Terry Guo <terry.guo@arm.com>
6468 * config/arm/arm-cores.def: Added core cortex-r7.
6469 * config/arm/arm-tune.md: Regenerated.
6470 * config/arm/arm-tables.opt: Regenerated.
6471 * doc/invoke.texi: Added entry for core cortex-r7.
6473 2013-03-27 Walter Lee <walt@tilera.com>
6475 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6476 double-decrement of next_scratch_regno.
6478 2013-03-27 Walter Lee <walt@tilera.com>
6480 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6482 (insn_v1mulus): Ditto.
6483 (insn_v2muls): Ditto.
6485 2013-03-27 Walter Lee <walt@tilera.com>
6487 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6488 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6490 2013-03-27 Walter Lee <walt@tilera.com>
6492 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6493 (*sibcall_value): Ditto.
6495 2013-03-27 Walter Lee <walt@tilera.com>
6497 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6498 (insn_mnz_v8qi): ... this ...
6499 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6501 (insn_v<n>mnz): Replaced by ...
6502 (insn_v1mnz): ... this ...
6503 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6505 (insn_mz_<mode>): Replaced by ...
6506 (insn_mz_v8qi): ... this ...
6507 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6509 (insn_v<n>mz): Replaced by ...
6510 (insn_v1mz): ... this ...
6511 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6514 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6516 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6518 2013-03-26 Roland McGrath <mcgrathr@google.com>
6520 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6521 than fprintf with a non-constant, non-format string.
6523 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6525 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6526 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6527 operand 0 predicate.
6528 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6529 attribute. Use general_x64nomem_operand as operand 1 predicate.
6530 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6531 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6532 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6533 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6534 (mov<mode>_insv_1): Remove expander. Merge insn with
6535 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6536 Use general_x64nomem_operand as operand 1 predicate.
6537 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6538 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6539 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6540 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6541 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6542 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6543 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6544 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6545 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6546 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6547 (general_x64nomem_operand): Ditto.
6549 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6551 * config/rtems.opt: Add -pthread option.
6553 2013-03-26 Richard Biener <rguenther@suse.de>
6555 * alias.c (find_base_term): Avoid redundant and not used recursion.
6556 (base_alias_check): Get the initial base term from the caller.
6557 (true_dependence_1): Compute and pass base terms to base_alias_check.
6558 (write_dependence_p): Likewise.
6559 (may_alias_p): Likewise.
6561 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6563 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6564 PC-relative load in SI modes and above only.
6566 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6568 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6569 * config/arm/iwmmxt.md (WCGR0): Update.
6570 (WCGR1, WCGR2, WCGR3): Likewise.
6572 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6574 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6575 Use x64 and nox64 isa attributes.
6577 2013-03-26 Richard Biener <rguenther@suse.de>
6579 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6580 alignment computations and rely on get_object_alignment_1
6581 for the !TYPE_P case.
6582 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6584 2013-03-26 Walter Lee <walt@tilera.com>
6586 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6587 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6589 2013-03-25 Jeff Law <law@redhat.com>
6591 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6592 check for INTEGRAL_TYPE_P that was missing due to checking in
6593 wrong version of prior patch.
6595 2013-03-25 Walter Lee <walt@tilera.com>
6597 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6598 TILEGX_INSN_SHUFFLEBYTES1.
6599 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6601 (tilegx_builtins): Ditto.
6602 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6604 2013-03-25 Walter Lee <walt@tilera.com>
6606 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6607 (floatunssisf2): New pattern.
6608 (floatsidf2): New pattern.
6609 (floatunssidf2): New pattern.
6611 2013-03-25 Walter Lee <walt@tilera.com>
6613 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6614 tests for constraint J, K, N, P.
6616 2013-03-25 Walter Lee <walt@tilera.com>
6618 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6619 Use indirect/pcrel encoding.
6620 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6623 2013-03-25 Steve Ellcey <sellcey@mips.com>
6625 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6626 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6627 * config/mips/mips.c (mips_option_override): Set IMADD default.
6628 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6629 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6630 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6631 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6632 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6634 2013-03-25 Jeff Law <law@redhat.com>
6636 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6637 slightly to avoid creating and folding useless trees. Simplify
6638 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6640 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
6642 * config/i386/i386.md (*zero_extendsidi2): Merge with
6643 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6644 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6645 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6646 targets. Clarify comment.
6648 2013-03-25 Martin Jambor <mjambor@suse.cz>
6650 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6651 pass-through jump functions differently.
6652 (ipa_read_jump_function): Likewise. Also use setter functions to set
6655 2013-03-25 Martin Jambor <mjambor@suse.cz>
6657 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6658 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6660 (ipa_get_indirect_edge_target): New function.
6661 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6662 ipa_get_indirect_edge_target. Update all callers.
6663 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6664 ipa_get_indirect_edge_target_1 instead of calling
6665 ipa_get_indirect_edge_target.
6666 (create_specialized_node): Pass aggvlas to
6667 ipcp_discover_new_direct_edges.
6669 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6671 * config/arm/arm.md (f_sels, f_seld): New types.
6672 (*cmov<mode>): New pattern.
6673 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6676 2013-03-25 Kai Tietz <ktietz@redhat.com>
6678 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6679 POSIX-printf for mingw-hosted builds.
6681 2013-03-25 Richard Biener <rguenther@suse.de>
6684 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6685 must-not-throw stmt location.
6687 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6689 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6690 Emit load-acquire versions when acq is true.
6691 (arm_emit_store_exclusive): Add rel parameter.
6692 Emit store-release versions when rel is true.
6693 (arm_split_compare_and_swap): Use acquire-release instructions
6695 of barriers when appropriate.
6696 (arm_split_atomic_op): Likewise.
6697 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6698 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6699 (VUNSPEC_SLX): Likewise.
6700 (VUNSPEC_LDA): Likewise.
6701 (VUNSPEC_STL): Likewise.
6702 * config/arm/sync.md (atomic_load<mode>): New pattern.
6703 (atomic_store<mode>): Likewise.
6704 (arm_load_acquire_exclusive<mode>): Likewise.
6705 (arm_load_acquire_exclusivesi): Likewise.
6706 (arm_load_acquire_exclusivedi): Likewise.
6707 (arm_store_release_exclusive<mode>): Likewise.
6709 2013-03-25 Catherine Moore <clm@codesourcery.com>
6711 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6712 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6713 * config/mip/predicates.md (lwsp_swsp_operand,
6714 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6715 sb16_operand, db4_operand, db7_operand, ib3_operand,
6716 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6717 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6718 andi16_operand): New predicates.
6719 * config/mips/mips.md (compression): New attribute.
6720 (enabled): New attribute.
6721 (length): Consider compression in computing length.
6722 (shift_compression): New code attribute.
6723 (*add<mode>3): New operands. Record compression.
6724 (sub<mode>3): Likewise.
6725 (one_cmpl<mode>2): Likewise.
6726 (*and<mode>3): Likewise.
6727 (*ior<mode>3): Likewise.
6728 (unnamed pattern for xor): Likewise.
6729 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6730 (*<optab><mode>3): Likewise.
6731 (*mov<mode>_internal: Likewise.
6732 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6733 (mips_unsigned_immediate_p): New.
6734 (umips_lwsp_swsp_address_p): New.
6735 (m16_based_address_p): New.
6736 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6737 (mips_unsigned_immediate_p): New prototype.
6738 (lwsp_swsp_address_p): New prototype.
6739 (m16_based_address_p): New prototype.
6740 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6741 (mips_signed_immediate_p): New function.
6742 (m16_based_address_p): New function.
6743 (lwsp_swsp_address_p): New function.
6744 (mips_print_operand_punctuation): Recognize short delay slot insns
6745 for microMIPS.add<mode>3"
6747 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6750 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6751 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6753 2013-03-25 Richard Biener <rguenther@suse.de>
6755 PR tree-optimization/56689
6756 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6759 2013-03-25 Richard Biener <rguenther@suse.de>
6761 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6763 (memory_references): Likewise.
6764 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6765 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6766 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6767 (gather_mem_refs_in_loops): Fold into ...
6768 (analyze_memory_references): ... this. Move initialization
6769 to tree_ssa_lim_initialize.
6770 (fill_always_executed_in): Rename to ...
6771 (fill_always_executed_in_1): ... this.
6772 (fill_always_executed_in): Move contains_call computation to
6773 this new function from ...
6774 (tree_ssa_lim_initialize): ... here.
6775 (tree_ssa_lim): Call fill_always_executed_in.
6777 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6779 * postreload.c (reload_combine): Fix code detecting returns.
6781 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6783 * function.c (emit_use_return_register_into_block): On cc0 targets,
6784 do not emit the sequence between cc0 setter and user.
6786 2013-03-25 Kai Tietz <ktietz@redhat.com>
6788 * config/i386/predicates.md (local_symbolic_operand): Interpret
6789 dll-imported symbols as none-local.
6791 2013-03-25 Richard Biener <rguenther@suse.de>
6793 * tree-ssa-loop-im.c (struct depend): Remove.
6794 (struct lim_aux_data): Make depends a vec of gimples.
6795 (free_lim_aux_data): Adjust.
6796 (add_dependency): Likewise.
6797 (set_level): Likewise.
6799 2013-03-25 Richard Biener <rguenther@suse.de>
6802 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6803 the pointer returned by calls with ECF_MALLOC set.
6805 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6807 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6809 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6811 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
6812 using MMXMODE mode iterator.
6813 (*move<mode>_internal): Merge with *movv2sf_internal and
6814 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6816 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6818 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6819 (record_last_mem_set_info): Likewise.
6821 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6822 of XNEWVEC followed by memset.
6823 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6825 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6827 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6828 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6829 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6830 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6831 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6832 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6833 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6834 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6835 BARRIER_P instead of GET_CODE.
6837 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6839 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6840 inaccuracy in the probing code.
6842 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6843 (ctrapdi4): Likewise.
6845 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6847 * calls.c (expand_call): Add missing guard to code handling return
6848 of non-BLKmode structures in MSB.
6849 * function.c (expand_function_end): Likewise.
6851 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6853 * combine.c (try_combine): Adjust comment. Do not add the set of
6854 insn #0 if the destination indirectly is set or dies in insn #2.
6855 Tidy up code to distribute a new note.
6857 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6859 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6860 also for alternatives 16 and 17.
6862 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6864 * config/i386/sse.md (*mov<mode>_internal): Merge with
6865 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6866 Emit insn template depending on type attribute. Use
6867 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6868 movd instead of movq mnemonic for interunit moves. Rewrite mode
6869 attribute calculation. Remove unit attribute calculation.
6870 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6871 Set prefix_data16 attribute for DImode ssemov types.
6872 Use Ym instead of y for SSE-MMX conversion alternatives.
6873 Reorder operand constraints.
6875 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6877 * df.h (df_insn_delete): Adjust prototype.
6878 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6879 and let it decide whether mark the basic block dirty.
6880 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6881 * df-scan.c (df_insn_info_delete): New helper function, split
6882 off from df_insn_delete.
6883 (df_scan_free_bb_info): Use it.
6884 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6886 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6887 that the insn is actually an insn and it has a non-NULL basic block.
6888 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6890 2013-03-22 Richard Biener <rguenther@suse.de>
6892 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6894 (mem_ref_alloc): Do not allocate them.
6895 (refs_independent_p): Do not query or maintain a cache.
6897 2013-03-22 Richard Biener <rguenther@suse.de>
6899 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6900 (gather_mem_refs_in_loops): Do not compute it.
6901 (analyze_memory_references): Do not allocate it.
6902 (tree_ssa_lim_finalize): Do not free it.
6903 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6905 2013-03-22 Richard Biener <rguenther@suse.de>
6907 * is-a.h (as_a): Use gcc_checking_assert.
6909 2013-03-22 Ian Bolton <ian.bolton@arm.com>
6911 * config/aarch64/aarch64.c (aarch64_print_operand): New
6912 format specifier for printing a constant in hex.
6913 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6914 format specifier for printing second operand.
6916 2013-03-22 Richard Biener <rguenther@suse.de>
6918 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6920 (gather_mem_refs_in_loops): Perform store accumulation here.
6921 (create_vop_ref_mapping_loop): Remove.
6922 (create_vop_ref_mapping): Likewise.
6923 (analyze_memory_references): Initialize refs_stored_in_loop.
6924 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
6925 (record_indep_loop): Remove.
6926 (record_dep_loop): New function.
6927 (ref_indep_loop_p_1): Adjust to only walk over references
6928 in the loop, not its subloops.
6929 (ref_indep_loop_p): Rename to ...
6930 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6931 maintaining a more fine-grained cache.
6932 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6933 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6935 2013-03-22 Richard Biener <rguenther@suse.de>
6937 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6938 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6939 aggregate mem_ref_loc.
6940 (free_mem_ref_locs): Inline into ...
6941 (memref_free): ... this and adjust.
6942 (mem_ref_alloc): Adjust.
6943 (mem_ref_locs_alloc): Remove.
6944 (record_mem_ref_loc): Adjust.
6945 (get_all_locs_in_loop): Rewrite into ...
6946 (for_all_locs_in_loop): ... this iterator.
6947 (rewrite_mem_ref_loc): New functor.
6948 (rewrite_mem_refs): Use for_all_locs_in_loop.
6949 (sm_set_flag_if_changed): New functor.
6950 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6951 (ref_always_accessed): New functor.
6952 (ref_always_accessed_p): Use for_all_locs_in_loop.
6954 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6956 * tree-pass.h (PROP_gimple_lvec): New.
6957 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6958 (init_optimization_passes): Move pass_lower_vector.
6959 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6961 (pass_lower_vector): Provide PROP_gimple_lvec.
6962 (pass_lower_vector_ssa): Likewise.
6963 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6965 2013-03-21 Mark Wielaard <mjw@redhat.com>
6967 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6969 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6971 * config/i386/i386.md (*movdi_internal): Disparage slightly
6972 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6973 conversion alternatives.
6975 2013-03-21 Jakub Jelinek <jakub@redhat.com>
6978 * diagnostic.def (DK_WERROR): New kind.
6979 * diagnostic.h (werrorcount): Define.
6980 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6981 promoted to DK_ERROR, increment DK_WERROR counter instead of
6983 * toplev.c (toplev_main): Call print_ignored_options even if
6984 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6985 even if just werrorcount is non-zero.
6988 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6990 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6991 (string_cst_pool_decl): New function.
6992 (optimize_one_addr_into_implicit_ptr): New function.
6993 (resolve_addr_in_expr): Optimize DWARF location expression
6994 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6995 which doesn't live in memory, but has DW_AT_location or
6996 DW_AT_const_value, or refers to a string literal, into
6997 DW_OP_GNU_implicit_pointer.
6998 (optimize_location_into_implicit_ptr): New function.
6999 (resolve_addr): If removing DW_AT_location of a variable because
7000 it was DW_OP_addr of address of the variable, but the variable doesn't
7001 live in memory, try to emit const value attribute for the initializer.
7003 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7005 * tree.h (VECTOR_TYPE_P): New macro.
7006 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7008 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7009 VEC_COND_EXPR cannot be lvalues.
7010 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7012 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7014 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7015 Restrict the transformation to equal modes.
7017 2013-03-21 Richard Biener <rguenther@suse.de>
7019 PR tree-optimization/39326
7020 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7021 (MEM_ANALYZABLE): Adjust.
7022 (record_mem_ref_loc): Move bitmap ops ...
7023 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7024 unanalyzable refs, do not record locations for it.
7025 (analyze_memory_references): Allocate ref zero as shared
7027 (refs_independent_p): Do not test for unanalyzed mems here.
7028 (ref_indep_loop_p_1): Special-case disambiguation against
7030 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7032 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7034 * config/arm/arm-protos.h (tune_params): Add
7035 prefer_neon_for_64bits field.
7036 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7037 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7038 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7039 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7040 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7041 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7042 (arm_option_override): Handle -mneon-for-64bits new option.
7043 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7044 (prefer_neon_for_64bits): Declare new variable.
7045 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7046 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7047 (arch_enabled): Handle new arch types. Remove support for onlya8
7049 (one_cmpldi2): Use new arch names.
7050 (zero_extend<mode>di2, extend<mode>di2): Ditto.
7051 * config/arm/arm.opt (mneon-for-64bits): Add option.
7052 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7053 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7054 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7056 * doc/invoke.texi (-mneon-for-64bits): Document.
7058 2013-03-21 Richard Biener <rguenther@suse.de>
7060 PR tree-optimization/39326
7061 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7062 (sort_bbs_in_loop_postorder_cmp): New function.
7063 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7065 2013-03-21 Richard Biener <rguenther@suse.de>
7067 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7068 (vect_insert_into_interleaving_chain): Likewise.
7069 (vect_drs_dependent_in_basic_block): Inline ...
7070 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7072 (vect_analyze_data_ref_dependence): ... here. Simplify.
7073 (vect_check_interleaving): Simplify.
7074 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7075 (vect_slp_analyze_data_ref_dependences): ... this new function.
7076 (dr_group_sort_cmp): New function.
7077 (vect_analyze_data_ref_accesses): Compute data-reference groups
7078 here instead of in vect_analyze_data_ref_dependence. Use
7079 a more efficient algorithm.
7080 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7081 vect_slp_analyze_data_ref_dependences. Call
7082 vect_analyze_data_ref_accesses earlier.
7083 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7084 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7085 (vect_slp_analyze_data_ref_dependences): New prototype.
7087 2013-03-21 Richard Biener <rguenther@suse.de>
7089 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7090 ref is stored in the loop.
7091 (find_refs_for_sm): Walk only over all stores.
7092 (store_motion_loop): Allocate from lim_bitmap_obstack.
7093 (store_motion): Likewise.
7095 2013-03-21 Richard Biener <rguenther@suse.de>
7097 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7098 Update virtual SSA form.
7100 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7102 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7103 * configure: Regenerate.
7104 * config.in: Regenerate.
7105 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7106 if !HAVE_LD_EH_FRAME_CIEV3.
7108 2013-03-21 Richard Biener <rguenther@suse.de>
7110 * tree-cfg.c (verify_expr_no_block): New function.
7111 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7112 nor DECL_VALUE_EXPR have locations with associated blocks.
7113 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7114 (clear_unused_block_pointer): Remove code dealing with
7115 blocks in DECL_DEBUG_EXPR locations.
7117 2013-03-21 Richard Biener <rguenther@suse.de>
7119 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7120 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7121 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7122 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7123 instead of DECL_DEBUG_EXPR_IS_FROM.
7124 * gimplify.c (gimplify_modify_expr): Likewise.
7125 * tree-cfg.c (verify_expr_location_1): Likewise.
7126 * tree-complex.c (create_one_component_var): Likewise.
7127 * tree-sra.c (create_access_replacement): Likewise.
7128 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7129 (clear_unused_block_pointer): Likewise.
7130 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7131 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7132 * var-tracking.c (var_debug_decl): Likewise.
7133 (track_expr_p): Likewise.
7134 * tree-inline.c (add_local_variables): Likewise. Set
7135 DECL_HAS_DEBUG_EXPR_P after copying it.
7136 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7137 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7139 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7142 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7143 * configure: Regenerate.
7144 * config.in: Regenerate.
7145 * config/i386/i386.md (*movdf_internal): Use
7146 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7147 movd instead of movq mnemonic for interunit moves.
7148 (*movdi_internal): Ditto.
7150 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7152 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7153 (abd<mode>_3): New pattern.
7154 (aba<mode>_3): New pattern.
7155 (fabd<mode>_3): New pattern.
7157 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7159 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7160 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7161 occurrence of REGISTER_PREFIX as its empty string.
7163 2013-03-20 Jeff Law <law@redhat.com>
7165 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7166 addititional equivalences for equality comparisons between an SSA_NAME
7167 and a constant where the SSA_NAME was set from a widening conversion.
7169 2013-03-20 Walter Lee <walt@tilera.com>
7171 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7173 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7175 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7176 depending on type attribute.
7177 (*movti_internal): Ditto.
7178 (*movtf_internal): Ditto.
7179 (*movxf_internal): Ditto.
7180 (*movdf_internal): Ditto.
7181 (*movsf_internal): Ditto.
7183 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7185 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7186 maybe_vex for sselog1 and ssemov types.
7187 (*movdi_internal): Reorder operand constraints.
7188 (*movsi_internal): Ditto. Set prefix attribute to
7189 maybe_vex for sselog1 and ssemov types.
7190 (*movtf_internal): Set prefix attribute to maybe_vex
7191 for sselog1 and ssemov types.
7192 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7193 DImode ssemov types. Reorder operand constraints.
7194 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7195 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7196 attribute for SImode ssemov types. Reorder operand constraints.
7198 2013-03-20 Martin Jambor <mjambor@suse.cz>
7200 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7201 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7203 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7205 * config/rs6000/predicates.md (indexed_address, update_address_mem
7206 update_indexed_address_mem): New predicates.
7207 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7208 attribute for load/store instructions.
7209 * config/rs6000/dfp.md (movsd_store): Likewise.
7210 (movsd_load): Likewise.
7211 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7212 (unnamed HI->DI extend define_insn): Likewise.
7213 (unnamed SI->DI extend define_insn): Likewise.
7214 (unnamed QI->SI extend define_insn): Likewise.
7215 (unnamed QI->HI extend define_insn): Likewise.
7216 (unnamed HI->SI extend define_insn): Likewise.
7217 (unnamed HI->SI extend define_insn): Likewise.
7218 (extendsfdf2_fpr): Likewise.
7219 (movsi_internal1): Likewise.
7220 (movsi_internal1_single): Likewise.
7221 (movhi_internal): Likewise.
7222 (movqi_internal): Likewise.
7223 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7224 attribute for load/store instructions.
7225 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7227 (mov<mode>_softfloat): Likewise.
7228 (mov<mode>_hardfloat32): Likewise.
7229 (mov<mode>_hardfloat64): Likewise.
7230 (mov<mode>_softfloat64): Likewise.
7231 (movdi_internal32): Likewise.
7232 (movdi_internal64): Likewise.
7233 (probe_stack_<mode>): Likewise.
7235 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7237 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7238 floating point, and decimal floating point to reload iterator.
7240 * config/rs6000/constraints.md (wl constraint): New constraints to
7241 return FLOAT_REGS if certain options are used to reduce the number
7242 of separate patterns that exist in the file.
7243 (wx constraint): Likewise.
7244 (wz constraint): Likewise.
7246 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7247 -mdebug=reg, print wg, wl, wx, and wz constraints.
7248 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7249 Initialize the reload functions for 64-bit binary/decimal floating
7251 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7252 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7253 create the buffer on the stack to overcome not having a 32-bit
7255 (rs6000_emit_move): Likewise.
7256 (rs6000_secondary_memory_needed_rtx): Likewise.
7257 (rs6000_alloc_sdmode_stack_slot): Likewise.
7258 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7259 via xxlxor, just like DFmode 0.0.
7261 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7262 define as 1 if we are running on a power7 or newer.
7263 (enum r6000_reg_class_enum): Add new constraints.
7265 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7266 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7267 with other moves by using conditional constraits (wg). Use LFIWZX
7268 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7269 (movsd splitter): Likewise.
7270 (movsd_hardfloat): Likewise.
7271 (movsd_softfloat): Likewise.
7273 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7274 binary and decimal floating point moves.
7275 (fmove_ok): New attributes to combine binary and decimal floating
7276 point moves, and to combine power6x (mfpgpr) moves along normal
7278 (real_value_to_target): Likewise.
7285 (movsf): Combine binary and decimal floating point moves. Combine
7286 power6x (mfpgpr) moves with other moves by using conditional
7287 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7288 (mov<mode> for SFmode/SDmode); Likewise.
7289 (SFmode/SDmode splitters): Likewise.
7290 (movsf_hardfloat): Likewise.
7291 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7292 (movsf_softfloat): Likewise.
7293 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7295 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7296 wx and wz constraints.
7298 * config/rs6000/constraints.md (wg constraint): New constraint to
7299 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7301 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7304 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7305 -mdebug=reg, print wg, wl, wx, and wz constraints.
7306 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7307 Initialize the reload functions for 64-bit binary/decimal floating
7309 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7310 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7311 create the buffer on the stack to overcome not having a 32-bit
7313 (rs6000_emit_move): Likewise.
7314 (rs6000_secondary_memory_needed_rtx): Likewise.
7315 (rs6000_alloc_sdmode_stack_slot): Likewise.
7316 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7317 via xxlxor, just like DFmode 0.0.
7319 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7320 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7321 with other moves by using conditional constraits (wg). Use LFIWZX
7322 and STFIWX for loading SDmode on power7.
7323 (movdd splitters): Likewise.
7324 (movdd_hardfloat32): Likewise.
7325 (movdd_softfloat32): Likewise.
7326 (movdd_hardfloat64_mfpgpr): Likewise.
7327 (movdd_hardfloat64): Likewise.
7328 (movdd_softfloat64): Likewise.
7330 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7331 64-bit binary and decimal floating point moves.
7332 (FMOVE64X): Likewise.
7333 (movdf): Combine 64-bit binary and decimal floating point moves.
7334 Combine power6x (mfpgpr) moves with other moves by using
7335 conditional constraits (wg).
7336 (mov<mode> for DFmode/DDmode): Likewise.
7337 (DFmode/DDmode splitters): Likewise.
7338 (movdf_hardfloat32): Likewise.
7339 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7340 (movdf_softfloat32): Likewise.
7341 (movdf_hardfloat64_mfpgpr): Likewise.
7342 (movdf_hardfloat64): Likewise.
7343 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7344 (movdf_softfloat64): Likewise.
7345 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7346 (reload_<mode>_load): Move to later in the file so they aren't in
7347 the middle of the floating point move insns.
7348 (reload_<mode>_store): Likewise.
7350 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7354 constraint if -mdebug=reg.
7355 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7356 Enable using dd reload support if needed.
7358 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7359 binary and decimal floating point moves in rs6000.md.
7360 (movtd_internal): Likewise.
7362 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7363 decimal floating point moves.
7365 (movtf_internal): Likewise.
7366 (mov<mode>_internal, TDmode/TFmode): Likewise.
7367 (movtf_softfloat): Likewise.
7368 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7370 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7371 movdi_internal64, using wg constraint for move direct operations.
7372 (movdi_internal64): Likewise.
7374 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7375 MODES_TIEABLE_P for selected modes. Print the numerical value of
7376 the various virtual registers. Use GPR/FPR first/last values,
7377 instead of hard coding the register numbers. Print which modes
7378 have reload functions registered.
7379 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7380 settings before/after setting cpu, target and subtarget settings.
7381 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7382 and for secondary reload failures in rs6000_secondary_reload_inner.
7383 (rs6000_secondary_reload_fail): Likewise.
7384 (rs6000_secondary_reload_inner): Likewise.
7386 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7387 macros for first/last GPR and FPR registers.
7388 (LAST_GPR_REGNO): Likewise.
7389 (FIRST_FPR_REGNO): Likewise.
7390 (LAST_FPR_REGNO): Likewise.
7392 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7393 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7394 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7395 (vcond<mode><mode>): Likewise.
7396 (vcondu<mode><mode>): Likewise.
7397 (vector_gtu<mode>): Likewise.
7398 (vector_gte<mode>): Likewise.
7399 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7400 to prevent the compiler from converting DImode operations to TImode.
7401 (ior<mode>3): Likewise.
7402 (and<mode>3): Likewise.
7403 (one_cmpl<mode>2): Likewise.
7404 (nor<mode>3): Likewise.
7405 (andc<mode>3): Likewise.
7407 * config/rs6000/constraints.md (wt constraint): New constraint
7408 that returns VSX_REGS if TImode is allowed in VSX registers.
7410 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7413 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7414 similar to TImode, but it is restricted to being in the GPRs.
7416 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7417 TImode to occupy a single VSX register.
7419 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7420 -mvsx-timode for power7/power8.
7421 (power7 cpu): Likewise.
7422 (power8 cpu): Likewise.
7424 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7425 sure that TFmode/TDmode take up two registers if they are ever
7426 allowed in the upper VSX registers.
7427 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7429 (rs6000_init_hard_regno_mode_ok): Likewise.
7430 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7431 constraint. Print if LRA is turned on.
7432 (rs6000_option_override_internal): Give an error if -mvsx-timode
7433 and VSX is not enabled.
7434 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7435 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7436 to reg+offset addressing. Use PTImode when checking offset
7437 addresses for validity.
7438 (reg_offset_addressing_ok_p): Likewise.
7439 (rs6000_legitimate_offset_address_p): Likewise.
7440 (rs6000_legitimize_address): Likewise.
7441 (rs6000_legitimize_reload_address): Likewise.
7442 (rs6000_legitimate_address_p): Likewise.
7443 (rs6000_eliminate_indexed_memrefs): Likewise.
7444 (rs6000_emit_move): Likewise.
7445 (rs6000_secondary_reload): Likewise.
7446 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7447 reloads to fpr registers to continue to use reg+offset addressing,
7448 but 64-bit reloads to altivec registers need reg+reg addressing.
7449 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7450 it. Treat LO_SUM like a PLUS operation.
7451 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7452 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7453 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7454 registers to share a register with a smaller sized type, since VSX
7455 puts scalars in the upper 64-bits.
7456 (print_operand): Add support for PTImode.
7457 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7458 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7459 registers, but don't have arithmetic support.
7460 (rs6000_memory_move_cost): Add test for VSX.
7461 (rs6000_opt_masks): Add -mvsx-timode.
7463 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7466 (VSr): Use wt constraint for TImode.
7467 (VSv): Drop TImode support.
7468 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7469 (vsx_movti_64bit): Likewise.
7470 (vsx_movti_32bit): Likewise.
7471 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7472 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7473 one '?' on the appropriate output constraint. Do not allow TImode
7474 logical operations on 32-bit systems.
7475 (vsx_ior<mode>3): Likewise.
7476 (vsx_xor<mode>3): Likewise.
7477 (vsx_one_cmpl<mode>2): Likewise.
7478 (vsx_nor<mode>3): Likewise.
7479 (vsx_andc<mode>3): Likewise.
7480 (vsx_concat_<mode>): Likewise.
7481 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7483 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7484 OPTION_MASK_VSX_TIMODE.
7485 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7486 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7488 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7489 (TI2 iterator): New iterator for TImode, PTImode.
7490 (wd mode attribute): Add values for vector types.
7491 (movti_string): Replace TI move operations with operations for TImode
7492 and PTImode. Add support for TImode being allowed in VSX registers.
7493 (mov<mode>_string, TImode/PTImode): Likewise.
7494 (movti_ppc64): Likewise.
7495 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7496 (TI mode splitters): Likewise.
7498 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7501 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7503 PR tree-optimization/56355
7504 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7505 Also handle integers with undefined overflow.
7507 2013-03-20 Catherine Moore <clm@codesourcery.com>
7508 Maciej W. Rozycki <macro@codesourcery.com>
7509 Tom de Vries <tom@codesourcery.com>
7510 Nathan Sidwell <nathan@codesourcery.com>
7511 Iain Sandoe <iain@codesourcery.com>
7512 Nathan Froyd <froydnj@codesourcery.com>
7513 Chao-ying Fu <fu@mips.com>
7515 * doc/extend.texi: (micromips, nomicromips, nocompression):
7516 Document new function attributes.
7517 * doc/invoke.texi (minterlink-compressed, mmicromips,
7518 m14k, m14ke, m14kec): Document new options.
7519 (minterlink-mips16): Update documentation.
7520 * doc/md.texi (ZC, ZD): Document new constraints.
7521 * configure.ac (gcc_cv_as_micromips): Check if linker
7522 supports the .set micromips directive.
7523 * configure: Regenerate.
7524 * config.in: Regenerate.
7525 * config/mips/mips-tables.opt: Regenerate.
7526 * config/mips/micromips.md: New file.
7527 * constraints.md (ZC, ZD): New constraints.
7528 * config/mips/predicates.md (movep_src_register): New predicate.
7529 (movep_src_operand): New predicate.
7530 (non_volatile_mem_operand): New predicate.
7531 * config/mips/mips.md (multimem): New type.
7532 (length): Differentiate between 17-bit and 18-bit branch offsets.
7533 (MOVEP1, MOVEP2): New mode iterator.
7534 (mov_<load>l): Use ZC constraint.
7535 (mov_<load>r): Likewise.
7536 (mov_<store>l): Likewise.
7537 (mov_<store>r): Likewise.
7538 (*branch_equality<mode>_inverted): Add microMIPS support.
7539 (*branch_equality<mode>): Likewise.
7540 (*jump_absolute): Likewise.
7541 (indirect_jump_<mode>): Likewise.
7542 (tablejump_<mode>): Likewise.
7543 (<optab>_internal): Likewise.
7544 (sibcall_internal): Likewise.
7545 (sibcall_value_internal): Likewise.
7546 (prefetch): Use constraint ZD.
7547 * config/mips/mips.opt (minterlink-compressed): New option.
7548 (minterlink-mips16): Now an alias for minterlink-compressed.
7549 (mmicromips): New option.
7550 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7551 (compare_and_swap_12): Likewise.
7552 (sync_add<mode>): Likewise.
7553 (sync_<optab>_12): Likewise.
7554 (sync_old_<optab>_12): Likewise.
7555 (sync_new_<optab>_12): Likewise.
7556 (sync_nand_12): Likewise.
7557 (sync_old_nand_12): Likewise.
7558 (sync_new_nand_12): Likewise.
7559 (sync_sub<mode>): Likewise.
7560 (sync_old_add<mode>): Likewise.
7561 (sync_old_sub<mode>): Likewise.
7562 (sync_new_add<mode>): Likewise.
7563 (sync_new_sub<mode>): Likewise.
7564 (sync_<optab><mode>): Likewise.
7565 (sync_old_<optab><mode>): Likewise.
7566 (sync_new_<optab><mode>): Likewise.
7567 (sync_nand<mode>): Likewise.
7568 (sync_old_nand<mode>): Likewise.
7569 (sync_new_nand<mode>): Likewise.
7570 (sync_lock_test_and_set<mode>): Likewise.
7571 (test_and_set_12): Likewise.
7572 (atomic_compare_and_swap<mode>): Likewise.
7573 (atomic_exchange<mode>_llsc): Likewise.
7574 (atomic_fetch_add<mode>_llsc): Likewise.
7575 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7576 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7577 (umips_save_restore_pattern_p): Likewise.
7578 (umips_load_store_pair_p): Likewise.
7579 (umips_output_load_store_pair): Likewise.
7580 (umips_movep_target_p): Likewise.
7581 (umips_12bit_offset_address_p): Likewise.
7582 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7583 (mips_base_mips16): Rename this...
7584 (mips_base_compression_flags): ...to this. Update all uses.
7585 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7586 (mips_mips16_decl_p): Delete.
7587 (mips_nomips16_decl_p): Delete.
7588 (mips_get_compress_on_flags): New function.
7589 (mips_get_compress_off_flags): New function.
7590 (mips_get_compress_mode): New function.
7591 (mips_get_compress_on_name): New function.
7592 (mips_get_compress_off_name): New function.
7593 (mips_insert_attributes): Support multiple compression types.
7594 (mips_merge_decl_attributes): Likewise.
7595 (umips_12bit_offset_address_p): New function.
7596 (mips_start_function_definition): Emit .set micromips directive.
7597 (mips_call_may_need_jalx_p): New function.
7598 (mips_function_ok_for_sibcall): Add microMIPS support.
7599 (mips_print_operand_punctuation): Support short delay slots and
7601 (umips_swm_mask, umips_swm_encoding): New.
7602 (umips_build_save_restore): New function.
7603 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7604 (was_mips16_p): Remove.
7605 (old_compression_mode): New.
7606 (mips_set_compression_mode): New function.
7607 (mips_set_current_function): Add microMIPS support.
7608 (mips_option_override): Likewise.
7609 (umips_save_restore_pattern_p): New function.
7610 (umips_output_save_restore): New function.
7611 (umips_load_store_pair_p_1): New function.
7612 (umips_load_store_pair_p): New function.
7613 (umips_output_load_store_pair_1): New function.
7614 (umips_output_load_store_pair): New function.
7615 (umips_movep_target_p) New function.
7616 (mips_prepare_pch_save): Add microMIPS support.
7617 * config/mips/mips.h (TARGET_COMPRESSION): New.
7618 (TARGET_CPU_CPP_BUILTINS): Update macro
7619 to use new compression flags and to support microMIPS.
7620 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7621 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7622 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7623 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7624 (ASM_SPEC): Support mmicromips and mno-micromips.
7625 (M16STORE_REG_P): New macro.
7626 (MIPS_CALL): Support TARGET_MICROMIPS.
7627 (MICROMIPS_J): New macro.
7628 (mips_base_mips16): Rename this...
7629 (mips_base_compression_flags): ...to this.
7630 (UMIPS_12BIT_OFFSET_P): New macro.
7631 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7632 (MULTILIB_DIRNAMES): Likewise.
7633 2013-03-20 Richard Biener <rguenther@suse.de>
7635 PR tree-optimization/56661
7636 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7637 the result does not have to be distinct.
7639 2013-03-20 Richard Biener <rguenther@suse.de>
7641 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7644 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7645 Steven Bosscher <steven@gcc.gnu.org>
7647 PR rtl-optimization/56605
7648 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7650 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7653 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7654 that require movd instead of movq.
7656 2013-03-20 Richard Biener <rguenther@suse.de>
7658 * tree-ssa-structalias.c (struct variable_info): Add pointer
7659 to the first field of an aggregate with sub-vars. Make
7660 this and the pointer to the next subfield its ID.
7661 (vi_next): New function.
7662 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7663 storedanything_id, integer_id): Increment by one.
7664 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7665 get_call_clobber_vi): Adjust.
7666 (solution_set_expand): Simplify and speedup.
7667 (solution_set_add): Inline into ...
7668 (set_union_with_increment): ... this. Adjust accordingly.
7669 (do_sd_constraint): Likewise.
7670 (do_ds_constraint): Likewise.
7671 (do_complex_constraint): Simplify.
7672 (build_pred_graph): Adjust.
7673 (solve_graph): Likewise. Simplify and speedup.
7674 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7675 get_constraint_for_component_ref, get_constraint_for_1,
7676 first_vi_for_offset, first_or_preceding_vi_for_offset,
7677 create_function_info_for, create_variable_info_for_1,
7678 create_variable_info_for, intra_create_variable_infos): Adjust.
7679 (init_base_vars): Push NULL for ID zero.
7680 (compute_points_to_sets): Adjust.
7682 2013-03-20 Richard Biener <rguenther@suse.de>
7684 * cfgloop.c (verify_loop_structure): Streamline and avoid
7685 ICEing on corrupt loop tree.
7686 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7689 2013-03-20 Richard Biener <rguenther@suse.de>
7691 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7692 check whether an SSA update is needed.
7694 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7696 * config/mips/constraints.md (T): Rename to...
7700 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7701 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7703 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7705 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7706 (*subsi3_carryin_uxtw): Likewise.
7708 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7710 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7711 (*rorsi3_insn_uxtw): Likewise.
7713 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7715 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7716 (*extrsi5_insn_uxtw): Likewise.
7718 2013-03-19 Richard Biener <rguenther@suse.de>
7720 PR tree-optimization/56273
7721 * passes.c (init_optimization_passes): Move second VRP after DOM.
7723 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
7725 * config/i386/i386.md (*movti_internal): Merge from
7726 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7727 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7728 nox64 isa attributes.
7730 2013-03-18 Richard Biener <rguenther@suse.de>
7732 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7734 (merge_node_constraints): Likewise.
7735 (build_succ_graph): Likewise.
7736 (valid_graph_edge): Inline into single caller.
7737 (unify_nodes): Likewise. Use bitmap_set_bit return value
7739 (scc_visit): Fix formatting and variable use.
7740 (do_sd_constraint): Use gcc_checking_assert.
7741 (do_ds_constraint): Likewise.
7742 (do_complex_constraint): Likewise.
7743 (condense_visit): Likewise. Cleanup.
7744 (dump_pred_graph): New function.
7745 (perform_var_substitution): Dump the pred-graph before
7746 variable substitution.
7747 (find_equivalent_node): Use gcc_checking_assert.
7748 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7750 2013-03-18 Richard Biener <rguenther@suse.de>
7752 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7753 Remove cond_expr_stmt_list argument and do not gimplify the
7755 (vect_loop_versioning): Adjust.
7756 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7757 Cleanup to use less temporaries.
7758 (vect_create_data_ref_ptr): Cleanup.
7760 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7762 PR tree-optimization/56635
7763 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7764 require types_compatible_p types.
7766 2013-03-18 Nick Clifton <nickc@redhat.com>
7768 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7771 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7772 Add missing line to comment describing function.
7774 2013-03-18 Richard Biener <rguenther@suse.de>
7776 PR tree-optimization/56210
7777 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7778 Handle string / character search functions.
7779 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7781 2013-03-18 Richard Biener <rguenther@suse.de>
7784 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7785 and implement properly.
7786 * gimple.h (gimple_cond_single_var_p): Remove.
7788 2013-03-18 Richard Biener <rguenther@suse.de>
7790 * tree-data-ref.h (find_data_references_in_loop): Declare.
7791 * tree-data-ref.c (get_references_in_stmt): Use a stack
7792 vector pre-allocated in the callers.
7793 (find_data_references_in_stmt): Adjust.
7794 (graphite_find_data_references_in_stmt): Likewise.
7795 (create_rdg_vertices): Likewise.
7796 (find_data_references_in_loop): Export.
7797 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7798 Compute dependences here...
7799 (vect_analyze_data_refs): ...not here. When we encounter
7800 a non-vectorizable data reference in basic-block vectorization
7801 truncate the data reference vector. Do not bother to
7802 fixup data-dependence information for gather loads.
7803 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7804 of data references, as reported.
7806 2013-03-18 Richard Biener <rguenther@suse.de>
7808 PR tree-optimization/3713
7809 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7810 has_constants and expr.
7811 (stmt_has_constants): Properly valueize SSA names when deciding
7812 whether the stmt has constants.
7814 2013-03-18 Richard Biener <rguenther@suse.de>
7816 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7817 whole function when there is nothing to do.
7818 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7819 * tree-vectorizer.c (vectorize_loops): Update virtual and
7820 loop-closed SSA once.
7821 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7823 2013-03-18 Richard Biener <rguenther@suse.de>
7826 * domwalk.c (bb_postorder): New global static.
7827 (cmp_bb_postorder): New function.
7828 (walk_dominator_tree): Replace scheme imposing an order for
7829 visiting dominator sons by one sorting them at the time they
7830 are pushed on the stack.
7832 2013-03-18 Richard Biener <rguenther@suse.de>
7834 PR tree-optimization/39326
7835 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7836 (struct mem_ref): Replace mem member with ao_ref typed member.
7837 (MEM_ANALYZABLE): Adjust.
7838 (memref_eq): Likewise.
7839 (mem_ref_alloc): Likewise.
7840 (gather_mem_refs_stmt): Likewise.
7841 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7842 (execute_sm_if_changed_flag_set): Adjust.
7843 (execute_sm): Likewise.
7844 (ref_always_accessed_p): Likewise.
7845 (refs_independent_p): Likewise.
7846 (can_sm_ref_p): Likewise.
7848 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7851 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7852 return 1 even for !unsignedp.
7854 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7856 * config/i386/i386.md (isa): Add x64 and nox64.
7857 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7858 (*pushtf): Enable *roF alternative for x64 isa only.
7859 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7860 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7861 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7862 (*movtf_internal): Merge from *movtf_internal_rex64 and
7863 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7864 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7865 nox64 isa attributes.
7866 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7867 nox64 isa attributes.
7868 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7870 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7872 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7874 2013-03-17 Jakub Jelinek <jakub@redhat.com>
7877 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7878 class names. Remove trailing comma after "ALL_REGS".
7880 2013-03-16 Jan Hubicka <jh@suse.cz>
7882 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7883 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7884 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7885 of cgraph_get_create_node.
7886 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7888 2013-03-16 Jason Merrill <jason@redhat.com>
7891 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7892 with DW_AT_default_value.
7894 2013-03-16 Jakub Jelinek <jakub@redhat.com>
7896 * BASE-VER: Set to 4.9.0.
7898 2013-03-14 Andi Kleen <ak@linux.intel.com>
7901 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7902 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7903 Document _x* TSX intrinsics.
7905 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7906 David Holsgrove <david.holsgrove@xilinx.com>
7908 * configure.ac: Add MicroBlaze TLS support detection.
7909 * configure: Regenerate.
7910 * config/microblaze/microblaze-protos.h
7911 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7912 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7913 * config/microblaze/microblaze.c (microblaze_address_type): Add
7914 ADDRESS_TLS and tls_reloc address types.
7915 (microblaze_address_info): Add tls_reloc.
7916 (TARGET_HAVE_TLS): Define.
7917 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7918 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
7919 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7920 load_tls_operand, microblaze_call_tls_get_addr,
7921 microblaze_legitimize_tls_address): New functions.
7922 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7923 (get_base_reg): Use microblaze_tls_symbol_p.
7924 (microblaze_classify_address): Handle TLS.
7925 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7926 label_mentioned_p and microblaze_tls_referenced_p.
7927 (microblaze_legitimize_address): Handle TLS.
7928 (microblaze_address_insns): Handle ADDRESS_TLS.
7929 (pic_address_needs_scratch): Handle TLS.
7930 (print_operand_address): Handle TLS.
7931 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7932 (microblaze_expand_move): Handle TLS.
7933 (microblaze_legitimate_constant_p): Check
7934 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
7935 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7936 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7937 (PIC_OFFSET_TABLE_REGNUM): Set.
7938 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7939 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7940 (addsi3, movsi_internal2, movdf_internal): Update constraints
7941 * config/microblaze/predicates.md (arith_plus_operand): Define
7942 (move_operand): Redefine as move_src_operand,
7943 check microblaze_tls_referenced_p.
7945 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7947 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7948 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7950 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7952 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7955 2013-03-14 Jakub Jelinek <jakub@redhat.com>
7957 PR tree-optimization/53265
7958 * common.opt (Waggressive-loop-optimizations): New option.
7959 * tree-ssa-loop-niter.c: Include tree-pass.h.
7960 (do_warn_aggressive_loop_optimizations): New function.
7961 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7962 if number_of_latch_executions returned constant.
7963 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7964 early. If number_of_latch_executions returned constant, set
7965 nb_iterations_upper_bound back to it.
7966 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7968 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7969 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7971 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7972 (MULTILIB_OSDIRNAMES): Set.
7973 * genmultilib: If defaultosdirname doesn't start with :: , set
7974 defaultosdirname2 instead, clear it and emit two . multilib_raw
7975 entries instead of just one.
7977 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7979 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7980 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7981 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7982 (SUBTARGET_OVERRIDE_OPTIONS): New.
7984 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7987 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7988 (musermode): Convert to Var(TARGET_USERMODE).
7989 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7990 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7991 * config/sh/sh.c (sh_option_override): Use
7992 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7993 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7995 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7997 (udivsi3_i4_single, divsi3_i4_single): Use
7998 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8000 2013-03-13 Dave Korn <dave.korn.cygwin@....>
8002 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8005 2013-03-13 Richard Biener <rguenther@suse.de>
8007 PR tree-optimization/56608
8008 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8009 calls when vectorizing basic-blocks.
8011 2013-03-13 Jakub Jelinek <jakub@redhat.com>
8014 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8017 2013-03-12 Jakub Jelinek <jakub@redhat.com>
8019 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8021 2013-03-11 Jan Hubicka <jh@suse.cz>
8024 * lto-streamer-out.c (output_symbol_p): Skip references from
8025 constructors of external variables.
8027 2013-03-11 Jan Hubicka <jh@suse.cz>
8030 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8032 * emit-rtl.c (verify_rtx_sharing): Likewise.
8033 (copy_insn_1): Likewise.
8034 * rtl.c (copy_rtx): Likewise.
8036 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
8039 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8040 output_operand_lossage message.
8042 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
8045 * arm.c (shift_op): Validate RTL pattern on the fly.
8046 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8049 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8052 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8053 new call patterns that clobber %fr12.
8054 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8055 split and postreload patterns.
8056 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8057 registers %fr12 and %fr12R as call used.
8059 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8061 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8062 (canon_address, record_store, replace_read, check_mem_read_rtx,
8063 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8064 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8065 rest_of_handle_dse): Likewise.
8067 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8070 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8072 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8073 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8074 (save_optabs_if_changed): Replace with...
8075 (init_tree_optimization_optabs): ...this.
8076 * optabs.c (save_optabs_if_changed): Rename to...
8077 (init_tree_optimization_optabs): ...this. Take the optimization node
8078 as argument. Do nothing if the base optabs are already correct.
8079 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8080 to recompute optabs.
8081 * function.h (function): Remove optabs field.
8082 * function.c (invoke_set_current_function_hook): Call
8083 init_tree_optimization_optabs. Use the result to initialize
8086 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
8088 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8089 if GTMA_HAS_NO_INSTRUMENTATION.
8090 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8091 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8092 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8093 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8094 GTMA_HAS_NO_INSTRUMENTATION.
8096 2013-03-08 Jakub Jelinek <jakub@redhat.com>
8098 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8101 2013-03-08 Marek Polacek <polacek@redhat.com>
8102 Jakub Jelinek <jakub@redhat.com>
8104 PR tree-optimization/56478
8105 * predict.c (is_comparison_with_loop_invariant_p): Change the
8106 type of loop_step to tree.
8107 (predict_loops): Adjust.
8108 (predict_iv_comparison): Perform the computations on double_ints.
8110 2013-03-08 Richard Biener <rguenther@suse.de>
8112 PR tree-optimization/56570
8113 * tree-cfg.c (verify_expr_location_1): Verify locations for
8115 * tree-sra.c (create_access_replacement): Strip locations
8116 from DECL_DEBUG_EXPRs.
8118 2013-03-08 Richard Biener <rguenther@suse.de>
8120 * tree-inline.c (expand_call_inline): Do not associate
8121 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8122 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8124 2013-03-08 Richard Biener <rguenther@suse.de>
8126 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8127 or block changes with -Og. Fix for location / block encoding
8128 changes and PHI arguments with locations.
8130 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8132 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8134 (struct output_info): Likewise.
8135 (register_overhead): Remove bad gcc_assert.
8136 (bitmap_find_bit): If there is only a single bitmap element, do not
8137 count a miss as a search.
8138 (print_statistics): Update for counter type changes.
8139 (dump_bitmap_statistics): Likewise. Print headers such that they
8140 are properly lined up with the printed counters.
8142 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8144 PR tree-optimization/56559
8145 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8146 check that it has only a single use.
8148 2013-03-07 Richard Biener <rguenther@suse.de>
8150 * doc/invoke.texi (fwhole-program): Discourage use in combination
8153 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8155 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8157 PR tree-optimization/56539
8158 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8159 instead of GSI_CONTINUE_LINKING as last argument to
8160 force_gimple_operand_gsi. Adjust function comment.
8162 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8166 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8167 promoted mode, convert the result back to the original mode.
8169 2013-03-06 Richard Biener <rguenther@suse.de>
8172 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8173 (insert_updated_phi_nodes_compare_uids): New function.
8174 (update_ssa): Sort symbols_to_rename after UID before
8175 traversing it to insert PHI nodes.
8177 2013-03-06 Richard Biener <rguenther@suse.de>
8180 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8181 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8184 2013-02-13 Richard Biener <rguenther@suse.de>
8187 * varasm.c (output_constant_def_1): Get the decl representing
8188 the constant as argument.
8189 (output_constant_def): Wrap output_constant_def_1.
8190 (make_decl_rtl): Use output_constant_def_1 with the decl
8191 representing the constant.
8192 (build_constant_desc): Optionally re-use a decl already
8193 representing the constant.
8194 (tree_output_constant_def): Adjust.
8196 2013-03-06 Joey Ye <joey.ye@arm.com>
8199 * gcc.c (convert_white_space): New function.
8200 (main): Handles white space in function name.
8202 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8205 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8206 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8207 to SH_DIV_CALL_TABLE for TARGET_SH2.
8208 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8210 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8213 2013-03-05 Sterling Augustine <saugustine@google.com>
8214 Cary Coutant <ccoutant@google.com>
8217 * dwarf2out.c (resolve_addr): Don't call
8218 remove_loc_list_addr_table_entries a second time for the same
8221 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8224 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8225 (avoid_complex_debug_insns): New function.
8226 (expand_debug_locations): Call it.
8228 PR rtl-optimization/56484
8229 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8230 lifetimes of hard registers on small register class machines.
8232 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8234 * config/microblaze/microblaze-protos.h: Rename
8235 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8236 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8238 (microblaze_fast_interrupt_function_p): New function.
8239 (microblaze_is_interrupt_handler): Rename to
8240 microblaze_is_interrupt_variant and add fast_interrupt check.
8241 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8242 (save_restore_insns): Likewise.
8243 (compute_frame_size): Likewise.
8244 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8245 (microblaze_globalize_label): Likewise.
8246 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8247 * config/microblaze/microblaze.md: Use wrapper
8248 microblaze_is_interrupt_variant.
8250 2013-03-05 Kai Tietz <ktietz@redhat.com>
8252 * sdbout.c (sdbout_one_type): Switch to current function's section
8253 supporting cold/hot.
8255 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8257 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8260 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8263 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8264 if VALGRIND_GET_VBITS is defined, temporarily make object
8265 memory all defined, and restore previous valgrind addressability
8266 and definability afterwards. Free this_object at the end.
8269 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8270 right before calling lra_create_live_ranges, also call it
8271 when clearing live_p. Only call lra_clear_live_ranges
8272 at the end if live_p.
8275 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8277 2013-03-05 Richard Biener <rguenther@suse.de>
8279 PR tree-optimization/56521
8280 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8283 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8286 * except.h (remove_unreachable_eh_regions): New prototype.
8287 * except.c (remove_eh_handler_splicer): New function, split out
8288 of remove_eh_handler.
8289 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8290 warning about running it on many EH regions one at a time.
8291 (remove_unreachable_eh_regions_worker): New function, walk the
8292 EH tree in depth-first order and remove non-marked regions.
8293 (remove_unreachable_eh_regions): New function.
8294 * tree-eh.c (mark_reachable_handlers): New function, split out
8295 from remove_unreachable_handlers.
8296 (remove_unreachable_handlers): Use mark_reachable_handlers and
8297 remove_unreachable_eh_regions.
8298 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8299 and remove_unreachable_eh_regions.
8301 2013-03-05 Richard Biener <rguenther@suse.de>
8304 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8305 not freeing them until the end.
8307 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8309 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8311 2013-03-05 Richard Biener <rguenther@suse.de>
8313 PR tree-optimization/56270
8314 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8315 of loads after scheduling an SLP instance.
8317 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8319 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8321 (check_gcc_parallelize): Run guality.exp as a separate job from
8322 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8323 struct-layout-1.exp with stackalign.exp.
8325 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8328 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8329 load_index sbitmap even if some bit in it isn't set.
8332 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8333 (discover_iteration_bound_by_body_walk): Change queues to
8334 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8335 spelling in comment. Call safe_push on queues[bound_index] directly.
8336 Release queues[queue_index] in every iteration unconditionally.
8337 Release bounds vector.
8340 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8341 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8342 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8345 2013-03-05 Richard Biener <rguenther@suse.de>
8348 * tree-inline.c (remap_blocks_to_null): New function.
8349 (expand_call_inline): When expanding a call stmt without
8350 an associated block inline remap all callee blocks to NULL.
8352 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8354 PR rtl-optimization/56494
8355 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8356 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8357 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8360 * sel-sched-ir.c (free_sched_pools): Release
8361 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8362 if succs_info_pool.max_top isn't -1.
8365 * opts.c (opts_obstack, opts_concat): Moved to...
8366 * opts-common.c (opts_obstack, opts_concat): ... here.
8368 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8371 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8373 2013-03-04 Martin Jambor <mjambor@suse.cz>
8375 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8376 all appropriate places.
8378 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8380 PR tree-optimization/56424
8381 * ipa-split.c (split_function): Do not set the RSO flag if result is
8382 not by reference and its type is a register type.
8384 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8386 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8387 (microblaze_legitimate_pic_operand): Likewise
8388 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8389 new function microblaze_legitimate_pic_operand
8390 * config/microblaze/microblaze-protos.h
8391 (microblaze_legitimate_pic_operand): Declare.
8393 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8395 * config/microblaze/predicates.md (call_insn_simple_operand):
8396 New predicate for supported rtx code types.
8397 * config/microblaze/microblaze.md (call_internal1): Use
8398 call_insn_simple_operand predicate.
8400 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8403 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8404 partitions.ordered_remove.
8407 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8408 vec_oprnds0.create (1) for modifier == NONE.
8411 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8412 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8413 vec_oprnds1 right before pushing anything to it for
8417 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8418 set nbbs to 0 instead of having separate code path.
8419 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8420 instead of false as last argument if returning NULL.
8422 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8424 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8425 the attribute is now called "target" instead of "option".
8426 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8427 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8428 attribute/pragma name for TARGET_OPTION_VALID_P and
8429 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8430 * doc/tm.texi: Regenerated.
8432 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8434 * config/microblaze/microblaze.c:
8435 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8436 * config/microblaze/microblaze.h: Add -mxl-reorder to
8438 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8439 instructions emitted if TARGET_REORDER.
8440 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8441 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8444 2013-03-01 Xinliang David Li <davidxl@google.com>
8446 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8449 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8452 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8453 vector even when returning true. Fix up function comment formatting.
8456 * ira-build.c (ira_loop_nodes_count): New variable.
8457 (create_loop_tree_nodes): Initialize it.
8458 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8461 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8462 method on dr_chain and result_chain.
8463 * tree-vect-stmts.c (vectorizable_store): Only call
8464 result_chain.create if j == 0.
8467 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8468 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8469 before overwriting it.
8471 2013-03-01 Tobias Burnus <burnus@net-b.de>
8473 * doc/extended.texi (C Extensions): Change order in @menu
8475 (Other MIPS Built-in Functions): Move last MIPS entry before
8476 "picoChip Built-in Functions".
8477 (SH Built-in Functions): Move after RX Built-in Functions.
8478 * doc/gcc.texi (Introduction): Change order in @menu
8480 * doc/md.texi (Constraints): Ditto.
8481 * gty.texi (Type Information): Ditto.
8482 (User-provided marking routines for template types): Make
8484 * doc/invoke.texi (AArch64 Options): Move before
8485 "Adapteva Epiphany Options".
8487 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8488 Jakub Jelinek <jakub@redhat.com>
8491 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8492 no_address_safety_analysis attribute.
8493 * doc/extend.texi (no_address_safety_attribute): Rename to
8494 no_sanitize_address attribute, mention no_address_safety_analysis
8495 attribute as deprecated alias.
8497 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8500 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8501 type to vec<vec<tree> > *.
8502 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8503 to be vec<tree> instead of vec<tree> *, set vec_defs
8504 to vNULL and call vec_defs.create (number_of_vects), adjust other
8506 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8507 vectorizable_condition): Adjust vect_get_slp_defs callers.
8509 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8511 * config/aarch64/aarch64.c
8512 (aarch64_float_const_representable): Remove unused variable.
8514 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8516 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8518 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8520 * config/aarch64/aarch64-builtins.c
8521 (aarch64_init_simd_builtins): Make static.
8523 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8525 * config/aarch64/aarch64.c
8526 (aarch64_simd_make_constant): Make static.
8528 2013-02-28 Martin Jambor <mjambor@suse.cz>
8530 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8531 with no initialization to the RHS of debug statements.
8533 2013-02-28 Martin Jambor <mjambor@suse.cz>
8535 PR tree-optimization/56294
8536 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8538 (get_access_replacement): Do not call create_access_replacement.
8539 Assert a replacement exists.
8540 (get_repl_default_def_ssa_name): Create the replacement declaration
8543 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8545 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8548 2013-02-28 Marek Polacek <polacek@redhat.com>
8550 PR rtl-optimization/56466
8551 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8552 if we're changing a loop.
8553 (peel_loops_completely): Likewise.
8555 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8558 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8560 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8563 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8564 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8565 INTX_FTYPE_FX, FX_FTYPE_INTX.
8566 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8568 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8570 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8571 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8572 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8573 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8574 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8575 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8576 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8577 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8578 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8579 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8580 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8581 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8582 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8583 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8584 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8585 (avrxmega6): Increase max flash segments from 5 to 6.
8586 * config/avr/t-multilib: Regenerate.
8587 * config/avr/avr-tables.opt: Regenerate.
8588 * doc/avr-mmcu.texi: Regenerate.
8590 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8592 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8593 (avr_device_to_arch): Rename to avr_device_to_ld.
8594 (avr_device_to_as): New prototype.
8595 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8596 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8597 * config/avr/driver-avr.c (avr_device_to_as): New.
8598 (avr_device_to_arch): Rename to avr_device_to_ld.
8600 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8603 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8604 method on dr_chain and result_chain.
8607 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8608 pointer_set_destroy on not_executed_last_iteration.
8611 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8614 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8615 FOR_EACH_DEFINED_FUNCTION when freeing state.
8618 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8620 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8624 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8625 known_aggs[i].items and release known_aggs vector.
8628 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8630 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8632 * config/microblaze/microblaze.c (microblaze_emit_compare):
8633 Use xor for EQ/NE comparisions.
8634 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8635 (cbranchsf4): Adjust operator to comparison_operator.
8637 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8640 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8642 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8643 vec_safe_push, always update *slot.
8644 (redirect_edge_var_map_clear): Use vec_free.
8645 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8646 (free_var_map_entry): Use vec_free.
8647 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8648 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8650 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
8653 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8654 when the may_trap_p bit of the exprs being merged differs.
8655 Reorder tests for speculativeness in the logical and operator.
8657 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8659 * incpath.c (add_standard_paths): Use reconcat instead of concat
8660 where appropriate and avoid leaking memory.
8662 * opts.h: Include obstack.h.
8663 (opts_concat): New prototype.
8664 (opts_obstack): New declaration.
8665 * opts.c (opts_concat): New function.
8666 (opts_obstack): New variable.
8667 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8668 (finish_options): Use opts_concat instead of concat
8669 and XOBNEWVEC instead of XNEWVEC.
8670 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8671 generate_option): Likewise.
8672 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8673 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8676 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8677 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8679 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8682 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8684 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8686 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8687 (arm_block_move_unaligned_straight): Likewise.
8688 (arm_adjust_block_mem): Likewise.
8690 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8693 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8694 temp, cond and label.
8695 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8698 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8699 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8702 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8703 of prologue/epilogue functions.
8706 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8707 Remove unused variable cfa_offset.
8708 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8711 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8712 type promotion to unsigned.
8715 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8716 for HOST_WIDE_INT of 32 bit / same size as int.
8717 (arm_block_move_unaligned_straight): Likewise.
8718 (arm_adjust_block_mem): Likewise.
8721 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8724 2013-02-26 Marek Polacek <polacek@redhat.com>
8726 PR tree-optimization/56426
8727 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
8729 2013-02-26 Richard Biener <rguenther@suse.de>
8732 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8733 unused variable loops.
8735 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8737 PR tree-optimization/56448
8738 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8739 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8740 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8741 later operands of the references, or even first operand for
8742 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8744 PR tree-optimization/56443
8745 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8746 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8747 to type_for_mode langhook.
8749 2013-02-25 Matt Turner <mattst88@gmail.com>
8751 * doc/invoke.texi: Document r4700.
8753 2013-02-25 Richard Biener <rguenther@suse.de>
8755 PR tree-optimization/56175
8756 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8758 (simplify_bitwise_binary): ... here. Also guard the conversion
8759 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8761 2013-02-25 Catherine Moore <clm@codesourcery.com>
8764 2013-02-24 Catherine Moore <clm@codesourcery.com>
8765 Maciej W. Rozycki <macro@codesourcery.com>
8766 Tom de Vries <tom@codesourcery.com>
8767 Nathan Sidwell <nathan@codesourcery.com>
8768 Iain Sandoe <iain@codesourcery.com>
8769 Nathan Froyd <froydnj@codesourcery.com>
8770 Chao-ying Fu <fu@mips.com>
8772 * doc/extend.texi: (micromips, nomicromips, nocompression):
8773 Document new function attributes.
8774 * doc/invoke.texi (minterlink-compressed, mmicromips,
8775 m14k, m14ke, m14kec): Document new options.
8776 (minterlink-mips16): Update documentation.
8777 * doc/md.texi (ZC, ZD): Document new constraints.
8778 * configure.ac (gcc_cv_as_micromips): Check if linker
8779 supports the .set micromips directive.
8780 * configure: Regenerate.
8781 * config.in: Regenerate.
8782 * config/mips/mips-tables.opt: Regenerate.
8783 * config/mips/micromips.md: New file.
8784 * constraints.md (ZC, AD): New constraints.
8785 * config/mips/predicates.md (movep_src_register): New predicate.
8786 (movep_src_operand): New predicate.
8787 (non_volatile_mem_operand): New predicate.
8788 * config/mips/mips.md (multimem): New type.
8789 (length): Differentiate between 17-bit and 18-bit branch offsets.
8790 (MOVEP1, MOVEP2): New mode iterator.
8791 (mov_<load>l): Use ZC constraint.
8792 (mov_<load>r): Likewise.
8793 (mov_<store>l): Likewise.
8794 (mov_<store>r): Likewise.
8795 (*branch_equality<mode>_inverted): Add microMIPS support.
8796 (*branch_equality<mode>): Likewise.
8797 (*jump_absolute): Likewise.
8798 (indirect_jump_<mode>): Likewise.
8799 (tablejump_<mode>): Likewise.
8800 (<optab>_internal): Likewise.
8801 (sibcall_internal): Likewise.
8802 (sibcall_value_internal): Likewise.
8803 (prefetch): Use constraint ZD.
8804 * config/mips/mips.opt (minterlink-compressed): New option.
8805 (minterlink-mips16): Now an alias for minterlink-compressed.
8806 (mmicromips): New option.
8807 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8808 (compare_and_swap_12): Likewise.
8809 (sync_add<mode>): Likewise.
8810 (sync_<optab>_12): Likewise.
8811 (sync_old_<optab>_12): Likewise.
8812 (sync_new_<optab>_12): Likewise.
8813 (sync_nand_12): Likewise.
8814 (sync_old_nand_12): Likewise.
8815 (sync_new_nand_12): Likewise.
8816 (sync_sub<mode>): Likewise.
8817 (sync_old_add<mode>): Likewise.
8818 (sync_old_sub<mode>): Likewise.
8819 (sync_new_add<mode>): Likewise.
8820 (sync_new_sub<mode>): Likewise.
8821 (sync_<optab><mode>): Likewise.
8822 (sync_old_<optab><mode>): Likewise.
8823 (sync_new_<optab><mode>): Likewise.
8824 (sync_nand<mode>): Likewise.
8825 (sync_old_nand<mode>): Likewise.
8826 (sync_new_nand<mode>): Likewise.
8827 (sync_lock_test_and_set<mode>): Likewise.
8828 (test_and_set_12): Likewise.
8829 (atomic_compare_and_swap<mode>): Likewise.
8830 (atomic_exchange<mode>_llsc): Likewise.
8831 (atomic_fetch_add<mode>_llsc): Likewise.
8832 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8833 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8834 (umips_save_restore_pattern_p): Likewise.
8835 (umips_load_store_pair_p): Likewise.
8836 (umips_output_load_store_pair): Likewise.
8837 (umips_movep_target_p): Likewise.
8838 (umips_12bit_offset_address_p): Likewise.
8839 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8840 (mips_base_mips16): Rename this...
8841 (mips_base_compression_flags): ...to this. Update all uses.
8842 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8843 (mips_mips16_decl_p): Delete.
8844 (mips_nomips16_decl_p): Delete.
8845 (mips_get_compress_on_flags): New function.
8846 (mips_get_compress_off_flags): New function.
8847 (mips_get_compress_mode): New function.
8848 (mips_get_compress_on_name): New function.
8849 (mips_get_compress_off_name): New function.
8850 (mips_insert_attributes): Support multiple compression types.
8851 (mips_merge_decl_attributes): Likewise.
8852 (umips_12bit_offset_address_p): New function.
8853 (mips_start_function_definition): Emit .set micromips directive.
8854 (mips_call_may_need_jalx_p): New function.
8855 (mips_function_ok_for_sibcall): Add microMIPS support.
8856 (mips_print_operand_punctuation): Support short delay slots and
8858 (umips_swm_mask, umips_swm_encoding): New.
8859 (umips_build_save_restore): New function.
8860 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8861 (was_mips16_p): Remove.
8862 (old_compression_mode): New.
8863 (mips_set_compression_mode): New function.
8864 (mips_set_current_function): Add microMIPS support.
8865 (mips_option_override): Likewise.
8866 (umips_save_restore_pattern_p): New function.
8867 (umips_output_save_restore): New function.
8868 (umips_load_store_pair_p_1): New function.
8869 (umips_load_store_pair_p): New function.
8870 (umips_output_load_store_pair_1): New function.
8871 (umips_output_load_store_pair): New function.
8872 (umips_movep_target_p) New function.
8873 (mips_prepare_pch_save): Add microMIPS support.
8874 * config/mips/mips.h (TARGET_COMPRESSION): New.
8875 (TARGET_CPU_CPP_BUILTINS): Update macro
8876 to use new compression flags and to support microMIPS.
8877 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8878 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8879 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8880 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8881 (ASM_SPEC): Support mmicromips and mno-micromips.
8882 (M16STORE_REG_P): New macro.
8883 (MIPS_CALL): Support TARGET_MICROMIPS.
8884 (MICROMIPS_J): New macro.
8885 (mips_base_mips16): Rename this...
8886 (mips_base_compression_flags): ...to this.
8887 (UMIPS_12BIT_OFFSET_P): New macro.
8888 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8889 (MULTILIB_DIRNAMES): Likewise.
8891 2013-02-25 Tom de Vries <tom@codesourcery.com>
8893 PR rtl-optimization/56131
8894 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8895 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8896 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8898 2013-02-25 Tobias Burnus <burnus@net-b.de>
8900 * doc/invoke.texi (-fsanitize=): Move from optimization
8901 to debugging options.
8903 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8905 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8907 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8908 Alexander Monakov <amonakov@ispras.ru>
8911 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8912 flush pending lists also on non-jumps. Adjust comment.
8914 2013-02-24 Catherine Moore <clm@codesourcery.com>
8915 Maciej W. Rozycki <macro@codesourcery.com>
8916 Tom de Vries <tom@codesourcery.com>
8917 Nathan Sidwell <nathan@codesourcery.com>
8918 Iain Sandoe <iain@codesourcery.com>
8919 Nathan Froyd <froydnj@codesourcery.com>
8920 Chao-ying Fu <fu@mips.com>
8922 * doc/extend.texi: (micromips, nomicromips, nocompression):
8923 Document new function attributes.
8924 * doc/invoke.texi (minterlink-compressed, mmicromips,
8925 m14k, m14ke, m14kec): Document new options.
8926 (minterlink-mips16): Update documentation.
8927 * doc/md.texi (ZC, ZD): Document new constraints.
8928 * configure.ac (gcc_cv_as_micromips): Check if linker
8929 supports the .set micromips directive.
8930 * configure: Regenerate.
8931 * config.in: Regenerate.
8932 * config/mips/mips-tables.opt: Regenerate.
8933 * config/mips/micromips.md: New file.
8934 * constraints.md (ZC, AD): New constraints.
8935 * config/mips/predicates.md (movep_src_register): New predicate.
8936 (movep_src_operand): New predicate.
8937 (non_volatile_mem_operand): New predicate.
8938 * config/mips/mips.md (multimem): New type.
8939 (length): Differentiate between 17-bit and 18-bit branch offsets.
8940 (MOVEP1, MOVEP2): New mode iterator.
8941 (mov_<load>l): Use ZC constraint.
8942 (mov_<load>r): Likewise.
8943 (mov_<store>l): Likewise.
8944 (mov_<store>r): Likewise.
8945 (*branch_equality<mode>_inverted): Add microMIPS support.
8946 (*branch_equality<mode>): Likewise.
8947 (*jump_absolute): Likewise.
8948 (indirect_jump_<mode>): Likewise.
8949 (tablejump_<mode>): Likewise.
8950 (<optab>_internal): Likewise.
8951 (sibcall_internal): Likewise.
8952 (sibcall_value_internal): Likewise.
8953 (prefetch): Use constraint ZD.
8954 * config/mips/mips.opt (minterlink-compressed): New option.
8955 (minterlink-mips16): Now an alias for minterlink-compressed.
8956 (mmicromips): New option.
8957 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8958 (compare_and_swap_12): Likewise.
8959 (sync_add<mode>): Likewise.
8960 (sync_<optab>_12): Likewise.
8961 (sync_old_<optab>_12): Likewise.
8962 (sync_new_<optab>_12): Likewise.
8963 (sync_nand_12): Likewise.
8964 (sync_old_nand_12): Likewise.
8965 (sync_new_nand_12): Likewise.
8966 (sync_sub<mode>): Likewise.
8967 (sync_old_add<mode>): Likewise.
8968 (sync_old_sub<mode>): Likewise.
8969 (sync_new_add<mode>): Likewise.
8970 (sync_new_sub<mode>): Likewise.
8971 (sync_<optab><mode>): Likewise.
8972 (sync_old_<optab><mode>): Likewise.
8973 (sync_new_<optab><mode>): Likewise.
8974 (sync_nand<mode>): Likewise.
8975 (sync_old_nand<mode>): Likewise.
8976 (sync_new_nand<mode>): Likewise.
8977 (sync_lock_test_and_set<mode>): Likewise.
8978 (test_and_set_12): Likewise.
8979 (atomic_compare_and_swap<mode>): Likewise.
8980 (atomic_exchange<mode>_llsc): Likewise.
8981 (atomic_fetch_add<mode>_llsc): Likewise.
8982 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8983 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8984 (umips_save_restore_pattern_p): Likewise.
8985 (umips_load_store_pair_p): Likewise.
8986 (umips_output_load_store_pair): Likewise.
8987 (umips_movep_target_p): Likewise.
8988 (umips_12bit_offset_address_p): Likewise.
8989 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8990 (mips_base_mips16): Rename this...
8991 (mips_base_compression_flags): ...to this. Update all uses.
8992 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8993 (mips_mips16_decl_p): Delete.
8994 (mips_nomips16_decl_p): Delete.
8995 (mips_get_compress_on_flags): New function.
8996 (mips_get_compress_off_flags): New function.
8997 (mips_get_compress_mode): New function.
8998 (mips_get_compress_on_name): New function.
8999 (mips_get_compress_off_name): New function.
9000 (mips_insert_attributes): Support multiple compression types.
9001 (mips_merge_decl_attributes): Likewise.
9002 (umips_12bit_offset_address_p): New function.
9003 (mips_start_function_definition): Emit .set micromips directive.
9004 (mips_call_may_need_jalx_p): New function.
9005 (mips_function_ok_for_sibcall): Add microMIPS support.
9006 (mips_print_operand_punctuation): Support short delay slots and
9008 (umips_swm_mask, umips_swm_encoding): New.
9009 (umips_build_save_restore): New function.
9010 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9011 (was_mips16_p): Remove.
9012 (old_compression_mode): New.
9013 (mips_set_compression_mode): New function.
9014 (mips_set_current_function): Add microMIPS support.
9015 (mips_option_override): Likewise.
9016 (umips_save_restore_pattern_p): New function.
9017 (umips_output_save_restore): New function.
9018 (umips_load_store_pair_p_1): New function.
9019 (umips_load_store_pair_p): New function.
9020 (umips_output_load_store_pair_1): New function.
9021 (umips_output_load_store_pair): New function.
9022 (umips_movep_target_p) New function.
9023 (mips_prepare_pch_save): Add microMIPS support.
9024 * config/mips/mips.h (TARGET_COMPRESSION): New.
9025 (TARGET_CPU_CPP_BUILTINS): Update macro
9026 to use new compression flags and to support microMIPS.
9027 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9028 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9029 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9030 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9031 (ASM_SPEC): Support mmicromips and mno-micromips.
9032 (M16STORE_REG_P): New macro.
9033 (MIPS_CALL): Support TARGET_MICROMIPS.
9034 (MICROMIPS_J): New macro.
9035 (mips_base_mips16): Rename this...
9036 (mips_base_compression_flags): ...to this.
9037 (UMIPS_12BIT_OFFSET_P): New macro.
9038 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9039 (MULTILIB_DIRNAMES): Likewise.
9041 2013-02-24 Jakub Jelinek <jakub@redhat.com>
9044 * target-globals.c (save_target_globals): For init_reg_sets and
9045 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9047 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9049 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9050 * config/aarch64/t-aarch64
9051 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9053 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9056 * lra-constraints.c (process_alt_operands): Reload operand
9057 conflicting with earlier clobber only if no more other conflicting
9060 2013-02-22 Jakub Jelinek <jakub@redhat.com>
9063 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9064 if not linking a shared library.
9066 2013-02-22 Seth LaForge <sethml@google.com>
9068 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9070 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9072 * config/arm/arm.md (split for extendsidi): Update condition.
9073 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9074 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9075 (qhs_zextenddi_cstr): Likewise.
9077 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9080 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9081 avoid signed wrapping.
9082 (expand_mult): Handle properly multiplication by
9083 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9084 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9085 in the compiler if coeff is HOST_WIDE_INT_MIN.
9086 (expand_divmod): Don't make ext_op1 static, change it's type to
9087 uhwi. Avoid undefined behavior in -INTVAL (op1).
9089 PR rtl-optimization/50339
9090 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9092 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9093 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9094 into splitting_ashiftrt field.
9095 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9097 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9100 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
9103 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9104 are sure to go irrevocable.
9106 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
9108 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9109 scalars are valid operands.
9111 2013-02-21 Martin Jambor <mjambor@suse.cz>
9113 PR tree-optimization/56310
9114 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9115 only matching indices and non-negative final offsets.
9116 (intersect_aggregates_with_edge): Pass src_idx to
9117 agg_replacements_to_vector. Pass src_idx insstead of index to
9118 intersect_with_agg_replacements.
9120 2013-02-21 Martin Jambor <mjambor@suse.cz>
9122 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9123 instead of hard-wired defaults.
9125 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9127 * doc/invoke.texi (MIPS Options): Update documentation of the
9128 floating-point multiply-accumulate instruction restrictions.
9130 2013-02-21 Kostya Serebryany <kcc@google.com>
9132 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9133 asan_shadow_offset on x86_64 linux.
9135 2013-02-21 Richard Biener <rguenther@suse.de>
9137 PR tree-optimization/56415
9139 2013-02-11 Richard Biener <rguenther@suse.de>
9141 PR tree-optimization/56273
9142 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9145 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9148 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9152 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9153 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9155 2013-02-20 Jan Hubicka <jh@suse.cz>
9157 PR tree-optimization/56265
9158 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9159 when target is referenced for first time.
9161 2013-02-20 Richard Biener <rguenther@suse.de>
9163 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9164 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9165 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9166 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9167 not return anything.
9168 (rename_ssa_copies): Do not remove unused locals.
9169 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9170 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9171 * passes.c (execute_function_todo): Do not schedule unused locals
9172 removal if cleanup_tree_cfg did something.
9173 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9174 about the number of removed locals.
9176 2013-02-20 Richard Biener <rguenther@suse.de>
9178 PR tree-optimization/56398
9179 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9181 2013-02-20 Martin Jambor <mjambor@suse.cz>
9183 PR tree-optimization/55334
9184 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9185 restricted pointers to arrays.
9187 2013-02-20 Richard Biener <rguenther@suse.de>
9188 Jakub Jelinek <jakub@redhat.com>
9190 PR tree-optimization/56396
9191 * tree-ssa-ccp.c (n_const_val): New static variable.
9192 (get_value): Return NULL for SSA names we don't have a lattice
9194 (ccp_initialize): Initialize n_const_val.
9195 * tree-ssa-copy.c (n_copy_of): New static variable.
9196 (init_copy_prop): Initialize n_copy_of.
9197 (get_value): Return NULL_TREE for SSA names we don't have a
9200 2013-02-20 Martin Jambor <mjambor@suse.cz>
9202 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9204 2013-02-20 Richard Biener <rguenther@suse.de>
9206 * genpreds.c (write_lookup_constraint): Do not compare first
9207 letter of the constraint again.
9209 2013-02-20 Richard Biener <rguenther@suse.de>
9211 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9213 (get_use_iv_cost): Terminate hashtable walk when coming across
9216 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9218 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9219 reassociation for avx2 targets.
9221 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9223 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9224 Add version check for v8.10.a to enable microblaze_has_clz
9225 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9226 version and TARGET_PATTERN_COMPARE check
9227 * config/microblaze/microblaze.md: New clzsi2 instruction
9229 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9231 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9232 function before branching.
9234 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9236 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9238 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9240 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9243 * sel-sched.c: Include ira.h.
9244 (implicit_clobber_conflict_p): New function.
9245 (moveup_expr): Use it.
9246 * Makefile.in (sel-sched.o): Depend on ira.h.
9248 2013-02-19 Richard Biener <rguenther@suse.de>
9250 PR tree-optimization/56384
9251 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9252 (vn_hash_type): Split out from ...
9253 (vn_hash_constant_with_type): ... here.
9254 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9255 (vn_phi_eq): Compare types from vn_phi_s structure.
9256 (vn_phi_lookup): Populate vn_phi_s type.
9257 (vn_phi_insert): Likewise.
9259 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9261 PR tree-optimization/56350
9262 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9263 if haven't found reduction or nested cycle operand, rather than
9264 asserting we must find it.
9266 PR tree-optimization/56381
9267 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9270 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9271 Jakub Jelinek <jakub@redhat.com>
9274 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9275 (swap_optab_enable): Same.
9276 (init_all_optabs): Use argument instead of global.
9277 * tree.h (struct tree_optimization_option): New field target_optabs.
9278 * expr.h (init_all_optabs): Add argument to prototype.
9279 (TREE_OPTIMIZATION_OPTABS): New.
9280 (save_optabs_if_changed): Protoize.
9281 * optabs.h: Declare this_fn_optabs.
9282 * optabs.c (save_optabs_if_changed): New.
9283 Declare this_fn_optabs.
9284 (init_optabs): Add argument to init_all_optabs() call.
9285 * function.c (invoke_set_current_function_hook): Handle per
9287 * function.h (struct function): New field optabs.
9288 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9289 optimization_current_node has changed.
9290 * target-globals.h (save_target_globals_default_opts): Protoize.
9291 * target-globals.c (save_target_globals_default_opts): New.
9293 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9296 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9297 registers %fr12 and %fr12R as call used.
9300 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9301 and HImode, require all displacements to be an integer multiple of
9303 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9304 only allow QImode and HImode when reload is in progress and strict is
9305 true. Likewise for symbolic addresses. Use base14_operand to check
9306 displacements in REG+BASE addresses.
9308 2013-02-18 Richard Biener <rguenther@suse.de>
9310 PR tree-optimization/56366
9311 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9312 handle sign-conversion of outer-loop initial induction value.
9314 2013-02-18 Richard Biener <rguenther@suse.de>
9317 * cfghooks.c (merge_blocks): If we merge a latch into another
9318 block adjust references to it.
9319 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9320 (verify_loop_structure): Verify that a recorded latch is in fact
9323 2013-02-18 Richard Biener <rguenther@suse.de>
9325 PR tree-optimization/56321
9326 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9327 order SSA name release and virtual operand unlinking.
9329 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9331 * config/microblaze/microblaze.md (save_stack_block): Define.
9332 (restore_stack_block): Likewise.
9334 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9336 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9337 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9338 * config/microblaze/microblaze.c (microblaze_option_override):
9339 Bail out early for PIC modes when target does not support PIC.
9341 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9343 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9344 Replace with a microblaze version.
9345 (microblaze_trampoline_init): Adapt for microblaze.
9346 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9349 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9350 Dodji Seketeli <dodji@redhat.com>
9353 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9354 (instrument_mem_region_access): Do not forget to always put
9355 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9356 0) statement, even for cases where either 'base' or 'base + len'
9357 are not instrumented -- because they have been previously
9358 instrumented. Simplify the logic by putting all the statements
9359 instrument 'base + len' inside a sequence, and then insert that
9360 sequence right before the current insertion point. Then, to
9361 instrument 'base + len', just get an iterator on that statement.
9362 And do not forget to update the pointer to iterator the function
9363 received as argument.
9365 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9367 PR rtl-optimization/56348
9368 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9370 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9372 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9373 (clean_graph_dump_file): Pass base to start_graph_dump.
9375 2013-02-14 Richard Henderson <rth@redhat.com>
9378 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9380 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9382 * collect2-aix.h: Define F_LOADONLY.
9384 2013-02-14 Richard Biener <rguenther@suse.de>
9387 * varasm.c (output_constant_def_1): Get the decl representing
9388 the constant as argument.
9389 (output_constant_def): Wrap output_constant_def_1.
9390 (make_decl_rtl): Use output_constant_def_1 with the decl
9391 representing the constant.
9392 (build_constant_desc): Optionally re-use a decl already
9393 representing the constant.
9394 (tree_output_constant_def): Adjust.
9396 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9399 * asan.c (instrument_builtin_call): Really put the length of the
9400 second source argument into src1_len.
9402 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9404 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9405 argument. If it is false, don't create edge from then_bb to
9407 (insert_if_then_before_iter): Pass true to it.
9408 (build_check_stmt): Pass false to it.
9409 (transform_statements): Flush hash table only on extended basic
9410 block boundaries, rather than at the beginning of every bb.
9411 Don't flush hash table on nonfreeing_call_p calls.
9412 * tree-flow.h (nonfreeing_call_p): New prototype.
9413 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9415 2013-02-13 David S. Miller <davem@davemloft.net>
9417 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9419 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9422 * ira.c (max_regno_before_ira): Move from ...
9424 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9427 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9429 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9431 2013-02-13 Richard Biener <rguenther@suse.de>
9434 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9435 globals in MEM_REFs.
9437 2013-02-13 Richard Biener <rguenther@suse.de>
9439 * loop-init.c (loop_optimizer_init): Clear loop state when
9440 re-initializing preserved loops.
9441 * loop-unswitch.c (unswitch_single_loop): Return whether
9442 we unswitched the loop. Do not verify loop state here.
9443 (unswitch_loops): When we unswitched a loop discover new loops.
9445 2013-02-13 Kostya Serebryany <kcc@google.com>
9447 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9449 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9451 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9453 Avoid instrumenting duplicated memory access in the same basic block
9454 * Makefile.in (asan.o): Add new dependency on hash-table.h
9455 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9456 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9457 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9458 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9459 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9460 (get_mem_ref_of_assignment): New functions.
9461 (get_mem_refs_of_builtin_call): Extract from
9462 instrument_builtin_call and tweak a little bit to make it fit with
9464 (instrument_builtin_call): Use the new
9465 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9466 of is_gimple_builtin_call.
9467 (instrument_derefs, instrument_mem_region_access): Insert the
9468 instrumented memory reference into the hash table.
9469 (maybe_instrument_assignment): Renamed instrument_assignment into
9470 this, and change it to advance the iterator when instrumentation
9471 actually happened and return true in that case. This makes it
9472 homogeneous with maybe_instrument_assignment, and thus give a
9473 chance to callers to be more 'regular'.
9474 (transform_statements): Clear the memory reference hash table
9475 whenever we enter a new BB, when we cross a function call, or when
9476 we are done transforming statements. Use
9477 maybe_instrument_assignment instead of instrumentation. No more
9478 need to special case maybe_instrument_assignment and advance the
9479 iterator after calling it; it's now handled just like
9480 maybe_instrument_call. Update comment.
9482 2013-02-13 Richard Biener <rguenther@suse.de>
9484 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9485 Fix loop discovery code.
9487 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9490 * lra-constraints.c (process_alt_operands): Match early clobber
9491 operand with itself. Check conflicts with earlyclobber only if
9492 the operand is not reloaded. Prefer to reload conflicting operand
9493 if earlyclobber and matching operands are the same.
9495 2013-02-12 Richard Biener <rguenther@suse.de>
9498 * lto-streamer-out.c (write_symbol): Do not output symbols
9499 for hard register variables.
9501 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9504 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9505 (umulsidi3_insn, mulsidi3_insn): New insns.
9507 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9509 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9510 (struct tune_params): Add vec_costs field.
9511 * config/arm/arm.c (arm_builtin_vectorization_cost)
9512 (arm_add_stmt_cost): New functions.
9513 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9514 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9515 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9516 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9517 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9518 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9519 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9521 2013-02-12 Richard Biener <rguenther@suse.de>
9524 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9525 decls again if possible.
9527 2013-02-12 Richard Biener <rguenther@suse.de>
9530 * tree-ssa.c (verify_ssa_name): Fix check, move
9531 SSA_NAME_IN_FREE_LIST check up.
9533 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9534 Steven Bosscher <steven@gcc.gnu.org>
9536 PR rtl-optimization/56151
9537 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9538 equal to op0 or op1, and last_insn pattern is CODE operation
9539 with MEM dest and one of the operands matches that MEM.
9541 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9543 * doc/extend.texi: Document Function Multiversioning and "default"
9544 parameter string to target attribute.
9545 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9546 target attribute parameter is "default".
9547 (ix86_compare_version_priority): Remove checks for target attribute.
9548 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9549 Remove check for target attribute equal to NULL. Add assert.
9550 (ix86_generate_version_dispatcher_body): Change error to sorry.
9552 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9553 Jack Howarth <howarth@bromo.med.uc.edu>
9554 Patrick Marlier <patrick.marlier@gmail.com>
9557 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9558 define ENDFILE_SPEC as TM_DESTRUCTOR.
9559 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9561 2013-02-11 Alexander Potapenko <glider@google.com>
9562 Jack Howarth <howarth@bromo.med.uc.edu>
9563 Jakub Jelinek <jakub@redhat.com>
9566 * config/darwin.c (cdtor_record): Rename ctor_record.
9567 (sort_cdtor_records): Rename sort_ctor_records.
9568 (finalize_dtors): New routine to sort destructors by
9569 priority before use in assemble_integer.
9570 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9572 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9574 PR rtl-optimization/56275
9575 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9576 offset is non-negative and less than cmode size before
9577 calling simplify_subreg.
9579 2013-02-11 Richard Biener <rguenther@suse.de>
9581 PR tree-optimization/56264
9582 * cfgloop.h (fix_loop_structure): Adjust prototype.
9583 * loop-init.c (fix_loop_structure): Return the number of
9584 newly discovered loops.
9585 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9586 are discovered, do a full loop-closed SSA rewrite.
9588 2013-02-11 Richard Biener <rguenther@suse.de>
9590 PR tree-optimization/56273
9591 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9593 (check_array_ref): Fix missing newline in dumps.
9594 (search_for_addr_array): Likewise.
9596 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9598 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9600 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9603 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9605 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9607 PR rtl-optimization/56246
9608 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9610 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9611 constraints are satisfied.
9613 2013-02-08 Jeff Law <law@redhat.com>
9616 * emit-rtl.c (reg_is_parm_p): New function.
9617 * regs.h (reg_is_parm_p): New prototype.
9618 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9619 callee-clobbered registers.
9621 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9624 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9625 If there is no implicit builtin declaration, just return NULL.
9627 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9629 * config/i386/sse.md (FMAMODEM): New mode iterator.
9630 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9631 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9633 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9635 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9636 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9637 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9639 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9641 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9642 (microblaze*-*-elf): Likewise.
9643 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9645 * config/microblaze/microblaze-c.c: Add builtin defines for
9646 _LITTLE_ENDIAN and _BIG_ENDIAN.
9647 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9648 add to TARGET_DEFAULT flags.
9649 Expand ASM_SPEC and LINK_SPEC.
9650 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9651 * config/microblaze/microblaze.md: Update extendsidi2 and
9652 movdi_internal instructions to use low-order / high-order reg
9654 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9655 options and inversemask / mask of LITTLE_ENDIAN.
9656 * config/microblaze/t-microblaze: Expand multilib options to
9657 include mlittle-endian (le) and update exceptions patterns.
9659 2013-02-08 Jakub Jelinek <jakub@redhat.com>
9661 PR rtl-optimization/56195
9662 * lra-constraints.c (get_reload_reg): Don't reuse regs
9663 if they have smaller mode than requested, if they have
9664 wider mode than requested, try to return a SUBREG.
9666 PR tree-optimization/56250
9667 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9668 if type is unsigned and code isn't MULT_EXPR.
9670 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9672 PR tree-optimization/56064
9673 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9674 bits according to mode.
9675 * fixed-value.h (fixed_from_double_int)
9676 (const_fixed_from_double_int): Adjust comments.
9678 2013-02-08 Richard Biener <rguenther@suse.de>
9681 * lto-streamer.h (struct data_in): Remove current_file, current_line
9682 and current_col members.
9683 * lto-streamer-out.c (lto_output_location): Stream changed bits
9684 en-block for efficiency.
9685 * lto-streamer-in.c (clear_line_info): Remove.
9686 (lto_input_location): Cache current file, line and column
9687 globally via local statics. Read changed bits en-block.
9688 (input_function): Do not call clear_line_info.
9689 (lto_read_body): Likewise.
9690 (lto_input_toplevel_asms): Likewise.
9692 2013-02-08 Michael Matz <matz@suse.de>
9694 PR tree-optimization/52448
9695 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9696 (nt_call_phase): New static.
9697 (add_or_mark_expr): Only mark accesses with newer phase than any
9699 (nonfreeing_call_p): New.
9700 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9701 (nt_fini_block): Keep blocks marked as visited.
9702 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9704 2013-02-08 Richard Biener <rguenther@suse.de>
9706 * ira.c (ira): Free broken dominator information.
9708 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9710 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9712 2013-02-08 Marek Polacek <polacek@redhat.com>
9714 * cfgloop.c (verify_loop_structure): Add more checking of headers.
9716 2013-02-08 Richard Biener <rguenther@suse.de>
9719 * cfgloop.h (flow_loops_find): Adjust.
9720 (bb_loop_header_p): Declare.
9721 * cfgloop.c (bb_loop_header_p): New function split out from ...
9722 (flow_loops_find): ... here. Adjust function signature,
9723 support incremental loop structure update.
9724 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9725 * cfgloopmanip.c (fix_loop_structure): Move ...
9726 * loop-init.c (fix_loop_structure): ... here.
9727 (apply_loop_flags): Split out from ...
9728 (loop_optimizer_init): ... here.
9729 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9730 in incremental mode, only remove dead loops here.
9732 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9735 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9736 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9737 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9738 (*round<mode>3.libgcc): New insns for fixed-modes.
9739 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9740 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9741 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9742 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9743 implementations. Define to __builtin_avr_absFX,
9744 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9745 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9746 __builtin_avr_countlsFX, respectively.
9747 * config/avr/avr-c.c (target.h): Include it.
9748 (enum avr_builtin_id): New enum.
9749 (avr_resolve_overloaded_builtin): New static function.
9750 (avr_register_target_pragmas): Use it to set
9751 targetm.resolve_overloaded_builtin.
9752 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9753 tree nodes used by DEF_BUILTIN.
9754 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9755 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9756 <AVR_BUILTIN_xxBITS>: Same.
9758 2013-02-08 Richard Biener <rguenther@suse.de>
9760 * cfgloop.c (verify_loop_structure): Properly handle
9761 a loop exiting to another loop header.
9762 * ira-int.h (ira_loops): Remove.
9763 * ira.c (ira_loops): Remove.
9764 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9765 (do_reload): Use loop_optimizer_finalize.
9766 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9767 number_of_loops to access the loop tree.
9768 (more_one_region_p): Likewise.
9769 (finish_loop_tree_nodes): Likewise.
9770 (rebuild_regno_allocno_maps): Likewise.
9771 (mark_loops_for_removal): Likewise.
9772 (mark_all_loops_for_removal): Likewise.
9773 (remove_unnecessary_regions): Likewise.
9774 (ira_build): Likewise.
9775 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9777 2013-02-08 Richard Biener <rguenther@suse.de>
9779 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9780 * ipa-pure-const.c (analyze_function): Avoid calling
9781 mark_irreducible_loops twice.
9782 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
9784 2013-02-07 David S. Miller <davem@davemloft.net>
9786 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9788 * var-tracking.c (vt_add_function_parameter): Test the presence of
9789 HAVE_window_save properly and do not remap argument registers when
9790 we have a leaf function.
9792 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
9795 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9797 * config/i386/i386.c (ix86_print_operand): Ditto.
9799 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9801 * lra-constraints.c (process_alt_operands): Fix recently added comment.
9803 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9805 PR rtl-optimization/56225
9806 * lra-constraints.c (process_alt_operands): Check that reload hard
9807 reg can hold value for strict_low_part.
9809 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9812 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9813 dwarf2out_end_function.
9814 (in_first_function_p, maybe_at_text_label_p,
9815 first_loclabel_num_not_at_text_label): New variables.
9816 (dwarf2out_var_location): In the first function find out
9817 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
9818 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9821 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9823 PR rtl-optimization/56178
9824 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9825 SUBREG of a register. Tidy up related block of code.
9826 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9827 note if the source is a register or a SUBREG of a register.
9829 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9832 * config/rs6000/rs6000.md (ptrm): New mode attr.
9833 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9834 call_value_indirect_aix<pttrsize>,
9835 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9838 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9840 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9841 if -bnortl. Convert to strcmp and strncmp.
9843 2013-02-07 Alan Modra <amodra@gmail.com>
9846 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9847 addresses won't wrap when offsetting.
9848 (rs6000_secondary_reload): Provide secondary reloads needed for
9849 wrapping LO_SUM addresses.
9851 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9853 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9854 MACH, just __MACH__.
9856 2013-02-06 Richard Biener <rguenther@suse.de>
9858 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9859 instead of calling fix_loop_structure.
9861 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9864 * omp-low.c (use_pointer_for_field): Return false if
9865 lower_send_shared_vars doesn't generate any copy-out code.
9867 2013-02-06 Tom de Vries <tom@codesourcery.com>
9869 PR rtl-optimization/56131
9870 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9871 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9872 of the label is NULL. Add comment.
9874 2013-02-05 Jakub Jelinek <jakub@redhat.com>
9876 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9879 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9880 (STATIC_LIBTSAN_LIBS): Likewise.
9881 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9882 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9883 is defined, don't add anything else beyond that.
9884 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9885 (LINK_COMMAND_SPEC): Use them.
9887 PR tree-optimization/56205
9888 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9889 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9890 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9892 2013-02-05 Richard Biener <rguenther@suse.de>
9894 PR tree-optimization/53342
9895 PR tree-optimization/53185
9896 * tree-vectorizer.h (vect_check_strided_load): Remove.
9897 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9898 not disallow peeling for vectorized strided loads.
9899 (vect_check_strided_load): Make static and simplify.
9900 (vect_analyze_data_refs): Adjust.
9901 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9902 correctly when vectorizing strided loads.
9904 2013-02-05 Richard Biener <rguenther@suse.de>
9906 * doc/install.texi: Refer to ISL, not PPL.
9908 2013-02-05 Jan Hubicka <jh@suse.cz>
9910 PR tree-optimization/55789
9911 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9913 2013-02-05 Jan Hubicka <jh@suse.cz>
9915 PR tree-optimization/55789
9916 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9917 the dead call anyway.
9919 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9922 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9924 2013-02-04 Alexander Potapenko <glider@google.com>
9925 Jack Howarth <howarth@bromo.med.uc.edu>
9926 Jakub Jelinek <jakub@redhat.com>
9929 * config/darwin.c (sort_ctor_records): Stabilized qsort
9930 on constructor priority by using original position.
9931 (finalize_ctors): New routine to sort constructors by
9932 priority before use in assemble_integer.
9933 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9935 2013-02-04 Jakub Jelinek <jakub@redhat.com>
9938 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9939 about visibility on artificial decls.
9940 * config/sol2.c (solaris_assemble_visibility): Likewise.
9942 2013-02-04 Kai Tietz <ktietz@redhat.com>
9945 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9946 argument and improve checking of return-argument types for 16-byte
9948 (ix86_function_value_1): Add additional valtype argument on call
9949 of function_value_64.
9950 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9951 handling infunction_value_64 function.
9953 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9955 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
9957 2013-02-04 Richard Biener <rguenther@suse.de>
9959 PR tree-optimization/56188
9960 * tree-ssa-structalias.c (label_visit): Consider case with
9961 initially non-empty points-to set.
9962 (perform_var_substitution): Dump node mapping and clean up.
9964 2013-02-04 Richard Guenther <rguenther@suse.de>
9967 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9968 node prevail as last resort.
9969 (lto_symtab_merge_decls): Remove guard on LTRANS here.
9970 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
9972 2013-02-04 Richard Biener <rguenther@suse.de>
9974 PR tree-optimization/56113
9975 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9977 (equiv_class_lookup_or_add): ... this.
9978 (label_visit): Adjust and fix error in previous patch.
9979 (perform_var_substitution): Adjust.
9981 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9983 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9984 * config/sh/sh4-300.md: Likewise.
9985 * config/sh/sh4a.md: Likewise.
9986 * config/sh/constraints.md: Likewise.
9987 * config/sh/sh.md: Likewise.
9988 * config/sh/netbsd-elf.h: Likewise.
9989 * config/sh/predicates.md: Likewise.
9990 * config/sh/sh-protos.h: Likewise.
9991 * config/sh/ushmedia.h: Likewise.
9992 * config/sh/linux.h: Likewise.
9993 * config/sh/sh.c: Likewise.
9994 * config/sh/superh.h: Likewise.
9995 * config/sh/elf.h: Likewise.
9996 * config/sh/sh4.md: Likewise.
9997 * config/sh/sh.h: Likewise.
9999 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10001 * config/pa/constraints.md: Adjust unused letters. Change "T"
10002 constraint to match_test floating_point_store_memory_operand().
10003 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10004 (base14_operand): New.
10005 (floating_point_store_memory_operand): New.
10006 (integer_store_memory_operand): Revise to use base14_operand and
10007 reg_plus_base_memory_operand.
10008 (move_dest_operand): Allow symbolic_memory_operands.
10009 (symbolic_memory_operand): Check for LO_SOM.
10010 (symbolic_operand): Change default case to break.
10011 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10012 CONST_DOUBLE values to be reloaded by putting them into memory when
10013 the destination is a floating point register.
10014 (movdf): Remove code to handle CONST_DOUBLE.
10016 (reload_indf_r1): New.
10017 (reload_insf_r1): New.
10018 Consistently use "Q" and "T" constraints with integer and floating
10019 point move instructions, respectively.
10020 (movdi): Remove FAIL.
10021 Change predicate for source operand unamed DImode move from
10022 general_operand to move_src_operand.
10023 (umulsidi3): Change predicate for destination operand to
10025 Likewise for similar unamed patterns.
10026 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10027 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10028 (hppa_legitimize_address): Simplify mask calculation.
10029 (pa_emit_move_sequence): Revised handling of secondary reloads from
10030 REG+D addresses for floating point loads and stores. Directly handle
10031 loading CONST0_RTX (mode) to a floating point register.
10032 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10033 to floating point registers. Don't restrict secondary reloads to
10034 floating point registers to integer modes. Revise some comments and
10036 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10037 (pa_legitimate_address_p): New.
10038 (pa_legitimize_reload_address): New.
10039 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10040 (STRICT_REG_OK_FOR_BASE_P): New.
10041 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10042 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10044 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
10045 Andrew Dixie <andrewd@gentrack.com>
10047 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10050 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10052 * expmed.c (extract_bit_field_1): Pass the full width of the
10053 structure to get_best_reg_extraction_insn.
10055 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10058 * configure.ac (use_cxa_atexit): Add AIX.
10059 * configure: Regenerate.
10061 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10063 2013-02-01 Jakub Jelinek <jakub@redhat.com>
10066 * final.c (need_profile_function): New variable.
10067 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10068 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10069 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10070 notes, targetm.asm_out.function_prologue doesn't emit anything,
10071 HAVE_prologue and profiler should be emitted before prologue,
10072 set need_profile_function instead of emitting it.
10073 (final_scan_insn): If need_profile_function, emit
10074 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10075 NOTE_INSN_FUNCTION_BEG note.
10077 2013-02-01 Richard Henderson <rth@redhat.com>
10079 * config/rs6000/rs6000.md (smulditi3): New.
10082 * config/alpha/alpha.md (umulditi3): New.
10084 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10086 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10087 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10089 2013-02-01 Richard Biener <rguenther@suse.de>
10091 PR tree-optimization/56113
10092 * tree-ssa-structalias.c (label_visit): Reduce work for
10093 single-predecessor nodes.
10095 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10097 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10098 range isn't testing for zero.
10100 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10102 PR middle-end/56113
10103 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10105 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10106 Nick Clifton <nickc@redhat.com>
10108 * config/v850/constraints.md (Q): Define as a memory constraint.
10109 * config/v850/predicates.md (label_ref_operand): New predicate.
10110 (e3v5_shift_operand): New predicate.
10111 (ior_operator): New predicate.
10112 * config/v850/t-v850: Add e3v5 multilib.
10113 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10114 (v850_gen_movdi): Prototype.
10115 * config/v850/v850.c: Add support for e3v5 architecture.
10116 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10118 (construct_save_jarl): Add e3v5 long JARL support.
10119 (v850_adjust_insn_length): New function. Adjust length of call
10120 insns when using e3v5 instructions.
10121 (v850_gen_movdi): New function: Generate instructions to move a
10123 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10124 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10125 (TARGET_USE_FPU): Enable for e3v5.
10126 (CONST_OK_FOR_W): New macro.
10127 (ADJUST_INSN_LENGTH): Define.
10128 * config/v850/v850.md (UNSPEC_LOOP): Define.
10129 (attr cpu): Add v850e3v5.
10130 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10131 (movdi): New pattern.
10132 (movdi_internal): New pattern.
10133 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10134 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10135 (cstoresf4): Likewise.
10136 (cstoredf4): Likewise.
10137 (insv): New pattern.
10138 (rotlso3_a): New pattern.
10139 (rotlsi3_b): New pattern
10140 (rotlsi3_v850e3v5): New pattern.
10141 (doloop_begin): New pattern.
10142 (fix_loop_counter): New pattern.
10143 (doloop_end): New pattern.
10144 (branch_normal): Add e3v5 long branch support.
10145 (branch_invert): Likewise.
10146 (branch_z_normal): Likewise.
10147 (branch_z_invert): Likewise.
10148 (branch_nz_normal): Likewise.
10149 (branch_nz_invert): Likewise.
10150 (call_internal_short): Add e3v5 register-indirect JARL support.
10151 (call_internal_long): Likewise.
10152 (call_value_internal_short): Likewise.
10153 (call_value_internal_long): Likewise.
10154 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10155 (mloop): New option.
10156 * config.gcc: Add support for configuring v840e3v5 target.
10157 * doc/invoke.texi: Document new v850 specific command line options.
10159 2013-01-31 Paul Koning <ni1d@arrl.net>
10163 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10164 children if parent is a class.
10165 (prune_unused_types_prune): Don't add DW_AT_declaration.
10167 2013-01-31 Richard Biener <rguenther@suse.de>
10169 PR tree-optimization/56157
10170 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10171 match up operand with SLP child.
10173 2013-01-31 Jason Merrill <jason@redhat.com>
10176 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10177 parameters the first time.
10178 (gen_scheduled_generic_parms_dies): Check completeness here.
10180 2013-01-31 Richard Biener <rguenther@suse.de>
10182 PR middle-end/53073
10183 * common.opt (faggressive-loop-optimizations): New flag,
10184 enabled by default.
10185 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10186 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10187 infer_loop_bounds_from_undefined by it.
10189 2013-01-31 Richard Biener <rguenther@suse.de>
10191 PR tree-optimization/56150
10192 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10193 visit virtual operands.
10194 (find_uses_to_rename_bb): Likewise.
10196 2013-01-31 Richard Biener <rguenther@suse.de>
10198 PR tree-optimization/56150
10199 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10200 mixed store non-store stmts.
10202 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10205 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10206 LIBASAN_EARLY_SPEC is defined.
10207 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10208 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10210 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10213 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10214 invalid args instead of ICEing on it.
10215 (ix86_valid_target_attribute_tree): Return error_mark_node if
10216 ix86_valid_target_attribute_inner_p failed.
10217 (ix86_valid_target_attribute_p): Return false only if
10218 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10219 target("default") attribute.
10220 (sorted_attr_string): Change argument from const char * to tree,
10221 merge in all target attribute arguments rather than just one.
10222 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10223 instead of free. Avoid using strcat.
10224 (ix86_mangle_function_version_assembler_name): Mangle
10225 target("default") as if no target attribute is present. Adjust
10226 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10227 instead of xmalloc and XDELETEVEC instead of free.
10228 (ix86_function_versions): Don't return true if one of the decls
10229 doesn't have target attribute. If they don't and one of the decls
10230 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10231 sorted_attr_string caller. Use XDELETEVEC instead of free.
10232 (ix86_supports_function_versions): Remove.
10233 (make_name): Fix up formatting.
10234 (make_dispatcher_decl): Remove resolver_name and its initialization.
10235 Avoid leaking memory.
10236 (is_function_default_version): Return true if there is
10237 target("default") attribute rather than no target attribute at all.
10238 (make_resolver_func): Avoid leaking memory.
10239 (ix86_generate_version_dispatcher_body): Likewise.
10240 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10241 * target.def (supports_function_versions): Remove.
10242 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10243 * doc/tm.texi: Regenerated.
10245 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10247 PR rtl-optimization/56144
10248 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10249 for values with side effects.
10251 2013-01-30 Richard Biener <rguenther@suse.de>
10253 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10254 (sparseset_pop): Likewise.
10255 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10256 to be able to use quick_push in the worker loop.
10258 2013-01-30 Marek Polacek <polacek@redhat.com>
10260 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10262 2013-01-30 Richard Biener <rguenther@suse.de>
10265 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10267 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10269 PR tree-optimization/56064
10270 * fixed-value.c (fixed_from_double_int): New function.
10271 * fixed-value.h (fixed_from_double_int): New prototype.
10272 (const_fixed_from_double_int): New static inline function.
10273 * fold-const.c (native_interpret_fixed): New static function.
10274 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10275 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10276 (native_encode_fixed): New static function.
10277 (native_encode_expr) <FIXED_CST>: Use it.
10278 (native_interpret_int): Move double_int worker code to...
10279 * double-int.c (double_int::from_buffer): ...this new static method.
10280 * double-int.h (double_int::from_buffer): Prototype it.
10282 2013-01-30 Richard Biener <rguenther@suse.de>
10284 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10285 New pointer-map and obstack.
10286 (init_alias_vars): Allocate pointer-map and obstack.
10287 (delete_points_to_sets): Free them.
10288 (find_what_var_points_to): Cache result.
10289 (find_what_p_points_to): Adjust for changed interface of
10290 find_what_var_points_to.
10291 (compute_points_to_sets): Likewise.
10292 (ipa_pta_execute): Likewise.
10294 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10296 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10297 * configure: Regenerate.
10298 * config.in: Regenerate.
10299 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10300 #nobits/#progbits if supported.
10302 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10305 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10306 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10307 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10309 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10311 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10312 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10314 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10316 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10317 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10319 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10321 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10323 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10324 * config/arm/cortex-a7.md: New bypasses using
10325 arm_mac_accumulator_is_result.
10327 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10329 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10330 (cortex_a7_neon_mla): Likewise.
10331 (cortex_a7_fpfmad): New reservation.
10332 (cortex_a7_fpmacs): Use ffmas and update required units.
10333 (cortex_a7_fpmuld): Update required units and latency.
10334 (cortex_a7_fpmacd): Likewise.
10335 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10336 (cortex_a7_neon). Likewise.
10337 (bypass) Update participating units.
10339 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10341 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10342 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10344 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10345 (vfp_fmul): Use ffmad.
10346 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10347 (cortex_r4_fmacd): Use ffmad.
10348 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10349 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10350 (cortex_a9_fmacd): Use ffmad.
10351 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10352 (cortex_a8_vfp_macd): Use ffmad.
10353 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10354 (cortex_a5_fpmacd): Use ffmad.
10355 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10356 (cortex_a15_vfp_macd): Use ffmad.
10357 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10359 2013-01-29 Jason Merrill <jason@redhat.com>
10362 * varasm.c (default_assemble_visibility): Don't warn about
10363 visibility on artificial decls.
10365 2013-01-29 Richard Biener <rguenther@suse.de>
10367 PR tree-optimization/56113
10368 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10370 (label_visit): Free duplicate bitmaps and record the leader instead.
10371 (perform_var_substitution): Adjust.
10373 2013-01-29 Richard Biener <rguenther@suse.de>
10375 PR tree-optimization/55270
10376 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10377 the CFG, schedule loops for fixup.
10379 2013-01-29 Nick Clifton <nickc@redhat.com>
10381 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10384 2013-01-28 Leif Ekblad <leif@rdos.net>
10386 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10387 * config/i386/i386.h (TARGET_RDOS): New macro.
10388 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10389 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10390 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10391 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10392 DEFAULT_LARGE_SECTION_THRESHOLD.
10393 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10394 * config/i386/rdos.h: New file.
10395 * config/i386/rdos64.h: New file.
10397 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10400 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10403 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10405 PR rtl-optimization/56117
10406 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10407 call cselib_lookup_from_insn on the MEM before calling
10408 add_insn_mem_dependence.
10410 2013-01-28 Richard Biener <rguenther@suse.de>
10412 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10413 to a stmt that didn't have one.
10414 (copy_phis_for_bb): Likewise for PHI arguments.
10415 (copy_debug_stmt): Likewise for debug stmts.
10417 2013-01-28 Richard Biener <rguenther@suse.de>
10419 PR tree-optimization/56034
10420 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10421 (partition_builtin_p): Adjust.
10422 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10423 it is the last partition.
10424 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10425 up the vertex for the definition.
10426 (classify_partition): Classify whether a partition is a
10427 PKIND_REDUCTION, thus has uses outside of the loop.
10428 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10429 Merge all PKIND_REDUCTION partitions into the last partition.
10430 (tree_loop_distribution): Seed partitions from reductions as well.
10432 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10434 PR tree-optimization/56125
10435 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10436 pow(x,c) into sqrt(x) * powi(x, n/2) or
10437 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10438 optimizing for size.
10439 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10440 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10443 PR tree-optimization/56094
10444 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10445 to UNKNOWN_LOCATION while gimplifying expr.
10447 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10450 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10451 operand 0 in movabs insn template for -masm=intel asm alternative.
10452 (*movabs<mode>_2): Ditto for operand 1.
10454 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10457 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10460 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10462 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10465 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10467 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10468 Undef to avoid warning.
10470 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10472 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10473 * configure: Regenerate.
10475 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10477 PR tree-optimization/56098
10478 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10479 for stmts with volatile ops.
10480 (cond_store_replacement): Don't optimize if assign has volatile ops.
10481 (cond_if_else_store_replacement_1): Don't optimize if either
10482 then_assign or else_assign have volatile ops.
10483 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10486 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10488 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10490 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10492 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10493 missing ':' in asm example.
10495 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10497 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10498 entries into lane and laneq entries.
10499 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10500 Remove AdvSIMD scalar modes.
10501 (aarch64_sq<r>dmulh_laneq<mode>): New.
10502 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10504 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10505 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10506 * config/aarch64/iterators.md (VCOND): New.
10509 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10512 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10513 Add NULL LIBNAME argument to existing definitions.
10514 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10515 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10516 * config/avr/avr.c (DEF_BUILTIN): Same.
10517 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10518 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10519 implementation is available (DECL_ASSEMBLER_NAME is set).
10520 (avr_fold_absfx): New static function.
10521 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10522 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10523 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10524 AVR_BUILTIN_ABSLLK.
10525 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10526 (abshk, absk, abslk, absllk): Provide as static inline functions.
10528 2013-01-25 Marek Polacek <polacek@redhat.com>
10530 PR tree-optimization/56035
10531 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10533 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10535 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10536 (*movtf_internal_rex64): Add (!o,C) alternative
10537 (*movxf_internal_rex64): Ditto.
10538 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10540 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10542 * doc/invoke.texi: fix typo.
10543 * doc/objc.texi: fix typo.
10545 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10547 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10548 for the first two alternatives.
10550 2013-01-24 Diego Novillo <dnovillo@google.com>
10552 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10553 (ggc-zone.o): Remove.
10554 * configure.ac: Remove option --with-gc.
10555 * configure: Re-generate.
10556 * doc/install.texi: Remove documentation for --with-gc.
10557 * gengtype.c (write_enum_defn): Remove. Update all users.
10558 (write_Types_process_field): Remove generation of gt_e_* argument.
10559 (output_type_enum): Remove. Update all users.
10560 (write_enum_defn): Remove. Update all users.
10561 (enum alloc_zone): Remove. Update all users.
10562 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10563 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10564 Update all callers.
10565 (struct ptr_data): Remove field TYPE. Update all users.
10566 (gt_pch_note_object): Remove argument TYPE. Update all users.
10567 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10569 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10570 (struct alloc_zone): Remove.
10571 (ggc_internal_alloc_zone_stat): Remove.
10572 (ggc_internal_cleared_alloc_zone_stat): Remove.
10573 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10574 (ggc_pch_count_object): Remove last argument. Update all users.
10575 (ggc_pch_alloc_object): Remove last argument. Update all users.
10576 (struct alloc_zone): Remove.
10577 * ggc-zone.c: Remove.
10578 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10579 (struct alloc_zone): Remove.
10580 (ggc_alloc_typed_stat): Remove.
10581 (ggc_alloc_typed): Remove.
10582 (ggc_splay_alloc): Remove first argument.
10583 (rtl_zone): Remove. Update all users.
10584 (tree_zone): Remove. Update all users.
10585 (tree_id_zone): Remove. Update all users.
10586 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10587 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10588 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10589 * tree-ssanames.c: Remove references to zone allocator in comments.
10591 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10593 * config/avr/avr.c (avr_out_fract): Make register numbers that
10594 might be outside of source operand signed.
10596 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10598 * config/i386/constraints.md (Yf): New constraint.
10599 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10600 of f constraint to conditionaly disable x87 register preferences.
10601 (*movdf_internal): Ditto.
10602 (*movsf_internal): Ditto.
10604 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10606 PR inline-asm/55934
10607 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10608 that have operands with impossible constraints.
10609 Add a FIXME for a speed-up opportunity.
10610 * lra-constraints.c (process_alt_operands): Verify that a class
10611 selected from constraints on asms is valid for the operand mode.
10612 (curr_insn_transform): Remove incorrect comment.
10614 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10616 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10617 TOC operand is a valid symbol ref in the constant pool.
10619 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10621 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10623 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10626 * config/avr/stdfix.h: New file.
10627 * t-avr (stdfix-gcc.h): New rule to build it.
10628 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10630 2013-01-23 Kostya Serebryany <kcc@google.com>
10632 * config/darwin.h: remove dependency on
10633 CoreFoundation (asan on Mac OS).
10635 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10638 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10639 instead of cmpdi_operand for first comparison operand.
10640 Don't assert that comparison operands aren't both constants.
10642 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10644 * doc/install.texi (Downloading the Source): Update references to
10645 downloading separate components.
10647 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10649 * doc/extend.texi (__int128): Improve grammar.
10651 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
10654 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10655 alternative to (o,r).
10656 (*movdi_internal_rex64): Remove (!o,n) alternative.
10657 (DImode immediate->memory splitter): Remove.
10658 (DImode immediate->memory peephole2): Remove.
10659 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10660 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10661 alternative to (!o,*r).
10662 (*movtf_internal_sse): New pattern.
10663 (*movxf_internal_rex64): New pattern.
10664 (*movxf_internal): Disable for TARGET_64BIT.
10665 (*movdf_internal_rex64): Remove (!o,F) alternative.
10667 2013-01-22 Jakub Jelinek <jakub@redhat.com>
10669 PR middle-end/56074
10670 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10671 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10672 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10673 stmt locations where LOCATION_LOCUS of the stmt location is
10674 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10677 * config/i386/i386.md (UNSPEC_STOS): New.
10678 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10679 *strsetqi_1): Add UNSPEC_STOS.
10681 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10684 * doc/invoke.texi: Remove left over -Wsynth example.
10686 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10688 PR tree-optimization/56051
10689 * fold-const.c (fold_binary_loc): Don't fold
10690 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10691 a narrowing conversion, or widening conversion from signed
10694 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10696 PR rtl-optimization/56023
10697 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10698 dependent on debug instruction.
10700 2013-01-21 Martin Jambor <mjambor@suse.cz>
10702 PR middle-end/56022
10703 * function.c (allocate_struct_function): Call
10704 invoke_set_current_function_hook earlier.
10706 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10708 * reload1.c (init_reload): Only initialize reload_obstack
10709 during the first call.
10711 2013-01-21 Marek Polacek <polacek@redhat.com>
10713 * cfgloop.c (verify_loop_structure): Fix up grammar.
10715 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10717 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10718 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10720 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10723 * config/arm/marvell-pj4.md: Update copyright year.
10724 Fix up use of alu to alu_reg and simple_alu_imm.
10726 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10728 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10730 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10733 * lra-constraints.c (curr_insn_transform): Don't reuse original
10734 insn for secondary memory move when memory mode should be different.
10736 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10738 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10739 atomic_storedi_1): New patterns.
10741 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10743 btver2 pipeline descriptions.
10744 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10746 * config/i386/i386.md (btver2_decode): New type attributes.
10747 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
10749 * config/i386/btver2.md: New file describing btver2 pipelines.
10751 2013-01-19 Andrew Pinski <apinski@cavium.com>
10753 PR tree-optimization/52631
10754 * tree-ssa-sccvn (visit_use): Before looking up the original
10755 statement, try looking up the simplified expression.
10757 2013-01-19 Anthony Green <green@moxielogic.com>
10759 * config/moxie/moxie.c (moxie_expand_prologue): Set
10760 current_function_static_stack_size.
10762 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10764 PR tree-optimization/56029
10765 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10766 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10768 2013-01-18 Sharad Singhai <singhai@google.com>
10770 PR tree-optimization/55995
10771 * dumpfile.c (dump_loc): Print location only if available.
10772 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10774 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10777 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10778 secondary memory move.
10779 (inherit_reload_reg): Use rclass instead of cl for
10780 check_secondary_memory_needed_p.
10782 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10784 PR middle-end/56015
10785 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
10786 the case where writing real complex part of target modifies op1.
10788 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10790 * config/aarch64/aarch64-simd.md
10791 (aarch64_vcond_internal<mode>): Handle unordered cases.
10792 * config/aarch64/iterators.md (v_cmp_result): New.
10794 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10795 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10797 * config/arm/marvell-pj4.md: New file.
10798 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10799 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10800 (generic_vfp): Likewise.
10801 * config/arm/arm-cores.def: Add marvell-pj4.
10802 * config/arm/arm-tune.md: Regenerate.
10803 * config/arm/arm-tables.opt: Regenerate.
10804 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10805 * doc/invoke.texi: Document marvell-pj4.
10807 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10809 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10811 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10816 * var-tracking.c (negative_power_of_two_p): New.
10817 (global_get_addr_cache, local_get_addr_cache): New.
10818 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10819 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10821 (vt_stack_offset_p): Remove.
10822 (vt_canon_true_dep): Always canonicalize loc's address.
10823 (clobber_overlapping_mems): Make sure we have a MEM.
10824 (local_get_addr_clear_given_value): New.
10825 (val_reset): Clear local cached entries.
10826 (compute_bb_dataflow): Create and release the local cache.
10827 Disable duplicate MEMs clobbering.
10828 (emit_notes_in_bb): Clobber MEMs likewise.
10829 (vt_emit_notes): Create and release the local cache.
10830 (vt_initialize, vt_finalize): Create and release the global
10831 cache, respectively.
10832 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
10834 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10836 PR libmudflap/53359
10837 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10838 not found in the symtab.
10840 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10843 PR rtl-optimization/55547
10844 PR rtl-optimization/53827
10847 * alias.c (offset_overlap_p): New, factored out of...
10848 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10849 the conservative special case for symbolic constants. Don't
10850 adjust zero sizes on alignment.
10852 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10854 PR rtl-optimization/52573
10855 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10856 REG_UNUSED for the same register.
10858 2013-01-17 Richard Biener <rguenther@suse.de>
10859 Marek Polacek <polacek@redhat.com>
10861 PR rtl-optimization/55833
10862 * loop-unswitch.c (unswitch_loops): Move loop verification...
10863 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10864 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10865 Set it to true when we're removing a loop from hierarchy tree in
10866 an irreducible region.
10867 (fix_bb_placements): Adjust caller.
10868 (fix_loop_placements): Likewise.
10870 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
10872 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10873 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10874 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10875 Remove ID. Adjust comments.
10876 * config/avr/avr-c.c (avr_builtin_name): Remove.
10877 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10878 * config/avr/avr.c (avr_tolower): New static function.
10879 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10880 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10881 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10884 2013-01-17 Jan Hubicka <jh@suse.cz>
10886 PR tree-optimization/55273
10887 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10889 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
10892 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10893 store through atomic_store<mode>_1.
10894 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10896 2013-01-17 Martin Jambor <mjambor@suse.cz>
10898 PR tree-optimizations/55264
10899 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10900 for virtual methods.
10901 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10902 virtual methods before inlining is over.
10903 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10905 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10908 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10910 PR rtl-optimization/56005
10911 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10912 pending reads for prefetch.
10914 2013-01-16 Ian Bolton <ian.bolton@arm.com>
10916 * config/aarch64/aarch64.md
10917 (*cstoresi_neg_uxtw): New pattern.
10918 (*cmovsi_insn_uxtw): New pattern.
10919 (*<optab>si3_uxtw): New pattern.
10920 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10921 (*<optab>si3_insn_uxtw): New pattern.
10922 (*bswapsi2_uxtw): New pattern.
10924 2013-01-16 Richard Biener <rguenther@suse.de>
10926 * tree-inline.c (tree_function_versioning): Remove set but
10927 never used variable.
10929 2013-01-16 Richard Biener <rguenther@suse.de>
10931 PR tree-optimization/55964
10932 * tree-flow.h (rename_variables_in_loop): Remove.
10933 (rename_variables_in_bb): Likewise.
10934 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10935 (copy_loop_before): Adjust and delete update-ssa status.
10936 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
10937 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
10938 (rename_variables_in_loop): Remove.
10939 (slpeel_update_phis_for_duplicate_loop): Likewise.
10940 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10941 use available cfg machinery instead of duplicating it.
10942 Update PHI nodes and perform poor-mans SSA update here.
10943 (slpeel_tree_peel_loop_to_edge): Adjust.
10945 2013-01-16 Richard Biener <rguenther@suse.de>
10947 PR tree-optimization/54767
10948 PR tree-optimization/53465
10949 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10950 (vrp_visit_phi_node): For PHI arguments coming via backedges
10951 drop all symbolical range information.
10952 (execute_vrp): Compute backedges.
10954 2013-01-16 Richard Biener <rguenther@suse.de>
10956 * doc/install.texi: Update CLooG and ISL requirements to
10959 2013-01-16 Christian Bruel <christian.bruel@st.com>
10962 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10963 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10964 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10966 2013-01-16 DJ Delorie <dj@redhat.com>
10968 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10969 (UNSPECV_SP_SWITCH_E): New.
10970 (sp_switch_1): Change to an unspec.
10971 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10974 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
10976 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10977 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10978 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10979 (expand_mem_thread_fence): Ditto.
10980 (expand_mem_signal_fence): Ditto.
10981 (expand_atomic_load): Ditto.
10982 (expand_atomic_store): Ditto.
10984 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
10986 PR rtl-optimization/55547
10987 PR rtl-optimization/53827
10990 * alias.c (memrefs_conflict_p): Set sizes to negative after
10993 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10996 * function.c (thread_prologue_and_epilogue_insns): Always
10997 add crtl->drap_reg to set_up_by_prologue.set, even if
10998 stack_realign_drap is false.
11000 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11002 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11003 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11004 *call): Fix indention.
11006 2013-01-15 Tom de Vries <tom@codesourcery.com>
11009 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11012 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11014 PR rtl-optimization/55153
11015 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11017 2013-01-15 Martin Jambor <mjambor@suse.cz>
11019 PR tree-optimization/55920
11020 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11021 accesses as grp_to_be_debug_replaced.
11023 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11025 PR tree-optimization/55920
11026 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11027 there is non-useless type conversion needed from debug rhs to lhs,
11028 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11030 2013-01-15 Joseph Myers <joseph@codesourcery.com>
11031 Mikael Pettersson <mikpe@it.uu.se>
11034 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11036 (ASM_OUTPUT_CASE_LABEL): Remove.
11037 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11038 * final.c (shorten_branches): Update alignment of labels before
11039 jump tables if CASE_VECTOR_SHORTEN_MODE.
11041 2013-01-15 Richard Biener <rguenther@suse.de>
11044 * system.h: Do not include gmp.h for building host tools.
11046 2013-01-15 Richard Biener <rguenther@suse.de>
11048 PR middle-end/55882
11049 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11050 account for bitpos when computing alignment.
11052 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11054 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11055 (ix86_target_macros_internal): Likewise.
11057 * config/i386/i386.c (m_CORE2I7): Removed.
11058 (m_CORE_HASWELL): New macro.
11059 (m_CORE_ALL): Likewise.
11060 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11061 (initial_ix86_arch_features): Likewise.
11062 (processor_target_table): Initializations for Core avx2.
11063 (cpu_names): New names "core-avx2".
11064 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11065 PROCESSOR_CORE_HASWELL.
11066 (ix86_issue_rate): New case.
11067 (ia32_multipass_dfa_lookahead): Likewise.
11068 (ix86_sched_init_global): Likewise.
11070 * config/i386/i386.h (TARGET_HASWELL): New macro.
11071 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11072 (processor_type): New PROCESSOR_HASWELL.
11074 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11076 PR tree-optimization/55955
11077 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11078 *SHIFT_EXPR and *ROTATE_EXPR codes.
11080 PR tree-optimization/48766
11081 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11082 -ftrapv disable -fwrapv.
11084 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11087 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11088 etc. to 1 and not to __flash.
11089 Use LL suffix for __INT24_MAX__ with -mint8.
11090 Use ULL suffix for __UINT24_MAX__ with -mint8.
11092 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11094 * config/avr/avr-arch.h
11095 (struct base_arch_s): Use typedef avr_arch_t instead.
11096 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11097 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11098 * config/avr/avr.c: Same.
11099 * config/avr/avr-devices.c: Same.
11100 * config/avr/driver-avr.c: Same.
11101 * config/avr/gen-avr-mmcu-texi.c: Same.
11102 * config/avr/avr-mcus.def: Adjust comment.
11104 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11106 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11107 * config/aarch64/iterators.md (VALLDI): New.
11109 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
11110 Andi Kleen <ak@linux.intel.com>
11113 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11114 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11117 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11119 * config/avr/avr-stdint.h: Remove trailing blanks.
11120 * config/avr/avr-log.h: Same.
11121 * config/avr/avr-arch.h: Same.
11122 * config/avr/avr-devices.c: Same.
11123 * config/avr/avr-dimode.md: Same.
11124 * config/avr/predicates.md: Same.
11125 * config/avr/avr-c.c: Same. And fix typo.
11127 * config/avr/avr-protos.h: Same. And:
11128 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11129 (init_cumulative_args): Rename to avr_init_cumulative_args.
11130 (expand_prologue): Rename to avr_expand_prologue.
11131 (expand_epilogue): Rename to avr_expand_epilogue.
11132 (adjust_insn_length): Rename to avr_adjust_insn_length.
11133 (notice_update_cc): Rename to avr_notice_update_cc.
11134 (final_prescan_insn): Rename to avr_final_prescan_insn.
11135 * config/avr/avr.c: Same.
11136 * config/avr/avr.h: Same.
11137 * config/avr/avr.md: Remove trailing blanks.
11138 (prologue): Use avr_expand_prologue.
11139 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11141 2013-01-14 Richard Biener <rguenther@suse.de>
11143 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11144 verify_location, collect_subblocks): New functions.
11145 (verify_gimple_in_cfg): Verify that locations only reference
11146 BLOCKs in the functions BLOCK tree.
11148 2013-01-14 Richard Biener <rguenther@suse.de>
11150 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11152 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11154 (insert_out_of_ssa_copy_on_edge): Likewise.
11155 (rewrite_close_phi_out_of_ssa): Likewise.
11156 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11158 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11159 propagated constants.
11160 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11163 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11165 * config/avr/avr-modes.def: Add GPL copyright notice.
11167 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11169 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11170 MEMMODEL_MASK to determine memory model.
11171 (atomic_store<mode>): Ditto from operands[2].
11172 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11174 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11177 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11178 (fold_gimple_assign): Don't call unshare_expr here.
11179 (fold_ctor_reference): Call unshare_expr.
11181 2013-01-13 Terry Guo <terry.guo@arm.com>
11183 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11184 * doc/fragments.texi: Document MULTILIB_REUSE.
11185 * gcc.c (multilib_reuse): New internal spec.
11186 (set_multilib_dir): Also search multilib from multilib_reuse.
11187 * genmultilib (tmpmultilib3): Refactor code.
11188 (tmpmultilib4): Ditto.
11189 (multilib_reuse): New multilib argument.
11191 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11193 * Makefile.in: Update copyright.
11195 2013-01-12 Tom de Vries <tom@codesourcery.com>
11197 PR middle-end/55890
11198 * calls.c (expand_call): Check if arg_nr is valid.
11200 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11202 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11203 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11204 documentation. Add missing '__' in front of
11205 __builtin_ia32_packssdw256.
11207 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11210 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11211 NO_REGS for larl operands.
11212 (s390_reload_larl_operand): Use s390_load_address instead of
11215 2013-01-11 Richard Biener <rguenther@suse.de>
11217 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11218 (verify_node_sharing): ... here.
11219 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11221 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11223 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11224 Substitute TREECHECKING.
11225 * configure: Regenerate.
11226 * Makefile.in (TREECHECKING): New.
11228 2013-01-11 Richard Guenther <rguenther@suse.de>
11230 PR tree-optimization/44061
11231 * tree-vrp.c (extract_range_basic): Compute zero as
11232 value-range for __builtin_constant_p of function parameters.
11234 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11236 Update copyright years.
11238 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11240 PR rtl-optimization/55672
11241 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11242 const to be eliminable.
11244 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11246 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11247 * configure: Regenerate.
11249 2013-01-10 Richard Biener <rguenther@suse.de>
11251 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11253 2013-01-10 Richard Biener <rguenther@suse.de>
11256 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11257 locations for virtual PHI arguments.
11258 (rewrite_update_phi_arguments): Likewise.
11260 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11262 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11265 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11267 PR tree-optimization/55921
11268 * tree-complex.c (expand_complex_asm): New function.
11269 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11271 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11274 * config/s390/s390.c (s390_symref_operand_p)
11275 (s390_loadrelative_operand_p): Merge the two functions.
11276 (s390_check_qrst_address, print_operand_address): Add parameters
11277 to s390_loadrelative_operand_p invokation.
11278 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11279 (s390_reload_larl_operand, s390_secondary_reload): Use
11280 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11281 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11283 2013-01-09 Mike Stump <mikestump@comcast.net>
11285 * dse.c (record_store): Remove unnecessary assert.
11287 2013-01-09 Jan Hubicka <jh@suse.cz>
11289 PR tree-optimization/55569
11290 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11291 * cfgloop.h (scale_loop_profile): Likewise.
11293 2013-01-09 Jan Hubicka <jh@suse.cz>
11296 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11298 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11300 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11302 PR middle-end/55114
11303 * expr.h (maybe_emit_group_store): Declare.
11304 * expr.c (maybe_emit_group_store): New function.
11305 * builtins.c (expand_builtin_int_roundingfn): Call it.
11306 (expand_builtin_int_roundingfn_2): Likewise.
11308 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11310 PR rtl-optimization/55829
11311 * lra-constraints.c (match_reload): Add code for absent output.
11312 (curr_insn_transform): Add code for reloads of matched inputs
11315 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11317 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11318 attribute of movddup insn to DF.
11319 (*vec_interleave_lowv2df): Ditto.
11320 (vec_dupv2df): Ditto.
11322 2013-01-09 Jan Hubicka <jh@suse.cz>
11324 PR tree-optimiation/55875
11325 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11326 EVERY_ITERATION parameter.
11327 (number_of_iterations_exit): Check if exit is executed every iteration.
11328 (idx_infer_loop_bounds): Similarly here.
11329 (n_of_executions_at_most): Simplify
11330 to only test for cases where statement is dominated by the
11331 particular bound; handle correctly the "postdominance" test.
11332 (scev_probably_wraps_p): Use max loop iterations info
11333 as a global bound first.
11335 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11336 Nick Clifton <nickc@redhat.com>
11338 * config/v850/v850.md (cbranchsf4): New pattern.
11339 (cstoresf4): New pattern.
11340 (cbranchdf4): New pattern.
11341 (cstoredf4): New pattern.
11342 (movsicc): Disallow floating point comparisons.
11343 (cmpsf_le_insn): Fix order of operators.
11344 (cmpsf_lt_insn): Likewise.
11345 (cmpsf_eq_insn): Likewise.
11346 (cmpdf_le_insn): Likewise.
11347 (cmpdf_lt_insn): Likewise.
11348 (cmpdf_eq_insn): Likewise.
11349 (cmpsf_ge_insn): Use LE comparison.
11350 (cmpdf_ge_insn): Likewise.
11351 (cmpsf_gt_insn): Use LT comparison.
11352 (cmpdf_gt_insn): Likewise.
11353 (cmpsf_ne_insn): Delete pattern.
11354 (cmpdf_ne_insn): Delete pattern.
11355 * config/v850/v850.c (v850_gen_float_compare): Use
11356 gen_cmpdf_eq_insn for NE comparison.
11357 (v850_float_z_comparison_operator)
11358 (v850_float_nz_comparison_operator): Move from here ...
11359 * config/v850/predicates.md: ... to here. Move GT and GE
11360 comparisons into v850_float_z_comparison_operator.
11361 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11363 (v850_float_nz_comparison_operator): Likewise.
11365 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11367 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11368 with calls to gen_insvsi/gen_insvdi.
11370 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11372 * config/i386/i386.c (initial_ix86_tune_features): Set up
11373 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11375 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11376 Jakub Jelinek <jakub@redhat.com>
11378 PR tree-optimization/48189
11379 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11380 If nitercst is 0, don't predict the exit edge.
11382 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11384 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11385 in asm_fprintf with reg_names.
11386 (aarch64_print_operand_address): Likewise.
11387 (aarch64_return_addr): Likewise.
11388 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11390 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11392 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11393 (INT_U6_BITS): Likewise.
11394 * config/pa/predicates.md (uint6_operand): New predicate.
11395 (shift5_operand, shift6_operand): Likewise.
11396 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11398 (lshrdi3): Use shift6_operand.
11399 (shrpsi4, shrpdi4): New insn patterns.
11400 (extzv): Delete expander.
11401 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11402 predicates in unamed zero extract patterns. Tighten common constraint.
11403 (extv): Delete expander.
11404 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11405 predicates in unamed sign extract patterns. Tighten common constraint.
11406 (insv): Delete expander.
11407 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11408 predicates in unamed insert patterns. Tighten common constraint.
11409 Change uint32_operand predicate to uint6_operand predicate in unamed
11410 DImode pattern to insert constant values of type 1...1xxxx.
11412 2013-01-04 Jan Hubicka <jh@suse.cz>
11414 PR tree-optimization/55823
11415 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11418 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11419 Uros Bizjak <ubizjak@gmail.com>
11421 PR rtl-optimization/55845
11422 * df-problems.c (can_move_insns_across): Stop scanning at
11423 volatile_insn_p source instruction or give up if
11424 across_from .. across_to range contains any volatile_insn_p
11427 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11429 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11430 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11432 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11433 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11435 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11438 * asan.c (asan_clear_shadow): New function.
11439 (asan_emit_stack_protection): Use it.
11441 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11443 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11444 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11445 with tab instead of space.
11447 2013-01-08 Nick Clifton <nickc@redhat.com>
11449 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11450 register bank 0 at the start of an interrupt handler.
11451 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11454 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11456 * config/aarch64/aarch64-simd.md
11457 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11458 (aarch64_simd_bsl): Likewise.
11459 (aarch64_vcond_internal<mode>): Likewise.
11460 (vcond<mode><mode>): Likewise.
11461 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11462 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11464 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11466 * config/aarch64/aarch64-builtins.c
11467 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11469 2013-01-08 Martin Jambor <mjambor@suse.cz>
11472 * tree-sra.c (analyze_access_subtree): Return true also after
11473 potentially creating a debug-only replacement.
11475 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11477 PR middle-end/55890
11478 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11480 PR tree-optimization/54120
11481 * tree-vrp.c (range_fits_type_p): Don't allow
11482 src_precision < precision from signed vr to unsigned_p
11483 if vr->min or vr->max is negative.
11484 (simplify_float_conversion_using_ranges): Test can_float_p
11485 against CODE_FOR_nothing.
11487 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11488 Richard Biener <rguenther@suse.de>
11490 PR middle-end/55851
11491 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11492 types instead of just INTEGER_TYPE types.
11494 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11496 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11499 2013-01-07 Steve Ellcey <sellcey@mips.com>
11502 * config/mips/mips.opt: Change mad to mmad to match documentation.
11504 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11507 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11508 .progmemx.data now.
11510 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11513 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11514 (avr_addrspace_t): Add .section_name field.
11515 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11517 (avr_addrspace): Same. Initialize .section_name. Remove last
11518 NULL entry. Put __memx into .progmemx.data.
11519 (progmem_section_prefix): Remove.
11520 (avr_asm_init_sections): No need to initialize progmem_section.
11521 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11522 section name prefix.
11523 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11524 retrieve the progmem section.
11525 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11526 boundary to run over avr_addrspace[].
11527 (avr_register_target_pragmas): Ditto.
11529 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11531 * varasm.c (output_constant_def_contents): For asan_protect_global
11532 protected strings, adjust DECL_ALIGN if needed, before testing for
11534 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11535 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11537 (output_object_block): For asan protected decls, emit asan padding
11538 after their contents.
11539 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11540 (asan_finish_file): Test it here instead.
11542 2013-01-07 Nick Clifton <nickc@redhat.com>
11543 Matthias Klose <doko@debian.org>
11544 Doug Kwan <dougkwan@google.com>
11545 H.J. Lu <hongjiu.lu@intel.com>
11548 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11550 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11552 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11554 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11556 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11558 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11561 * doc/install.texi (Cross-Compiler-Specific Options): Document
11564 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11566 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11567 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11568 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11569 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11570 vqmovun_high_s64): Fix source operand number and update copyright.
11572 2013-01-07 Richard Biener <rguenther@suse.de>
11574 PR middle-end/55890
11575 * gimple.h (gimple_call_builtin_p): New overload.
11576 * gimple.c (validate_call): New function.
11577 (gimple_call_builtin_p): Likewise.
11578 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11579 Use gimple_call_builtin_p.
11580 (find_func_clobbers): Likewise.
11581 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11582 (strlen_optimize_stmt): Likewise.
11584 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11586 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11587 (vld1q_dup_*): Likewise.
11588 (vld1_*): Likewise.
11589 (vld1q_*): Likewise.
11590 (vld1_lane_*): Likewise.
11591 (vld1q_lane_*): Likewise.
11593 2013-01-07 Richard Biener <rguenther@suse.de>
11595 * lto-streamer.h (LTO_minor_version): Bump to 2.
11597 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11599 * config/aarch64/aarch64-protos.h
11600 (aarch64_const_double_zero_rtx_p): Rename to...
11601 (aarch64_float_const_zero_rtx_p): ...this.
11602 (aarch64_float_const_representable_p): New.
11603 (aarch64_output_simd_mov_immediate): Likewise.
11604 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11605 move immediate case.
11606 * config/aarch64/aarch64.c
11607 (aarch64_const_double_zero_rtx_p): Rename to...
11608 (aarch64_float_const_zero_rtx_p): ...this.
11609 (aarch64_print_operand): Allow printing of new constants.
11610 (aarch64_valid_floating_const): New.
11611 (aarch64_legitimate_constant_p): Check for valid floating-point
11613 (aarch64_simd_valid_immediate): Likewise.
11614 (aarch64_vect_float_const_representable_p): New.
11615 (aarch64_float_const_representable_p): Likewise.
11616 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11617 (aarch64_output_simd_mov_immediate): New.
11618 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11619 (*movdf_aarch64): Likewise.
11620 * config/aarch64/constraints.md (Ufc): New.
11621 (Y): call aarch64_float_const_zero_rtx.
11622 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11624 2013-01-07 Richard Biener <rguenther@suse.de>
11626 PR tree-optimization/55888
11627 PR tree-optimization/55862
11628 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11629 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11630 not if it is contained therein.
11632 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11634 * config/avr/t-avr: Typo.
11636 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11639 * config/avr/t-avr: Don't automatically rebuild
11640 $(srcdir)/config/avr/t-multilib
11641 $(srcdir)/config/avr/avr-tables.opt
11642 $(srcdir)/doc/avr-mmcu.texi
11643 (avr-mcus): New phony target to build them on request.
11644 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11645 * avr/avr-mcus.def: Adjust comments.
11647 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
11649 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11651 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11653 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11655 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11657 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11659 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
11661 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11662 to generate profiling.
11663 * config/rs6000/aix64.h (LIB_SPEC): Same.
11665 2013-01-04 Andrew Pinski <apinski@cavium.com>
11667 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11669 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11671 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
11673 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11675 (ix86_expand_move): Ditto.
11676 (ix86_zero_extend_to_Pmode): Ditto.
11677 (ix86_expand_call): Ditto.
11678 (ix86_expand_special_args_builtin): Ditto.
11679 (ix86_expand_builtin): Ditto.
11681 2013-01-04 Richard Biener <rguenther@suse.de>
11683 PR tree-optimization/55862
11684 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11685 translating them through PHI nodes.
11687 2013-01-04 Martin Jambor <mjambor@suse.cz>
11689 PR tree-optimization/55755
11690 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11691 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11693 2013-01-04 Marek Polacek <polacek@redhat.com>
11695 PR middle-end/55859
11696 * opts.c (default_options_optimization): Clarify error message.
11698 2013-01-04 Richard Biener <rguenther@suse.de>
11700 PR middle-end/55863
11701 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11704 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11707 * config/pa/pa.md (movsi): Revert previous change.
11708 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11711 2013-01-03 Richard Henderson <rth@redhat.com>
11713 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11714 after eliminating TLS symbols.
11716 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
11719 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11720 * graphite-poly.c (debug_gmp_value): Likewise.
11722 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
11725 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11726 selected code model, define __code_mode_small__, __code_model_medium__,
11727 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11728 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11729 xchg temporary register with %k. Declare temporary register as
11731 [__x86_64__]: For medium and large code models, preserve %rbx register.
11733 2013-01-03 Richard Biener <rguenther@suse.de>
11735 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
11736 (dump_subscript): Adjust.
11737 (finalize_ddr_dependent): Do not dump redundant info.
11738 (analyze_siv_subscript): Adjust.
11739 (subscript_dependence_tester): Likewise.
11740 (compute_affine_dependence): Likewise.
11742 2013-01-03 Richard Biener <rguenther@suse.de>
11745 2013-01-03 Richard Biener <rguenther@suse.de>
11747 PR tree-optimization/55857
11748 * tree-vect-stmts.c (vectorizable_load): Do not setup
11749 re-alignment for invariant loads.
11751 2013-01-02 Richard Biener <rguenther@suse.de>
11753 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11754 invariant load do not generate a vector load from the scalar location.
11756 2013-01-03 Richard Biener <rguenther@suse.de>
11758 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11759 for not vectorizing.
11760 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11761 not build INDIRECT_REFs, call get_name once only.
11762 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11763 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11765 2013-01-03 Richard Biener <rguenther@suse.de>
11767 PR tree-optimization/55857
11768 * tree-vect-stmts.c (vectorizable_load): Do not setup
11769 re-alignment for invariant loads.
11771 2013-01-03 Richard Biener <rguenther@suse.de>
11774 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11775 prefer a built-in decl.
11777 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11779 * gcc.c (process_command): Update copyright notice dates.
11780 * gcov.c (print_version): Likewise.
11781 * gcov-dump.c (print_version): Likewise.
11783 PR rtl-optimization/55838
11784 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11785 iv0.step, iv1.step and step.
11787 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11788 Marc Glisse <marc.glisse@inria.fr>
11790 PR tree-optimization/55832
11791 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11792 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11793 integer_{one,zero}_node.
11795 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11798 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11799 * var-tracking.c (reverse_op): Don't add reverse ops to
11800 VALUEs that have already
11801 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
11803 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11805 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11807 2013-01-02 Teresa Johnson <tejohnson@google.com>
11809 * dumpfile.c (dump_loc): Print filename with location.
11810 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11811 new location_t parameter to emit complete unroll message with
11812 new dump framework.
11813 (canonicalize_loop_induction_variables): Compute loops location
11814 and pass to try_unroll_loop_completely.
11815 * loop-unroll.c (report_unroll_peel): New function.
11816 (peel_loops_completely): Use new dump format with location
11817 for main dumpfile message, and invoke report_unroll_peel on success.
11818 (decide_unrolling_and_peeling): Ditto.
11819 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11820 by report_unroll_peel.
11821 (decide_peel_completely): Ditto.
11822 (decide_unroll_constant_iterations): Ditto.
11823 (decide_unroll_runtime_iterations): Ditto.
11824 (decide_peel_simple): Ditto.
11825 (decide_unroll_stupid): Ditto.
11826 * cfgloop.c (get_loop_location): New function.
11827 * cfgloop.h (get_loop_location): Declare.
11829 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11831 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11834 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11836 PR middle-end/55198
11837 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11838 BLKmode objects when EXPAND_MEMORY is specified.
11840 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11842 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11844 (fold_builtin_cpu): Do not share cpu model decls across statements.
11846 2013-01-02 Jason Merrill <jason@redhat.com>
11849 * tree.c (build_array_type_1): Revert earlier change.
11851 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11853 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11855 * config/aarch64/aarch64-tune.md: Re-generate.
11857 2013-01-02 Richard Biener <rguenther@suse.de>
11859 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11860 invariant load do not generate a vector load from the scalar location.
11862 2013-01-02 Richard Biener <rguenther@suse.de>
11865 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11866 * configure: Regenerate.
11868 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11870 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11871 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11872 (expand_builtin_int_roundingfn_2): Keep the original target around
11873 for the fallback case.
11875 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11877 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11878 to be clear for sign changes.
11880 2013-01-01 Jan Hubicka <jh@suse.cz>
11882 * ipa-inline-analysis.c: Fix formatting.
11884 2013-01-01 Jakub Jelinek <jakub@redhat.com>
11886 PR tree-optimization/55831
11887 * tree-vect-loop.c (get_initial_def_for_induction): Use
11888 gsi_after_labels instead of gsi_start_bb.
11890 Copyright (C) 2013 Free Software Foundation, Inc.
11892 Copying and distribution of this file, with or without modification,
11893 are permitted in any medium without royalty provided the copyright
11894 notice and this notice are preserved.