1 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3 * config/aarch64/aarch64.c (aarch64_classify_symbol):
4 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
6 2013-05-31 Tobias Burnus <burnus@net-b.de>
9 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
12 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
16 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
17 * config/arm/neon.md (iordi3_neon): Remove.
18 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
19 * config/arm/predicates.md (imm_for_neon_logic_operand):
20 Move to earlier in the file.
21 (neon_logic_op2): Likewise.
22 (arm_iordi_operand_neon): New predicate.
24 2013-05-31 Richard Biener <rguenther@suse.de>
26 PR tree-optimization/57478
27 PR tree-optimization/57453
28 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
31 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
33 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
34 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
36 2013-05-30 Tobias Burnus <burnus@net-b.de>
37 Thomas Koenig <tkoenig@gcc.gnu.org>
40 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
41 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
43 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
45 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
47 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
49 * target.def (register_usage_leveling_p): New hook.
50 * targhooks.c (default_register_usage_leveling_p): New.
51 * targhooks.h (default_register_usage_leveling_p): New prototype.
52 * lra-assigns.c (register_usage_leveling_p): Use the hook.
53 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
54 * doc/tm.texi: Update.
55 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
57 2013-05-30 Ian Bolton <ian.bolton@arm.com>
59 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
60 (*insv_reg<mode>): New define_insn.
62 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
64 PR rtl-optimization/57439
65 * postreload.c (move2add_valid_value_p): Check that we have
66 a zero subreg_regno_offset when accessing the register in
69 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
70 Igor Zamyatin <igor.zamyatin@intel.com>
72 Silvermont (SLM) architecture pipeline model, tuning and
74 * config.gcc: Add slm config options and target.
76 * config/i386/slm.md: New.
78 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
80 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
82 (ix86_target_macros_internal): Likewise.
84 * gcc/config/i386/i386.c (slm_cost): New cost.
85 (m_SLM): New macro flag.
86 (initial_ix86_tune_features): Set m_SLM.
87 (x86_accumulate_outgoing_args): Likewise.
88 (x86_arch_always_fancy_math_387): Likewise.
89 (processor_target_table): Add slm cost.
90 (cpu_names): Add slm cpu name.
91 (x86_option_override_internal): Set SLM ISA.
92 (ix86_issue_rate): New case PROCESSOR_SLM.
93 (ia32_multipass_dfa_lookahead): Likewise.
94 (fold_builtin_cpu): Add slm.
96 * config/i386/i386.h (TARGET_SLM): New target macro.
97 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
98 (processor_type): Add PROCESSOR_SLM.
100 * config/i386/i386.md (cpu): Add new value "slm".
101 (slm.md): Include slm.md.
103 * libgcc/config/i386/cpuinfo.c (INTEL_SLM): New enum value.
105 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
106 Zhenqiang Chen <zhenqiang.chen@linaro.org>
108 * config/arm/arm-protos.h: Add and update function protos.
109 * config/arm/arm.c (use_simple_return_p): New added.
110 (thumb2_expand_return): Check simple_return flag.
111 * config/arm/arm.md: Add simple_return and conditional simple_return.
112 * config/arm/iterators.md: Add iterator for return and simple_return.
114 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
116 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
117 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
118 (arm_emit_vfp_multi_reg_pop): Likewise.
119 (thumb2_emit_ldrd_pop): Likewise.
120 (arm_expand_epilogue): Add misc REG_CFA notes.
121 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
123 2013-05-29 Lawrence Crowl <crowl@google.com>
125 * config/arm/t-arm: Update for below.
127 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
128 Change type to hash_table. Update dependent calls and types.
130 * config/i386/t-cygming: Update for below.
132 * config/i386/t-interix: Update for below.
134 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
135 Change type to hash_table. Update dependent calls and types.
136 (i386_find_on_wrapper_list::wrappers): Likewise.
138 * config/ia64/t-ia64: Update for below.
140 * config/ia64/ia64.c (bundle_state_table):
141 Change type to hash_table. Update dependent calls and types.
143 * config/mips/mips.c (mips_reorg_process_insns::htab):
144 Change type to hash_table. Update dependent calls and types.
146 * config/sol2.c (solaris_comdat_htab):
147 Change type to hash_table. Update dependent calls and types.
149 * config/t-sol2: Update for above.
151 2013-05-29 Teresa Johnson <tejohnson@google.com>
153 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
154 functions are not yet marked as defined.
156 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
157 Pat Haugen <pthaugen@us.ibm.com>
158 Peter Bergner <bergner@vnet.ibm.com>
160 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
164 (vrotl<mode>3): Likewise.
165 (vashl<mode>3): Likewise.
166 (vlshr<mode>3): Likewise.
167 (vashr<mode>3): Likewise.
169 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
170 support for power8 V2DI builtins.
172 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
173 power8 V2DI builtins.
190 (vcmpequd): Likewise.
191 (vcmpgtsd): Likewise.
192 (vcmpgtud): Likewise.
193 (vcmpequd_p): Likewise.
194 (vcmpgtsd_p): Likewise.
195 (vcmpgtud_p): Likewise.
213 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
214 support for power8 V2DI instructions.
216 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
217 power8 V2DI instructions. Combine pack and unpack insns to use an
218 iterator for each mode. Check whether a particular mode supports
219 Altivec instructions instead of just checking TARGET_ALTIVEC.
220 (UNSPEC_VPKUWUM): Likewise.
221 (UNSPEC_VPKSHSS): Likewise.
222 (UNSPEC_VPKSWSS): Likewise.
223 (UNSPEC_VPKUHUS): Likewise.
224 (UNSPEC_VPKSHUS): Likewise.
225 (UNSPEC_VPKUWUS): Likewise.
226 (UNSPEC_VPKSWUS): Likewise.
227 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
228 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
229 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
230 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
231 (UNSPEC_VUPKHSB): Likewise.
232 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
233 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
234 (UNSPEC_VUPKHSH): Likewise.
235 (UNSPEC_VUPKLSB): Likewise.
236 (UNSPEC_VUPKLSH): Likewise.
239 (VI_scalar): Likewise.
242 (VP_small): Likewise.
243 (VP_small_lc): Likewise.
245 (add<mode>3): Likewise.
246 (altivec_vaddcuw): Likewise.
247 (altivec_vaddu<VI_char>s): Likewise.
248 (altivec_vadds<VI_char>s): Likewise.
249 (sub<mode>3): Likewise.
250 (altivec_vsubcuw): Likewise.
251 (altivec_vsubu<VI_char>s): Likewise.
252 (altivec_vsubs<VI_char>s): Likewise.
253 (altivec_vavgs<VI_char>): Likewise.
254 (altivec_vcmpbfp): Likewise.
255 (altivec_eq<mode>): Likewise.
256 (altivec_gt<mode>): Likewise.
257 (altivec_gtu<mode>): Likewise.
258 (umax<mode>3): Likewise.
259 (smax<mode>3): Likewise.
260 (umin<mode>3): Likewise.
261 (smin<mode>3): Likewise.
262 (altivec_vpkuhum): Likewise.
263 (altivec_vpkuwum): Likewise.
264 (altivec_vpkshss): Likewise.
265 (altivec_vpkswss): Likewise.
266 (altivec_vpkuhus): Likewise.
267 (altivec_vpkshus): Likewise.
268 (altivec_vpkuwus): Likewise.
269 (altivec_vpkswus): Likewise.
270 (altivec_vpks<VI_char>ss): Likewise.
271 (altivec_vpks<VI_char>us): Likewise.
272 (altivec_vpku<VI_char>us): Likewise.
273 (altivec_vpku<VI_char>um): Likewise.
274 (altivec_vrl<VI_char>): Likewise.
275 (altivec_vsl<VI_char>): Likewise.
276 (altivec_vsr<VI_char>): Likewise.
277 (altivec_vsra<VI_char>): Likewise.
278 (altivec_vsldoi_<mode>): Likewise.
279 (altivec_vupkhsb): Likewise.
280 (altivec_vupkhs<VU_char>): Likewise.
281 (altivec_vupkls<VU_char>): Likewise.
282 (altivec_vupkhsh): Likewise.
283 (altivec_vupklsb): Likewise.
284 (altivec_vupklsh): Likewise.
285 (altivec_vcmpequ<VI_char>_p): Likewise.
286 (altivec_vcmpgts<VI_char>_p): Likewise.
287 (altivec_vcmpgtu<VI_char>_p): Likewise.
288 (abs<mode>2): Likewise.
289 (vec_unpacks_hi_v16qi): Likewise.
290 (vec_unpacks_hi_v8hi): Likewise.
291 (vec_unpacks_lo_v16qi): Likewise.
292 (vec_unpacks_hi_<VP_small_lc>): Likewise.
293 (vec_unpacks_lo_v8hi): Likewise.
294 (vec_unpacks_lo_<VP_small_lc>): Likewise.
295 (vec_pack_trunc_v8h): Likewise.
296 (vec_pack_trunc_v4si): Likewise.
297 (vec_pack_trunc_<mode>): Likewise.
299 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
301 (vec_vmaxsd): Likewise.
302 (vec_vmaxud): Likewise.
303 (vec_vminsd): Likewise.
304 (vec_vminud): Likewise.
305 (vec_vpksdss): Likewise.
306 (vec_vpksdus): Likewise.
307 (vec_vpkudum): Likewise.
308 (vec_vpkudus): Likewise.
309 (vec_vrld): Likewise.
310 (vec_vsld): Likewise.
311 (vec_vsrad): Likewise.
312 (vec_vsrd): Likewise.
313 (vec_vsubudm): Likewise.
314 (vec_vupkhsw): Likewise.
315 (vec_vupklsw): Likewise.
317 2013-05-29 Jan Hubicka <jh@suse.cz>
319 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
320 flags; reorder rest of fields in more consistent way.
321 (varpool_node): Remove analyzed, finalized and alias.
322 (cgraph_ndoe): Likewise.
323 (symtab_alias_ultimate_target): New function.
324 (cgraph_function_node): Move offline.
325 (cgraph_reset_node): Declare.
326 (cgraph_comdat_can_be_unshared_p): Remove.
327 (varpool_remove_initializer): Declare.
328 (varpool_first_defined_variable, varpool_next_defined_variable
329 cgraph_first_defined_function, cgraph_next_defined_function): Update.
330 (cgraph_function_with_gimple_body_p): Update.
331 (varpool_all_refs_explicit_p): Update.
332 (symtab_alias_target): New function.
333 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
334 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
335 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
336 (varpool_variable_node): Likewise.
337 * cgraph.c (cgraph_create_function_alias): Update.
338 (cgraph_add_thunk): Update.
339 (cgraph_remove_node): Update.
340 (dump_cgraph_node): Do not dump removed flags.
341 (cgraph_function_body_availability): Update.
342 (cgraph_propagate_frequency): Update.
343 (verify_cgraph_node): Check sanity of local flag.
344 (cgraph_function_node): Move here from cgraph.h; revamp for
345 cgraph_function_or_thunk_node.
346 * lto-symtab.c (lto_varpool_replace_node): Update.
347 (lto_symtab_resolve_can_prevail_p): Update.
348 (lto_symtab_merge_cgraph_nodes): Update.
349 * ipa-cp.c (determine_versionability, initialize_node_lattices,
350 propagate_constants_accross_call, devirtualization_time_bonus,
351 ipcp_propagate_stage): Update.
352 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
353 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
354 * ipa-reference.c (propagate): Update.
355 (write_node_summary_p): Update.
356 * toplev.c (wrapup_global_declaration_2): Update.
357 * cgraphunit.c (cgraph_analyze_function): Rename to ...
358 (analyze_function) ... this one.
359 (cgraph_process_new_functions): Update.
360 (cgraph_reset_node): Export.
361 (cgraph_finalize_function): Update.
362 (cgraph_add_new_function): Update.
363 (process_function_and_variable_attributes): Update.
364 (varpool_finalize_decl): Update.
365 (symbol_finalized): Remove.
366 (symbol_finalized_and_needed): Rename to ...
367 (symbol_defined_and_needed): ... update.
368 (cgraph_analyze_functions): Update.
369 (handle_alias_pairs): Update.
370 (mark_functions_to_output): Update.
371 (assemble_thunk): Update.
372 (output_in_order): Update.
373 (output_weakrefs): Update.
374 (finalize_compilation_unit): Update.
375 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
376 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
377 input_node, input_varpool_node): Update.
378 * dbxout.c (dbxout_expand_expr): Update.
379 * cgraphclones.c (cgraph_clone_node): Update.
380 (cgraph_copy_node_for_versioning): Update.
381 (cgraph_materialize_clone): Update.
382 (cgraph_materialize_all_clones): Update.
383 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
384 propagate_pure_const, propagate_nothrow): Update.
385 * lto-streamer-out.c (lto_output, write_symbol): Update.
386 * ipa-utils.c (ipa_reverse_postorder): Update.
387 * ipa-inline.c (can_inline_edge_p): Update.
388 (update_caller_keys, ipa_inline): Update.
389 * dwarf2out.c (reference_to_unused,
390 premark_types_used_by_global_vars_helper): Update.
391 * tree-eh.c (tree_could_trap_p): Update.
392 * ipa-split.c (consider_split, execute_split_functions): Update.
393 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
394 has_addr_references_p): Update;
395 move ahead in file for better readability.
396 (process_references): Simplify.
397 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
399 (cgraph_comdat_can_be_unshared_p): Make static.
400 (cgraph_externally_visible_p): Update.
401 (varpool_externally_visible_p): Update.
402 (function_and_variable_visibility): Update.
403 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
404 ipa_tm_mark_force_output_node): Update.
405 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
406 estimate_edge_devirt_benefit, inline_generate_summary,
407 inline_write_summary): Update.
408 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
409 * ipa-prop.c (ipa_compute_jump_functions): Update.
410 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
411 read_replacements_section): Update.
412 * varasm.c (mark_decl_referenced): Update.
413 (assemble_alias, dump_tm_clone_pairs): Update.
414 * tree-inline.c (copy_bb): Update.
415 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
417 * symtab.c (dump_symtab_base): Print new flags.
418 (verify_symtab_base): Verify new flags.
419 (symtab_alias_ultimate_target): New function.
420 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
421 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
423 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
424 * i386.c (ix86_get_function_versions_dispatcher,
425 ix86_generate_version_dispatcher_body): Update.
426 (fold_builtin_cpu): Use varpool_add_new_variable.
427 * varpool.c (varpool_remove_initializer): Break out from ...
428 (varpool_remove_node): ... this one.
429 (dump_varpool_node, varpool_node_for_asm,
430 cgraph_variable_initializer_availability, varpool_analyze_node,
431 varpool_assemble_decl, varpool_remove_unreferenced_decls,
432 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
434 2013-05-29 Jan Hubicka <jh@suse.cz>
436 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
438 2013-05-29 Easwaran Raman <eraman@google.com>
440 PR tree-optimization/57442
441 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
442 when control exits the main loop.
444 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
446 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
448 * rx/rx.opt: Add macro for rx100 with string rx100 and value
450 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
451 * rx/t-rx: Add rx100 under multi library matches option for nofpu
454 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
456 PR tree-optimization/57441
457 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
458 Don't limit size of incr_vec to number of candidates.
460 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
462 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
463 and mips16 directories.
464 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
466 (MULTILIB_DIRNAMES): Ditto.
467 (MULTILIB_EXCEPTIONS): Add new exceptions.
468 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
469 (MULTILIB_DIRNAMES): Ditto.
470 (MULTILIB_EXCEPTIONS): Add new exceptions.
472 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
473 Marcus Shawcroft <marcus.shawcroft@arm.com>
475 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
476 SYMBOL_TINY_ABSOLUTE.
477 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
478 SYMBOL_TINY_ABSOLUTE.
479 (aarch64_expand_mov_immediate): Likewise.
480 (aarch64_classify_symbol): Likewise.
481 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
482 Permit SYMBOL_TINY_ABSOLUTE.
483 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
485 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
486 Marcus Shawcroft <marcus.shawcroft@arm.com>
488 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
489 Refactor if/switch. Replace gcc_assert with if.
491 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
493 * config/i386/i386.c (initial_ix86_tune_features): Enable
494 FP Reassociation for AMD bdver1 and bdver2.
496 2013-05-29 Martin Jambor <mjambor@suse.cz>
498 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
499 and IMAGPART_EXPR do not occur within other handled_components.
501 2013-05-29 Richard Biener <rguenther@suse.de>
503 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
504 access on whether the use is in the BB we currently try to
506 (vect_bb_vectorization_profitable_p): Pass the BB we currently
507 vectorize to vect_bb_slp_scalar_cost.
509 2013-05-29 Richard Biener <rguenther@suse.de>
511 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
512 computing scalar cost offsetted by stmts that are kept live
514 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
515 for computation of scalar cost.
517 2013-05-28 Steve Ellcey <sellcey@mips.com>
519 * config/mips/mips-cpus.def (mips32r2): Change processor type.
521 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
523 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
524 array notation built-in reduction functions.
525 * doc/passes.texi (Passes): Added documentation about changes done
527 * doc/invoke.texi (C Dialect Options): Added documentation about
529 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
530 (BUILTINS_DEF): Depend on cilkplus.def.
531 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
532 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
533 * cilkplus.def: New file.
535 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
537 PR rtl-optimization/57439
538 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
540 2013-05-28 Easwaran Raman <eraman@google.com>
542 PR tree-optimization/57337
543 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
544 (find_insert_point): Correctly identify the insertion point
545 when two statements with the same UID is compared.
547 2013-05-28 Richard Biener <rguenther@suse.de>
549 PR tree-optimization/56787
550 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
551 from the list of data references.
552 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
554 (vect_analyze_loop_operations): Likewise.
555 (vect_transform_loop): Remove clobbers.
557 2013-05-28 Martin Jambor <mjambor@suse.cz>
559 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
560 and REALPART_EXPRs have scalar type.
562 2013-05-28 Richard Biener <rguenther@suse.de>
564 PR tree-optimization/57411
565 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
567 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
568 virtual operand propagation.
570 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
572 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
573 destination register for bmasksi_vis.
574 (vector_init_bshuffle): Likewise.
575 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
577 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
579 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
580 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
581 mode if the instruction isn't available in the original mode.
582 * config/sparc/sparc.opt (mfix-ut699): New option.
583 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
584 (divdf3): Turn into expander.
585 (divdf3_nofix): New insn.
586 (divdf3_fix): Likewise.
587 (divsf3): Disable if -mfix-ut699.
588 (sqrtdf2): Turn into expander.
589 (sqrtdf2_nofix): New insn.
590 (sqrtdf2_fix): Likewise.
591 (sqrtsf2): Disable if -mfix-ut699.
593 2013-05-27 Richard Biener <rguenther@suse.de>
596 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
597 block for the new loop.
599 2013-05-27 Richard Biener <rguenther@suse.de>
601 PR tree-optimization/57343
602 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
603 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
604 (number_of_iterations_cond): Do not build the folded tree.
606 2013-05-27 Richard Biener <rguenther@suse.de>
610 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
611 OEP_CONSTANT_ADDRESS_OF retained.
613 PR tree-optimization/57417
614 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
616 (set_ssa_val_to): Compare addresses using
617 get_addr_base_and_unit_offset.
619 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
621 PR rtl-optimization/56833
622 * postreload.c (move2add_record_mode): New function.
623 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
624 (move2add_use_add2_insn): Use move2add_record_sym_value.
625 (move2add_use_add3_insn): Likewise.
626 (reload_cse_move2add): Use move2add_valid_value_p and
627 move2add_record_mode. Invalidate call-clobbered and REG_INC
628 affected regs by setting reg_mode to VOIDmode.
629 (move2add_note_store): Don't pretend the inside of a SUBREG is
630 the actual destination. Invalidate single/leading registers by
631 setting reg_mode to VOIDmode.
632 Use move2add_record_sym_value, move2add_valid_value_p and
633 move2add_record_mode.
635 2013-05-27 Richard Biener <rguenther@suse.de>
637 PR tree-optimization/57396
638 * tree-affine.c (double_int_constant_multiple_p): Properly
639 return false for val == 0 and div != 0.
641 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
643 * config/mips/mips.h: Use #elif in preprocessor conditions.
645 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
648 * config/mips/constraints.md (kl): New constraint.
649 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
650 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
651 constraint for operand 0. Split after CSE for MIPS16. Emit a move
653 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
655 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
658 * config/mips/mips.c (mips_can_inline_p): New function.
659 (TARGET_CAN_INLINE_P): Define.
661 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
663 * sched-int.h (ds_t, dw_t): Make unsigned int.
664 Fix documentation that describes how all the ds_t bits are used.
665 Reserve the last bit for delayed-branch scheduling.
666 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
667 (BITS_PER_DEP_WEAK): Fix definition and documentation.
668 (gen_dep_weak_1): Remove prototype.
669 * sched-deps.c (get_dep_weak_1): Make static.
670 * target.def (speculate_insn, needs_block_p, gen_spec_check,
671 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
672 * doc/tm.texi: Regenerate.
673 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
675 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
678 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
680 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
681 Sandra Loosemore <sandra@codesourcery.com>
683 * config.gcc (powerpc-*): Allow native for with-cpu.
685 2013-05-24 Jeff Law <law@redhat.com>
687 PR tree-optimization/57124
688 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
689 conversion feeding a condition if the range has an overflow
690 if -fstrict-overflow. Add warnings for when we do make the
693 2013-05-24 Dehao Chen <dehao@google.com>
695 * tree-cfg.c (locus_discrim_map): Fix the typo.
696 (locus_discrim_hasher): Likewise.
697 (locus_discrim_hasher::hash): Likewise.
698 (locus_discrim_hasher::equal): Likewise.
700 2013-05-24 Martin Jambor <mjambor@suse.cz>
702 PR tree-optimization/57294
703 * cgraph.h (ipa_record_stmt_references): Declare.
704 * cgraphbuild.c (ipa_record_stmt_references): New function.
705 (build_cgraph_edges): Use ipa_record_stmt_references.
706 (rebuild_cgraph_edges): Likewise.
707 (cgraph_rebuild_references): Likewise.
708 * ipa-prop.c (ipa_modify_call_arguments): Discard references
709 associated with the old statement and build references from the
710 newly built statements.
711 * ipa-ref.c (ipa_remove_stmt_references): New function.
712 * ipa-ref.h (ipa_remove_stmt_references): Declare.
714 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
716 * lra-constraints.c (emit_spill_move): Use smaller mode for
718 (check_and_process_move): Consider mem-reg moves for secondary
720 (curr_insn_transform): Don't lose insns emitted before for
721 secondary memory moves.
722 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
723 reg set up in the current insn.
725 2013-05-24 Dehao Chen <dehao@google.com>
727 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
729 (locus_descrim_hasher::equal): Likewise.
730 (build_gimple_cfg): New discriminator assignment algorithm.
731 (make_edges): Likewise.
732 (next_discriminator_for_locus): Likewise.
733 (same_line_p): Likewise.
734 (assign_discriminators): Likewise.
735 (make_cond_expr_edges): Likewise.
736 (make_gimple_switch_edges): Likewise.
737 (make_goto_expr_edges): Likewise.
738 (make_gimple_asm_edges): Likewise.
740 2013-05-24 Ian Bolton <ian.bolton@arm.com>
742 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
743 X format specifier to only display bottom 16 bits.
744 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
745 immediate to match for operand 2, since it will be masked.
747 2013-05-24 Richard Biener <rguenther@suse.de>
749 PR tree-optimization/57287
750 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
751 all SSA names that occur in abnormal PHIs.
753 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
756 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
757 that index is not negative.
759 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
761 PR rtl-optimization/55177
762 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
763 (simplify_byte_swapping_operation): New.
764 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
765 (simplify_relational_operation_1): Deal with BSWAP.
767 2013-05-23 Richard Henderson <rth@redhat.com>
770 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
771 (ix86_reorg): Call it.
773 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
776 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
777 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
778 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
780 2013-05-23 Christian Bruel <christian.bruel@st.com>
783 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
785 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
786 Marcus Shawcroft <marcus.shawcroft@arm.com>
788 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
789 * config/aarch64/constraints.md (Usa): Remove.
790 * doc/md.texi (AArch64 Usa): Remove.
792 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
793 Marcus Shawcroft <marcus.shawcroft@arm.com>
795 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
796 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
797 * config/aarch64/predicates.md (aarch64_const_address): Remove.
798 (aarch64_mov_operand): Use aarch64_mov_operand_p.
800 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
802 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
803 instruction (AdvSIMD).
804 * config/aarch64/aarch64-builtins.c
805 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
806 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
808 2013-05-23 Martin Jambor <mjambor@suse.cz>
811 * tree.h (contains_bitfld_component_ref_p): Declare.
812 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
813 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
815 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
816 not access a bit-field. Assert all final offsets are byte-aligned.
818 2013-05-23 Richard Biener <rguenther@suse.de>
820 PR tree-optimization/57380
821 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
822 least one invariant or re-used load.
823 * passes.c (init_optimization_passes): Move pass_phiprop before
826 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
828 * config/aarch64/aarch64-simd.md
829 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
831 2013-05-23 Richard Biener <rguenther@suse.de>
834 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
835 OEP_CONSTANT_ADDRESS_OF retained.
837 2013-05-23 Jakub Jelinek <jakub@redhat.com>
840 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
841 don't lower unit. Handle unit not being always BITS_PER_WORD.
843 2013-05-23 Richard Biener <rguenther@suse.de>
845 PR rtl-optimization/57341
846 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
847 instead of true_dependence.
849 2013-05-22 David Malcolm <dmalcolm@redhat.com>
851 * bb-reorder.c (branch_threshold): Make const.
852 (exec_threshold): Ditto.
854 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
855 Pat Haugen <pthaugen@us.ibm.com>
856 Peter Bergner <bergner@vnet.ibm.com>
858 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
859 documentation for the power8 crypto builtins.
861 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
863 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
864 macros for defining power8 builtin functions.
865 (BU_P8V_AV_2): Likewise.
866 (BU_P8V_AV_P): Likewise.
867 (BU_P8V_VSX_1): Likewise.
868 (BU_P8V_OVERLOAD_1): Likewise.
869 (BU_P8V_OVERLOAD_2): Likewise.
870 (BU_CRYPTO_1): Likewise.
871 (BU_CRYPTO_2): Likewise.
872 (BU_CRYPTO_3): Likewise.
873 (BU_CRYPTO_OVERLOAD_1): Likewise.
874 (BU_CRYPTO_OVERLOAD_2): Likewise.
875 (XSCVSPDP): Fix typo, point to the correct instruction.
876 (VCIPHER): Add power8 crypto builtins.
877 (VCIPHERLAST): Likewise.
878 (VNCIPHER): Likewise.
879 (VNCIPHERLAST): Likewise.
883 (VPERMXOR_V2DI): Likewise.
884 (VPERMXOR_V4SI: Likewise.
885 (VPERMXOR_V8HI: Likewise.
886 (VPERMXOR_V16QI: Likewise.
887 (VSHASIGMAW): Likewise.
888 (VSHASIGMAD): Likewise.
890 (VPERMXOR): Likewise.
891 (VSHASIGMA): Likewise.
893 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
894 __CRYPTO__ if the crypto instructions are available.
895 (altivec_overloaded_builtins): Add support for overloaded power8
898 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
899 support for power8 crypto builtins.
900 (builtin_function_type): Likewise.
901 (altivec_init_builtins): Add support for builtins that take vector
902 long long (V2DI) arguments.
904 * config/rs6000/crypto.md: New file, define power8 crypto
907 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
908 Pat Haugen <pthaugen@us.ibm.com>
909 Peter Bergner <bergner@vnet.ibm.com>
911 * doc/invoke.texi (Option Summary): Add power8 options.
912 (RS/6000 and PowerPC Options): Likewise.
914 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
915 constraints.md instead of rs6000.h. Reorder w* constraints. Add
916 wm, wn, wr documentation.
918 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
919 registers if direct move instructions are enabled.
920 (wn): New constraint for no registers.
921 (wq): New constraint for quad word even GPR registers.
922 (wr): New constraint if 64-bit instructions are enabled.
923 (wv): New constraint if power8 vector instructions are enabled.
924 (wQ): New constraint for quad word memory locations.
926 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
927 constraint for 0..15 for crypto instructions.
928 (gpc_reg_operand): If VSX allow registers in VSX registers as well
929 as GPR and floating point registers.
930 (int_reg_operand): New predicate to match only GPR registers.
931 (base_reg_operand): New predicate to match base registers.
932 (quad_int_reg_operand): New predicate to match even GPR registers
933 for quad memory operations.
934 (vsx_reg_or_cint_operand): New predicate to allow vector logical
935 operations in both GPR and VSX registers.
936 (quad_memory_operand): New predicate for quad memory operations.
937 (reg_or_indexed_operand): New predicate for direct move support.
939 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
940 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
941 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
942 (POWERPC_MASKS): Add power8 options.
943 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
946 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
947 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
949 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
950 (-mpower8-fusion): New power8 options.
951 (-mpower8-fusion-sign): Likewise.
952 (-mpower8-vector): Likewise.
953 (-mcrypto): Likewise.
954 (-mdirect-move): Likewise.
955 (-mquad-memory): Likewise.
957 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
959 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
961 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
962 (rs6000_debug_vector_unit): Add p8_vector.
963 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
964 definitions. Also print fusion state.
965 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
966 (rs6000_builtin_mask_calculate): Add power8 builtin support.
967 (rs6000_option_override_internal): Add support for power8.
968 (rs6000_common_init_builtins): Add debugging for skipped builtins
970 (rs6000_adjust_cost): Add power8 support.
971 (rs6000_issue_rate): Likewise.
972 (insn_must_be_first_in_group): Likewise.
973 (insn_must_be_last_in_group): Likewise.
974 (force_new_group): Likewise.
975 (rs6000_register_move_cost): Likewise.
976 (rs6000_opt_masks): Likewise.
978 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
979 power8 capable assembler, default to power7 options.
980 (TARGET_DIRECT_MOVE): Likewise.
981 (TARGET_CRYPTO): Likewise.
982 (TARGET_P8_VECTOR): Likewise.
983 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
984 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
985 (VECTOR_MEM_P8_VECTOR_P): Likewise.
986 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
987 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
988 (TARGET_XSCVDPSPN): Likewise.
989 (TARGET_XSCVSPDPN): Likewsie.
990 (TARGET_SYNC_HI_QI): Likewise.
991 (TARGET_SYNC_TI): Likewise.
992 (MASK_CRYPTO): Likewise.
993 (MASK_DIRECT_MOVE): Likewise.
994 (MASK_P8_FUSION): Likewise.
995 (MASK_P8_VECTOR): Likewise.
996 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
997 temporary used by some of the direct move instructions to get two FP
998 temporary registers does not force creation of a stack frame.
999 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1000 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1001 that any VSX registers are tieable, even if they are also an
1002 Altivec vector mode.
1003 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1004 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1005 (RS6000_BTM_CRYPTO): Likewise.
1006 (RS6000_BTM_COMMON): Likewise.
1008 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1009 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1010 (enum rs6000_vector): Add power8 vector support.
1012 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1016 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1017 (any_sibcall_could_use_r3): this and handle indirect calls.
1018 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1020 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1022 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1024 2013-05-22 Richard Biener <rguenther@suse.de>
1027 * profile.c (branch_prob): Do not split blocks that are
1028 abnormally receiving from ECF_RETURNS_TWICE functions.
1030 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1032 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1033 address mode. Move pointer mode initialization to the same place.
1035 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1037 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1038 while it has any effect.
1040 2013-05-21 Easwaran Raman <eraman@google.com>
1042 PR tree-optimization/57322
1043 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1044 UID of the statement added to the BB to be 1.
1046 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1048 PR tree-optimization/57331
1049 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1050 of conversion from pointer type to integral type with integer.
1052 2013-05-21 Martin Jambor <mjambor@suse.cz>
1055 * ipa-prop.c (ipa_read_node_info): Process param_used and
1056 controlled_uses in the same order as when writing.
1058 2013-05-21 Magnus Granberg <baldrick@free.fr>
1061 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1063 2013-05-21 Richard Biener <rguenther@suse.de>
1065 PR tree-optimization/57318
1066 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1067 estimate stmts with side-effects as likely eliminated.
1069 2013-05-21 Richard Biener <rguenther@suse.de>
1071 PR tree-optimization/57330
1072 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1073 preserve the call stmts fntype.
1075 2013-05-21 Richard Biener <rguenther@suse.de>
1077 PR tree-optimization/57303
1078 * tree-ssa-sink.c (statement_sink_location): Improve killing
1079 stmt detection and properly handle self-assignments.
1081 2013-05-21 Christian Bruel <christian.bruel@st.com>
1083 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1084 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1085 registers. Set register size out of the PARALLEL loop.
1087 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1090 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1091 (*fmasf4, *fmasf4_media): New insns.
1093 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1095 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1096 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1097 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1098 (mips_idiv_insns): Update the comments to say that the returned
1099 instruction counts are in units of BASE_INSN_LENGTH.
1100 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1101 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1102 using 2 rather than 4 as the length of indirect MIPS16 and
1103 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1104 length of a NOP. Don't divide MIPS16 lengths by 2.
1105 (mips16_split_long_branches): Assume a branch is long if the
1106 length is greater than 4 rather than 8.
1107 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1108 rather than multiplying them by 2. Multiply instruction counts
1109 by BASE_INSN_LENGTH rather than 4.
1110 (*jump_mips16, tls_get_tp_mips16_<mode>)
1111 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1113 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1115 * config/mips/mips.md (extended_mips16): Remove branch case.
1116 (length): Remove duplicated extended_mips16 test.
1118 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1120 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1122 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1124 * recog.h (Recog_data): Rename to...
1125 (recog_data_d): ...this.
1126 (recog_data): Update accordingly.
1127 * recog.c (recog_data): Likewise.
1128 * reload.c (save_recog_data): Likewise.
1129 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1130 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1132 2013-05-17 Julian Brown <julian@codesourcery.com>
1134 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1135 found in a REG_EQUAL note, invalidate it.
1137 2013-05-17 Easwaran Raman <eraman@google.com>
1139 * tree-ssa-reassoc.c (find_insert_point): New function.
1140 (insert_stmt_after): Likewise.
1141 (get_def_stmt): Likewise.
1142 (ensure_ops_are_available): Likewise.
1143 (not_dominated_by): Likewise.
1144 (rewrite_expr_tree): Do not move statements beyond what is
1145 necessary. Remove call to swap_ops_for_binary_stmt...
1146 (reassociate_bb): ... and move it here.
1147 (build_and_add_sum): Assign UIDs for new statements.
1148 (linearize_expr): Likewise.
1149 (do_reassoc): Renumber gimple statement UIDs.
1151 2013-05-17 Jan Hubicka <jh@suse.cz>
1153 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1155 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1156 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1158 (output_weakrefs): Update.
1160 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1161 Martin Jambor <mjambor@suse.cz>
1164 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1165 value that corresponds to the given aggval is found in values vector.
1167 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1169 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1170 sse, sse2, sse3, ssse3 and sse4a flags to options.
1172 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1174 * gengtype-state.c: (s_expr_writer): New class, to handle
1175 prettifying of output layout of s-expressions.
1176 (state_writer): New class, to write out gtype.state.
1177 (state_written_type_count): Move this variable into member data of
1179 (s_expr_writer::s_expr_writer): New code: constructor for new class
1180 (state_writer::state_writer(): ditto
1181 (s_expr_writer::write_new_line): New function
1182 (s_expr_writer::write_any_indent): ditto
1183 (s_expr_writer::begin_s_expr): ditto
1184 (s_expr_writer::end_s_expr): ditto
1185 (write_state_fileloc): convert to method of state_writer...
1186 (state_writer:: write_state_fileloc): ...and use methods of
1187 s_expr_writer to write indentation into the gtype.state output file
1188 to visually represent the hierarchical structure of the list
1190 (write_state_fields): ditto, renaming to...
1191 (state_writer::write_state_fields)
1192 (write_state_a_string): ditto, renaming to...
1193 (state_writer::write_state_a_string)
1194 (write_state_string_option): ditto, renaming to...
1195 (state_writer::write_state_string_option)
1196 (write_state_type_option): ditto, renaming to...
1197 (state_writer::write_state_type_option)
1198 (write_state_nested_option): ditto, renaming to...
1199 (state_writer::write_state_nested_option)
1200 (write_state_option): ditto, renaming to...
1201 (state_writer::write_state_option)
1202 (write_state_options): ditto, renaming to...
1203 (state_writer::write_state_options)
1204 (write_state_lang_bitmap): ditto, renaming to...
1205 (state_writer::write_state_lang_bitmap)
1206 (write_state_version): ditto, renaming to...
1207 (state_writer::write_state_version)
1208 (write_state_scalar_type): ditto, renaming to...
1209 (state_writer::write_state_scalar_type)
1210 (write_state_string_type): ditto, renaming to...
1211 (state_writer::write_state_string_type)
1212 (write_state_undefined_type): ditto, renaming to...
1213 (state_writer::write_state_undefined_type)
1214 (write_state_struct_union_type): ditto, renaming to...
1215 (state_writer::write_state_struct_union_type)
1216 (write_state_struct_type): ditto, renaming to...
1217 (state_writer::write_state_struct_type)
1218 (write_state_user_struct_type): ditto, renaming to...
1219 (state_writer::write_state_user_struct_type)
1220 (write_state_lang_struct_type): ditto, renaming to...
1221 (state_writer::write_state_lang_struct_type)
1222 (write_state_param_struct_type): ditto, renaming to...
1223 (state_writer::write_state_param_struct_type)
1224 (write_state_pointer_type): ditto, renaming to...
1225 (state_writer::write_state_pointer_type)
1226 (write_state_array_type): ditto, renaming to...
1227 (state_writer::write_state_array_type)
1228 (write_state_gc_used): ditto, renaming to...
1229 (state_writer::write_state_gc_used)
1230 (write_state_common_type_content): ditto, renaming to...
1231 (state_writer::write_state_common_type_content)
1232 (write_state_type): ditto, renaming to...
1233 (state_writer::write_state_type)
1234 (write_state_pair_list): ditto, renaming to...
1235 (state_writer::write_state_pair_list)
1236 (write_state_pair): ditto, renaming to...
1237 (state_writer::write_state_pair)
1238 (write_state_typedefs): ditto, renaming to...
1239 (state_writer::write_state_typedefs)
1240 (write_state_structures): ditto, renaming to...
1241 (state_writer::write_state_structures)
1242 (write_state_param_structs): ditto, renaming to...
1243 (state_writer::write_state_param_structs)
1244 (write_state_variables): ditto, renaming to...
1245 (state_writer::write_state_variables)
1246 (write_state_srcdir): ditto, renaming to...
1247 (state_writer::write_state_srcdir)
1248 (write_state_files_list): ditto, renaming to...
1249 (state_writer::write_state_files_list)
1250 (write_state_languages): ditto, renaming to...
1251 (state_writer::write_state_languages)
1252 (write_state): create a state_writer instance and use it when
1253 writing out the state file
1255 2013-05-17 Mike Stump <mikestump@comcast.net>
1257 PR rtl-optimization/57304
1258 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1259 accessing DF_REF_REAL_LOC.
1261 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1263 PR rtl-optimization/57281
1264 PR rtl-optimization/57300
1265 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1266 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1267 what the other splitter did if the registers are dead.
1269 2013-05-17 Richard Biener <rguenther@suse.de>
1271 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1274 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1276 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1279 2013-05-17 Marek Polacek <polacek@redhat.com>
1281 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1282 length when doing non-zero store of storing '\0' to '\0'.
1284 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1286 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1287 vect_external_def oprnd1 with loop_vinfo, try to emit
1288 optional cast, negation and and stmts on the loop preheader
1289 edge instead of into the pattern def seq.
1291 PR tree-optimization/57051
1292 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1293 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1295 2013-05-16 Nick Clifton <nickc@redhat.com>
1297 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1298 (rl78_is_naked_func): New function.
1299 (rl78_expand_prologue): Skip prologue generation for naked
1301 (rl78_expand_epilogue): Skip epilogue generation for naked
1303 * doc/extend.texi (naked): Add RL78 to the list of processors
1304 that supports this attribute.
1306 2013-05-16 Jeff Law <law@redhat.com>
1308 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1310 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1312 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1313 cache parameters using detect_caches_amd also for CYRIX,
1314 NSC and TM2 signatures.
1316 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1317 Dzianis Kahanovich <mahatma@eu.by>
1321 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1322 VIA/Centaur processors and determine their cache parameters
1323 using detect_caches_amd.
1325 2013-05-16 Teresa Johnson <tejohnson@google.com>
1327 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1328 (rtl_verify_edges): New function.
1329 (rtl_verify_bb_insns): Ditto.
1330 (rtl_verify_bb_pointers): Ditto.
1331 (rtl_verify_bb_insn_chain): Ditto.
1332 (rtl_verify_fallthru): Ditto.
1333 (rtl_verify_bb_layout): Ditto.
1334 (rtl_verify_flow_info_1): Outline checks into new functions.
1335 (rtl_verify_flow_info): Ditto.
1337 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
1339 * cfghooks.c (copy_bbs): Add update_dominance argument.
1340 * cfghooks.h (copy_bbs): Update prototype.
1341 * tree-cfg.c (gimple_duplicate_sese_region):
1342 Add update_dominance argument.
1343 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1344 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1345 gimple_duplicate_sese_region call.
1346 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1347 Update copy_bbs call.
1348 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1349 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1351 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1353 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1354 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1355 vect_recog_rotate_pattern.
1356 (vect_recog_rotate_pattern): New function.
1358 2013-05-16 Jason Merrill <jason@redhat.com>
1360 * Makefile.in (LLINKER): New variable.
1361 (mostlyclean): Remove link mutex.
1362 * configure.ac: Handle --enable-link-mutex.
1363 * lock-and-run.sh: New script.
1365 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1368 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1371 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1373 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1375 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1377 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1378 * config/arm/arm.c (next_consecutive_mem): New function.
1379 (gen_movmem_ldrd_strd): Likewise.
1380 * config/arm/arm.md (movmemqi): Update condition and code.
1381 (unaligned_loaddi, unaligned_storedi): New patterns.
1383 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1385 * config.gcc: Obsolete *-*-solaris2.9*.
1386 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1388 2013-05-16 Richard Biener <rguenther@suse.de>
1390 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1391 earlier, after GRAPHITE transforms and IV canonicalization.
1393 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1395 * omp-low.c (extract_omp_for_data): For collapsed loops,
1396 if at least one of the loops is known at compile time to
1397 iterate zero times, set count to 0.
1398 (expand_omp_regimplify_p): New function.
1399 (expand_omp_for_generic): For collapsed loops, if at least
1400 one of the loops isn't known to iterate at least once,
1401 add runtime check with setting count to 0.
1402 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1403 For unsigned types if it isn't known at compile time that
1404 the loop will iterate at least once, add runtime check to bypass
1405 the whole loop if initial condition isn't true.
1407 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1409 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1411 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
1414 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1415 transformations to avoid an infinite loop.
1417 2013-05-16 Marek Polacek <polacek@redhat.com>
1419 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1421 2013-05-15 Leif Ekblad <leif@rdos.net>
1423 * config/i386/i386.c (ix86_decompose_address): Use
1424 DEFAULT_TLS_SEG_REG to access TLS segment register.
1425 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1426 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1427 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1429 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1432 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1433 sibling calls to functions that would normally be lazily bound,
1434 unless $gp is call-clobbered.
1436 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1438 * config/i386/i386.c (ix86_option_override_internal): Update
1439 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1440 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1441 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1442 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1444 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1446 2013-05-15 Andreas Schwab <schwab@suse.de>
1448 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1449 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1452 2013-05-15 Teresa Johnson <tejohnson@google.com>
1454 * loop-unroll.c (report_unroll_peel): Check decision before
1455 emitting unroll/peel message.
1457 2013-05-15 Teresa Johnson <tejohnson@google.com>
1459 * function.h (has_bb_partition): New rtl_data flag.
1460 (bb_reorder_complete): Ditto.
1461 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1462 instead of flag_reorder_blocks_and_partition.
1463 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1464 with some enhancements.
1465 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1466 * bb-reorder.c (connect_traces): Check for has_bb_partition
1467 instead of flag_reorder_blocks_and_partition.
1468 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1469 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1470 verify_hot_cold_block_grouping.
1471 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1473 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1476 * config/arm/predicates.md (call_insn_operand): New predicate.
1477 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1478 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1479 if insn is not a tail call.
1480 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1482 * config/arm/arm.h (enum reg_class): New caller save register class.
1483 (REG_CLASS_NAMES): Likewise.
1484 (REG_CLASS_CONTENTS): Likewise.
1485 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1488 2013-05-15 Richard Biener <rguenther@suse.de>
1490 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1491 of MSG_OPTIMIZED_LOCATIONS.
1492 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1493 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1495 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1496 of MSG_OPTIMIZED_LOCATIONS.
1497 (execute_vect_slp): Likewise.
1498 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1499 (vect_create_cond_for_alias_checks): Likewise.
1500 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1501 (vect_recog_widen_mult_pattern): Likewise.
1502 (vect_recog_widen_sum_pattern): Likewise.
1503 (vect_recog_over_widening_pattern): Likewise.
1504 (vect_recog_widen_shift_pattern): Likewise.
1505 (vect_recog_vector_vector_shift_pattern): Likewise.
1506 (vect_recog_divmod_pattern): Likewise.
1507 (vect_recog_mixed_size_cond_pattern): Likewise.
1508 (vect_recog_bool_pattern): Likewise.
1509 (vect_pattern_recog_1): Likewise.
1511 2013-05-15 Martin Jambor <mjambor@suse.cz>
1513 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1514 non-functions to builtin_unreachable.
1515 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1516 correct when new direct edges were discovered.
1518 2013-05-15 Martin Jambor <mjambor@suse.cz>
1520 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1521 header, print symbol order instead of node uid, print more information
1522 about indirect edge targets.
1523 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1525 (ipa_make_edge_direct_to_target): Likewise.
1526 (remove_described_reference): Likewise.
1527 (propagate_controlled_uses): Likewise.
1528 (ipa_print_node_params): Also print symbol order.
1529 (ipcp_transform_function): Print symbol order instead of node uids.
1530 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1531 (cgraph_get_create_real_symbol_node): Likewise.
1532 * ipa-cp.c (print_lattice): Likewise.
1533 (print_all_lattices): Likewise.
1534 (determine_versionability): Likewise.
1535 (initialize_node_lattices): Likewise.
1536 (estimate_local_effects): Likewise.
1537 (update_profiling_info): Likewise.
1538 (create_specialized_node): Likewise.
1539 (perhaps_add_new_callers): Likewise.
1540 (decide_about_value): Likewise.
1541 (decide_whether_version_node): Likewise.
1542 (identify_dead_nodes): Likewise.
1543 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1544 (dump_inline_summary): Likewise.
1545 (estimate_node_size_and_time): Likewise.
1546 (inline_analyze_function): Likewise.
1547 * ipa-inline.c (report_inline_failed_reason): Likewise.
1548 (want_early_inline_function_p): Likewise.
1549 (edge_badness): Likewise.
1550 (update_edge_key): Likewise.
1551 (inline_small_functions): Likewise. Add dumping of order to two other
1553 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1554 instead of node uids.
1555 (propagate_pure_const): Likewise.
1556 (propagate_pure_const): Likewise.
1557 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1558 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1559 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1561 * tree-pretty-print.c (dump_function_header): Likewise.
1562 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1563 Print symbol order instead of node uids.
1565 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1567 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1568 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1570 2013-05-15 Richard Biener <rguenther@suse.de>
1572 PR tree-optimization/57275
1573 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1574 return value for fail to do runtime alias checks for gather loads.
1576 2013-05-15 Jan Hubicka <jh@suse.cz>
1580 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1581 weakrefs are not external.
1582 (lto_symtab_merge_decls): Fix thinko when dealing with
1583 non-lto_symtab decls.
1584 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1585 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1586 * varpool.c (dump_varpool_node): Dump more flags.
1588 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1590 * config/i386/i386.c (processor_alias_table): Add instruction
1591 FSGSBASE for AMD bdver3 architecture.
1593 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1595 * tree.c (warn_deprecated_use): Print file:line using locus color.
1596 * diagnostic.c (diagnostic_report_current_module): Print file:line
1597 and file:line:column using locus color.
1599 2013-05-14 Mike Stump <mikestump@comcast.net>
1601 * gdbinit.in: Add __null.
1603 2013-05-14 Mike Stump <mikestump@comcast.net>
1605 * recog.h: Rename struct recog_data to Recog_data.
1606 * recog.c: Likewise.
1607 * reload.c (can_reload_into): Likewise.
1608 * config/picochip/picochip.c: Likewise.
1610 2013-05-14 Mike Stump <mikestump@comcast.net>
1612 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1614 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1616 * resource.h (struct resources): Remove unch_memory member.
1617 (CLEAR_RESOURCE): Don't clear unch_memory.
1618 * resource.c (mark_referenced_resources): Don't set it.
1619 (mark_set_resources): Likewise.
1620 (mark_target_live_regs): Don't clear it.
1621 (init_resource_info): Likewise.
1622 * reorg.c (resource_conflicts_p): Don't compare it.
1623 (redundant_insn): Don't set it.
1625 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1627 * emit-rtl.c (next_label): Remove unused function.
1628 (skip_consecutive_labels, link_cc0_insns): Move to ...
1629 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1630 only place where these functions are used, and make them static.
1632 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1634 * fold-const.c (fold_negate_expr): Handle vectors.
1635 (fold_truth_not_expr): Make it static.
1636 (fold_invert_truthvalue): New static function.
1637 (invert_truthvalue_loc): Handle vectors. Do not call
1638 fold_truth_not_expr directly.
1639 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1640 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1641 (fold_comparison): Handle vector constants.
1642 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1643 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1644 * tree.h (fold_truth_not_expr): Remove declaration.
1646 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1648 * config/aarch64/aarch64-simd.md
1649 (aarch64_vcond_internal<mode>): Rename to...
1650 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1651 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1652 float modes. Clarify all iterator modes.
1653 (vcond<mode><mode>): Use new name for vcond expanders.
1654 (vcond<v_cmp_result><mode>): Likewise.
1655 (vcondu<mode><mode>: Likewise.
1656 * config/aarch64/iterators.md (VDQF_COND): New.
1658 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1661 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1662 variable for the shift amount. Check that we shift by non-negative
1665 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1668 * config/arm/arm.h (EPILOGUE_USES): Only return true
1669 for LR_REGNUM after epilogue_completed.
1671 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1673 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
1676 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1679 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1680 and Solaris 11+/x86 with gld.
1681 * configure: Regenerate.
1683 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1685 * expmed.c (expand_shift_1): Canonicalize rotates by
1686 constant bitsize / 2 to bitsize - 1.
1687 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
1688 case ROTATERT>: Likewise.
1691 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1693 * config/i386/i386.md (rotateinv): New code attr.
1694 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1695 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1696 roll $31, %eax, etc.
1698 2013-05-14 Richard Biener <rguenther@suse.de>
1701 * tree-eh.c (sink_clobbers): Give up for successors with
1702 multiple predecessors and no virtual uses.
1704 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1706 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1707 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1709 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1712 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1713 the case when both op0 and op1 have VOIDmode.
1715 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1717 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1718 in multiply-accumulate mode.
1720 2013-05-13 Guozhi Wei <carrot@google.com>
1722 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1724 2013-05-13 Kai Tietz <ktietz@redhat.com>
1727 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
1728 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
1729 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
1730 * config/i386/i386.c (ix86_option_override_internal): Likewise.
1731 (ix86_expand_prologue): Likewise.
1732 (ix86_expand_split_stack_prologue): Likewise.
1733 (legitimate_pic_address_disp_p): Likewise.
1734 (legitimize_pic_address): Likewise.
1735 (legitimize_tls_address): Likewise.
1736 (legitimize_pe_coff_symbol): Likewise.
1737 (output_pic_addr_const): Likewise.
1738 (construct_plt_address): Likewise.
1739 (ix86_expand_call): Likewise.
1740 (x86_output_mi_thunk): Likewise.
1741 (x86_function_profiler): Likewise.
1743 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1745 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1746 similar switch cases.
1747 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1748 (aarch64_simd_mov_to_<mode>low): Delete.
1749 (aarch64_simd_mov_to_<mode>high): Delete.
1750 (move_lo_quad_<mode>): Add w<-r alternative.
1751 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1752 (aarch64_simd_mov_from_*): Update type attribute.
1753 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1756 2013-05-13 Jan Hubicka <jh@suse.cz>
1758 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1759 * config/i386/i386.c (ix86_compute_frame_layout,
1760 ix86_expand_epilogue, emit_i387_cw_initialization,
1761 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1762 ix86_local_alignment): Fix use of size/speed predicates.
1764 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1766 PR tree-optimization/45216
1767 PR tree-optimization/57157
1768 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1769 the (-Y) & (B - 1) variant if OP is |.
1770 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1771 return shifted. Use (-op1) & (prec - 1) as other_amount
1772 instead of prec - op1.
1774 2013-05-13 Martin Jambor <mjambor@suse.cz>
1777 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1778 (ipa_constant_data): New type.
1779 (ipa_jump_func): Use ipa_constant_data to hold information about
1780 constant jump functions.
1781 (ipa_get_jf_constant): Adjust to jump function type changes.
1782 (ipa_get_jf_constant_rdesc): New function.
1783 (ipa_param_descriptor): New field controlled_uses.
1784 (ipa_get_controlled_uses): New function.
1785 (ipa_set_controlled_uses): Likewise.
1786 * ipa-ref.h (ipa_find_reference): Declare.
1787 * ipa-prop.c (ipa_cst_ref_desc): New type.
1788 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1790 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1791 New parameter cs. Adjust all callers.
1792 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1793 (remove_described_reference): New function.
1794 (jfunc_rdesc_usable): Likewise.
1795 (try_make_edge_direct_simple_call): Decrement controlled use count,
1796 attempt to remove reference if it hits zero.
1797 (combine_controlled_uses_counters): New function.
1798 (propagate_controlled_uses): Likewise.
1799 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1800 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1801 (ipa_print_node_params): Print described use counter.
1802 (ipa_write_jump_function): Adjust to jump function type changes.
1803 (ipa_read_jump_function): New parameter CS, pass it to
1804 ipa_set_jf_constant. Adjust caller.
1805 (ipa_write_node_info): Stream controlled use count
1806 (ipa_read_node_info): Likewise.
1807 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1809 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1810 count. Remove cloning-added reference if it reaches zero.
1811 * ipa-ref.c (ipa_find_reference): New function.
1813 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1815 * config/i386/i386.c (processor_target_table): Modified default
1816 alignment values for AMD BD and BT architectures.
1818 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
1820 * tree-vect-generic.c (uniform_vector_p): Move ...
1821 * tree.c (uniform_vector_p): ... here.
1822 * tree.h (uniform_vector_p): Declare it.
1823 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1826 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1828 PR tree-optimization/57230
1829 * tree-ssa-strlen.c (handle_char_store): Record length for
1830 array store from STRING_CST.
1832 PR tree-optimization/57230
1833 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1836 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1838 * config/epiphany/epiphany.c (epiphany_init): Check size of
1839 NUM_MODES_FOR_MODE_SWITCHING.
1840 (epiphany_expand_prologue):
1841 Remove CONFIG_REGNUM initial value handling code.
1842 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1843 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1844 (emit_set_fp_mode, epiphany_mode_after): Likewise.
1845 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1846 Don't return 1 for FP_MODE_NONE.
1847 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1848 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1849 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1850 * config/epiphany/epiphany.md (save_config): New pattern.
1852 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
1854 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1856 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
1858 * config/i386/i386.md (memory): Handle sseishft1.
1859 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1860 (*vec_extractv2di_1): Ditto.
1862 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1864 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1867 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1869 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1870 Add mthumb/march=armv7-a multilib.
1871 Add mthumb/march=armv7-r multilib.
1872 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1874 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1876 * config/v850/t-rtems: Add more multilibs.
1878 2013-05-10 Richard Biener <rguenther@suse.de>
1880 PR tree-optimization/57214
1881 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1882 not propagate from SSA names that occur in abnormal PHI nodes.
1884 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1886 * stor-layout.c (element_precision): New function.
1887 * machmode.h (element_precision): Declare it.
1888 * tree.c (build_minus_one_cst): New function.
1889 (element_precision): Likewise.
1890 * tree.h (build_minus_one_cst): Declare new function.
1891 (element_precision): Likewise.
1892 * fold-const.c (operand_equal_p): Use element_precision.
1893 (fold_binary_loc): Handle vector types.
1894 * convert.c (convert_to_integer): Use element_precision.
1895 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1898 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1900 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1901 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1902 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1903 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1904 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1905 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1906 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1907 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1908 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1909 (Uuw8): New constraints.
1910 (Usb4): Move into alphabetical order.
1911 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1912 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1913 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1914 previously unnamed patterns.
1915 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1916 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1917 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1918 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1919 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1920 of specific lengths.
1922 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1924 * config/i386/i386.md (rotateinv): New code attr.
1925 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1926 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1927 roll $31, %eax, etc.
1929 PR tree-optimization/45216
1930 PR tree-optimization/57157
1931 * tree-ssa-forwprop.c (simplify_rotate): New function.
1932 (ssa_forward_propagate_and_combine): Call it.
1934 2013-05-10 Richard Biener <rguenther@suse.de>
1936 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1937 disable peeling when we version for aliasing.
1938 (vector_alignment_reachable_p): Honor explicit user alignment.
1939 (vect_supportable_dr_alignment): Likewise.
1940 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1941 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1942 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1943 then peeling to arrange for the cost-model check to come first.
1945 2013-05-10 Alan Modra <amodra@gmail.com>
1947 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1948 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1949 * configure: Regenerate.
1951 2013-05-10 Alan Modra <amodra@gmail.com>
1954 * varasm.c (default_elf_select_section): Move !DECL_P check..
1955 (get_named_section): ..to here before calling get_section_name.
1957 (default_section_type_flags): Add DECL_P check.
1958 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1959 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1961 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1963 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1964 When using gen_stack_adjust_str with a register offset, add a
1965 REG_FRAME_RELATED_EXPR note.
1967 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
1969 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1970 (*vec_extractv4si_zext_mem): Ditto.
1971 (*vec_extractv2di): Add 0->x and x->x alternatives.
1972 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1973 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1975 2013-05-09 Jason Merrill <jason@redhat.com>
1977 N3639 C++1y VLA support
1978 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1981 * tree.c (build_constructor_va): New.
1982 * tree.h: Declare it.
1984 2013-05-09 Martin Jambor <mjambor@suse.cz>
1987 * gimple-fold.c (canonicalize_constructor_val): Call
1988 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1990 2013-05-09 Jan Hubicka <jh@suse.cz>
1991 Richard Biener <rguenther@suse.de>
1994 * symtab.c (symtab_make_decl_local): Do not add private names.
1996 2013-05-09 Jan Hubicka <jh@suse.cz>
1999 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2000 (unlink_from_assembler_name_hash): Likewise.
2001 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2002 symtab_unregister_node, symtab_initialize_asm_name_hash,
2003 change_decl_assembler_name): Update.
2005 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2007 * config/aarch64/aarch64.md: New movtf split.
2008 (*movtf_aarch64): Update.
2009 (aarch64_movdi_tilow): Handle TF modes and rename to
2010 aarch64_movdi_<mode>low.
2011 (aarch64_movdi_tihigh): Handle TF modes and rename to
2012 aarch64_movdi_<mode>high
2013 (aarch64_movtihigh_di): Handle TF modes and rename to
2014 aarch64_mov<mode>high_di
2015 (aarch64_movtilow_di): Handle TF modes and rename to
2016 aarch64_mov<mode>low_di
2017 (aarch64_movtilow_tilow): Remove spurious whitespace.
2018 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2020 (aarch64_print_operand): Update.
2022 2013-05-09 Alan Modra <amodra@gmail.com>
2024 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2026 * configure: Regenerate.
2028 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2030 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2031 splitter preparation statements.
2032 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2033 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2036 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2038 * gimple-ssa-strength-reduction.c (count_candidates): Change
2039 return value to int.
2040 (analyze_candidates_and_replace): Change type of length to int.
2042 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2044 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2045 (*vec_extract<mode>): Use VI12_128 mode iterator.
2046 (*vec_extract<mode>_mem): Ditto.
2047 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2050 2013-05-08 Diego Novillo <dnovillo@google.com>
2055 2012-08-17 Diego Novillo <dnovillo@google.com>
2058 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2059 * config.in: Regenerate.
2060 * configure: Regenerate.
2061 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2063 2013-05-08 Jan Hubicka <jh@suse.cz>
2066 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2067 * cgraph.h (symtab_node_base): Add unique_name.
2068 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2069 input_overwrite_node, input_varpool_node): Stream unique_name.
2070 * cgraphclones.c (cgraph_create_virtual_clone,
2071 cgraph_function_versioning): Set unique_name.
2072 * ipa.c (function_and_variable_visibility): Set unique_name.
2074 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2076 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2077 (alloc_cand_and_find_basis): Restrict conditional candidate
2078 processing to CAND_MULTs.
2080 2013-05-08 Jan Hubicka <jh@suse.cz>
2083 lto-symtab.c (lto_symtab_symbol_p): New function.
2084 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2085 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2086 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2087 Skip static symbols.
2089 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2091 PR tree-optimization/57200
2092 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2093 Only call inform if the preceding warning_at returns true.
2095 2013-05-07 Han Shen <shenhan@google.com>
2097 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2098 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2099 * common.opt (fstack-protector-strong): New option.
2100 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2101 * doc/invoke.texi (Optimization Options): Document
2102 "-fstack-protector-strong".
2103 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2105 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2107 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2109 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2111 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2112 it is not lhs of the insn.
2113 (setup_reg_equiv): Remove insn having equiv memory which it is not
2115 * lra-constraints.c (process_address): Try to improve generation
2116 code for address base + disp.
2117 (lra_constraints): Make correct the code for checking insn setting
2118 up backward equivalence. Remove insn only if it is in the init
2120 * lra-eliminations.c (update_reg_eliminate): Change return value.
2121 (lra_eliminate): Use the result.
2123 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2125 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2126 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2127 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2128 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2129 register target operands.
2130 (*vec_extractv8hi_sse2): New pattern.
2131 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2132 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2133 (*vec_extract<mode>_mem): New insn and split pattern.
2135 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2137 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2138 (TARGET_ASAN_SHADOW_OFFSET): Define.
2139 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2140 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2142 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2144 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2145 (incr_vec_index): Return -1 if increment not found.
2146 (create_add_on_incoming_edge): Assert if increment not found.
2147 (record_increment): Limit number of increments recorded.
2148 (all_phi_incrs_profitable): Return false if an increment not found.
2149 (replace_profitable_candidates): Don't process increments that were
2151 (analyze_candidates_and_replace): Limit size of incr_vec.
2153 2013-05-07 Richard Biener <rguenther@suse.de>
2155 * calls.c (special_function_p): setjmp-like functions are leaf.
2156 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2157 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2159 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2161 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2162 (aarch64_simd_mov<mode>): New expander.
2163 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2164 (aarch64_simd_mov_to_<mode>high): Likewise.
2165 (aarch64_simd_mov_from_<mode>low): Likewise.
2166 (aarch64_simd_mov_from_<mode>high): Likewise.
2167 (aarch64_dup_lane<mode>): Update.
2168 (aarch64_dup_lanedi): New instruction pattern.
2169 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2170 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2172 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2174 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2175 (replace_mult_candidate): Remove unnecessary argument; remove
2176 unnecessary parameter from call to introduce_cast_before_cand.
2177 (replace_unconditional_candidate): Remove unnecessary parameter
2178 from call to replace_mult_candidate.
2179 (replace_conditional_candidate): Likewise.
2180 (insert_initializers): Use make_temp_ssa_name.
2181 (introduce_cast_before_cand): Remove unnecessary argument; use
2183 (replace_one_candidate): Remove unnecessary argument; remove
2184 unnecessary parameter from calls to introduce_cast_before_cand.
2185 (replace_profitable_candidates): Remove unnecessary parameters
2186 from calls to replace_one_candidate.
2188 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2190 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2191 phi def as possibly hiding a basis for a CAND_ADD whose operands
2192 have been commuted in the analysis.
2193 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2195 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2197 * config/aarch64/aarch64.md
2198 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2199 shift value between 0-4.
2201 2013-05-07 Richard Biener <rguenther@suse.de>
2203 * double-int.h (rshift): New overload.
2204 * double-int.c (rshift): New function.
2205 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2206 (create_reference_ops_from_ref): Remove.
2207 (vn_reference_insert): Use shared ops for constructing the
2208 reference and copy it.
2210 2013-05-07 Richard Biener <rguenther@suse.de>
2213 * tree-eh.c (sink_clobbers): Properly propagate
2214 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2216 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2218 PR tree-optimization/57149
2219 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2220 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2221 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2222 uninit_undefined_value_p instead of ssa_undefined_value_p.
2225 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2226 for modifier == EXPAND_INITIALIZER.
2228 2013-05-07 Anton Blanchard <anton@samba.org>
2230 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2231 for powerpc64 little endian.
2232 * configure: Regenerate.
2234 2013-05-06 Graham Stott <grahams@btinternet.com>
2236 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2237 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2238 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2239 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2241 2013-05-06 Graham Stott <grahams@btinternet.com>
2243 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2244 codes which allow non-lvalues.
2246 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2248 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2249 components are all 1s.
2250 (integer_minus_onep): New function.
2251 * tree.h (integer_minus_onep): Declare it.
2252 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2253 integer_minus_onep instead of integer_all_onesp.
2255 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2258 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2259 variations of these patterns.
2261 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2263 * config/i386/i386.md (isa): Add x64_sse4 member.
2264 (enabled): Handle x64_sse4.
2265 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2266 instruction for 64bit SSE4_1 targets. Update insn attributes.
2267 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2268 instruction for SSE4_1 targets. Update insn attributes.
2269 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2270 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2271 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2273 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2274 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2275 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2277 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2280 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2282 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2284 * final.c (do_assembler_dialects): Don't handle curly braces and
2285 vertical bar escaped by % as dialect delimiters.
2286 (output_asm_insn): Print curly braces and vertical bar if escaped
2287 by % and ASSEMBLER_DIALECT defined.
2288 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2289 * doc/tm.texi: Regenerated.
2291 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2293 * config/mips/mips.c: Include tree-pass.h.
2294 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2295 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2296 (pass_mips_machine_reorg2): New machine specific pass.
2297 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2298 (mips_option_override): Register the new pass.
2299 * rtl.h (cleanup_barriers): Remove prototype.
2300 (dbr_schedule): Likewise.
2301 * jump.c (cleanup_barriers): Make static.
2302 * reorg.c (dbr_schedule): Likewise.
2304 2013-05-06 Richard Biener <rguenther@suse.de>
2306 PR tree-optimization/57185
2307 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2310 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2313 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2314 between "first_arg" and "insn", not "last" and "insn".
2316 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2318 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2319 (find_candidates_in_block): Re-enable slsr_process_phi.
2320 (create_phi_basis): Fix double counting of candidate adjustment.
2322 2013-05-06 Richard Biener <rguenther@suse.de>
2325 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2326 the edge is also fallthru, preserve it and just clear the
2328 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2329 also complex, preserve that and just clear the fallthru flag.
2330 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2331 update virtual operands.
2333 2013-05-06 Alan Modra <amodra@gmail.com>
2335 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2336 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2337 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2338 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2339 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2340 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2342 2013-05-06 Alan Modra <amodra@gmail.com>
2344 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2345 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2346 (DEFAULT_ASM_ENDIAN): Define.
2347 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2348 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2349 Update -K PIC clause from sysv4.h.
2350 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2351 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2353 2013-05-06 Alan Modra <amodra@gmail.com>
2355 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2356 twice for little-endian.
2357 (ashrdi3_no_power, ashrdi3): Support little-endian.
2359 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2362 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2363 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2365 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2366 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2367 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2370 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2371 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2373 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2374 * config/pa/pa.opt: Make mbig-switch a no-op.
2375 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2376 (CASE_VECTOR_MODE): Always return SImode.
2377 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2378 for the !TARGET_BIG_SWITCH case.
2379 * config/pa/pa-linux.h: Likewise.
2380 * config/pa/pa-openbsd.h: Likewise.
2381 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2382 * config/pa/pa.md (short_jump): Remove define_insn.
2383 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2384 (casesi0): Remove define_insn.
2385 (type): Remove btable_branch.
2386 (pa_combine_type): Likewise.
2387 (in_nullified_branch_delay): Likewise.
2388 (in_call_delay): Likewise.
2389 (define_delay): Likewise.
2390 (define_insn_reservation "Z3"): Likewise.
2391 (define_insn_reservation "Z4"): Likewise.
2392 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2393 (pa_adjust_insn_length): Remove adjustment for btable branches.
2394 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2397 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
2399 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2400 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2401 Add m->r,x alternatives.
2402 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2403 splitters using SWI48x mode iterator.
2404 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2405 TARGET_64BIT. Add m->x alternative.
2406 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2407 Add o->x alternative. Enable for TARGET_SSE.
2408 (sse_storeq): Remove expander.
2409 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2410 with memory input operand.
2411 (*vec_extractv2di_1 splitter): New.
2412 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2413 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2415 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2417 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2418 (INT_LOWPART): Delete.
2419 (extract_MB): Adjust.
2420 (extract_ME): Adjust.
2421 (print_operand): Adjust.
2423 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2425 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2426 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2427 (reg_or_logical_cint_operand, easy_fp_constant,
2428 logical_const_operand): Delete "CONST_DOUBLE" case.
2429 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2430 "HOST_BITS_PER_WIDE_INT == 64" test.
2431 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
2432 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2433 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2434 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2436 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2437 CONST_DOUBLE DImode/VOIDmode case.
2438 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2439 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2440 CONST_DOUBLE VOIDmode case.
2441 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2442 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2443 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2444 Delete CONST_DOUBLE case.
2445 (splitters for mov FMOVE64 const_double): Delete
2446 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2447 "HOST_BITS_PER_WIDE_INT >= 64" test.
2448 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2450 (mov DI const_double): Delete.
2452 2013-05-04 Jakub Jelinek <jakub@redhat.com>
2454 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2455 on op shows all bits zero in mode of a lowpart subreg, return zero.
2457 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2460 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2461 to save TFmode registers and DImode to save TImode registers for
2462 caller save operations.
2463 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2464 mark being partially clobbered since they only use the first
2467 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2468 and TDmode only use the upper 64-bits of each VSX register.
2470 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2472 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2473 (find_candidates_in_block): Disable slsr_process_phi.
2475 2013-05-03 Guozhi Wei <carrot@google.com>
2477 * coverage.c (coverage_obj_init): Move the construction of gcov
2479 (build_init_ctor): ... here.
2481 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2483 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2484 (slsr_cand_d): Redefine def_phi.
2485 (stride_status, phi_adjust_status, count_phis_status): New enums.
2486 (find_phi_def): New.
2487 (find_basis_for_base_expr): New.
2488 (find_basis_for_candidate): Handle hidden bases.
2489 (alloc_cand_and_find_basis): Handle phi candidates.
2490 (slsr_process_phi): New.
2491 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2492 (create_mul_imm_cand): Likewise.
2493 (create_add_ssa_cand): Exclude phi base candidates.
2494 (create_add_imm_cand): Likewise.
2495 (slsr_process_cast): Likewise.
2496 (slsr_process_copy): Likewise.
2497 (find_candidates_in_block): Handle phi candidates.
2498 (dump_candidate): Likewise.
2499 (unconditional_cands): Delete.
2500 (unconditional_cands_with_known_stride_p): Delete.
2501 (phi_dependent_cand_p): New.
2502 (cand_increment): Handle phi-dependent candidates.
2503 (replace_dependent): Delete.
2504 (replace_mult_candidate): New.
2505 (replace_unconditional_candidate): New.
2506 (incr_vec_index): Move to avoid forward reference.
2507 (create_add_on_incoming_edge): New.
2508 (create_phi_basis): New.
2509 (replace_dependents): Delete.
2510 (replace_conditional_candidate): New.
2511 (phi_add_costs): New.
2512 (replace_uncond_cands_and_profitable_phis): New.
2513 (record_increment): Handle phi adjustments.
2514 (record_phi_increments): New.
2515 (record_increments): Handle phi adjustments.
2516 (phi_incr_cost): New.
2517 (lowest_cost_path): Handle phis.
2518 (total_savings): Likewise.
2519 (analyze_increments): Likewise.
2520 (ncd_with_phi): New.
2521 (ncd_of_cand_and_phis): New.
2522 (nearest_common_dominator_for_cands): Handle phi increments.
2523 (all_phi_incrs_profitable): New.
2524 (replace_profitable_candidates): Handle phi-dependent candidates.
2525 (analyze_candidates_and_replace): Likewise.
2527 2013-05-03 Teresa Johnson <tejohnson@google.com>
2530 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2531 do not exceed REG_BR_PROB_BASE.
2533 2013-05-03 Jeff Law <law@redhat.com>
2535 PR tree-optimization/57144
2536 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2537 operand of the condition will bit into the new type when eliminating
2538 a cast feeding a condition.
2540 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2542 PR rtl-optimization/57130
2543 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2544 of COMPARE as in_code to the recursive call if needed.
2546 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
2548 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2549 (enabled): Handle new members.
2550 * config/i386/sse.md (*vec_concatv2si): Merge from
2551 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2552 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2554 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2556 PR tree-optimization/57027
2557 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2558 for fnms opportunity, check we got the prerequisite kind
2559 of tree / gimple before using accessor functions.
2561 2013-05-03 Richard Biener <rguenther@suse.de>
2563 * double-int.h (lshift): New overload without precision
2565 (operator *=, operator +=, operator -=): Move ...
2566 * double-int.c (operator *=, operator +=, operator -=): ... here
2567 and implement more efficiently.
2568 (mul_double_with_sign): Remove.
2569 (lshift_double): Adjust to take unsinged shift argument, push
2570 dispatching code to callers.
2571 (mul_double_wide_with_sign): Add early out for callers that
2572 are not interested in high parts or overflow.
2573 (lshift): New function.
2574 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2576 (lrotate, rrotate): Use logical shifts.
2577 * expr.c (get_inner_reference): Use lshift.
2578 * fixed-value.c (do_fixed_divide): Likewise.
2579 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2580 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2581 (indirect_refs_may_alias_p): Likewise.
2582 (stmt_kills_ref_p_1): Likewise.
2584 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2586 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2588 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2590 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2591 scalar form of FABD instruction.
2593 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2595 * lra-constraints.c (process_alt_operands): Add checking alt
2596 number to choose the best alternative.
2598 2013-05-02 Richard Biener <rguenther@suse.de>
2600 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2601 bitmap and its handling.
2602 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2604 2013-05-02 Richard Biener <rguenther@suse.de>
2607 * tree-inline.c (copy_loops): Properly handle removed loops.
2608 (copy_cfg_body): Mark destination loops for fixup if source
2611 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2614 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2615 generating simple_return for naked functions.
2617 2013-05-02 Martin Jambor <mjambor@suse.cz>
2620 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2621 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2623 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2624 ipa_agg_replacement_value structures.
2625 (known_aggs_to_agg_replacement_list): Likewise.
2626 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2627 (read_agg_replacement_chain): Likewise.
2628 (ipcp_transform_function): Also check that by_ref flags match.
2630 2013-05-02 Richard Biener <rguenther@suse.de>
2632 * graphds.h (struct graph): Add obstack member.
2633 * graphds.c (new_graph): Initialize obstack and allocate
2635 (add_edge): Allocate edge from the obstack.
2636 (free_graph): Free the obstack instead of all edges and vertices.
2638 2013-05-02 Teresa Johnson <tejohnson@google.com>
2640 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2642 * cfg.c (update_bb_profile_for_threading): Ditto.
2643 * tree-inline.c (copy_bb): Ditto.
2644 (copy_edges_for_bb): Ditto.
2645 (initialize_cfun): Ditto.
2646 (copy_cfg_body): Ditto.
2647 (expand_call_inline): Ditto.
2648 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2649 (estimate_node_size_and_time): Ditto.
2650 (inline_merge_summary): Ditto.
2651 * cgraphclones.c (cgraph_clone_edge): Ditto.
2652 (cgraph_clone_node): Ditto.
2653 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2654 (compute_trg_info): Ditto.
2656 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2658 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2659 S reg when fp attribute set.
2660 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2662 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2664 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2666 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2667 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2668 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2670 2013-05-02 Richard Biener <rguenther@suse.de>
2672 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2673 (struct instantiate_cache_entry): New type.
2674 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2675 (struct instantiate_cache_type): New type.
2676 (set_instantiated_value, get_instantiated_value): Remove.
2677 (get_instantiated_value_entry): New function.
2678 (instantiate_scev_name): Use the new cache and adjust.
2679 (instantiate_scev_poly): Adjust.
2680 (instantiate_scev_binary): Likewise.
2681 (instantiate_array_ref): Likewise.
2682 (instantiate_scev_convert): Likewise.
2683 (instantiate_scev_not): Likewise.
2684 (instantiate_scev_3): Likewise.
2685 (instantiate_scev_2): Likewise.
2686 (instantiate_scev_r): Likewise.
2687 (instantiate_scev): Likewise.
2688 (resolve_mixers): Likewise.
2690 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2693 * lra-constraints.c (best_small_class_operands_num): Remove.
2694 (process_alt_operands): Remove small_class_operands_num. Take
2695 small classes operands into losers and only if the operand is not
2696 matched. Modify debugging output.
2697 (curr_insn_transform): Remove best_small_class_operands_num.
2700 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2702 * config/aarch64/aarch64-builtins.c
2703 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2704 * config/aarch64/aarch64-simd-builtins.def
2705 (reduc_splus_): Add new modes.
2706 (reduc_uplus_): New.
2707 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2708 (reduc_uplus_v4sf): Likewise.
2709 (reduc_splus_v4sf): Likewise.
2710 (aarch64_addv<mode>): Likewise.
2711 (reduc_uplus_<mode>): Likewise.
2712 (reduc_splus_<mode>): Likewise.
2713 (aarch64_addvv2di): Likewise.
2714 (reduc_uplus_v2di): Likewise.
2715 (reduc_splus_v2di): Likewise.
2716 (aarch64_addvv2si): Likewise.
2717 (reduc_uplus_v2si): Likewise.
2718 (reduc_splus_v2si): Likewise.
2719 (reduc_<sur>plus_<mode>): New.
2720 (reduc_<sur>plus_v2di): Likewise.
2721 (reduc_<sur>plus_v2si): Likewise.
2722 (reduc_<sur>plus_v4sf): Likewise.
2723 (aarch64_addpv4sf): Likewise.
2724 * config/aarch64/arm_neon.h
2725 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2726 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2727 add UNSPEC_SADDV, UNSPEC_UADDV.
2729 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2731 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2733 * config/aarch64/arm_neon.h
2734 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2736 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2738 * config/aarch64/aarch64-builtins
2739 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2741 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2743 * config/aarch64/aarch64-simd-builtins.def
2745 (reduc_smin_): Likewise.
2746 (reduc_umax_): Likewise.
2747 (reduc_umin_): Likewise.
2748 (reduc_smax_nan_): Likewise.
2749 (reduc_smin_nan_): Likewise.
2752 (smax): Update for V2SF, V4SF and V2DF modes.
2755 (smin_nan): Likewise.
2756 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2757 (<su><maxmin><mode>3): ...This, refactor.
2758 (s<maxmin><mode>3): New.
2759 (<maxmin_uns><mode>3): Likewise.
2760 (reduc_<maxmin_uns>_<mode>): Refactor.
2761 (reduc_<maxmin_uns>_v4sf): Likewise.
2762 (reduc_<maxmin_uns>_v2si): Likewise.
2763 (aarch64_<fmaxmin><mode>: Remove.
2764 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2766 (vmin<q>_f<32,64>): Likewise.
2767 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2769 (su): Add mappings for smax, smin, umax, umin.
2771 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2772 (FMAXMIN): Rename as...
2773 (FMAXMIN_UNS): ...This.
2775 (fmaxminv): Likewise.
2776 (fmaxmin): Likewise.
2778 (maxmin_uns_op): Likewise.
2780 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2782 * config/aarch64/arm_neon.h
2783 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2784 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2785 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2787 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2789 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2790 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2792 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2794 * config/aarch64/aarch64-simd.md
2795 (vcond<mode>_internal): Handle special cases for constant masks.
2796 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2797 (vcondu<mode><mode>): Likewise.
2798 (vcond<v_cmp_result><mode>): New.
2800 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2802 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2803 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2804 * config/aarch64/aarch64-simd-builtins.def
2805 (cmeq): Update to BUILTIN_VALLDI.
2810 * config/aarch64/arm_neon.h
2811 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2812 to builtins or C as appropriate.
2814 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2816 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2818 (cmhi): Rename to...
2820 * config/aarch64/aarch64-simd.md
2821 (simd_mode): Add SF.
2822 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2823 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2824 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2825 (cstore<mode>_neg): ...This.
2826 * config/aarch64/iterators.md
2828 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2830 (UCOMPARISONS): Likewise.
2831 (optab): Add missing comparisons.
2839 (V_cmp_result): Add DF, SF modes.
2840 (v_cmp_result): Likewise.
2843 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2845 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2847 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2848 define_insn to define_insn_and_split.
2849 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2850 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2851 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2852 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2853 (thumb2_negscc): Likewise.
2855 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2857 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2859 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2861 * config/arm/thumb2.md: Remove trailing whitespaces.
2863 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2865 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2866 Use gen_int_mode rather than GEN_INT.
2868 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2870 * value-prof.c (stream_in_histogram_value): Remove the strayed
2873 2013-04-30 Richard Biener <rguenther@suse.de>
2876 * cfghooks.c (split_edge): Properly check for the loop latch edge.
2878 2013-04-30 Richard Biener <rguenther@suse.de>
2881 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2883 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
2885 PR rtl-optimization/56957
2886 PR rtl-optimization/57105
2887 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2888 variable. Use just INSN_UID for determining whether an insn
2889 should be only disconnected from the insn stream.
2890 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2892 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2894 PR tree-optimization/57104
2895 * tsan.c (instrument_expr): Don't instrument accesses to
2896 DECL_HARD_REGISTER VAR_DECLs.
2898 2013-04-30 Richard Biener <rguenther@suse.de>
2900 * function.h (loops_for_fn): New inline function.
2901 (set_loops_for_fn): Likewise.
2902 * cfgloop.h (place_new_loop): Add struct function parameter.
2903 (get_loop): Likewise.
2904 (get_loops): Likewise.
2905 (number_of_loops): Likewise.
2907 (fel_init): Likewise.
2908 * cfg.c (get_loop_copy): Adjust.
2909 * cfgloop.c (flow_loops_dump): Likewise.
2910 (record_loop_exits): Likewise.
2911 (verify_loop_structure): Likewise.
2912 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2913 (estimate_reg_pressure_cost): Likewise.
2914 (mark_loop_exit_edges): Likewise.
2915 * cfgloopmanip.c (place_new_loop): Likewise.
2916 (add_loop): Likewise.
2917 (duplicate_loop): Likewise.
2918 * graph.c (draw_cfg_nodes): Likewise.
2919 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2920 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2921 (extract_affine_chrec): Likewise.
2922 (build_scop_iteration_domain): Likewise.
2923 * graphite.c (graphite_initialize): Likewise.
2924 * ira-build.c (create_loop_tree_nodes): Likewise.
2925 (more_one_region_p): Likewise.
2926 (rebuild_regno_allocno_maps): Likewise.
2927 (mark_loops_for_removal): Likewise.
2928 (mark_all_loops_for_removal): Likewise.
2929 (remove_unnecessary_regions): Likewise.
2930 (ira_build): Likewise.
2931 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2932 * loop-init.c (fix_loop_structure): Likewise.
2933 (gate_rtl_move_loop_invariants): Likewise.
2934 (gate_rtl_unswitch): Likewise.
2935 (gate_rtl_unroll_and_peel_loops): Likewise.
2936 (rtl_doloop): Likewise.
2937 * lto-streamer-in.c (input_cfg): Likewise.
2938 * lto-streamer-out.c (output_cfg): Likewise.
2939 * modulo-sched.c (sms_schedule): Likewise.
2940 * predict.c (tree_estimate_probability): Likewise.
2941 (tree_estimate_probability_driver): Likewise.
2942 (estimate_loops): Likewise.
2943 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2944 (move_sese_region_to_fn): Likewise.
2945 (debug_loop_num): Likewise.
2946 * tree-chrec.c (chrec_evaluate): Likewise.
2947 (hide_evolution_in_other_loops_than_loop): Likewise.
2948 (chrec_component_in_loop_num): Likewise.
2949 (reset_evolution_in_loop): Likewise.
2950 (evolution_function_is_invariant_rec_p): Likewise.
2951 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2952 * tree-inline.c (copy_loops): Likewise.
2953 (copy_cfg_body): Likewise.
2954 (tree_function_versioning): Likewise.
2955 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2956 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2958 (add_to_evolution_1): Likewise.
2959 (scev_const_prop): Likewise.
2960 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2961 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2962 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2963 (tree_ssa_lim_initialize): Likewise.
2964 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2965 (verify_loop_closed_ssa): Likewise.
2966 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2967 (tree_ssa_loop_im): Likewise.
2968 (tree_ssa_loop_unswitch): Likewise.
2969 (tree_vectorize): Likewise.
2970 (check_data_deps): Likewise.
2971 (tree_ssa_loop_ivcanon): Likewise.
2972 (tree_ssa_loop_bounds): Likewise.
2973 (tree_complete_unroll): Likewise.
2974 (tree_complete_unroll_inner): Likewise.
2975 (tree_parallelize_loops): Likewise.
2976 (tree_ssa_loop_prefetch): Likewise.
2977 (tree_ssa_loop_ivopts): Likewise.
2978 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2979 * tree-vectorizer.c (vectorize_loops): Likewise.
2981 2013-04-29 Mike Frysinger <vapier@gentoo.org>
2983 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2984 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2985 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2986 with EABI_LINK_SPEC.
2988 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2991 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2994 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2997 * lra-constraints.c (process_alt_operands): Discourage a bit more
2998 using memory for pseudos. Print cost dump for alternatives.
2999 Modify cost values for conflicts with early clobbers.
3000 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3002 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3005 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3007 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3009 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3011 (movdi_aarch64): Support LDR/STR from/to D register.
3013 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3015 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3016 or higher by default.
3018 2013-04-29 Richard Biener <rguenther@suse.de>
3021 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3022 even if not adding abnormal edges for calls that can make
3025 2013-04-29 Richard Biener <rguenther@suse.de>
3028 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3030 (move_stmt_r): Remove redundant checking.
3032 2013-04-29 Teresa Johnson <tejohnson@google.com>
3035 * basic-block.h (apply_scale): New function.
3036 (apply_probability): Use apply_scale.
3037 * gimple-streamer-in.c (input_bb): Ditto.
3038 * lto-streamer-in.c (input_cfg): Ditto.
3039 * lto-cgraph.c (merge_profile_summaries): Ditto.
3040 * tree-optimize.c (execute_fixup_cfg): Ditto.
3041 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3042 (copy_edges_for_bb): Ditto.
3043 (copy_cfg_body): Ditto.
3045 2013-04-29 Tom de Vries <tom@codesourcery.com>
3047 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3048 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3049 (tail_merge_optimize): Handle current_loops == NULL.
3051 2013-04-26 Jeff Law <law@redhat.com>
3053 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3054 (simplify_cond_using_ranges): Generalize code to simplify
3055 COND_EXPRs where one argument is a constant and the other
3056 is an SSA_NAME created by an integral type conversion.
3058 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3060 * config/arm/arm.md (store_minmaxsi): Use only when
3061 optimize_insn_for_size_p.
3063 2013-04-29 Christian Bruel <christian.bruel@st.com>
3066 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3068 2013-04-29 Richard Biener <rguenther@suse.de>
3071 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3072 loop tree make sure to schedule a fixup for the child as well.
3073 (expand_omp_for_generic): Properly add loops.
3074 (expand_omp_for_static_nochunk): Likewise.
3075 (expand_omp_for_static_chunk): Likewise.
3076 (expand_omp_for): For the degenerate case fixup loops.
3077 (expand_omp_sections): Fix default bb placement in loops.
3078 (expand_omp_atomic_pipeline): Properly add loops.
3080 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3082 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3084 2013-04-29 Tom de Vries <tom@codesourcery.com>
3086 * tree-ssa-tail-merge.c: Update header comment.
3088 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3090 * config/aarch64/arm_neon.h
3091 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3092 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3093 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3094 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3095 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3096 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3097 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3098 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3100 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3102 * config/aarch64/aarch64-simd.md
3103 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3104 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3105 fix_trunc, fixuns_trunc.
3106 (ftrunc<VDQF:mode>2): New.
3107 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3108 (fix_trunc_optab): New.
3110 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3112 * config/aarch64/aarch64-builtins.c
3113 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3114 iceilf, lround, iroundf.
3116 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3119 * config/i386/i386.h (enum ix86_tune_indices)
3120 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3121 New, split from X86_TUNE_INTER_UNIT_MOVES.
3122 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3123 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3124 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3125 (TARGET_INTER_UNIT_MOVES): Remove.
3126 * config/i386/i386.c (initial_ix86_tune_features): Update.
3127 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3128 (ix86_expand_convert_uns_didf_sse): Use
3129 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3130 (ix86_expand_vector_init_one_nonzero): Ditto.
3131 (ix86_expand_vector_init_interleave): Ditto.
3132 (inline_secondary_memory_needed): Return true for moves from SSE class
3133 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3134 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3135 * config/i386/constraints.md (Yi, Ym): Depend on
3136 TARGET_INTER_UNIT_MOVES_TO_VEC.
3137 (Yj, Yn): New constraints.
3138 * config/i386/i386.md (*movdi_internal): Change constraints of
3139 operand 1 from Yi to Yj and from Ym to Yn.
3140 (*movsi_internal): Ditto.
3141 (*movdf_internal): Ditto.
3142 (*movsf_internal): Ditto.
3143 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3144 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3145 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3146 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3147 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3148 * config/i386/sse.md (movdi_to_sse): Ditto.
3149 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3150 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3151 TARGET_INTER_UNIT_MOVES.
3152 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3153 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3154 instead of TARGET_INTER_UNIT_MOVES.
3155 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3156 operand 1 from Yi to Yj and from Ym to Yn.
3158 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3160 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3161 (float_truncate_hi_): Likewise.
3162 (float_extend_lo_): Likewise.
3163 (float_truncate_lo_): Likewise.
3164 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3165 (aarch64_float_extend_lo_v2df): Likewise.
3166 (vec_unpacks_hi_v4sf): Likewise.
3167 (aarch64_float_truncate_lo_v2sf): Likewise.
3168 (aarch64_float_truncate_hi_v4sf): Likewise.
3169 (vec_pack_trunc_v2df): Likewise.
3170 (vec_pack_trunc_df): Likewise.
3172 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3174 * config/aarch64/aarch64-builtins.c
3175 (aarch64_fold_builtin): Fold float conversions.
3176 * config/aarch64/aarch64-simd-builtins.def
3177 (floatv2si, floatv4si, floatv2di): New.
3178 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3179 * config/aarch64/aarch64-simd.md
3180 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3181 * config/aarch64/iterators.md (FLOATUORS): New.
3182 (optab): Add float, floatuns.
3183 (su_optab): Likewise.
3185 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3187 * config/aarch64/aarch64-builtins.c
3188 (aarch64_builtin_vectorized_function): Use new names for
3190 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3191 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3192 (fcvtzu): Split as...
3193 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3194 (fcvtas): Split as...
3195 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3196 (fcvtau): Split as...
3197 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3198 (fcvtps): Split as...
3199 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3200 (fcvtpu): Split as...
3201 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3202 (fcvtms): Split as...
3203 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3204 (fcvtmu): Split as...
3205 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3206 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3207 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3208 (lfrintnusf, lfrintnudf): Likewise.
3209 * config/aarch64/aarch64-simd.md
3210 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3212 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3213 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3214 (fcvt_pattern): Likewise.
3216 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3218 * config/aarch64/aarch64-simd.md
3219 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3220 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3222 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3224 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3225 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3226 (vrnd<a,m,n,p>_f32): Implement using builtins.
3227 (vrnd<i,x><q>_f<32, 64>): New.
3229 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3231 * config/aarch64/aarch64-builtins.c
3232 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3233 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3234 (frintz): Rename to...
3236 (frintp): Rename to...
3238 (frintm): Rename to...
3240 (frinti): Rename to...
3241 (nearbyint): ...this.
3242 (frintx): Rename to...
3244 (frinta): Rename to...
3246 * config/aarch64/aarch64-simd.md
3247 (aarch64_frint<frint_suffix><mode>): Delete.
3248 (<frint_pattern><mode>2): Convert to insn.
3249 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3250 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3251 (frint_pattern): Likewise.
3252 (frint_suffix): Likewise.
3254 2013-04-29 Richard Biener <rguenther@suse.de>
3256 PR tree-optimization/57081
3257 * loop-init.c: Include tree-flow.h.
3258 (loop_optimizer_finalize): Free number of iteration estimates.
3259 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3261 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3263 PR tree-optimization/57083
3264 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3265 non-singleton shift count range, zero extend low_bound for uns case.
3267 * config/i386/predicates.md (general_vector_operand): New predicate.
3268 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3269 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3270 if they aren't nonimmediate operands. If their original values
3271 satisfy const_vector_equal_evenodd_p, don't shift them.
3272 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3273 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3274 if not nonimmediate_operand.
3275 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3276 instead of register_operand.
3277 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3279 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3281 * stor-layout.c (finalize_size_functions): Allocate a structure and
3282 reset cfun before dumping the functions.
3284 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3286 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3289 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3290 use xop_pmacsdqh if uns_p.
3291 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3292 the immediate rotate count.
3294 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3296 * rtl.h (struct rtx_def): Add comment for field jump.
3297 (LRA_SUBREG_P): New macro.
3298 * recog.c (register_operand): Check LRA_SUBREG_P.
3299 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3301 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3302 (lra_final_code_change): Skip subreg change for operators.
3303 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3304 if there are no operand changes.
3305 * lra-constraints.c (curr_insn_set): New.
3306 (match_reload): Set LRA_SUBREG_P.
3307 (emit_spill_move): Ditto.
3308 (check_and_process_move): Use curr_insn_set. Process only single
3309 set insns. Don't initialize sec_mem_p and change_p.
3310 (simplify_operand_subreg): Use LRA_SUBREG_P.
3311 (reg_in_class_p): New function.
3312 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3313 of #ifdef. Add code to remove cycling.
3314 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3315 non-null disp. Reload inner instead of disp when base and index
3316 are null. Try to put lo_sum into register.
3317 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3318 (check_and_process_move): Move code for move cost check to
3319 simple_move_p. Remove equiv_substitution.
3320 (simple_move_p): New function.
3321 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3322 curr_insn_set. Call check_and_process_move only for single set
3323 insns. Use the new function. Move call of check_and_process_move
3324 after operand equiv substitution and address process.
3326 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3329 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3330 with nonlocal goto receivers or returns twice calls, ignore
3331 unininitialized values from abnormal edges to nl goto receiver
3332 or returns twice call.
3334 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3336 PR tree-optimization/57051
3337 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3338 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3341 2013-04-26 Richard Biener <rguenther@suse.de>
3343 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3344 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3345 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3346 (fixup_loop_arrays_after_move): New function.
3347 (move_sese_region_to_fn): Properly outline the loop tree parts
3350 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
3352 * config/i386/i386.md (type, unit): Fix long lines.
3354 2013-04-26 Richard Biener <rguenther@suse.de>
3356 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3357 (lto-streamer-out.o): Likewise.
3358 * cfgloop.c (init_loops_structure): Export, add struct function
3359 argument and adjust.
3360 (flow_loops_find): Adjust.
3361 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3362 (init_loops_structure): Declare.
3363 * lto-streamer-in.c: Include cfgloop.h.
3364 (input_cfg): Input the loop tree.
3365 * lto-streamer-out.c: Include cfgloop.h.
3366 (output_cfg): Output the loop tree.
3367 (output_struct_function_base): Do not drop PROP_loops.
3369 2013-03-26 Richard Biener <rguenther@suse.de>
3371 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3372 (pass_build_cfg): Provide PROP_loops.
3373 (move_sese_region_to_fn): Remove loops that are outlined into fn
3375 * tree-inline.c: Include cfgloop.h.
3376 (initialize_cfun): Do not drop PROP_loops.
3377 (copy_loops): New function.
3378 (copy_cfg_body): Copy loop structure.
3379 (tree_function_versioning): Initialize destination loop tree.
3380 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3381 (pass_parallelize_loops): Do IL verification.
3382 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3383 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3384 the CFG make sure we fixup loops as well.
3385 * tree-ssa-tail-merge.c: Include cfgloop.h.
3386 (replace_block_by): When merging loop latches mark loops for fixup.
3387 * lto-streamer-out.c (output_struct_function_base): Drop
3389 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3390 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3391 * ipa-split.c: Include cfgloop.h.
3392 (split_function): Add the new return block to the loop tree root.
3393 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3394 whether we have removed the forwarder block.
3395 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3396 * cfgloop.h (place_new_loop): Declare.
3397 * cfgloopmanip.c (place_new_loop): Export.
3398 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3399 (tree-switch-conversion.o): Likewise.
3400 (tree-complex.o): Likewise.
3401 (tree-inline.o): Likewise.
3402 (tree-ssa-tailmerge.o): Likewise.
3403 (ipa-split.o): Likewise.
3404 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3405 (tree-ssa-copy.o): Likewise.
3406 * tree-switch-conversion.c: Include cfgloop.h
3407 (process_switch): If we emit a bit-test cascade, schedule loops
3409 * tree-complex.c: Include cfgloop.h.
3410 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3411 * asan.c: Include cfgloop.h.
3412 (create_cond_insert_point): Properly add new basic-blocks to
3413 loops, schedule loop fixup.
3414 * cfgloop.c (verify_loop_structure): Check that looks are not
3416 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3418 (expand_omp_for_generic): Likewise.
3419 (expand_omp_sections): Likewise.
3420 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3421 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3422 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3423 is initialized, not when loops are present.
3424 * tree-parloops.c (parallelize_loops): Remove checking here.
3425 * passes.c (init_optimization_passes): Schedule a copy-propagation
3426 pass before complete unrolling of inner loops.
3428 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3430 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3431 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3432 (colorize_init): Add argument to _WIN32 version.
3433 * toplev.c: Include diagnostic-color.h.
3434 (process_options): Default to -fdiagnostics-color=auto if
3435 GCC_COLORS env var is in the environment.
3436 * common.opt (fdiagnostics-color=): Add Var and Init.
3437 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3438 env var is in the environment, the default is auto rather than never.
3440 * diagnostic.h (file_name_as_prefix): Add context argument.
3441 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3442 the string as locus.
3443 * langhooks.c (lhd_print_error_function): Adjust caller.
3445 2013-04-25 Lawrence Crowl <crowl@google.com>
3447 * var-tracking.c (shared_hash_def::htab):
3448 Change type to hash_table. Update dependent calls and types.
3450 2013-04-25 Lawrence Crowl <crowl@google.com>
3452 * Makefile.in: Update as needed below.
3454 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3455 Move declaration to after the type's method definitons.
3457 * attribs.c (htab_t scoped_attributes::attribute_hash):
3458 Change type to hash_table. Update dependent calls and types.
3460 * bitmap.c (htab_t bitmap_desc_hash):
3461 Change type to hash_table. Update dependent calls and types.
3463 * cselib.c (htab_t cselib_hash_table):
3464 Change type to hash_table. Update dependent calls and types.
3466 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3467 (hash_string_slot_node): Move implementation into lto-streamer.h
3468 struct string_slot_hasher.
3469 (eq_string_slot_node): Likewise.
3471 * data-streamer-out.c: Update output_block::string_hash_table
3472 dependent calls and types.
3474 * dwarf2cfi.c (htab_t trace_index):
3475 Change type to hash_table. Update dependent calls and types.
3477 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3478 Change type to hash_table. Update dependent calls and types.
3479 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3480 (htab_t optimize_external_refs::map): Likewise.
3481 (htab_t output_comp_unit::extern_map): Likewise.
3482 (htab_t output_comdat_type_unit::extern_map): Likewise.
3483 (htab_t output_macinfo::macinfo_htab): Likewise.
3484 (htab_t optimize_location_lists::htab): Likewise.
3485 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3487 * except.c (htab_t ehspec_hash_type):
3488 Change type to hash_table. Update dependent calls and types.
3489 (assign_filter_values::ttypes): Likewise.
3490 (assign_filter_values::ehspec): Likewise.
3491 (sjlj_assign_call_site_values::ar_hash): Likewise.
3492 (convert_to_eh_region_ranges::ar_hash): Likewise.
3494 * gcse.c (htab_t pre_ldst_table):
3495 Change type to hash_table. Update dependent calls and types.
3497 * ggc-common.c (htab_t saving_htab):
3498 Change type to hash_table. Update dependent calls and types.
3499 (htab_t loc_hash): Likewise.
3500 (htab_t ptr_hash): Likewise.
3501 (call_count): Rename ggc_call_count.
3502 (call_alloc): Rename ggc_call_alloc.
3503 (loc_descriptor): Rename make_loc_descriptor.
3504 (add_statistics): Rename ggc_add_statistics.
3506 * ggc-common.c (saving_htab):
3507 Change type to hash_table. Update dependent calls and types.
3509 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3510 (push_gimplify_context): Likewise.
3511 (pop_gimplify_context): Likewise.
3512 (struct gimple_temp_hash_elt): Added.
3513 (struct gimplify_hasher): Likewise.
3514 (struct gimplify_ctx.temp_htab):
3515 Change type to hash_table. Update dependent calls and types.
3517 * gimple-fold.c: Include gimplify-ctx.h.
3519 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3520 Change type to hash_table. Update dependent calls and types.
3521 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3522 avoid potential global name collision.
3524 * gimplify.c: Include gimplify-ctx.h.
3525 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3526 (htab_t gimplify_ctx::temp_htab):
3527 Update dependent calls and types for new type hash_table.
3528 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3529 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3531 * gimplify-ctx.h: New.
3532 (struct gimple_temp_hash_elt): Move from gimplify.c.
3533 (class gimplify_hasher): New.
3534 (struct gimplify_ctx): Move from gimple.h.
3535 (htab_t gimplify_ctx::temp_htab):
3536 Change type to hash_table. Update dependent calls and types.
3538 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3539 (htab_t ivs_params::newivs_index):
3540 Change type to hash_table. Update dependent calls and types.
3541 (htab_t ivs_params::params_index): Likewise.
3542 (htab_t print_generated_program::params_index): Likewise.
3543 (htab_t gloog::newivs_index): Likewise.
3544 (htab_t gloog::params_index): Likewise.
3546 * graphite.c: Include graphite-htab.h.
3547 4htab_t graphite_transform_loops::bb_pbb_mapping):
3548 Change type to hash_table. Update dependent calls and types.
3550 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3551 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3552 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3554 * graphite-dependences.c: Include graphite-htab.h.
3555 (loop_is_parallel_p): Change hash table type of parameter.
3557 * graphite-htab.h: New.
3558 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3559 (extern find_pbb_via_hash): Move from graphite-poly.h.
3560 (extern loop_is_parallel_p): Move from graphite-poly.h.
3561 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3563 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3564 (extern loop_is_parallel_p): Move to graphite-htab.h.
3565 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3567 * haifa-sched.c (htab_t delay_htab):
3568 Change type to hash_table. Update dependent calls and types.
3569 (htab_t delay_htab_i2): Likewise.
3571 * ira-color.c (htab_t allocno_hard_regs_htab):
3572 Change type to hash_table. Update dependent calls and types.
3574 * ira-costs.c (htab_t cost_classes_htab):
3575 Change type to hash_table. Update dependent calls and types.
3577 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3578 Change type to hash_table. Update dependent calls and types.
3580 * loop-iv.c (htab_t bivs):
3581 Change type to hash_table. Update dependent calls and types.
3583 * loop-unroll.c (htab_t opt_info::insns_to_split):
3584 Change type to hash_table. Update dependent calls and types.
3585 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3587 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3588 (struct string_slot_hasher): New.
3589 (htab_t output_block::string_hash_table):
3590 Change type to hash_table. Update dependent calls and types.
3592 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3593 (htab_t file_name_hash_table):
3594 Change type to hash_table. Update dependent calls and types.
3596 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3599 * lto-streamer.c (htab_t tree_htab):
3600 Change type to hash_table. Update dependent calls and types.
3602 * omp-low.c: Include gimplify-ctx.h.
3604 * passes.c (htab_t name_to_pass_map):
3605 Change type to hash_table. Update dependent calls and types.
3606 (pass_traverse): Rename to passes_pass_traverse.
3608 * plugin.c (htab_t event_tab):
3609 Change type to hash_table. Update dependent calls and types.
3611 * postreload-gcse.c (htab_t expr_table):
3612 Change type to hash_table. Update dependent calls and types.
3613 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3615 * sese.c (debug_rename_map_1): Make extern.
3616 (htab_t copy_bb_and_scalar_dependences::rename_map):
3617 Change type to hash_table. Update dependent calls and types.
3619 * sese.h (extern debug_rename_map): Move to .c file.
3621 * store-motion.c (htab_t store_motion_mems_table):
3622 Change type to hash_table. Update dependent calls and types.
3624 * trans-mem.c (htab_t tm_new_mem_hash):
3625 Change type to hash_table. Update dependent calls and types.
3627 * tree-browser.c (htab_t TB_up_ht):
3628 Change type to hash_table. Update dependent calls and types.
3630 * tree-cfg.c (htab_t discriminator_per_locus):
3631 Change type to hash_table. Update dependent calls and types.
3633 * tree-complex.c: Include tree-hasher.h
3634 (htab_t complex_variable_components):
3635 Change type to hash_table. Update dependent calls and types.
3637 * tree-eh.c (htab_t finally_tree):
3638 Change type to hash_table. Update dependent calls and types.
3640 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3641 struct int_tree_hasher.
3642 (extern int_tree_map_eq): Likewise.
3643 (uid_decl_map_hash): Removed.
3644 (extern decl_tree_map_eq): Likewise.
3646 * tree-hasher.h: New.
3647 (struct int_tree_hasher): New.
3648 (typedef int_tree_htab_type): New.
3650 * tree-inline.c: Include gimplify-ctx.h.
3652 * tree-mudflap.c: Include gimplify-ctx.h.
3654 * tree-parloops.c: Include tree-hasher.h.
3655 (htab_t eliminate_local_variables_stmt::decl_address):
3656 Change type to hash_table. Update dependent calls and types.
3657 (htab_t separate_decls_in_region::decl_copies): Likewise.
3659 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3660 Change type to hash_table. Update dependent calls and types.
3662 * tree-sra.c (candidates):
3663 Change type to hash_table. Update dependent calls and types.
3665 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3667 (int_tree_map_hash): Likewise.
3669 * tree-ssa-dom.c (htab_t avail_exprs):
3670 Change type to hash_table. Update dependent calls and types.
3672 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3673 Change type to hash_table. Update dependent calls and types.
3675 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3676 Change type to hash_table. Update dependent calls and types.
3678 * tree-ssa-phiopt.c (seen_ssa_names):
3679 Change type to hash_table. Update dependent calls and types.
3681 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3682 Change type to hash_table. Update dependent calls and types.
3684 * tree-ssa-uncprop.c (equiv):
3685 Change type to hash_table. Update dependent calls and types.
3687 2013-04-25 Jakub Jelinek <jakub@redhat.com>
3689 PR rtl-optimization/57003
3690 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3691 call note_stores with kill_clobbered_value callback again after
3692 killing regs_invalidated_by_call.
3694 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3696 * config/aarch64/aarch64-simd.md
3697 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3698 (aarch64_simd_bsl<mode>): Likewise.
3699 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3701 2013-04-25 Marek Polacek <polacek@redhat.com>
3703 PR tree-optimization/57066
3704 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
3706 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3708 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3710 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3712 * config/aarch64/aarch64-builtins.c
3713 (aarch64_fold_builtin): New.
3714 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3715 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3716 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3717 * config/aarch64/arm_neon.h
3718 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3720 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3721 Tejas Belagod <tejas.belagod@arm.com>
3723 * config/aarch64/aarch64-builtins.c
3724 (aarch64_gimple_fold_builtin): New.
3725 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3726 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3727 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3729 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3731 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3733 * config/aarch64/aarch64.md
3734 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3736 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3738 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3739 (*ngcsi_uxtw): New pattern.
3741 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3742 Julian Brown <julian@codesourcery.com>
3744 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3745 (TB_DREG): Add T_V4HF.
3746 (v4hf_UP): New macro.
3747 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3748 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3749 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3751 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3752 (arm_vector_mode_supported_p): Handle V4HF.
3753 (arm_mangle_map): Handle V4HFmode.
3754 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3755 * config/arm/arm_neon_builtins.def: Add entries for
3756 vcvtv4hfv4sf, vcvtv4sfv4hf.
3757 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3758 (neon_vcvtv4hfv4sf): Likewise.
3759 * config/arm/neon-gen.ml: Handle half-precision floating point
3761 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3762 * config/arm/arm_neon.h: Regenerate.
3763 * config/arm/neon.ml (type elts): Add F16.
3764 (type vectype): Add T_float16x4, T_floatHF.
3765 (type vecmode): Add V4HF.
3766 (type features): Add Requires_FP_bit feature.
3767 (elt_width): Handle F16.
3768 (elt_class): Likewise.
3769 (elt_of_class_width): Likewise.
3770 (mode_of_elt): Refactor.
3771 (type_for_elt): Handle F16, fix error messages.
3772 (vectype_size): Handle T_float16x4.
3773 (vcvt_sh): New function.
3774 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3775 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3776 (string_of_mode): Handle V4HF.
3777 * doc/arm-neon-intrinsics.texi: Regenerate.
3779 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3781 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3782 format specifier in 'X' case.
3784 2013-04-25 Alan Modra <amodra@gmail.com>
3787 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3788 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3789 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3790 Repeat for many other rotate/shift and mask patterns using subregs.
3791 Name lshiftrt insns.
3792 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3793 on WORDS_BIG_ENDIAN.
3795 2013-04-25 Alan Modra <amodra@gmail.com>
3797 * config.gcc: Support little-endian powerpc-linux targets.
3798 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3799 (LINK_OS_LINUX_SPEC): Define.
3800 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3801 Preserve MASK_LITTLE_ENDIAN.
3802 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3803 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3804 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3805 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3806 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3807 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3808 Correct fp word order for little-endian. Don't shift toc entries
3809 smaller than a word for little-endian.
3810 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3811 (bswapdi2 splits): Correct low-part subreg for little-endian.
3812 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3813 low/high where such is correct only for be.
3814 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3815 little-endian for -mcall-aixdesc.
3817 2013-04-25 Alan Modra <amodra@gmail.com>
3819 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3820 replace_equiv_address_nv.
3822 2013-04-25 Alan Modra <amodra@gmail.com>
3824 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3826 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3829 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3830 * rtl.h (struct rtx_def): ...
3832 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3834 PR rtl-optimizations/57046
3835 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3836 for multi-reg splits.
3838 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3840 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3842 2013-04-24 Sterling Augustine <saugustine@google.com>
3844 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3845 (comp_dir_string, debug_str_dwo_section): New.
3846 (DEBUG_STR_DWO_SECTION): Rename to ...
3847 (DEBUG_DWO_STR_SECTION): ... this.
3848 (DEBUG_NORM_STR_SECTION): Delete.
3849 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3850 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3851 (find_AT_string): Move most logic to ...
3852 (find_AT_string_in_table): ... here. New.
3853 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3854 add_skeleton_AT_string. Delete logic.
3855 (output_skeleton_debug_sections): Remove call to
3856 add_top_level_skeleton_die_attrs.
3857 (add_comp_dir_attribute): Move logic to comp_dir_string.
3858 (dwarf2out_init): Initialize debug_str_dwo_section.
3859 (output_indirect_string): Call find_string_form.
3860 (output_indirect_strings): Rewrite.
3861 (prune_unused_types): Empty skeleton_debug_str_hash.
3862 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3863 (dwarf2out_finish): Call output_indirect_strings.
3865 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3867 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3869 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3871 * rtl.h (struct rtx_def): Add comment for field jump.
3872 (LRA_SUBREG_P): New macro.
3873 * recog.c (register_operand): Check LRA_SUBREG_P.
3874 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3876 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3877 (lra_final_code_change): Skip subreg change for operators.
3878 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3879 if there are no operand changes.
3880 * lra-constraints.c (curr_insn_set): New.
3881 (match_reload): Set LRA_SUBREG_P.
3882 (emit_spill_move): Ditto.
3883 (check_and_process_move): Use curr_insn_set. Process only single
3884 set insns. Don't initialize sec_mem_p and change_p.
3885 (simplify_operand_subreg): Use LRA_SUBREG_P.
3886 (reg_in_class_p): New function.
3887 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3888 of #ifdef. Add code to remove cycling.
3889 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3890 non-null disp. Reload inner instead of disp when base and index
3891 are null. Try to put lo_sum into register.
3892 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3893 (check_and_process_move): Move code for move cost check to
3894 simple_move_p. Remove equiv_substitution.
3895 (simple_move_p): New function.
3896 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3897 curr_insn_set. Call check_and_process_move only for single set
3898 insns. Use the new function. Move call of check_and_process_move
3899 after operand equiv substitution and address process.
3901 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3903 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3904 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3905 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3907 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3909 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3911 2013-04-24 Marek Polacek <polacek@redhat.com>
3913 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3914 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3915 (select_loops_exit_conditions): Likewise.
3916 (number_of_iterations_for_all_loops): Likewise.
3917 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3918 (scev_analysis): Likewise.
3920 2013-04-02 Catherine Moore <clm@codesourcery.com>
3921 Chao-ying Fu <fu@mips.com>
3923 * config/mips/micromips.md (jraddiusp): New pattern.
3924 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3925 instruction if possible.
3927 2013-04-24 Alan Modra <amodra@gmail.com>
3929 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3931 2013-04-24 Julian Brown <julian@codesourcery.com>
3932 Chung-Lin Tang <cltang@codesourcery.com>
3934 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
3935 dependency behavior in enumeration type DIE generation. Add TODO note
3936 to comments about future DW_FORM_sdata/udata re-work of related code.
3938 2013-04-23 Lawrence Crowl <crowl@google.com>
3940 * Makefile.in: Update as needed below.
3942 * hash-table.h (class hash_table):
3943 Correct many methods with parameter types compare_type to the correct
3944 value_type. (Correct code was unlikely to notice the change.)
3945 (hash_table::elements_with_deleted) New.
3946 (class hashtable::iterator): New.
3947 (hashtable::begin()): New.
3948 (hashtable::end()): New.
3949 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3951 * statistics.c (statistics_hashes):
3952 Change type to hash_table. Update dependent calls and types.
3954 * tree-into-ssa.c (var_infos):
3955 Change type to hash_table. Update dependent calls and types.
3957 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3958 Change type to hash_table. Update dependent calls and types.
3960 * tree-ssa-loop-im.c (struct mem_ref.refs):
3961 Change type to hash_table. Update dependent calls and types.
3963 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3964 Change type to hash_table. Update dependent calls and types.
3966 * tree-ssa-sccvn.c (vn_tables_s::nary):
3967 Change type to hash_table. Update dependent calls and types.
3968 (vn_tables_s::phis): Likewise.
3969 (vn_tables_s::references): Likewise.
3971 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3972 (vn_reference_eq): Update parameter and return types.
3974 * tree-ssa-structalias.c (pointer_equiv_class_table):
3975 Change type to hash_table. Update dependent calls and types.
3976 (location_equiv_class_table): Likewise.
3978 * tree-vect-data-refs.c: Consequential changes for making
3979 peeling a hash_table.
3981 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3982 (destroy_loop_vec_info): Dependent hash_table update.
3984 * tree-vectorizer.h (peeling_htab):
3985 Change type to hash_table. Update dependent calls and types.
3987 2013-04-23 Shiva Chen <shiva0217@gmail.com>
3989 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3990 to check the register content is equal or not.
3991 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3992 to assign register content record.
3993 * lra-eliminations.c (update_reg_eliminate): Use
3994 lra_update_reg_val_offset to update register content offset.
3995 * lra-int.h (struct lra_reg): Add offset member.
3996 (lra_reg_val_equal_p): New static inline function.
3997 (lra_update_reg_val_offset): New static inline function.
3998 (lra_assign_reg_val): New static inline function.
3999 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4000 to assign register content record.
4001 (initialize_lra_reg_info_element): Initial offset to zero.
4003 2013-04-23 Catherine Moore <clm@codesourcery.com>
4005 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4006 operands. Record compression.
4008 2013-04-23 Xinliang David Li <davidxl@google.com>
4010 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4012 2013-04-23 Richard Biener <rguenther@suse.de>
4015 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4016 parameter, only add abnormal goto edges from the copied body
4017 if the call could perform abnormal gotos.
4018 (copy_cfg_body): Adjust.
4020 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4022 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4024 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4026 * coretypes.h (gimple_stmt_iterator): Add struct to make
4029 2013-04-23 Richard Biener <rguenther@suse.de>
4031 PR tree-optimization/57026
4032 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4033 from SSA names occuring in abnormal PHI nodes.
4035 2013-04-22 Andi Kleen <ak@linux.intel.com>
4037 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4039 2013-04-22 Andi Kleen <ak@linux.intel.com>
4041 * lto/lto.c (print_lto_report_1): Declare early.
4042 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4044 2013-04-22 Andi Kleen <ak@linux.intel.com>
4046 * common.opt (-flto-report-wpa): Add.
4047 * doc/invoke.texi (-flto-report-wpa): Add.
4048 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4051 2013-04-22 Xinliang David Li <davidxl@google.com>
4053 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4054 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4055 * Makefile.in: New dependency
4057 David Daney <ddaney.cavm@gmail.com>
4059 * configure.ac (gcc_cv_as_micromips_support): Use the
4060 --fatal-warnings option.
4061 * configure: Regenerate.
4063 2013-04-22 Marek Polacek <polacek@redhat.com>
4066 * tsan.c (instrument_expr): Don't instrument expression
4067 in case its size is zero.
4069 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4073 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4075 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4077 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4079 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4080 (gimple_stmt_iterator): New typedef.
4081 * gimple.h (gimple_stmt_iterator): Rename to...
4082 (gimple_stmt_iterator_d): ... This.
4083 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4084 trees be valid for GIMPLE and GENERIC.
4085 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4086 * gimple-fold.c (gimple_fold_call): Call target hook
4087 gimple_fold_builtin.
4088 * hooks.c (hook_bool_gsiptr_false): New.
4089 * hooks.h (hook_bool_gsiptr_false): New.
4090 * target.def (fold_stmt): New.
4091 * doc/tm.texi: Regenerate.
4093 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4096 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4097 a set sp if no stack realignment.
4099 2013-04-22 Nick Clifton <nickc@redhat.com>
4101 * config.gcc (tilegx-linux): Extend extra_objs rather than
4103 (tilepro-linux): Likewise.
4105 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4107 * config/aarch64/aarch64-builtins.c
4109 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4110 (VAR<1-12>): Add MAP parameter.
4111 (BUILTIN_*): Likewise.
4112 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4113 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4114 (aarch64_ushl_n<mode>): Likewise.
4115 (aarch64_sshr_n<mode>): Likewise.
4116 (aarch64_ushr_n<mode>): Likewise.
4117 (aarch64_<maxmin><mode>): Likewise.
4118 (aarch64_sqrt<mode>): Likewise.
4119 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4120 (vshr<q>_n_*): Likewise.
4122 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4124 * config/aarch64/aarch64-builtins.c
4125 (aarch64_simd_builtin_type_mode): Handle SF types.
4127 (BUILTIN_GPF): Define.
4128 (aarch64_init_simd_builtins): Handle SF types.
4129 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4132 * config/aarch64/aarch64-simd.md
4133 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4134 (aarch64_frecpe<mode>): New.
4135 (aarch64_frecps<mode>): Likewise.
4136 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4137 (v8type): Add frecp<esx>.
4138 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4139 (aarch64_frecps<mode>): Likewise.
4140 * config/aarch64/iterators.md (FRECP): New.
4141 (frecp_suffix): Likewise.
4142 * config/aarch64/arm_neon.h
4143 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4145 2013-04-22 Christian Bruel <christian.bruel@st.com>
4148 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4149 (REG_CLASS_NAMES): Idem.
4150 (REG_CLASS_CONTENTS): Idem.
4151 (REGCLASS_HAS_FP_REG): Idem.
4152 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4153 (sh_conditional_register_usage): Idem.
4155 2013-04-21 Jeff Law <law@redhat.com>
4157 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4158 (ssa_forward_propagate_and_combine): Use it.
4160 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4162 * lra.c: Update the flow chart diagram.
4164 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4166 PR rtl-optimization/56847
4167 * lra-constraints.c (process_alt_operands): Discourage alternative
4168 with non-matche doffsettable memory constraint fro memory with
4171 2013-04-19 Richard Biener <rguenther@suse.de>
4173 PR tree-optimization/56982
4174 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4176 * gimplify.c (gimplify_call_expr): Notice special calls.
4177 (gimplify_modify_expr): Likewise.
4178 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4179 abnormal control flow receivers.
4180 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4181 in the same way as cfun->has_nonlocal_labels.
4182 (gimple_purge_dead_abnormal_call_edges): Likewise.
4183 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4184 receivers start a basic-block.
4186 2013-04-19 Richard Biener <rguenther@suse.de>
4188 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4190 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4191 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4192 (SLP_TREE_LOAD_PERMUTATION): Add.
4193 (vect_transform_slp_perm_load): Adjust prototype.
4194 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4195 (vect_free_slp_instance): Likewise.
4196 (vect_create_new_slp_node): Likewise.
4197 (vect_supported_slp_permutation_p): Remove.
4198 (vect_slp_rearrange_stmts): Adjust.
4199 (vect_supported_load_permutation_p): Likewise. Inline
4200 vect_supported_slp_permutation_p here.
4201 (vect_analyze_slp_instance): Compute load permutations per
4202 slp node instead of per instance.
4203 (vect_get_slp_defs): Adjust.
4204 (vect_transform_slp_perm_load): Likewise.
4205 (vect_schedule_slp_instance): Remove redundant code.
4206 (vect_schedule_slp): Remove hack for PR56270, add it ...
4207 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4208 CSE loads for SLP. Adjust.
4210 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4212 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4213 spelling in two comments.
4215 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4218 * config/arm/arm.c (load_multiple_sequence): Require SP
4219 as base register for loads if SP is in the register list.
4221 2013-04-19 Martin Jambor <mjambor@suse.cz>
4223 PR tree-optimization/56718
4224 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4225 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4226 and made public. Adjusted all callers.
4227 (ipa_intraprocedural_devirtualization): New function.
4228 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4229 (ipa_intraprocedural_devirtualization): Likewise.
4230 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4232 2013-04-19 Richard Biener <rguenther@suse.de>
4234 PR tree-optimization/57000
4235 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4237 2013-04-19 Terry Guo <terry.guo@arm.com>
4239 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4241 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4242 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4243 (cortex_m4_fmacs): Use new reservations.
4244 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4246 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4248 PR rtl-optimization/56999
4249 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4251 (lra_coalesce): Remove split_origin_bitmap and related code.
4252 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4253 ranges if necessary.
4255 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4257 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4259 (ix86_expand_call): Remove clobbered_registers array and use
4260 x86_64_ms_sysv_extra_clobbered_registers instead.
4261 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4263 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4265 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4266 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4267 (*call_value_rex64_ms_sysv): Ditto.
4269 2013-04-18 Cary Coutant <ccoutant@google.com>
4271 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4272 parent instead of die_mark.
4274 2013-04-18 Diego Novillo <dnovillo@google.com>
4276 * gimple.c (create_gimple_tmp): New.
4277 (get_expr_type): New.
4278 (build_assign): New.
4279 (build_type_cast): New.
4280 * gimple.h (enum ssa_mode): Define.
4281 (gimple_seq_set_location): New.
4282 * asan.c (build_check_stmt): Change some gimple_build_* calls
4283 to use build_assign and build_type_cast.
4285 2013-04-18 Richard Biener <rguenther@suse.de>
4287 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4288 handle negative step. Remove redundant checks.
4289 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4290 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4291 for negative step and grouped loads fail to vectorize.
4293 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4295 * emit-rtl.c (reset_insn_used_flags): New function.
4296 (reset_all_used_flags): Use it.
4297 (verify_insn_sharing): New function.
4298 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4300 2013-04-18 Jakub Jelinek <jakub@redhat.com>
4302 PR tree-optimization/56984
4303 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4304 and (x >> M) >= N don't register any assertion if N << M is the
4307 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4309 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4310 do not delete_insn insns that have not yet been emitted, only
4311 unlink them with remove_insn.
4312 * df-scan.c (df_insn_delete): Revert r197492.
4314 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4316 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4317 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4319 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4321 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4322 define_insn_and_split.
4323 (and_scc,ior_scc,negscc): Likewise.
4324 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4326 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4328 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4329 can benefit from using a sequence of LDRD instructions in epilogue
4330 instead of a single LDM instruction.
4332 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4335 * doc/extend.texi: Fix typo.
4337 2013-04-17 Richard Biener <rguenther@suse.de>
4339 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4340 (vect_build_slp_tree): ... here.
4341 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4342 match. Remove special-casing of mismatched complex loads.
4343 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4344 re-try the match with swapped commutative operands.
4345 (vect_supported_load_permutation_p): Remove special-casing of
4346 mismatched complex loads.
4347 (vect_analyze_slp_instance): Adjust.
4349 2013-04-17 Richard Biener <rguenther@suse.de>
4351 PR rtl-optimization/56921
4352 * cfgloop.h (struct loop): Add simple_loop_desc member.
4353 (struct niter_desc): Mark with GTY(()).
4354 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4355 * loop-iv.c (get_simple_loop_desc): Likewise.
4356 (free_simple_loop_desc): Likewise.
4359 2013-04-16 Richard Biener <rguenther@suse.de>
4361 PR rtl-optimization/56921
4362 * loop-init.c (pass_rtl_move_loop_invariants): Add
4363 TODO_do_not_ggc_collect to todo_flags_finish.
4364 (pass_rtl_unswitch): Same.
4365 (pass_rtl_unroll_and_peel_loops): Same.
4366 (pass_rtl_doloop): Same.
4368 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4370 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4371 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4372 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4374 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4375 * tree-streamer.c (record_common_node): Adjust reference in comment.
4377 2013-04-17 Terry Guo <terry.guo@arm.com>
4379 * config/arm/cortex-m4.md: Add a new bypass.
4381 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4383 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4385 (*subs_<optab><mode>_multp2): New pattern.
4386 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4387 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4389 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4391 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4392 (*subs_mul_imm_<mode>): New pattern.
4394 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
4397 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4398 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4399 (vsx_movti_32bit): Change j->wa to O->wa.
4401 2013-04-16 Richard Biener <rguenther@suse.de>
4403 PR rtl-optimization/56921
4404 * loop-init.c (pass_rtl_move_loop_invariants): Add
4405 TODO_do_not_ggc_collect to todo_flags_finish.
4406 (pass_rtl_unswitch): Same.
4407 (pass_rtl_unroll_and_peel_loops): Same.
4408 (pass_rtl_doloop): Same.
4410 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
4412 * config/arm/arm.c (emit_multi_reg_push): New declaration
4413 for an existing function.
4414 (arm_emit_strd_push): New function.
4415 (arm_expand_prologue): Used here.
4416 (arm_emit_ldrd_pop): New function.
4417 (arm_expand_epilogue): Used here.
4418 (arm_get_frame_offsets): Update condition.
4419 (arm_emit_multi_reg_pop): Add a special case for load of a single
4420 register with writeback.
4422 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
4424 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4427 2013-04-16 Richard Biener <rguenther@suse.de>
4429 PR tree-optimization/56756
4430 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4431 (first_mem_ref_loc): New.
4432 (execute_sm): Place the load temporarily before a previous
4433 access instead of in the latch edge to ensure its SSA dependencies
4434 are defined at points dominating the load.
4436 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4438 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4439 correct fix by moving header and footer insn to the footer of
4440 the merged basic block. Clear BB_END of the merged-away block.
4443 * emit-rtl.c (make_note_raw): New function.
4444 (link_insn_into_chain): New static inline function.
4446 (add_insn_before, add_insn_after): Factor insn chain linking code...
4447 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4448 using link_insn_into_chain.
4449 (note_outside_basic_block_p): New helper function for emit_note_after
4450 and emit_note_before.
4451 (emit_note_after): Use nobb variant of add_insn_after if the note
4452 should not be contained in a basic block.
4453 (emit_note_before): Use nobb variant of add_insn_before if the note
4454 should not be contained in a basic block.
4455 (emit_note_copy): Use make_note_raw.
4456 (emit_note): Likewise.
4457 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4458 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4459 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4460 the moved barrier the tail of the basic block it follows.
4461 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4463 2013-04-15 Jakub Jelinek <jakub@redhat.com>
4465 PR tree-optimization/56962
4466 * gimple-ssa-strength-reduction.c (record_increment): Only set
4467 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4468 either rhs1 or rhs2 is equal to c->base_expr.
4470 2013-04-15 Richard Biener <rguenther@suse.de>
4472 PR tree-optimization/56933
4473 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4475 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4476 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4477 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4478 dependence check ...
4479 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4481 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4482 GROUP_READ_WRITE_DEPENDENCE.
4484 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4486 * emit-rtl.c (reset_all_used_flags): New function.
4487 (verify_rtl_sharing): Call reset_all_used_flags before and after
4488 performing the checks.
4490 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4492 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4493 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4494 * config/arm/constraints.md (De): New constraint.
4495 * config/arm/neon.md (anddi3_neon): Delete.
4496 (neon_vand<mode>): Expand to standard anddi3 pattern.
4497 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4498 Move earlier in the file.
4499 (neon_inv_logic_op2): Likewise.
4500 (arm_anddi_operand_neon): New predicate.
4502 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4504 * configure.ac (gcc_cv_ld_as_needed): Set
4505 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4506 Use -z ignore, -z record on *-*-solaris2*.
4507 (HAVE_LD_AS_NEEDED): Update comment.
4508 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4509 * configure: Regenerate.
4510 * config.in: Regenerate.
4511 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4512 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4513 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4514 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4515 equivalents. Fix markup.
4516 * doc/tm.texi: Regenerate.
4518 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4520 * config/i386/i386.opt: New option mstack-protector-guard=.
4521 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4522 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4523 TARGET_SSP_TLS_GUARD.
4524 * config/i386/i386.c (ix86_option_override_internal): Set
4525 ix86_stack_protector_guard.
4526 * config/i386/i386.md (stack_protect_set): Enable for
4527 TARGET_SSP_TLS_GUARD only.
4528 (stack_protect_set_<mode>): Ditto.
4529 (stack_protect_test): Ditto.
4530 (stack_protect_test_<mode>): Ditto.
4531 * doc/invoke.texi (i386 Option): Document.
4533 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4536 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4537 (S_MODES): Set H_MODE bit.
4538 (SF_MODES): Set only S_MODE and SF_MODE bits.
4539 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4540 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4541 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4542 <MODE_FLOAT>: Likewise.
4544 2013-04-15 Joey Ye <joey.ye@arm.com>
4546 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4548 2013-04-15 Joey Ye <joey.ye@arm.com>
4550 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4552 (thumb_far_jump_used_p): Count instruction size and set
4555 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4557 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4558 * resource.c (mark_target_live_regs): Reformat conditional block.
4560 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4562 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4563 notes, they are emitted only just before final.
4564 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4566 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4568 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4569 * cfgrtl.c (delete_insn): Call it here instead.
4570 * lra-spills.c (lra_final_code_change): Use delete_insn.
4571 * haifa-sched.c (sched_remove_insn): Likewise.
4572 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4573 returning to the nop pool.
4574 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4575 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4577 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4579 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4580 * doc/tm.texi: Regenerated.
4582 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
4584 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4587 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4589 * df-core.c (df_find_def): Compare register numbers.
4590 (df_find_use): Likewise.
4592 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4595 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4596 lra_in_progress for return.
4598 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4600 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4601 define_insn into define_insn_and_split and emit movsicc patterns.
4603 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4605 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4607 2013-04-12 Richard Biener <rguenther@suse.de>
4609 * tree-pass.h (TODO_do_not_ggc_collect): New.
4610 * passes.c (execute_one_ipa_transform_pass): Honor
4611 TODO_do_not_ggc_collect.
4612 (execute_one_pass): Likewise.
4615 2013-04-10 Richard Biener <rguenther@suse.de>
4617 * passes.c (init_optimization_passes): Remove reload pass.
4618 * ira.c (do_reload): Merge into ...
4620 (rest_of_handle_reload): Remove.
4621 (pass_reload): Likewise.
4622 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4623 of reload for vzeroupper pass placement.
4625 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4627 PR tree-optimization/56918
4628 PR tree-optimization/56920
4629 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4630 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4631 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4632 use wide_mul_with_sign method.
4634 2013-04-12 Richard Biener <rguenther@suse.de>
4636 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4637 not be considered a gimple constant.
4639 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
4641 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4642 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4645 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4646 Jakub Jelinek <jakub@redhat.com>
4648 * opts.c: Include diagnostic-color.h.
4649 (common_handle_option): Handle OPT_fdiagnostics_color_.
4650 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4651 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4652 (diagnostic-color.o): New.
4653 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4654 (diagnostic_color_rule): New enum.
4655 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4656 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4657 the location string.
4658 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4659 either NULL, or color kind.
4660 * diagnostic-color.c: New file.
4661 * diagnostic-color.h: New file.
4662 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4664 * doc/invoke.texi (-fdiagnostics-color): Document.
4665 * pretty-print.h (pp_show_color): Define.
4666 (struct pretty_print_info): Add show_color field.
4667 * diagnostic.c: Include diagnostic-color.h.
4668 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4669 macros. Colorize error:, warning: etc. strings and also the location
4671 (diagnostic_show_locus): Colorize the caret line.
4672 * pretty-print.c: Include diagnostic-color.h.
4673 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4674 inside of %< %> quotes or quoted through q format modifier.
4676 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4678 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
4680 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4682 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4684 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4687 2013-04-11 Marek Polacek <polacek@redhat.com>
4689 PR tree-optimization/48184
4690 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
4692 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4694 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4695 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4696 (skip_simple_arithmetic): Tidy up.
4697 * tree.h (skip_simple_constant_arithmetic): Declare.
4699 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4701 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4703 2013-04-11 Richard Biener <rguenther@suse.de>
4705 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4706 generate vector constants.
4708 2013-04-11 Richard Biener <rguenther@suse.de>
4710 PR tree-optimization/56878
4711 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4712 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4714 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4715 Prefer to align the DR with the most invariant base address.
4717 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4719 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4722 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4724 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4725 floating-point vector comparisons against 0.
4727 2013-04-11 Jakub Jelinek <jakub@redhat.com>
4729 PR tree-optimization/56899
4730 * fold-const.c (extract_muldiv_1): Apply distributive law
4731 only if TYPE_OVERFLOW_WRAPS (ctype).
4733 2013-04-11 Bin Cheng <bin.cheng@arm.com>
4736 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4737 loading has side effect.
4739 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4741 * config/sparc/sparc.c: Include tree-pass.h.
4742 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4743 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4744 head of file. Change return type. Split off gate function.
4745 (sparc_gate_work_around_errata): New function.
4746 (pass_work_around_errata): New pass definition.
4747 (insert_pass_work_around_errata) New pass insert definition to
4748 insert pass_work_around_errata just after delayed-branch scheduling.
4749 (sparc_option_override): Insert the pass.
4750 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4752 2013-04-10 David S. Miller <davem@davemloft.net>
4754 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4755 or -mcpu=hypersparc.
4757 * target.def (cstore_mode): New hook.
4758 * target.h: Include insn-codes.h
4759 * targhooks.c: Likewise.
4760 (default_cstore_mode): New function.
4761 * targhooks.h: Declare it.
4762 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4763 * doc/tm.texi: Rebuild.
4764 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4765 target hook, rather than inspecting the insn_data.
4766 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4767 (TARGET_CSTORE_MODE): Redefine.
4768 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4770 * config/sparc/predicates.md (cstore_result_operand): New special
4772 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4773 Use it for operand 0.
4774 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4775 (*snesi_special): Likewise.
4776 (*snesi_zero): Likewise.
4777 (*seqsi_zero): Likewise.
4778 (*sltu_insn): Likewise.
4779 (*sgeu_insn): Likewise.
4780 (*seqdi_special): Make operand 0 and comparison operation be of
4782 (*snedi_special): Likewise.
4783 (*snedi_special_vis3): Likewise.
4784 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4785 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4786 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4787 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4788 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4789 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4790 (*sltu_extend_sp64): Likewise.
4791 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4792 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4793 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4794 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4795 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4797 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4799 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4800 (aarch64_start_file): Use the new function.
4802 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4803 Jason Merrill <jason@redhat.com>
4805 * common.opt: Add -gdwarf.
4806 * opts.c (common_handle_option): Handle it.
4807 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4809 2013-04-10 Richard Biener <rguenther@suse.de>
4811 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4812 (execute_one_ipa_transform_pass): But unconditionally here.
4813 (execute_one_pass): And here.
4814 (init_optimization_passes): Remove reload pass.
4815 * tree-pass.h (TODO_ggc_collect): Remove.
4816 (pass_reload): Likewise.
4817 * ira.c (do_reload): Merge into ...
4819 (rest_of_handle_reload): Remove.
4820 (pass_reload): Likewise.
4821 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4822 of reload for vzeroupper pass placement.
4823 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4824 and todo_flags_finish of all passes.
4826 2013-04-10 Richard Biener <rguenther@suse.de>
4828 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4829 first_const_oprnd field, rename first_def_type to first_op_type.
4830 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4831 (vect_get_and_check_slp_defs): Always use the type of the
4832 operand. Allow mixed vect_external_def, vect_constant_def types.
4833 (vect_get_constant_vectors): Handle mixed vect_external_def,
4834 vect_constant_def types.
4836 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4838 PR tree-optimization/55524
4839 * tree-ssa-math-opts.c
4840 (convert_mult_to_fma): Don't use an fms construct
4841 when we don't have an fms operation, but fnma, and it looks
4842 likely that we'll be able to use the latter.
4844 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4846 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4848 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4849 inline fail caused by overwritable functions.
4851 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4853 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4854 unnecessary bits in the constant power of two case.
4856 2013-04-10 Richard Biener <rguenther@suse.de>
4858 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4859 broken code swapping operands.
4860 (vect_build_slp_tree): Do not compute load permutations here.
4861 (vect_analyze_slp_instance): Compute load permutations here,
4862 after building the SLP tree.
4864 2013-04-09 Christian Bruel <christian.bruel@st.com>
4866 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4867 of next/prev_real_insn.
4869 2013-04-09 Jan Hubicka <jh@suse.cz>
4871 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4872 Drop aliased parameter.
4873 (function_and_variable_visibility): Do not handle alias pairs.
4874 * cgraph.c (varpool_externally_visible_p): Update prototype.
4875 * varpool.c (varpool_add_new_variable): Update.
4877 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4879 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4881 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4883 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4885 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4887 2013-04-09 Marek Polacek <polacek@redhat.com>
4889 PR tree-optimization/48762
4890 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
4892 2013-04-09 Richard Biener <rguenther@suse.de>
4894 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4896 (vect_build_slp_tree): Likewise.
4897 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4898 calculating the cost of a SLP instance.
4899 (vect_analyze_slp_instance): Use it from here, after building
4902 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4905 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4906 expand_omp_for_static_chunk): Use simple_p = true in
4907 force_gimple_operand_gsi calls when assigning to addressable decls.
4909 2013-04-09 Jeff Law <law@redhat.com>
4911 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4912 when the boolean was created by converting a wider object which
4913 had a boolean range.
4915 2013-04-09 Richard Biener <rguenther@suse.de>
4917 * tree-vectorizer.h (slp_void_p): Remove.
4918 (slp_tree): Typedef before _slp_tree declaration.
4919 (struct _slp_tree): Use a vector of slp_tree as children.
4920 (vect_get_place_in_interleaving_chain): Remove.
4921 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4923 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4925 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4926 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4927 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4928 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4929 Use slp_node instead of slp_void_p and adjust.
4931 2013-04-09 Richard Biener <rguenther@suse.de>
4933 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4934 work that is not necessary.
4936 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4938 PR tree-optimization/56854
4939 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4940 forward into clobber stmts if it would change MEM_REF lhs into
4943 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4945 * tree.c (type_hash_lookup, type_hash_add): Make static.
4946 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4948 2013-04-09 Richard Biener <rguenther@suse.de>
4950 * tree.h (unsave_expr_now): Remove.
4951 * tree-inline.c (mark_local_for_remap_r): Remove.
4952 (unsave_expr_1): Likewise.
4953 (unsave_r): Likewise.
4954 (unsave_expr_now): Likewise.
4955 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4956 (propagate_tree_value): Likewise.
4958 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4960 * doc/rtl.texi (sequence): Rewrite documentation to match the
4961 current use of SEQUENCE rtl objects.
4962 * rtl.def (SEQUENCE): Likewise.
4964 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4965 Update documentation.
4966 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4967 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4969 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4971 2013-04-08 Teresa Johnson <tejohnson@google.com>
4973 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4974 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
4976 (estimate_edge_size_and_time): Add comment to suggest using rounding
4978 (estimate_node_size_and_time): Ditto.
4979 (remap_edge_change_prob): Use helper rounding divide methods.
4980 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4981 (gimple_mod_pow2_value_transform): Ditto.
4982 (gimple_mod_subtract_transform): Ditto.
4983 (gimple_ic_transform): Ditto.
4984 (gimple_stringops_transform): Ditto.
4985 * stmt.c (conditional_probability): Ditto.
4986 (emit_case_dispatch_table): Ditto.
4987 * lto-cgraph.c (merge_profile_summaries): Ditto.
4988 * tree-optimize.c (execute_fixup_cfg): Ditto.
4989 * cfgcleanup.c (try_forward_edges): Ditto.
4990 * cfgloopmanip.c (scale_loop_profile): Ditto.
4992 (duplicate_loop_to_header_edge): Ditto.
4993 (lv_adjust_loop_entry_edge): Ditto.
4994 * tree-vect-loop.c (vect_transform_loop): Ditto.
4995 * profile.c (compute_branch_probabilities): Ditto.
4996 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4997 * lto-streamer-in.c (input_cfg): Ditto.
4998 * gimple-streamer-in.c (input_bb): Ditto.
4999 * ipa-cp.c (update_profiling_info): Ditto.
5000 (update_specialized_profile): Ditto.
5001 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5002 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5004 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5005 (compute_trg_info): Ditto.
5006 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5007 (purge_dead_edges): Ditto.
5008 * loop-unswitch.c (unswitch_loop): Ditto.
5009 * cgraphclones.c (cgraph_clone_edge): Ditto.
5010 (cgraph_clone_node): Ditto.
5011 * tree-inline.c (copy_bb): Ditto.
5012 (copy_edges_for_bb): Ditto.
5013 (initialize_cfun): Ditto.
5014 (copy_cfg_body): Ditto.
5015 (expand_call_inline): Ditto.
5017 2013-04-08 Kai Tietz <ktietz@redhat.com>
5019 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5020 TARGET_CYGWIN64 by TARGET_64BIT.
5022 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5024 * config/epiphany/epiphany.md (GPR_1): New constant.
5025 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5026 * config/epiphany/epiphany.c (gen_compare_reg):
5027 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5028 is already in place.
5029 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5030 Don't require being called during rtl expansion; If y operlaps r0,
5032 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5033 (epiphany_expand_epilogue): Likewise.
5035 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5036 Don't use CC_FPmode for ORDERED / UNORDERED.
5037 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5039 * config/epiphany/constraints.md (CnL): New constraint.
5040 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5041 * config/epiphany/predicates.md (add_operand): Allow 1024.
5043 * config/epiphany/epiphany.md (logical_op): New code iterator.
5044 (op_mnc): New code attribute.
5045 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5046 (mov_f+1, mov_f+2): New peephole2 patterns.
5048 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5049 (cstoresi4): Also allow re-use of zero result when doing a NE
5050 comparison to a non-zero operand.
5051 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5053 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5054 Use gen_addsi3_i / gen_subsi3_i.
5056 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5060 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5061 contain anything but clobbers, at most one __builtin_stack_restore,
5062 optionally debug stmts and final resx, and if it has at least one
5063 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5064 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5065 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5066 which isn't defaut definition, remove them.
5067 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5068 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5069 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5070 with MEM_REF LHS with SSA_NAME address.
5072 2013-04-08 Jeff Law <law@redhat.com>
5074 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5076 2013-04-08 Richard Biener <rguenther@suse.de>
5078 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5080 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5081 determined vector type.
5082 (vect_analyze_data_refs): Likewise.
5083 (vect_get_new_vect_var): Adjust.
5084 (vect_create_destination_var): Preserve SSA name versions.
5085 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5086 not dump anything here.
5088 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5090 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5091 Add member lr_slot_known.
5092 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5094 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5095 Remove code that sets lr_slot_offset according to what a previous
5096 version of epiphany_emit_save_restore used to do.
5097 (epiphany_emit_save_restore): When doing an lr save or restore,
5098 set/verify lr_slot_known and lr_slot_offset.
5100 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5103 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5106 2013-04-08 Richard Biener <rguenther@suse.de>
5108 * alias.c (find_base_term): Fix thinko in previous change.
5110 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5112 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5113 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5114 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5115 if possible to compute val.
5116 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5117 For QImode integers don't require anything about precision. Use
5118 const_with_all_bytes_same to find out if the constant doesn't have
5119 repeated bytes in it.
5121 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5123 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5126 2013-04-08 Marek Polacek <polacek@redhat.com>
5128 PR rtl-optimization/48182
5129 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5132 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5135 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5136 nuses, make sure we have a label.
5138 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5141 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5142 (rs6000_emit_swdiv_low_precision): Remove.
5143 (rs6000_emit_swdiv): Rewrite to handle between one and four
5144 iterations of Newton-Raphson generally; modify required number of
5145 iterations for some cases.
5146 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5148 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5150 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5151 set-but-unused variable.
5153 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5154 basic blocks of released function bodies garbage-collectable.
5156 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5157 (struct rtl_opt_pass): Add TODO_df_finish.
5159 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5161 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5163 * config/arm/constraints.md (q): New constraint.
5164 * config/arm/ldrdstrd.md: New file.
5165 * config/arm/arm.md (ldrdstrd.md) New include.
5166 (arm_movdi): Use "q" instead of "r" constraint
5167 for double-word memory access.
5168 (movdf_soft_insn): Likewise.
5169 * config/arm/vfp.md (movdi_vfp): Likewise.
5170 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5171 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5172 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5173 (mem_ok_for_ldrd_strd): Likewise.
5174 (output_move_double): Update assertion.
5176 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5178 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5180 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5182 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5183 define_insn_and_split.
5184 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5186 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5188 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5189 define_insn_and_split.
5190 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5191 (shiftsi3_compare): New pattern.
5193 * config/arm/unspecs.md (UNSPEC_RRX): New.
5195 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5197 * config/arm/arm.md (negdi_extendsidi): New pattern.
5198 (negdi_zero_extendsidi): Likewise.
5200 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5202 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5203 define_insn_and_split.
5204 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5205 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5207 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5209 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5210 define_insn_and_split.
5211 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5212 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5214 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5216 * config/arm/arm.md (subsi3_carryin): New pattern.
5217 (subsi3_carryin_const): Likewise.
5218 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5219 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5221 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5223 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5225 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5227 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5228 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5230 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5232 * config/arm/arm.c (arm_expand_builtin): Change fcode
5233 type to unsigned int.
5235 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5237 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5239 2013-04-04 Ian Lance Taylor <iant@google.com>
5241 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5244 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5247 * df-scan.c (df_insn_delete): Disable failing assert.
5249 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5251 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5252 New function prototype.
5253 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5254 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5255 (arm_builtin_vectorized_function): New function.
5257 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5259 * config/arm/arm_neon_builtins.def: New file.
5260 * config/arm/arm.c (neon_builtin_data): Move contents to
5261 arm_neon_builtins.def.
5262 (enum arm_builtins): Include neon builtin definitions.
5263 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5264 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5266 2013-04-04 Marek Polacek <polacek@redhat.com>
5268 PR tree-optimization/48186
5269 * predict.c (maybe_hot_frequency_p): Return false if
5270 HOT_BB_FREQUENCY_FRACTION is 0.
5271 (cgraph_maybe_hot_edge_p): Likewise.
5273 2013-04-04 Richard Biener <rguenther@suse.de>
5275 PR tree-optimization/56826
5276 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5279 2013-04-04 Richard Biener <rguenther@suse.de>
5281 PR tree-optimization/56213
5282 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5283 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5285 2013-04-04 Richard Biener <rguenther@suse.de>
5287 PR tree-optimization/56837
5288 * tree-loop-distribution.c (classify_partition): For non-zero
5289 values require that the value has the same precision as its
5290 mode to be useful as memset value.
5292 2013-04-03 Nick Clifton <nickc@redhat.com>
5294 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
5295 (fmssf4): Use fmsf.s on E3V5 architectures.
5296 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5297 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5299 2013-04-03 Jeff Law <law@redhat.com>
5301 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5302 (lra-eliminations.o): Likewise.
5304 2013-04-03 Teresa Johnson <tejohnson@google.com>
5306 * gcov-io.c (compute_working_sets): Moved most of body of old
5307 compute_working_sets here from profile.c.
5308 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
5309 (gcov_working_set_t): Moved typedef here from basic-block.h
5310 (compute_working_set): Declare.
5311 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5312 (get_working_sets): Renamed from compute_working_set,
5313 replace most of body with call to new compute_working_sets.
5314 (get_exec_counts): Replace call to compute_working_sets
5315 to get_working_sets.
5316 * profile.h (get_working_sets): Renamed from compute_working_set.
5317 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
5318 to get_working_sets.
5319 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5320 * gcov-dump.c (dump_working_sets): New function.
5322 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5324 * hwint.c (sext_hwi, zext_hwi): New functions.
5325 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5326 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5327 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5328 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5329 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5330 (sext_hwi, zext_hwi): New functions.
5332 2013-04-03 Jeff Law <law@redhat.com>
5334 PR tree-optimization/56799
5335 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5336 back test for widening conversion erroneously dropped in prior change.
5338 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5341 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5342 instead of next_real_insn.
5344 2013-04-03 Marek Polacek <polacek@redhat.com>
5347 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
5349 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5352 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5354 (thumb1_output_casesi): Likewise.
5355 (thumb2_output_casesi): Likewise.
5357 2013-04-03 Richard Biener <rguenther@suse.de>
5359 PR tree-optimization/56817
5360 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5362 (tree_unroll_loops_completely_1): ... new function to manually
5363 walk the loop tree, properly defering outer loops of unrolled
5364 loops to later iterations.
5366 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5368 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5369 (vectorizable_load): Likewise.
5370 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5371 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5373 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5375 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5378 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5380 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5382 2013-04-03 Bin Cheng <bin.cheng@arm.com>
5384 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5386 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5388 PR tree-optimization/56790
5389 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5392 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5394 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5396 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5397 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5400 2013-04-03 Jakub Jelinek <jakub@redhat.com>
5403 * tree.h (force_folding_builtin_constant_p): New decl.
5404 * builtins.c (force_folding_builtin_constant_p): New variable.
5405 (fold_builtin_constant_p): Fold immediately also if
5406 force_folding_builtin_constant_p.
5408 2013-04-03 Richard Biener <rguenther@suse.de>
5410 PR tree-optimization/56812
5411 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5412 DRs of the same interleaving chain are independent.
5414 2013-04-02 Jason Merrill <jason@redhat.com>
5416 * gdbinit.in (pbb): Use debug fn.
5418 2013-04-02 Lawrence Crowl <crowl@google.com>
5420 * sese.h (struct ivtype_map_elt_s): Remove unused.
5421 (extern debug_ivtype_map): Remove unused.
5422 (extern eq_ivtype_map_elts): Remove unused.
5423 * sese.c (debug_ivtype_map): Removed unused.
5424 (debug_ivtype_map_1): Removed unused.
5425 (debug_ivtype_elt): Remove unused.
5426 (eq_ivtype_map_elts): Remove unused.
5429 2013-04-02 Kai Tietz <ktietz@redhat.com>
5432 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5433 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
5434 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5436 (legitimize_pe_coff_symbol): Likewise.
5437 (is_imported_p): New helper-function.
5438 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5439 for Windows x64 targets.
5440 (ix86_expand_prologue): Optimize for pe-coff targets.
5441 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5442 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5443 medium/large code-model.
5444 (legitimize_pic_address): Likewise.
5445 (legitimize_tls_address): Likewise.
5446 (ix86_expand_call): Likewise.
5447 (x86_output_mi_thunk): Likewise.
5448 (get_dllimport_decl): Add new beimport argument.
5449 (construct_plt_address): Don't assert for x64 pe-coff targets.
5450 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5452 (SYMBOL_FLAG_STUBVAR): New macro.
5453 (SYMBOL_REF_STUBVAR_P): Likewise.
5454 * config/i386/winnt.c (stub_list): New structure.
5455 (stub_head): New local variable.
5456 (i386_pe_record_stub): New function.
5457 (i386_pe_file_end): Emit refptr-stubs.
5459 2013-04-02 Jakub Jelinek <jakub@redhat.com>
5461 PR rtl-optimization/56745
5462 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5463 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5466 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5467 and both of them are MEM_REFs, just compare first argument for
5468 equality and attempt to deal even with differing offsets.
5471 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5472 of gimple_clobber_p to be MEM_REF.
5473 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5474 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5475 after gimplification.
5476 * asan.c (get_mem_ref_of_assignment): Don't instrument
5477 gimple_clobber_p stmts.
5478 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5479 gimple_clobber_p stmt if they have MEM_REF lhs and
5480 are dead because of another gimple_clobber_p stmt.
5481 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5482 gimple_clobber_p stmts like debug stmts.
5483 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5484 that refer to unused VAR_DECLs or uninitialized values.
5485 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5486 gimple_clobber_p stmts if they refer to removed parameters.
5487 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5490 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
5492 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5493 using SWI48 mode attribute.
5495 2013-04-02 Wei Mi <wmi@google.com>
5497 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5498 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5499 *<rotate_insn><mode>3_mask in i386.md.
5501 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5503 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5505 2013-04-02 Richard Biener <rguenther@suse.de>
5507 PR tree-optimization/56778
5508 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5509 Runtime alias tests are not supported for gather loads.
5510 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5511 stmts referenced from SSA operands before updating SSA form.
5513 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5514 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5516 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
5517 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5518 * config/arm/cortex-a53.md: New file.
5519 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5520 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5521 * config/arm/arm.c (arm_issue_rate): Likewise.
5522 * config/arm/arm-tune.md: Regenerate
5523 * config/arm/arm-tables.opt: Regenerate.
5524 * config/arm/arm-cores.def: Add cortex-a53.
5526 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5528 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5531 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5533 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5534 scalar load/store operations using B/H registers.
5535 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5537 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5539 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5541 * config/aarch64/aarch64.c
5542 (aarch64_simd_scalar_immediate_valid_for_move): New.
5543 * config/aarch64/aarch64-protos.h
5544 (aarch64_simd_scalar_immediate_valid_for_move): New.
5545 * config/aarch64/constraints.md (Dh, Dq): New.
5546 * config/aarch64/iterators.md (hq): New.
5548 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5550 * reorg.c (get_branch_condition): Deal with conditional returns.
5551 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5553 2013-04-01 Wei Mi <wmi@google.com>
5555 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5556 Truncate operand 2 using %b asm operand modifier.
5557 (*<shift_insn><mode>3_mask): Ditto.
5558 (*<rotate_insn><mode>3_mask): Ditto.
5560 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5563 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5565 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5567 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5569 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5571 2013-03-30 Lawrence Crowl <crowl@google.com>
5573 * dse.c (clear_alias_sets): Remove never set.
5574 (disqualified_clear_alias_sets): Remove never set.
5575 (clear_alias_mode_pool): Remove never set.
5576 (dse_step0): Remove condition that is never true.
5577 (canon_address): Remove condition that is never true.
5578 (dse_step7): Remove condition that is never true.
5579 (rest_of_handle_dse): Remove condition that is never true.
5580 (rest_of_handle_dse::did_global): Remove never read from above.
5581 (dse_step2_spill): Remove never called from above.
5582 (dse_step5_spill): Remove never called from above.
5584 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5586 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5587 JUMP_TABLE_DATA changes.
5588 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5589 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5590 (Insns) <jump_table_data>: New entry.
5591 * doc/tm.texi: Regenerate.
5593 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5595 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5596 for table jump at the end of a basic block using tablejump_p.
5597 * targhooks.c (default_invalid_within_doloop): Likewise.
5598 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5599 target hook implementation that is identical to the default hook.
5600 (rs6000_invalid_within_doloop): Remove.
5602 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5603 unused variable from tablejump_p call.
5605 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5606 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5607 (INSN_DELETED_P): Likewise.
5608 (emit_jump_table_data): New prototype.
5609 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5610 after 4th as unused.
5611 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5612 * sched-vis.c (print_insn): Likewise.
5613 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5614 insn for compatibility with back ends that use next_active_insn to
5615 identify jump table data.
5616 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5617 (remove_insn): Likewise.
5618 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5620 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5621 (emit_jump_table_data): New function.
5623 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5624 basic block, a JUMP_TABLE_DATA never is.
5625 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5626 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5627 off from code handling real insns.
5628 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5629 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5630 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5631 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5632 is not a NONDEBUG_INSN_P.
5633 * ira-costs.c (scan_one_insn): Likewise.
5634 * jump.c (mark_all_labels): Likewise.
5635 (mark_jump_label_1): Likewise.
5636 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5637 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5639 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5640 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5641 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5642 JUMP_TABLE_DATA_P insns.
5643 (calculate_elim_costs_all_insns): Likewise.
5644 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5645 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5646 (delete_output_reload): Code style fixups.
5647 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5648 insn flags on this non-insn.
5649 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5650 as scheduling barriers, for pre-change compatibility.
5651 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5652 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5654 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5655 redundant JUMP_TABLE_DATA_P test.
5656 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5657 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5658 (frv_for_each_packet): Likewise.
5659 * config/i386/i386.c (min_insn_size): Likewise.
5660 (ix86_avoid_jump_mispredicts): Likewise.
5661 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5662 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5663 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5664 (mips16_insn_length): Robustify.
5665 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5666 (mips16_split_long_branches): Likewise.
5667 * config/pa/pa.c (pa_combine_instructions): Likewise.
5668 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5669 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5670 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5671 as contributing to pool range lengths.
5672 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5673 Remove redundant JUMP_TABLE_DATA_P test.
5674 (sh_loop_align): Likewise.
5675 (split_branches): Likewise.
5676 (sh_insn_length_adjustment): Likewise.
5677 * config/spu/spu.c (get_branch_target): Likewise.
5679 2013-03-29 Jan Hubicka <jh@suse.cz>
5681 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5682 gcov streaming; stream hot bb threshold to ltrans.
5683 * predict.c (get_hot_bb_threshold): Break out from ....
5684 (maybe_hot_count_p): ... here.
5685 (set_hot_bb_threshold): New function.
5686 * lto-section-in.c (lto_section_name): Add profile.
5687 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5688 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5690 (histogram_entry): New structure.
5691 (histogram, histogram_pool): New global vars.
5692 (histogram_hash): New structure.
5693 (histogram_hash::hash): New method.
5694 (histogram_hash::equal): Likewise.
5695 (account_time_size): New function.
5696 (cmp_counts): New function.
5697 (dump_histogram): New function.
5698 (ipa_profile_generate_summary): New function.
5699 (ipa_profile_write_summary): New function.
5700 (ipa_profile_read_summary): New function.
5701 (ipa_profile): Decide on threshold.
5702 (pass_ipa_profile): Add ipa_profile_write_summary and
5703 ipa_profile_read_summary.
5704 * Makefile.in (ipa.o): Update dependencies.
5705 * lto-streamer.h (LTO_section_ipa_profile): New section.
5707 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5709 * tree.h (VAR_P): New.
5711 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5714 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5716 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5718 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5719 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5720 (control_flow_insn_p): Likewise.
5721 * cfgrtl.c (duplicate_insn_chain): Likewise.
5722 * final.c (get_attr_length_1): Likewise.
5723 (shorten_branches): Likewise.
5724 (final_scan_insn): Likewise.
5725 * function.c (instantiate_virtual_regs): Likewise.
5726 * gcse.c (insert_insn_end_basic_block): Likewise.
5727 * ira-costs.c (scan_one_insn): Likewise.
5728 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5729 * lra.c (check_rtl): Likewise.
5730 * reload1.c (elimination_costs_in_insn): Likewise.
5731 * reorg.c (follow_jumps): Likewise.
5733 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5734 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5735 (thumb_far_jump_used_p): Likewise.
5736 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5737 (workaround_speculation): Likewise.
5738 (add_sched_insns_for_speculation): Likewise.
5739 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5740 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5741 (frv_for_each_packet): Likewise.
5742 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5743 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5744 (final_emit_insn_group_barriers): Likewise.
5745 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5746 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5747 (mips16_insn_length): Likewise.
5748 * config/pa/pa.c (pa_reorg): Likewise.
5749 (pa_combine_instructions): Likewise.
5750 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5751 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5752 (sh_reorg): Likewise.
5753 (split_branches): Likewise.
5754 * config/spu/spu.c (get_branch_target): Likewise.
5756 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5759 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5761 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
5762 Fix declaration name.
5764 2013-03-28 Lawrence Crowl <crowl@google.com>
5766 * graphds.h (struct graph.indicies): Remove unused.
5767 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5768 (SCOP_ORIGINAL_PDDRS): Remove unused.
5769 * sese.h (extern insert_loop_close_phis): Removed unused.
5770 (extern insert_guard_phis): Removed unused.
5771 (extern ivtype_map_elt_info): Removed unused.
5772 (new_ivtype_map_elt): Removed unused.
5773 * sese.c (ivtype_map_elt_info): Removed unused.
5775 2013-03-28 Lawrence Crowl <crowl@google.com>
5777 * Makefile.in: Add several missing include dependences.
5779 (test-dump.o): New. This object is not added to any executable,
5780 but is present for ad-hoc testing.
5782 (debug (const bitmap_head_def &)): New.
5783 (debug (const bitmap_head_def *)): New.
5785 (extern debug (const bitmap_head_def &)): New.
5786 (extern debug (const bitmap_head_def *)): New.
5788 (debug (edge_def &)): New.
5789 (debug (edge_def *)): New.
5791 (debug (basic_block_def &)): New.
5792 (debug (basic_block_def *)): New.
5794 (dump_node (const_tree, int, FILE *)): Correct source file.
5796 (debug (die_struct &)): New.
5797 (debug (die_struct *)): New.
5799 (extern debug (die_struct &)): New.
5800 (extern debug (die_struct *)): New.
5801 * gimple-pretty-print.c
5802 (debug (gimple_statement_d &)): New.
5803 (debug (gimple_statement_d *)): New.
5804 * gimple-pretty-print.h
5805 (extern debug (gimple_statement_d &)): New.
5806 (extern debug (gimple_statement_d *)): New.
5808 (debug (ira_allocno_copy &)): New.
5809 (debug (ira_allocno_copy *)): New.
5810 (debug (ira_allocno &)): New.
5811 (debug (ira_allocno *)): New.
5813 (extern debug (ira_allocno_copy &)): New.
5814 (extern debug (ira_allocno_copy *)): New.
5815 (extern debug (ira_allocno &)): New.
5816 (extern debug (ira_allocno *)): New.
5818 (debug (live_range &)): New.
5819 (debug (live_range *)): New.
5821 (debug (lra_live_range &)): New.
5822 (debug (lra_live_range *)): New.
5824 (debug (lra_live_range &)): New.
5825 (debug (lra_live_range *)): New.
5827 (debug (omega_pb_d &)): New.
5828 (debug (omega_pb_d *)): New.
5830 (extern debug (omega_pb_d &)): New.
5831 (extern debug (omega_pb_d *)): New.
5833 (debug (const rtx_def &)): New.
5834 (debug (const rtx_def *)): New.
5836 (debug_tree (tree): Move within file.
5837 (debug_raw (const tree_node &)): New.
5838 (debug_raw (const tree_node *)): New.
5839 (dump_tree_via_hooks (const tree_node *, int)): New.
5840 (debug (const tree_node &)): New.
5841 (debug (const tree_node *)): New.
5842 (debug_verbose (const tree_node &)): New.
5843 (debug_verbose (const tree_node *)): New.
5844 (debug_head (const tree_node &)): New.
5845 (debug_head (const tree_node *)): New.
5846 (debug_body (const tree_node &)): New.
5847 (debug_body (const tree_node *)): New.
5848 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5849 (debug (vec<tree, va_gc> &)): New.
5850 (debug (vec<tree, va_gc> *)): New.
5852 (extern debug (const rtx_def &)): New.
5853 (extern debug (const rtx_def *)): New.
5855 (debug_raw (simple_bitmap_def &)): New.
5856 (debug_raw (simple_bitmap_def *)): New.
5857 (debug (simple_bitmap_def &)): New.
5858 (debug (simple_bitmap_def *)): New.
5860 (extern debug (simple_bitmap_def &)): New.
5861 (extern debug (simple_bitmap_def *)): New.
5862 (extern debug_raw (simple_bitmap_def &)): New.
5863 (extern debug_raw (simple_bitmap_def *)): New.
5865 (debug (vinsn_def &)): New.
5866 (debug (vinsn_def *)): New.
5867 (debug_verbose (vinsn_def &)): New.
5868 (debug_verbose (vinsn_def *)): New.
5869 (debug (expr_def &)): New.
5870 (debug (expr_def *)): New.
5871 (debug_verbose (expr_def &)): New.
5872 (debug_verbose (expr_def *)): New.
5873 (debug (vec<rtx> &)): New.
5874 (debug (vec<rtx> *)): New.
5876 (extern debug (vinsn_def &)): New.
5877 (extern debug (vinsn_def *)): New.
5878 (extern debug_verbose (vinsn_def &)): New.
5879 (extern debug_verbose (vinsn_def *)): New.
5880 (extern debug (expr_def &)): New.
5881 (extern debug (expr_def *)): New.
5882 (extern debug_verbose (expr_def &)): New.
5883 (extern debug_verbose (expr_def *)): New.
5884 (extern debug (vec<rtx> &)): New.
5885 (extern debug (vec<rtx> *)): New.
5887 (_list_iter_cond_expr): Make inline instead of static.
5889 (debug (sreal &)): New.
5890 (debug (sreal *)): New.
5892 (extern debug (sreal &)): New.
5893 (extern debug (sreal *)): New.
5895 (extern debug_raw (const tree_node &)): New.
5896 (extern debug_raw (const tree_node *)): New.
5897 (extern debug (const tree_node &)): New.
5898 (extern debug (const tree_node *)): New.
5899 (extern debug_verbose (const tree_node &)): New.
5900 (extern debug_verbose (const tree_node *)): New.
5901 (extern debug_head (const tree_node &)): New.
5902 (extern debug_head (const tree_node *)): New.
5903 (extern debug_body (const tree_node &)): New.
5904 (extern debug_body (const tree_node *)): New.
5905 (extern debug (vec<tree, va_gc> &)): New.
5906 (extern debug (vec<tree, va_gc> *)): New.
5908 (debug (struct loop &)): New.
5909 (debug (struct loop *)): New.
5910 (debug_verbose (struct loop &)): New.
5911 (debug_verbose (struct loop *)): New.
5912 * tree-dump.c: Add header dependence.
5914 (extern debug (struct loop &)): New.
5915 (extern debug (struct loop *)): New.
5916 (extern debug_verbose (struct loop &)): New.
5917 (extern debug_verbose (struct loop *)): New.
5919 (debug (data_reference &)): New.
5920 (debug (data_reference *)): New.
5921 (debug (vec<data_reference_p> &)): New.
5922 (debug (vec<data_reference_p> *)): New.
5923 (debug (vec<ddr_p> &)): New.
5924 (debug (vec<ddr_p> *)): New.
5926 (extern debug (data_reference &)): New.
5927 (extern debug (data_reference *)): New.
5928 (extern debug (vec<data_reference_p> &)): New.
5929 (extern debug (vec<data_reference_p> *)): New.
5930 (extern debug (vec<ddr_p> &)): New.
5931 (extern debug (vec<ddr_p> *)): New.
5933 (debug (pt_solution &)): New.
5934 (debug (pt_solution *)): New.
5936 (extern debug (pt_solution &)): New.
5937 (extern debug (pt_solution *)): New.
5939 (debug (_var_map &)): New.
5940 (debug (_var_map *)): New.
5941 (debug (tree_live_info_d &)): New.
5942 (debug (tree_live_info_d *)): New.
5944 (extern debug (_var_map &)): New.
5945 (extern debug (_var_map *)): New.
5946 (extern debug (tree_live_info_d &)): New.
5947 (extern debug (tree_live_info_d *)): New.
5949 2013-03-28 Jan Hubicka <jh@suse.cz>
5951 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5953 2013-03-28 Ian Bolton <ian.bolton@arm.com>
5955 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5956 record only when desired or required.
5958 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
5960 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5961 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5963 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5965 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5966 (*andsi3_compare0_uxtw): New pattern.
5967 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5968 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5970 2013-03-28 Jan Hubicka <jh@suse.cz>
5972 * data-streamer-in.c (streamer_read_gcov_count): New function.
5973 * gimple-streamer-out.c: Include value-prof.h.
5974 (output_gimple_stmt): Output histogram.
5975 (output_bb): Use streamer_write_gcov_count.
5976 * value-prof.c: Include data-streamer.h
5977 (dump_histogram_value): Add HIST_TYPE_MAX.
5978 (stream_out_histogram_value): New function.
5979 (stream_in_histogram_value): New function.
5980 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5981 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5982 * data-streamer-out.c (streamer_write_gcov_count): New function.
5983 (streamer_write_gcov_count_stream): New function.
5984 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5985 (lto_output_node): Likewise.
5986 (input_node, input_edge): Likewise.
5987 * lto-streamer-out.c (output_cfg): Update streaming.
5988 * lto-streamer-in.c (input_cfg): Likewise.
5989 * data-streamer.h (streamer_write_gcov_count,
5990 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5991 * gimple-streamer-in.c: Include value-prof.h
5992 (input_gimple_stmt): Input histograms.
5993 (input_bb): Update profile streaming.
5995 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5997 * genmodes.c (emit_max_int): New function.
5998 (emit_insn_modes_h): Added call to emit_max_function.
5999 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6001 * machmode.def: Fixed comment.
6003 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6005 * combine.c (try_combine): Removed useless assert.
6006 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6008 2013-03-28 Marek Polacek <polacek@redhat.com>
6009 Richard Biener <rguenther@suse.de>
6011 PR tree-optimization/56695
6012 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6013 build signed result of a vector comparison.
6014 * tree-cfg.c (verify_gimple_comparison): Check that a result
6015 of a vector comparison has signed type.
6017 2013-03-28 Richard Biener <rguenther@suse.de>
6019 PR tree-optimization/37021
6020 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6021 do not restrict gaps between groups.
6022 * tree-vect-stmts.c (vectorizable_load): Properly account for
6023 a gap between groups.
6025 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6027 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6028 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6031 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6033 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6034 * doc/extend.texi (Named Address Spaces): Ditto.
6035 (Variable Attributes): Ditto.
6037 2013-03-27 Kai Tietz <ktietz@redhat.com>
6039 * config.build: Add support for cygwin x64 target.
6040 * config.gcc: Likewise.
6041 * config.host: Likewise.
6042 * configure.ac: Likewise
6043 * configure: Regenerated.
6045 2013-03-27 Kai Tietz <ktietz@redhat.com>
6047 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6048 * config/i386/t-cygwin-w64: New file.
6049 * config/i386/cygwin-w64.h: New file.
6050 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6051 and add support for x64-cygwin target.
6052 (CPP_SPEC): Likewise.
6053 (CXX_WRAP_SPEC_LIST): Undefine before define.
6054 (LIBGCJ_SONAME): Use 15 as version.
6056 2013-03-27 Richard Biener <rguenther@suse.de>
6058 PR tree-optimization/56716
6059 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6060 dumping for ref nodes.
6062 2013-03-27 Martin Jambor <mjambor@suse.cz>
6064 PR tree-optimization/55334
6065 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6066 restricted pointers to arrays.
6068 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6070 * Makefile.in (.SUFFIXES): Add .cc.
6071 (.c.o): Apply same recipe for implicit rule .cc.o.
6073 2013-03-27 Richard Biener <rguenther@suse.de>
6075 PR tree-optimization/37021
6076 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6077 REALPART/IMAGPART_EXPRs around the supported refs.
6078 * tree-ssa-structalias.c (find_func_aliases): Assume that
6079 floating-point values are not used to transfer pointers.
6081 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6083 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6084 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6085 * doc/tm.texi: Regenerate.
6086 * targhooks.h (default_has_ifunc_p): New.
6087 * targhooks.c (default_has_ifunc_p): Ditto.
6088 * config/linux-protos.h: New file.
6089 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6090 this hook for linux which disables support of indirect functions in
6092 * config/linux-android.c: New file.
6093 * config/t-linux-android.c: Ditto.
6094 * config.gcc: Added new object file linux-android.o.
6095 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6096 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6097 * varasm.c (do_assemble_alias): Likewise.
6098 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6099 doesn't support indirect functions.
6100 * configure: Regenerate.
6102 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6105 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6106 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6109 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6111 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6113 2013-03-27 Terry Guo <terry.guo@arm.com>
6115 * config/arm/arm-cores.def: Added core cortex-r7.
6116 * config/arm/arm-tune.md: Regenerated.
6117 * config/arm/arm-tables.opt: Regenerated.
6118 * doc/invoke.texi: Added entry for core cortex-r7.
6120 2013-03-27 Walter Lee <walt@tilera.com>
6122 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6123 double-decrement of next_scratch_regno.
6125 2013-03-27 Walter Lee <walt@tilera.com>
6127 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6129 (insn_v1mulus): Ditto.
6130 (insn_v2muls): Ditto.
6132 2013-03-27 Walter Lee <walt@tilera.com>
6134 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6135 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6137 2013-03-27 Walter Lee <walt@tilera.com>
6139 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6140 (*sibcall_value): Ditto.
6142 2013-03-27 Walter Lee <walt@tilera.com>
6144 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6145 (insn_mnz_v8qi): ... this ...
6146 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6148 (insn_v<n>mnz): Replaced by ...
6149 (insn_v1mnz): ... this ...
6150 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6152 (insn_mz_<mode>): Replaced by ...
6153 (insn_mz_v8qi): ... this ...
6154 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6156 (insn_v<n>mz): Replaced by ...
6157 (insn_v1mz): ... this ...
6158 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6161 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6163 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6165 2013-03-26 Roland McGrath <mcgrathr@google.com>
6167 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6168 than fprintf with a non-constant, non-format string.
6170 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6172 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6173 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6174 operand 0 predicate.
6175 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6176 attribute. Use general_x64nomem_operand as operand 1 predicate.
6177 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6178 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6179 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6180 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6181 (mov<mode>_insv_1): Remove expander. Merge insn with
6182 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6183 Use general_x64nomem_operand as operand 1 predicate.
6184 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6185 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6186 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6187 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6188 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6189 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6190 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6191 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6192 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6193 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6194 (general_x64nomem_operand): Ditto.
6196 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6198 * config/rtems.opt: Add -pthread option.
6200 2013-03-26 Richard Biener <rguenther@suse.de>
6202 * alias.c (find_base_term): Avoid redundant and not used recursion.
6203 (base_alias_check): Get the initial base term from the caller.
6204 (true_dependence_1): Compute and pass base terms to base_alias_check.
6205 (write_dependence_p): Likewise.
6206 (may_alias_p): Likewise.
6208 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6210 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6211 PC-relative load in SI modes and above only.
6213 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6215 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6216 * config/arm/iwmmxt.md (WCGR0): Update.
6217 (WCGR1, WCGR2, WCGR3): Likewise.
6219 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6221 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6222 Use x64 and nox64 isa attributes.
6224 2013-03-26 Richard Biener <rguenther@suse.de>
6226 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6227 alignment computations and rely on get_object_alignment_1
6228 for the !TYPE_P case.
6229 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6231 2013-03-26 Walter Lee <walt@tilera.com>
6233 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6234 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6236 2013-03-25 Jeff Law <law@redhat.com>
6238 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6239 check for INTEGRAL_TYPE_P that was missing due to checking in
6240 wrong version of prior patch.
6242 2013-03-25 Walter Lee <walt@tilera.com>
6244 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6245 TILEGX_INSN_SHUFFLEBYTES1.
6246 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6248 (tilegx_builtins): Ditto.
6249 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6251 2013-03-25 Walter Lee <walt@tilera.com>
6253 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6254 (floatunssisf2): New pattern.
6255 (floatsidf2): New pattern.
6256 (floatunssidf2): New pattern.
6258 2013-03-25 Walter Lee <walt@tilera.com>
6260 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6261 tests for constraint J, K, N, P.
6263 2013-03-25 Walter Lee <walt@tilera.com>
6265 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6266 Use indirect/pcrel encoding.
6267 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6270 2013-03-25 Steve Ellcey <sellcey@mips.com>
6272 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6273 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6274 * config/mips/mips.c (mips_option_override): Set IMADD default.
6275 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6276 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6277 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6278 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6279 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6281 2013-03-25 Jeff Law <law@redhat.com>
6283 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6284 slightly to avoid creating and folding useless trees. Simplify
6285 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6287 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
6289 * config/i386/i386.md (*zero_extendsidi2): Merge with
6290 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6291 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6292 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6293 targets. Clarify comment.
6295 2013-03-25 Martin Jambor <mjambor@suse.cz>
6297 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6298 pass-through jump functions differently.
6299 (ipa_read_jump_function): Likewise. Also use setter functions to set
6302 2013-03-25 Martin Jambor <mjambor@suse.cz>
6304 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6305 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6307 (ipa_get_indirect_edge_target): New function.
6308 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6309 ipa_get_indirect_edge_target. Update all callers.
6310 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6311 ipa_get_indirect_edge_target_1 instead of calling
6312 ipa_get_indirect_edge_target.
6313 (create_specialized_node): Pass aggvlas to
6314 ipcp_discover_new_direct_edges.
6316 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6318 * config/arm/arm.md (f_sels, f_seld): New types.
6319 (*cmov<mode>): New pattern.
6320 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6323 2013-03-25 Kai Tietz <ktietz@redhat.com>
6325 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6326 POSIX-printf for mingw-hosted builds.
6328 2013-03-25 Richard Biener <rguenther@suse.de>
6331 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6332 must-not-throw stmt location.
6334 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6336 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6337 Emit load-acquire versions when acq is true.
6338 (arm_emit_store_exclusive): Add rel parameter.
6339 Emit store-release versions when rel is true.
6340 (arm_split_compare_and_swap): Use acquire-release instructions
6342 of barriers when appropriate.
6343 (arm_split_atomic_op): Likewise.
6344 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6345 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6346 (VUNSPEC_SLX): Likewise.
6347 (VUNSPEC_LDA): Likewise.
6348 (VUNSPEC_STL): Likewise.
6349 * config/arm/sync.md (atomic_load<mode>): New pattern.
6350 (atomic_store<mode>): Likewise.
6351 (arm_load_acquire_exclusive<mode>): Likewise.
6352 (arm_load_acquire_exclusivesi): Likewise.
6353 (arm_load_acquire_exclusivedi): Likewise.
6354 (arm_store_release_exclusive<mode>): Likewise.
6356 2013-03-25 Catherine Moore <clm@codesourcery.com>
6358 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6359 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6360 * config/mip/predicates.md (lwsp_swsp_operand,
6361 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6362 sb16_operand, db4_operand, db7_operand, ib3_operand,
6363 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6364 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6365 andi16_operand): New predicates.
6366 * config/mips/mips.md (compression): New attribute.
6367 (enabled): New attribute.
6368 (length): Consider compression in computing length.
6369 (shift_compression): New code attribute.
6370 (*add<mode>3): New operands. Record compression.
6371 (sub<mode>3): Likewise.
6372 (one_cmpl<mode>2): Likewise.
6373 (*and<mode>3): Likewise.
6374 (*ior<mode>3): Likewise.
6375 (unnamed pattern for xor): Likewise.
6376 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6377 (*<optab><mode>3): Likewise.
6378 (*mov<mode>_internal: Likewise.
6379 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6380 (mips_unsigned_immediate_p): New.
6381 (umips_lwsp_swsp_address_p): New.
6382 (m16_based_address_p): New.
6383 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6384 (mips_unsigned_immediate_p): New prototype.
6385 (lwsp_swsp_address_p): New prototype.
6386 (m16_based_address_p): New prototype.
6387 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6388 (mips_signed_immediate_p): New function.
6389 (m16_based_address_p): New function.
6390 (lwsp_swsp_address_p): New function.
6391 (mips_print_operand_punctuation): Recognize short delay slot insns
6392 for microMIPS.add<mode>3"
6394 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6397 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6398 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6400 2013-03-25 Richard Biener <rguenther@suse.de>
6402 PR tree-optimization/56689
6403 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6406 2013-03-25 Richard Biener <rguenther@suse.de>
6408 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6410 (memory_references): Likewise.
6411 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6412 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6413 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6414 (gather_mem_refs_in_loops): Fold into ...
6415 (analyze_memory_references): ... this. Move initialization
6416 to tree_ssa_lim_initialize.
6417 (fill_always_executed_in): Rename to ...
6418 (fill_always_executed_in_1): ... this.
6419 (fill_always_executed_in): Move contains_call computation to
6420 this new function from ...
6421 (tree_ssa_lim_initialize): ... here.
6422 (tree_ssa_lim): Call fill_always_executed_in.
6424 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6426 * postreload.c (reload_combine): Fix code detecting returns.
6428 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6430 * function.c (emit_use_return_register_into_block): On cc0 targets,
6431 do not emit the sequence between cc0 setter and user.
6433 2013-03-25 Kai Tietz <ktietz@redhat.com>
6435 * config/i386/predicates.md (local_symbolic_operand): Interpret
6436 dll-imported symbols as none-local.
6438 2013-03-25 Richard Biener <rguenther@suse.de>
6440 * tree-ssa-loop-im.c (struct depend): Remove.
6441 (struct lim_aux_data): Make depends a vec of gimples.
6442 (free_lim_aux_data): Adjust.
6443 (add_dependency): Likewise.
6444 (set_level): Likewise.
6446 2013-03-25 Richard Biener <rguenther@suse.de>
6449 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6450 the pointer returned by calls with ECF_MALLOC set.
6452 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6454 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6456 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6458 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
6459 using MMXMODE mode iterator.
6460 (*move<mode>_internal): Merge with *movv2sf_internal and
6461 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6463 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6465 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6466 (record_last_mem_set_info): Likewise.
6468 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6469 of XNEWVEC followed by memset.
6470 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6472 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6474 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6475 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6476 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6477 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6478 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6479 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6480 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6481 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6482 BARRIER_P instead of GET_CODE.
6484 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6486 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6487 inaccuracy in the probing code.
6489 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6490 (ctrapdi4): Likewise.
6492 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6494 * calls.c (expand_call): Add missing guard to code handling return
6495 of non-BLKmode structures in MSB.
6496 * function.c (expand_function_end): Likewise.
6498 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6500 * combine.c (try_combine): Adjust comment. Do not add the set of
6501 insn #0 if the destination indirectly is set or dies in insn #2.
6502 Tidy up code to distribute a new note.
6504 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6506 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6507 also for alternatives 16 and 17.
6509 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6511 * config/i386/sse.md (*mov<mode>_internal): Merge with
6512 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6513 Emit insn template depending on type attribute. Use
6514 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6515 movd instead of movq mnemonic for interunit moves. Rewrite mode
6516 attribute calculation. Remove unit attribute calculation.
6517 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6518 Set prefix_data16 attribute for DImode ssemov types.
6519 Use Ym instead of y for SSE-MMX conversion alternatives.
6520 Reorder operand constraints.
6522 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6524 * df.h (df_insn_delete): Adjust prototype.
6525 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6526 and let it decide whether mark the basic block dirty.
6527 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6528 * df-scan.c (df_insn_info_delete): New helper function, split
6529 off from df_insn_delete.
6530 (df_scan_free_bb_info): Use it.
6531 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6533 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6534 that the insn is actually an insn and it has a non-NULL basic block.
6535 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6537 2013-03-22 Richard Biener <rguenther@suse.de>
6539 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6541 (mem_ref_alloc): Do not allocate them.
6542 (refs_independent_p): Do not query or maintain a cache.
6544 2013-03-22 Richard Biener <rguenther@suse.de>
6546 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6547 (gather_mem_refs_in_loops): Do not compute it.
6548 (analyze_memory_references): Do not allocate it.
6549 (tree_ssa_lim_finalize): Do not free it.
6550 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6552 2013-03-22 Richard Biener <rguenther@suse.de>
6554 * is-a.h (as_a): Use gcc_checking_assert.
6556 2013-03-22 Ian Bolton <ian.bolton@arm.com>
6558 * config/aarch64/aarch64.c (aarch64_print_operand): New
6559 format specifier for printing a constant in hex.
6560 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6561 format specifier for printing second operand.
6563 2013-03-22 Richard Biener <rguenther@suse.de>
6565 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6567 (gather_mem_refs_in_loops): Perform store accumulation here.
6568 (create_vop_ref_mapping_loop): Remove.
6569 (create_vop_ref_mapping): Likewise.
6570 (analyze_memory_references): Initialize refs_stored_in_loop.
6571 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
6572 (record_indep_loop): Remove.
6573 (record_dep_loop): New function.
6574 (ref_indep_loop_p_1): Adjust to only walk over references
6575 in the loop, not its subloops.
6576 (ref_indep_loop_p): Rename to ...
6577 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6578 maintaining a more fine-grained cache.
6579 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6580 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6582 2013-03-22 Richard Biener <rguenther@suse.de>
6584 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6585 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6586 aggregate mem_ref_loc.
6587 (free_mem_ref_locs): Inline into ...
6588 (memref_free): ... this and adjust.
6589 (mem_ref_alloc): Adjust.
6590 (mem_ref_locs_alloc): Remove.
6591 (record_mem_ref_loc): Adjust.
6592 (get_all_locs_in_loop): Rewrite into ...
6593 (for_all_locs_in_loop): ... this iterator.
6594 (rewrite_mem_ref_loc): New functor.
6595 (rewrite_mem_refs): Use for_all_locs_in_loop.
6596 (sm_set_flag_if_changed): New functor.
6597 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6598 (ref_always_accessed): New functor.
6599 (ref_always_accessed_p): Use for_all_locs_in_loop.
6601 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6603 * tree-pass.h (PROP_gimple_lvec): New.
6604 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6605 (init_optimization_passes): Move pass_lower_vector.
6606 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6608 (pass_lower_vector): Provide PROP_gimple_lvec.
6609 (pass_lower_vector_ssa): Likewise.
6610 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6612 2013-03-21 Mark Wielaard <mjw@redhat.com>
6614 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6616 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6618 * config/i386/i386.md (*movdi_internal): Disparage slightly
6619 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6620 conversion alternatives.
6622 2013-03-21 Jakub Jelinek <jakub@redhat.com>
6625 * diagnostic.def (DK_WERROR): New kind.
6626 * diagnostic.h (werrorcount): Define.
6627 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6628 promoted to DK_ERROR, increment DK_WERROR counter instead of
6630 * toplev.c (toplev_main): Call print_ignored_options even if
6631 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6632 even if just werrorcount is non-zero.
6635 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6637 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6638 (string_cst_pool_decl): New function.
6639 (optimize_one_addr_into_implicit_ptr): New function.
6640 (resolve_addr_in_expr): Optimize DWARF location expression
6641 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6642 which doesn't live in memory, but has DW_AT_location or
6643 DW_AT_const_value, or refers to a string literal, into
6644 DW_OP_GNU_implicit_pointer.
6645 (optimize_location_into_implicit_ptr): New function.
6646 (resolve_addr): If removing DW_AT_location of a variable because
6647 it was DW_OP_addr of address of the variable, but the variable doesn't
6648 live in memory, try to emit const value attribute for the initializer.
6650 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6652 * tree.h (VECTOR_TYPE_P): New macro.
6653 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6655 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6656 VEC_COND_EXPR cannot be lvalues.
6657 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6659 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6661 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6662 Restrict the transformation to equal modes.
6664 2013-03-21 Richard Biener <rguenther@suse.de>
6666 PR tree-optimization/39326
6667 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6668 (MEM_ANALYZABLE): Adjust.
6669 (record_mem_ref_loc): Move bitmap ops ...
6670 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6671 unanalyzable refs, do not record locations for it.
6672 (analyze_memory_references): Allocate ref zero as shared
6674 (refs_independent_p): Do not test for unanalyzed mems here.
6675 (ref_indep_loop_p_1): Special-case disambiguation against
6677 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
6679 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6681 * config/arm/arm-protos.h (tune_params): Add
6682 prefer_neon_for_64bits field.
6683 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6684 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6685 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6686 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6687 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6688 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6689 (arm_option_override): Handle -mneon-for-64bits new option.
6690 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6691 (prefer_neon_for_64bits): Declare new variable.
6692 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
6693 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
6694 (arch_enabled): Handle new arch types. Remove support for onlya8
6696 (one_cmpldi2): Use new arch names.
6697 (zero_extend<mode>di2, extend<mode>di2): Ditto.
6698 * config/arm/arm.opt (mneon-for-64bits): Add option.
6699 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6700 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6701 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6703 * doc/invoke.texi (-mneon-for-64bits): Document.
6705 2013-03-21 Richard Biener <rguenther@suse.de>
6707 PR tree-optimization/39326
6708 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6709 (sort_bbs_in_loop_postorder_cmp): New function.
6710 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
6712 2013-03-21 Richard Biener <rguenther@suse.de>
6714 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6715 (vect_insert_into_interleaving_chain): Likewise.
6716 (vect_drs_dependent_in_basic_block): Inline ...
6717 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6719 (vect_analyze_data_ref_dependence): ... here. Simplify.
6720 (vect_check_interleaving): Simplify.
6721 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6722 (vect_slp_analyze_data_ref_dependences): ... this new function.
6723 (dr_group_sort_cmp): New function.
6724 (vect_analyze_data_ref_accesses): Compute data-reference groups
6725 here instead of in vect_analyze_data_ref_dependence. Use
6726 a more efficient algorithm.
6727 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6728 vect_slp_analyze_data_ref_dependences. Call
6729 vect_analyze_data_ref_accesses earlier.
6730 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6731 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6732 (vect_slp_analyze_data_ref_dependences): New prototype.
6734 2013-03-21 Richard Biener <rguenther@suse.de>
6736 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6737 ref is stored in the loop.
6738 (find_refs_for_sm): Walk only over all stores.
6739 (store_motion_loop): Allocate from lim_bitmap_obstack.
6740 (store_motion): Likewise.
6742 2013-03-21 Richard Biener <rguenther@suse.de>
6744 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6745 Update virtual SSA form.
6747 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6749 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6750 * configure: Regenerate.
6751 * config.in: Regenerate.
6752 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6753 if !HAVE_LD_EH_FRAME_CIEV3.
6755 2013-03-21 Richard Biener <rguenther@suse.de>
6757 * tree-cfg.c (verify_expr_no_block): New function.
6758 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6759 nor DECL_VALUE_EXPR have locations with associated blocks.
6760 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6761 (clear_unused_block_pointer): Remove code dealing with
6762 blocks in DECL_DEBUG_EXPR locations.
6764 2013-03-21 Richard Biener <rguenther@suse.de>
6766 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6767 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6768 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6769 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6770 instead of DECL_DEBUG_EXPR_IS_FROM.
6771 * gimplify.c (gimplify_modify_expr): Likewise.
6772 * tree-cfg.c (verify_expr_location_1): Likewise.
6773 * tree-complex.c (create_one_component_var): Likewise.
6774 * tree-sra.c (create_access_replacement): Likewise.
6775 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6776 (clear_unused_block_pointer): Likewise.
6777 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6778 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6779 * var-tracking.c (var_debug_decl): Likewise.
6780 (track_expr_p): Likewise.
6781 * tree-inline.c (add_local_variables): Likewise. Set
6782 DECL_HAS_DEBUG_EXPR_P after copying it.
6783 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6784 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6786 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6789 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6790 * configure: Regenerate.
6791 * config.in: Regenerate.
6792 * config/i386/i386.md (*movdf_internal): Use
6793 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6794 movd instead of movq mnemonic for interunit moves.
6795 (*movdi_internal): Ditto.
6797 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6799 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6800 (abd<mode>_3): New pattern.
6801 (aba<mode>_3): New pattern.
6802 (fabd<mode>_3): New pattern.
6804 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6806 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6807 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6808 occurrence of REGISTER_PREFIX as its empty string.
6810 2013-03-20 Jeff Law <law@redhat.com>
6812 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6813 addititional equivalences for equality comparisons between an SSA_NAME
6814 and a constant where the SSA_NAME was set from a widening conversion.
6816 2013-03-20 Walter Lee <walt@tilera.com>
6818 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6820 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6822 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6823 depending on type attribute.
6824 (*movti_internal): Ditto.
6825 (*movtf_internal): Ditto.
6826 (*movxf_internal): Ditto.
6827 (*movdf_internal): Ditto.
6828 (*movsf_internal): Ditto.
6830 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6832 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6833 maybe_vex for sselog1 and ssemov types.
6834 (*movdi_internal): Reorder operand constraints.
6835 (*movsi_internal): Ditto. Set prefix attribute to
6836 maybe_vex for sselog1 and ssemov types.
6837 (*movtf_internal): Set prefix attribute to maybe_vex
6838 for sselog1 and ssemov types.
6839 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6840 DImode ssemov types. Reorder operand constraints.
6841 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6842 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6843 attribute for SImode ssemov types. Reorder operand constraints.
6845 2013-03-20 Martin Jambor <mjambor@suse.cz>
6847 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6848 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6850 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6852 * config/rs6000/predicates.md (indexed_address, update_address_mem
6853 update_indexed_address_mem): New predicates.
6854 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6855 attribute for load/store instructions.
6856 * config/rs6000/dfp.md (movsd_store): Likewise.
6857 (movsd_load): Likewise.
6858 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6859 (unnamed HI->DI extend define_insn): Likewise.
6860 (unnamed SI->DI extend define_insn): Likewise.
6861 (unnamed QI->SI extend define_insn): Likewise.
6862 (unnamed QI->HI extend define_insn): Likewise.
6863 (unnamed HI->SI extend define_insn): Likewise.
6864 (unnamed HI->SI extend define_insn): Likewise.
6865 (extendsfdf2_fpr): Likewise.
6866 (movsi_internal1): Likewise.
6867 (movsi_internal1_single): Likewise.
6868 (movhi_internal): Likewise.
6869 (movqi_internal): Likewise.
6870 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6871 attribute for load/store instructions.
6872 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6874 (mov<mode>_softfloat): Likewise.
6875 (mov<mode>_hardfloat32): Likewise.
6876 (mov<mode>_hardfloat64): Likewise.
6877 (mov<mode>_softfloat64): Likewise.
6878 (movdi_internal32): Likewise.
6879 (movdi_internal64): Likewise.
6880 (probe_stack_<mode>): Likewise.
6882 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6884 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6885 floating point, and decimal floating point to reload iterator.
6887 * config/rs6000/constraints.md (wl constraint): New constraints to
6888 return FLOAT_REGS if certain options are used to reduce the number
6889 of separate patterns that exist in the file.
6890 (wx constraint): Likewise.
6891 (wz constraint): Likewise.
6893 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6894 -mdebug=reg, print wg, wl, wx, and wz constraints.
6895 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6896 Initialize the reload functions for 64-bit binary/decimal floating
6898 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6899 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6900 create the buffer on the stack to overcome not having a 32-bit
6902 (rs6000_emit_move): Likewise.
6903 (rs6000_secondary_memory_needed_rtx): Likewise.
6904 (rs6000_alloc_sdmode_stack_slot): Likewise.
6905 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6906 via xxlxor, just like DFmode 0.0.
6908 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6909 define as 1 if we are running on a power7 or newer.
6910 (enum r6000_reg_class_enum): Add new constraints.
6912 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6913 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6914 with other moves by using conditional constraits (wg). Use LFIWZX
6915 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
6916 (movsd splitter): Likewise.
6917 (movsd_hardfloat): Likewise.
6918 (movsd_softfloat): Likewise.
6920 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6921 binary and decimal floating point moves.
6922 (fmove_ok): New attributes to combine binary and decimal floating
6923 point moves, and to combine power6x (mfpgpr) moves along normal
6925 (real_value_to_target): Likewise.
6932 (movsf): Combine binary and decimal floating point moves. Combine
6933 power6x (mfpgpr) moves with other moves by using conditional
6934 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
6935 (mov<mode> for SFmode/SDmode); Likewise.
6936 (SFmode/SDmode splitters): Likewise.
6937 (movsf_hardfloat): Likewise.
6938 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6939 (movsf_softfloat): Likewise.
6940 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6942 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6943 wx and wz constraints.
6945 * config/rs6000/constraints.md (wg constraint): New constraint to
6946 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6948 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6952 -mdebug=reg, print wg, wl, wx, and wz constraints.
6953 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6954 Initialize the reload functions for 64-bit binary/decimal floating
6956 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6957 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6958 create the buffer on the stack to overcome not having a 32-bit
6960 (rs6000_emit_move): Likewise.
6961 (rs6000_secondary_memory_needed_rtx): Likewise.
6962 (rs6000_alloc_sdmode_stack_slot): Likewise.
6963 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6964 via xxlxor, just like DFmode 0.0.
6966 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6967 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6968 with other moves by using conditional constraits (wg). Use LFIWZX
6969 and STFIWX for loading SDmode on power7.
6970 (movdd splitters): Likewise.
6971 (movdd_hardfloat32): Likewise.
6972 (movdd_softfloat32): Likewise.
6973 (movdd_hardfloat64_mfpgpr): Likewise.
6974 (movdd_hardfloat64): Likewise.
6975 (movdd_softfloat64): Likewise.
6977 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6978 64-bit binary and decimal floating point moves.
6979 (FMOVE64X): Likewise.
6980 (movdf): Combine 64-bit binary and decimal floating point moves.
6981 Combine power6x (mfpgpr) moves with other moves by using
6982 conditional constraits (wg).
6983 (mov<mode> for DFmode/DDmode): Likewise.
6984 (DFmode/DDmode splitters): Likewise.
6985 (movdf_hardfloat32): Likewise.
6986 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6987 (movdf_softfloat32): Likewise.
6988 (movdf_hardfloat64_mfpgpr): Likewise.
6989 (movdf_hardfloat64): Likewise.
6990 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6991 (movdf_softfloat64): Likewise.
6992 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6993 (reload_<mode>_load): Move to later in the file so they aren't in
6994 the middle of the floating point move insns.
6995 (reload_<mode>_store): Likewise.
6997 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7001 constraint if -mdebug=reg.
7002 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7003 Enable using dd reload support if needed.
7005 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7006 binary and decimal floating point moves in rs6000.md.
7007 (movtd_internal): Likewise.
7009 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7010 decimal floating point moves.
7012 (movtf_internal): Likewise.
7013 (mov<mode>_internal, TDmode/TFmode): Likewise.
7014 (movtf_softfloat): Likewise.
7015 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7017 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7018 movdi_internal64, using wg constraint for move direct operations.
7019 (movdi_internal64): Likewise.
7021 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7022 MODES_TIEABLE_P for selected modes. Print the numerical value of
7023 the various virtual registers. Use GPR/FPR first/last values,
7024 instead of hard coding the register numbers. Print which modes
7025 have reload functions registered.
7026 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7027 settings before/after setting cpu, target and subtarget settings.
7028 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7029 and for secondary reload failures in rs6000_secondary_reload_inner.
7030 (rs6000_secondary_reload_fail): Likewise.
7031 (rs6000_secondary_reload_inner): Likewise.
7033 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7034 macros for first/last GPR and FPR registers.
7035 (LAST_GPR_REGNO): Likewise.
7036 (FIRST_FPR_REGNO): Likewise.
7037 (LAST_FPR_REGNO): Likewise.
7039 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7040 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7041 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7042 (vcond<mode><mode>): Likewise.
7043 (vcondu<mode><mode>): Likewise.
7044 (vector_gtu<mode>): Likewise.
7045 (vector_gte<mode>): Likewise.
7046 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7047 to prevent the compiler from converting DImode operations to TImode.
7048 (ior<mode>3): Likewise.
7049 (and<mode>3): Likewise.
7050 (one_cmpl<mode>2): Likewise.
7051 (nor<mode>3): Likewise.
7052 (andc<mode>3): Likewise.
7054 * config/rs6000/constraints.md (wt constraint): New constraint
7055 that returns VSX_REGS if TImode is allowed in VSX registers.
7057 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7060 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7061 similar to TImode, but it is restricted to being in the GPRs.
7063 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7064 TImode to occupy a single VSX register.
7066 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7067 -mvsx-timode for power7/power8.
7068 (power7 cpu): Likewise.
7069 (power8 cpu): Likewise.
7071 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7072 sure that TFmode/TDmode take up two registers if they are ever
7073 allowed in the upper VSX registers.
7074 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7076 (rs6000_init_hard_regno_mode_ok): Likewise.
7077 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7078 constraint. Print if LRA is turned on.
7079 (rs6000_option_override_internal): Give an error if -mvsx-timode
7080 and VSX is not enabled.
7081 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7082 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7083 to reg+offset addressing. Use PTImode when checking offset
7084 addresses for validity.
7085 (reg_offset_addressing_ok_p): Likewise.
7086 (rs6000_legitimate_offset_address_p): Likewise.
7087 (rs6000_legitimize_address): Likewise.
7088 (rs6000_legitimize_reload_address): Likewise.
7089 (rs6000_legitimate_address_p): Likewise.
7090 (rs6000_eliminate_indexed_memrefs): Likewise.
7091 (rs6000_emit_move): Likewise.
7092 (rs6000_secondary_reload): Likewise.
7093 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7094 reloads to fpr registers to continue to use reg+offset addressing,
7095 but 64-bit reloads to altivec registers need reg+reg addressing.
7096 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7097 it. Treat LO_SUM like a PLUS operation.
7098 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7099 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7100 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7101 registers to share a register with a smaller sized type, since VSX
7102 puts scalars in the upper 64-bits.
7103 (print_operand): Add support for PTImode.
7104 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7105 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7106 registers, but don't have arithmetic support.
7107 (rs6000_memory_move_cost): Add test for VSX.
7108 (rs6000_opt_masks): Add -mvsx-timode.
7110 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7113 (VSr): Use wt constraint for TImode.
7114 (VSv): Drop TImode support.
7115 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7116 (vsx_movti_64bit): Likewise.
7117 (vsx_movti_32bit): Likewise.
7118 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7119 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7120 one '?' on the appropriate output constraint. Do not allow TImode
7121 logical operations on 32-bit systems.
7122 (vsx_ior<mode>3): Likewise.
7123 (vsx_xor<mode>3): Likewise.
7124 (vsx_one_cmpl<mode>2): Likewise.
7125 (vsx_nor<mode>3): Likewise.
7126 (vsx_andc<mode>3): Likewise.
7127 (vsx_concat_<mode>): Likewise.
7128 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7130 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7131 OPTION_MASK_VSX_TIMODE.
7132 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7133 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7135 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7136 (TI2 iterator): New iterator for TImode, PTImode.
7137 (wd mode attribute): Add values for vector types.
7138 (movti_string): Replace TI move operations with operations for TImode
7139 and PTImode. Add support for TImode being allowed in VSX registers.
7140 (mov<mode>_string, TImode/PTImode): Likewise.
7141 (movti_ppc64): Likewise.
7142 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7143 (TI mode splitters): Likewise.
7145 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7148 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7150 PR tree-optimization/56355
7151 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7152 Also handle integers with undefined overflow.
7154 2013-03-20 Catherine Moore <clm@codesourcery.com>
7155 Maciej W. Rozycki <macro@codesourcery.com>
7156 Tom de Vries <tom@codesourcery.com>
7157 Nathan Sidwell <nathan@codesourcery.com>
7158 Iain Sandoe <iain@codesourcery.com>
7159 Nathan Froyd <froydnj@codesourcery.com>
7160 Chao-ying Fu <fu@mips.com>
7162 * doc/extend.texi: (micromips, nomicromips, nocompression):
7163 Document new function attributes.
7164 * doc/invoke.texi (minterlink-compressed, mmicromips,
7165 m14k, m14ke, m14kec): Document new options.
7166 (minterlink-mips16): Update documentation.
7167 * doc/md.texi (ZC, ZD): Document new constraints.
7168 * configure.ac (gcc_cv_as_micromips): Check if linker
7169 supports the .set micromips directive.
7170 * configure: Regenerate.
7171 * config.in: Regenerate.
7172 * config/mips/mips-tables.opt: Regenerate.
7173 * config/mips/micromips.md: New file.
7174 * constraints.md (ZC, ZD): New constraints.
7175 * config/mips/predicates.md (movep_src_register): New predicate.
7176 (movep_src_operand): New predicate.
7177 (non_volatile_mem_operand): New predicate.
7178 * config/mips/mips.md (multimem): New type.
7179 (length): Differentiate between 17-bit and 18-bit branch offsets.
7180 (MOVEP1, MOVEP2): New mode iterator.
7181 (mov_<load>l): Use ZC constraint.
7182 (mov_<load>r): Likewise.
7183 (mov_<store>l): Likewise.
7184 (mov_<store>r): Likewise.
7185 (*branch_equality<mode>_inverted): Add microMIPS support.
7186 (*branch_equality<mode>): Likewise.
7187 (*jump_absolute): Likewise.
7188 (indirect_jump_<mode>): Likewise.
7189 (tablejump_<mode>): Likewise.
7190 (<optab>_internal): Likewise.
7191 (sibcall_internal): Likewise.
7192 (sibcall_value_internal): Likewise.
7193 (prefetch): Use constraint ZD.
7194 * config/mips/mips.opt (minterlink-compressed): New option.
7195 (minterlink-mips16): Now an alias for minterlink-compressed.
7196 (mmicromips): New option.
7197 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7198 (compare_and_swap_12): Likewise.
7199 (sync_add<mode>): Likewise.
7200 (sync_<optab>_12): Likewise.
7201 (sync_old_<optab>_12): Likewise.
7202 (sync_new_<optab>_12): Likewise.
7203 (sync_nand_12): Likewise.
7204 (sync_old_nand_12): Likewise.
7205 (sync_new_nand_12): Likewise.
7206 (sync_sub<mode>): Likewise.
7207 (sync_old_add<mode>): Likewise.
7208 (sync_old_sub<mode>): Likewise.
7209 (sync_new_add<mode>): Likewise.
7210 (sync_new_sub<mode>): Likewise.
7211 (sync_<optab><mode>): Likewise.
7212 (sync_old_<optab><mode>): Likewise.
7213 (sync_new_<optab><mode>): Likewise.
7214 (sync_nand<mode>): Likewise.
7215 (sync_old_nand<mode>): Likewise.
7216 (sync_new_nand<mode>): Likewise.
7217 (sync_lock_test_and_set<mode>): Likewise.
7218 (test_and_set_12): Likewise.
7219 (atomic_compare_and_swap<mode>): Likewise.
7220 (atomic_exchange<mode>_llsc): Likewise.
7221 (atomic_fetch_add<mode>_llsc): Likewise.
7222 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7223 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7224 (umips_save_restore_pattern_p): Likewise.
7225 (umips_load_store_pair_p): Likewise.
7226 (umips_output_load_store_pair): Likewise.
7227 (umips_movep_target_p): Likewise.
7228 (umips_12bit_offset_address_p): Likewise.
7229 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7230 (mips_base_mips16): Rename this...
7231 (mips_base_compression_flags): ...to this. Update all uses.
7232 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7233 (mips_mips16_decl_p): Delete.
7234 (mips_nomips16_decl_p): Delete.
7235 (mips_get_compress_on_flags): New function.
7236 (mips_get_compress_off_flags): New function.
7237 (mips_get_compress_mode): New function.
7238 (mips_get_compress_on_name): New function.
7239 (mips_get_compress_off_name): New function.
7240 (mips_insert_attributes): Support multiple compression types.
7241 (mips_merge_decl_attributes): Likewise.
7242 (umips_12bit_offset_address_p): New function.
7243 (mips_start_function_definition): Emit .set micromips directive.
7244 (mips_call_may_need_jalx_p): New function.
7245 (mips_function_ok_for_sibcall): Add microMIPS support.
7246 (mips_print_operand_punctuation): Support short delay slots and
7248 (umips_swm_mask, umips_swm_encoding): New.
7249 (umips_build_save_restore): New function.
7250 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7251 (was_mips16_p): Remove.
7252 (old_compression_mode): New.
7253 (mips_set_compression_mode): New function.
7254 (mips_set_current_function): Add microMIPS support.
7255 (mips_option_override): Likewise.
7256 (umips_save_restore_pattern_p): New function.
7257 (umips_output_save_restore): New function.
7258 (umips_load_store_pair_p_1): New function.
7259 (umips_load_store_pair_p): New function.
7260 (umips_output_load_store_pair_1): New function.
7261 (umips_output_load_store_pair): New function.
7262 (umips_movep_target_p) New function.
7263 (mips_prepare_pch_save): Add microMIPS support.
7264 * config/mips/mips.h (TARGET_COMPRESSION): New.
7265 (TARGET_CPU_CPP_BUILTINS): Update macro
7266 to use new compression flags and to support microMIPS.
7267 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7268 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7269 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7270 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7271 (ASM_SPEC): Support mmicromips and mno-micromips.
7272 (M16STORE_REG_P): New macro.
7273 (MIPS_CALL): Support TARGET_MICROMIPS.
7274 (MICROMIPS_J): New macro.
7275 (mips_base_mips16): Rename this...
7276 (mips_base_compression_flags): ...to this.
7277 (UMIPS_12BIT_OFFSET_P): New macro.
7278 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7279 (MULTILIB_DIRNAMES): Likewise.
7280 2013-03-20 Richard Biener <rguenther@suse.de>
7282 PR tree-optimization/56661
7283 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7284 the result does not have to be distinct.
7286 2013-03-20 Richard Biener <rguenther@suse.de>
7288 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7291 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7292 Steven Bosscher <steven@gcc.gnu.org>
7294 PR rtl-optimization/56605
7295 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7297 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7300 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7301 that require movd instead of movq.
7303 2013-03-20 Richard Biener <rguenther@suse.de>
7305 * tree-ssa-structalias.c (struct variable_info): Add pointer
7306 to the first field of an aggregate with sub-vars. Make
7307 this and the pointer to the next subfield its ID.
7308 (vi_next): New function.
7309 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7310 storedanything_id, integer_id): Increment by one.
7311 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7312 get_call_clobber_vi): Adjust.
7313 (solution_set_expand): Simplify and speedup.
7314 (solution_set_add): Inline into ...
7315 (set_union_with_increment): ... this. Adjust accordingly.
7316 (do_sd_constraint): Likewise.
7317 (do_ds_constraint): Likewise.
7318 (do_complex_constraint): Simplify.
7319 (build_pred_graph): Adjust.
7320 (solve_graph): Likewise. Simplify and speedup.
7321 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7322 get_constraint_for_component_ref, get_constraint_for_1,
7323 first_vi_for_offset, first_or_preceding_vi_for_offset,
7324 create_function_info_for, create_variable_info_for_1,
7325 create_variable_info_for, intra_create_variable_infos): Adjust.
7326 (init_base_vars): Push NULL for ID zero.
7327 (compute_points_to_sets): Adjust.
7329 2013-03-20 Richard Biener <rguenther@suse.de>
7331 * cfgloop.c (verify_loop_structure): Streamline and avoid
7332 ICEing on corrupt loop tree.
7333 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7336 2013-03-20 Richard Biener <rguenther@suse.de>
7338 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7339 check whether an SSA update is needed.
7341 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7343 * config/mips/constraints.md (T): Rename to...
7347 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7348 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7350 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7352 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7353 (*subsi3_carryin_uxtw): Likewise.
7355 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7357 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7358 (*rorsi3_insn_uxtw): Likewise.
7360 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7362 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7363 (*extrsi5_insn_uxtw): Likewise.
7365 2013-03-19 Richard Biener <rguenther@suse.de>
7367 PR tree-optimization/56273
7368 * passes.c (init_optimization_passes): Move second VRP after DOM.
7370 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
7372 * config/i386/i386.md (*movti_internal): Merge from
7373 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7374 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7375 nox64 isa attributes.
7377 2013-03-18 Richard Biener <rguenther@suse.de>
7379 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7381 (merge_node_constraints): Likewise.
7382 (build_succ_graph): Likewise.
7383 (valid_graph_edge): Inline into single caller.
7384 (unify_nodes): Likewise. Use bitmap_set_bit return value
7386 (scc_visit): Fix formatting and variable use.
7387 (do_sd_constraint): Use gcc_checking_assert.
7388 (do_ds_constraint): Likewise.
7389 (do_complex_constraint): Likewise.
7390 (condense_visit): Likewise. Cleanup.
7391 (dump_pred_graph): New function.
7392 (perform_var_substitution): Dump the pred-graph before
7393 variable substitution.
7394 (find_equivalent_node): Use gcc_checking_assert.
7395 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7397 2013-03-18 Richard Biener <rguenther@suse.de>
7399 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7400 Remove cond_expr_stmt_list argument and do not gimplify the
7402 (vect_loop_versioning): Adjust.
7403 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7404 Cleanup to use less temporaries.
7405 (vect_create_data_ref_ptr): Cleanup.
7407 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7409 PR tree-optimization/56635
7410 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7411 require types_compatible_p types.
7413 2013-03-18 Nick Clifton <nickc@redhat.com>
7415 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7418 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7419 Add missing line to comment describing function.
7421 2013-03-18 Richard Biener <rguenther@suse.de>
7423 PR tree-optimization/56210
7424 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7425 Handle string / character search functions.
7426 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7428 2013-03-18 Richard Biener <rguenther@suse.de>
7431 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7432 and implement properly.
7433 * gimple.h (gimple_cond_single_var_p): Remove.
7435 2013-03-18 Richard Biener <rguenther@suse.de>
7437 * tree-data-ref.h (find_data_references_in_loop): Declare.
7438 * tree-data-ref.c (get_references_in_stmt): Use a stack
7439 vector pre-allocated in the callers.
7440 (find_data_references_in_stmt): Adjust.
7441 (graphite_find_data_references_in_stmt): Likewise.
7442 (create_rdg_vertices): Likewise.
7443 (find_data_references_in_loop): Export.
7444 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7445 Compute dependences here...
7446 (vect_analyze_data_refs): ...not here. When we encounter
7447 a non-vectorizable data reference in basic-block vectorization
7448 truncate the data reference vector. Do not bother to
7449 fixup data-dependence information for gather loads.
7450 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7451 of data references, as reported.
7453 2013-03-18 Richard Biener <rguenther@suse.de>
7455 PR tree-optimization/3713
7456 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7457 has_constants and expr.
7458 (stmt_has_constants): Properly valueize SSA names when deciding
7459 whether the stmt has constants.
7461 2013-03-18 Richard Biener <rguenther@suse.de>
7463 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7464 whole function when there is nothing to do.
7465 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7466 * tree-vectorizer.c (vectorize_loops): Update virtual and
7467 loop-closed SSA once.
7468 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7470 2013-03-18 Richard Biener <rguenther@suse.de>
7473 * domwalk.c (bb_postorder): New global static.
7474 (cmp_bb_postorder): New function.
7475 (walk_dominator_tree): Replace scheme imposing an order for
7476 visiting dominator sons by one sorting them at the time they
7477 are pushed on the stack.
7479 2013-03-18 Richard Biener <rguenther@suse.de>
7481 PR tree-optimization/39326
7482 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7483 (struct mem_ref): Replace mem member with ao_ref typed member.
7484 (MEM_ANALYZABLE): Adjust.
7485 (memref_eq): Likewise.
7486 (mem_ref_alloc): Likewise.
7487 (gather_mem_refs_stmt): Likewise.
7488 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7489 (execute_sm_if_changed_flag_set): Adjust.
7490 (execute_sm): Likewise.
7491 (ref_always_accessed_p): Likewise.
7492 (refs_independent_p): Likewise.
7493 (can_sm_ref_p): Likewise.
7495 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7498 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7499 return 1 even for !unsignedp.
7501 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7503 * config/i386/i386.md (isa): Add x64 and nox64.
7504 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7505 (*pushtf): Enable *roF alternative for x64 isa only.
7506 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7507 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7508 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7509 (*movtf_internal): Merge from *movtf_internal_rex64 and
7510 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7511 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7512 nox64 isa attributes.
7513 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7514 nox64 isa attributes.
7515 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7517 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7519 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7521 2013-03-17 Jakub Jelinek <jakub@redhat.com>
7524 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7525 class names. Remove trailing comma after "ALL_REGS".
7527 2013-03-16 Jan Hubicka <jh@suse.cz>
7529 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7530 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7531 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7532 of cgraph_get_create_node.
7533 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7535 2013-03-16 Jason Merrill <jason@redhat.com>
7538 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7539 with DW_AT_default_value.
7541 2013-03-16 Jakub Jelinek <jakub@redhat.com>
7543 * BASE-VER: Set to 4.9.0.
7545 2013-03-14 Andi Kleen <ak@linux.intel.com>
7548 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7549 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7550 Document _x* TSX intrinsics.
7552 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7553 David Holsgrove <david.holsgrove@xilinx.com>
7555 * configure.ac: Add MicroBlaze TLS support detection.
7556 * configure: Regenerate.
7557 * config/microblaze/microblaze-protos.h
7558 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7559 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7560 * config/microblaze/microblaze.c (microblaze_address_type): Add
7561 ADDRESS_TLS and tls_reloc address types.
7562 (microblaze_address_info): Add tls_reloc.
7563 (TARGET_HAVE_TLS): Define.
7564 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7565 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
7566 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7567 load_tls_operand, microblaze_call_tls_get_addr,
7568 microblaze_legitimize_tls_address): New functions.
7569 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7570 (get_base_reg): Use microblaze_tls_symbol_p.
7571 (microblaze_classify_address): Handle TLS.
7572 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7573 label_mentioned_p and microblaze_tls_referenced_p.
7574 (microblaze_legitimize_address): Handle TLS.
7575 (microblaze_address_insns): Handle ADDRESS_TLS.
7576 (pic_address_needs_scratch): Handle TLS.
7577 (print_operand_address): Handle TLS.
7578 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7579 (microblaze_expand_move): Handle TLS.
7580 (microblaze_legitimate_constant_p): Check
7581 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
7582 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7583 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7584 (PIC_OFFSET_TABLE_REGNUM): Set.
7585 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7586 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7587 (addsi3, movsi_internal2, movdf_internal): Update constraints
7588 * config/microblaze/predicates.md (arith_plus_operand): Define
7589 (move_operand): Redefine as move_src_operand,
7590 check microblaze_tls_referenced_p.
7592 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7594 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7595 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7597 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7599 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7602 2013-03-14 Jakub Jelinek <jakub@redhat.com>
7604 PR tree-optimization/53265
7605 * common.opt (Waggressive-loop-optimizations): New option.
7606 * tree-ssa-loop-niter.c: Include tree-pass.h.
7607 (do_warn_aggressive_loop_optimizations): New function.
7608 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7609 if number_of_latch_executions returned constant.
7610 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7611 early. If number_of_latch_executions returned constant, set
7612 nb_iterations_upper_bound back to it.
7613 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7615 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7616 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7618 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7619 (MULTILIB_OSDIRNAMES): Set.
7620 * genmultilib: If defaultosdirname doesn't start with :: , set
7621 defaultosdirname2 instead, clear it and emit two . multilib_raw
7622 entries instead of just one.
7624 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7626 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7627 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7628 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7629 (SUBTARGET_OVERRIDE_OPTIONS): New.
7631 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7634 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7635 (musermode): Convert to Var(TARGET_USERMODE).
7636 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7637 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7638 * config/sh/sh.c (sh_option_override): Use
7639 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7640 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7642 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7644 (udivsi3_i4_single, divsi3_i4_single): Use
7645 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7647 2013-03-13 Dave Korn <dave.korn.cygwin@....>
7649 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7652 2013-03-13 Richard Biener <rguenther@suse.de>
7654 PR tree-optimization/56608
7655 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7656 calls when vectorizing basic-blocks.
7658 2013-03-13 Jakub Jelinek <jakub@redhat.com>
7661 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7664 2013-03-12 Jakub Jelinek <jakub@redhat.com>
7666 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7668 2013-03-11 Jan Hubicka <jh@suse.cz>
7671 * lto-streamer-out.c (output_symbol_p): Skip references from
7672 constructors of external variables.
7674 2013-03-11 Jan Hubicka <jh@suse.cz>
7677 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7679 * emit-rtl.c (verify_rtx_sharing): Likewise.
7680 (copy_insn_1): Likewise.
7681 * rtl.c (copy_rtx): Likewise.
7683 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
7686 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7687 output_operand_lossage message.
7689 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
7692 * arm.c (shift_op): Validate RTL pattern on the fly.
7693 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7696 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7699 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7700 new call patterns that clobber %fr12.
7701 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7702 split and postreload patterns.
7703 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7704 registers %fr12 and %fr12R as call used.
7706 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7708 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7709 (canon_address, record_store, replace_read, check_mem_read_rtx,
7710 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7711 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7712 rest_of_handle_dse): Likewise.
7714 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7717 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7719 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7720 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7721 (save_optabs_if_changed): Replace with...
7722 (init_tree_optimization_optabs): ...this.
7723 * optabs.c (save_optabs_if_changed): Rename to...
7724 (init_tree_optimization_optabs): ...this. Take the optimization node
7725 as argument. Do nothing if the base optabs are already correct.
7726 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7727 to recompute optabs.
7728 * function.h (function): Remove optabs field.
7729 * function.c (invoke_set_current_function_hook): Call
7730 init_tree_optimization_optabs. Use the result to initialize
7733 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
7735 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7736 if GTMA_HAS_NO_INSTRUMENTATION.
7737 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7738 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7739 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7740 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7741 GTMA_HAS_NO_INSTRUMENTATION.
7743 2013-03-08 Jakub Jelinek <jakub@redhat.com>
7745 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7748 2013-03-08 Marek Polacek <polacek@redhat.com>
7749 Jakub Jelinek <jakub@redhat.com>
7751 PR tree-optimization/56478
7752 * predict.c (is_comparison_with_loop_invariant_p): Change the
7753 type of loop_step to tree.
7754 (predict_loops): Adjust.
7755 (predict_iv_comparison): Perform the computations on double_ints.
7757 2013-03-08 Richard Biener <rguenther@suse.de>
7759 PR tree-optimization/56570
7760 * tree-cfg.c (verify_expr_location_1): Verify locations for
7762 * tree-sra.c (create_access_replacement): Strip locations
7763 from DECL_DEBUG_EXPRs.
7765 2013-03-08 Richard Biener <rguenther@suse.de>
7767 * tree-inline.c (expand_call_inline): Do not associate
7768 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7769 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7771 2013-03-08 Richard Biener <rguenther@suse.de>
7773 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7774 or block changes with -Og. Fix for location / block encoding
7775 changes and PHI arguments with locations.
7777 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7779 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7781 (struct output_info): Likewise.
7782 (register_overhead): Remove bad gcc_assert.
7783 (bitmap_find_bit): If there is only a single bitmap element, do not
7784 count a miss as a search.
7785 (print_statistics): Update for counter type changes.
7786 (dump_bitmap_statistics): Likewise. Print headers such that they
7787 are properly lined up with the printed counters.
7789 2013-03-07 Jakub Jelinek <jakub@redhat.com>
7791 PR tree-optimization/56559
7792 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7793 check that it has only a single use.
7795 2013-03-07 Richard Biener <rguenther@suse.de>
7797 * doc/invoke.texi (fwhole-program): Discourage use in combination
7800 2013-03-06 Jakub Jelinek <jakub@redhat.com>
7802 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7804 PR tree-optimization/56539
7805 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7806 instead of GSI_CONTINUE_LINKING as last argument to
7807 force_gimple_operand_gsi. Adjust function comment.
7809 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7813 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7814 promoted mode, convert the result back to the original mode.
7816 2013-03-06 Richard Biener <rguenther@suse.de>
7819 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7820 (insert_updated_phi_nodes_compare_uids): New function.
7821 (update_ssa): Sort symbols_to_rename after UID before
7822 traversing it to insert PHI nodes.
7824 2013-03-06 Richard Biener <rguenther@suse.de>
7827 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7828 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7831 2013-02-13 Richard Biener <rguenther@suse.de>
7834 * varasm.c (output_constant_def_1): Get the decl representing
7835 the constant as argument.
7836 (output_constant_def): Wrap output_constant_def_1.
7837 (make_decl_rtl): Use output_constant_def_1 with the decl
7838 representing the constant.
7839 (build_constant_desc): Optionally re-use a decl already
7840 representing the constant.
7841 (tree_output_constant_def): Adjust.
7843 2013-03-06 Joey Ye <joey.ye@arm.com>
7846 * gcc.c (convert_white_space): New function.
7847 (main): Handles white space in function name.
7849 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7852 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7853 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7854 to SH_DIV_CALL_TABLE for TARGET_SH2.
7855 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7857 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7860 2013-03-05 Sterling Augustine <saugustine@google.com>
7861 Cary Coutant <ccoutant@google.com>
7864 * dwarf2out.c (resolve_addr): Don't call
7865 remove_loc_list_addr_table_entries a second time for the same
7868 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7871 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7872 (avoid_complex_debug_insns): New function.
7873 (expand_debug_locations): Call it.
7875 PR rtl-optimization/56484
7876 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7877 lifetimes of hard registers on small register class machines.
7879 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7881 * config/microblaze/microblaze-protos.h: Rename
7882 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
7883 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
7885 (microblaze_fast_interrupt_function_p): New function.
7886 (microblaze_is_interrupt_handler): Rename to
7887 microblaze_is_interrupt_variant and add fast_interrupt check.
7888 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7889 (save_restore_insns): Likewise.
7890 (compute_frame_size): Likewise.
7891 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7892 (microblaze_globalize_label): Likewise.
7893 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7894 * config/microblaze/microblaze.md: Use wrapper
7895 microblaze_is_interrupt_variant.
7897 2013-03-05 Kai Tietz <ktietz@redhat.com>
7899 * sdbout.c (sdbout_one_type): Switch to current function's section
7900 supporting cold/hot.
7902 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7904 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7907 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7910 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7911 if VALGRIND_GET_VBITS is defined, temporarily make object
7912 memory all defined, and restore previous valgrind addressability
7913 and definability afterwards. Free this_object at the end.
7916 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7917 right before calling lra_create_live_ranges, also call it
7918 when clearing live_p. Only call lra_clear_live_ranges
7919 at the end if live_p.
7922 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7924 2013-03-05 Richard Biener <rguenther@suse.de>
7926 PR tree-optimization/56521
7927 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7930 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7933 * except.h (remove_unreachable_eh_regions): New prototype.
7934 * except.c (remove_eh_handler_splicer): New function, split out
7935 of remove_eh_handler.
7936 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7937 warning about running it on many EH regions one at a time.
7938 (remove_unreachable_eh_regions_worker): New function, walk the
7939 EH tree in depth-first order and remove non-marked regions.
7940 (remove_unreachable_eh_regions): New function.
7941 * tree-eh.c (mark_reachable_handlers): New function, split out
7942 from remove_unreachable_handlers.
7943 (remove_unreachable_handlers): Use mark_reachable_handlers and
7944 remove_unreachable_eh_regions.
7945 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7946 and remove_unreachable_eh_regions.
7948 2013-03-05 Richard Biener <rguenther@suse.de>
7951 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7952 not freeing them until the end.
7954 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7956 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7958 2013-03-05 Richard Biener <rguenther@suse.de>
7960 PR tree-optimization/56270
7961 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7962 of loads after scheduling an SLP instance.
7964 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7966 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7968 (check_gcc_parallelize): Run guality.exp as a separate job from
7969 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7970 struct-layout-1.exp with stackalign.exp.
7972 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7975 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7976 load_index sbitmap even if some bit in it isn't set.
7979 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7980 (discover_iteration_bound_by_body_walk): Change queues to
7981 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7982 spelling in comment. Call safe_push on queues[bound_index] directly.
7983 Release queues[queue_index] in every iteration unconditionally.
7984 Release bounds vector.
7987 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7988 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7989 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7992 2013-03-05 Richard Biener <rguenther@suse.de>
7995 * tree-inline.c (remap_blocks_to_null): New function.
7996 (expand_call_inline): When expanding a call stmt without
7997 an associated block inline remap all callee blocks to NULL.
7999 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8001 PR rtl-optimization/56494
8002 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8003 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8004 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8007 * sel-sched-ir.c (free_sched_pools): Release
8008 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8009 if succs_info_pool.max_top isn't -1.
8012 * opts.c (opts_obstack, opts_concat): Moved to...
8013 * opts-common.c (opts_obstack, opts_concat): ... here.
8015 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8018 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8020 2013-03-04 Martin Jambor <mjambor@suse.cz>
8022 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8023 all appropriate places.
8025 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8027 PR tree-optimization/56424
8028 * ipa-split.c (split_function): Do not set the RSO flag if result is
8029 not by reference and its type is a register type.
8031 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8033 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8034 (microblaze_legitimate_pic_operand): Likewise
8035 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8036 new function microblaze_legitimate_pic_operand
8037 * config/microblaze/microblaze-protos.h
8038 (microblaze_legitimate_pic_operand): Declare.
8040 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8042 * config/microblaze/predicates.md (call_insn_simple_operand):
8043 New predicate for supported rtx code types.
8044 * config/microblaze/microblaze.md (call_internal1): Use
8045 call_insn_simple_operand predicate.
8047 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8050 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8051 partitions.ordered_remove.
8054 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8055 vec_oprnds0.create (1) for modifier == NONE.
8058 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8059 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8060 vec_oprnds1 right before pushing anything to it for
8064 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8065 set nbbs to 0 instead of having separate code path.
8066 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8067 instead of false as last argument if returning NULL.
8069 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8071 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8072 the attribute is now called "target" instead of "option".
8073 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8074 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8075 attribute/pragma name for TARGET_OPTION_VALID_P and
8076 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8077 * doc/tm.texi: Regenerated.
8079 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8081 * config/microblaze/microblaze.c:
8082 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8083 * config/microblaze/microblaze.h: Add -mxl-reorder to
8085 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8086 instructions emitted if TARGET_REORDER.
8087 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8088 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8091 2013-03-01 Xinliang David Li <davidxl@google.com>
8093 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8096 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8099 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8100 vector even when returning true. Fix up function comment formatting.
8103 * ira-build.c (ira_loop_nodes_count): New variable.
8104 (create_loop_tree_nodes): Initialize it.
8105 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8108 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8109 method on dr_chain and result_chain.
8110 * tree-vect-stmts.c (vectorizable_store): Only call
8111 result_chain.create if j == 0.
8114 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8115 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8116 before overwriting it.
8118 2013-03-01 Tobias Burnus <burnus@net-b.de>
8120 * doc/extended.texi (C Extensions): Change order in @menu
8122 (Other MIPS Built-in Functions): Move last MIPS entry before
8123 "picoChip Built-in Functions".
8124 (SH Built-in Functions): Move after RX Built-in Functions.
8125 * doc/gcc.texi (Introduction): Change order in @menu
8127 * doc/md.texi (Constraints): Ditto.
8128 * gty.texi (Type Information): Ditto.
8129 (User-provided marking routines for template types): Make
8131 * doc/invoke.texi (AArch64 Options): Move before
8132 "Adapteva Epiphany Options".
8134 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8135 Jakub Jelinek <jakub@redhat.com>
8138 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8139 no_address_safety_analysis attribute.
8140 * doc/extend.texi (no_address_safety_attribute): Rename to
8141 no_sanitize_address attribute, mention no_address_safety_analysis
8142 attribute as deprecated alias.
8144 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8147 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8148 type to vec<vec<tree> > *.
8149 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8150 to be vec<tree> instead of vec<tree> *, set vec_defs
8151 to vNULL and call vec_defs.create (number_of_vects), adjust other
8153 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8154 vectorizable_condition): Adjust vect_get_slp_defs callers.
8156 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8158 * config/aarch64/aarch64.c
8159 (aarch64_float_const_representable): Remove unused variable.
8161 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8163 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8165 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8167 * config/aarch64/aarch64-builtins.c
8168 (aarch64_init_simd_builtins): Make static.
8170 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8172 * config/aarch64/aarch64.c
8173 (aarch64_simd_make_constant): Make static.
8175 2013-02-28 Martin Jambor <mjambor@suse.cz>
8177 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8178 with no initialization to the RHS of debug statements.
8180 2013-02-28 Martin Jambor <mjambor@suse.cz>
8182 PR tree-optimization/56294
8183 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8185 (get_access_replacement): Do not call create_access_replacement.
8186 Assert a replacement exists.
8187 (get_repl_default_def_ssa_name): Create the replacement declaration
8190 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8192 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8195 2013-02-28 Marek Polacek <polacek@redhat.com>
8197 PR rtl-optimization/56466
8198 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8199 if we're changing a loop.
8200 (peel_loops_completely): Likewise.
8202 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8205 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8207 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8210 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8211 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8212 INTX_FTYPE_FX, FX_FTYPE_INTX.
8213 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8215 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8217 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8218 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8219 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8220 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8221 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8222 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8223 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8224 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8225 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8226 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8227 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8228 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8229 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8230 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8231 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8232 (avrxmega6): Increase max flash segments from 5 to 6.
8233 * config/avr/t-multilib: Regenerate.
8234 * config/avr/avr-tables.opt: Regenerate.
8235 * doc/avr-mmcu.texi: Regenerate.
8237 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8239 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8240 (avr_device_to_arch): Rename to avr_device_to_ld.
8241 (avr_device_to_as): New prototype.
8242 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8243 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8244 * config/avr/driver-avr.c (avr_device_to_as): New.
8245 (avr_device_to_arch): Rename to avr_device_to_ld.
8247 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8250 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8251 method on dr_chain and result_chain.
8254 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8255 pointer_set_destroy on not_executed_last_iteration.
8258 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8261 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8262 FOR_EACH_DEFINED_FUNCTION when freeing state.
8265 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8267 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8271 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8272 known_aggs[i].items and release known_aggs vector.
8275 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8277 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8279 * config/microblaze/microblaze.c (microblaze_emit_compare):
8280 Use xor for EQ/NE comparisions.
8281 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8282 (cbranchsf4): Adjust operator to comparison_operator.
8284 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8287 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8289 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8290 vec_safe_push, always update *slot.
8291 (redirect_edge_var_map_clear): Use vec_free.
8292 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8293 (free_var_map_entry): Use vec_free.
8294 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8295 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8297 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
8300 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8301 when the may_trap_p bit of the exprs being merged differs.
8302 Reorder tests for speculativeness in the logical and operator.
8304 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8306 * incpath.c (add_standard_paths): Use reconcat instead of concat
8307 where appropriate and avoid leaking memory.
8309 * opts.h: Include obstack.h.
8310 (opts_concat): New prototype.
8311 (opts_obstack): New declaration.
8312 * opts.c (opts_concat): New function.
8313 (opts_obstack): New variable.
8314 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8315 (finish_options): Use opts_concat instead of concat
8316 and XOBNEWVEC instead of XNEWVEC.
8317 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8318 generate_option): Likewise.
8319 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8320 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8323 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8324 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8326 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8329 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8331 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8333 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8334 (arm_block_move_unaligned_straight): Likewise.
8335 (arm_adjust_block_mem): Likewise.
8337 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8340 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8341 temp, cond and label.
8342 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8345 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8346 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8349 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8350 of prologue/epilogue functions.
8353 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8354 Remove unused variable cfa_offset.
8355 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8358 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8359 type promotion to unsigned.
8362 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8363 for HOST_WIDE_INT of 32 bit / same size as int.
8364 (arm_block_move_unaligned_straight): Likewise.
8365 (arm_adjust_block_mem): Likewise.
8368 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8371 2013-02-26 Marek Polacek <polacek@redhat.com>
8373 PR tree-optimization/56426
8374 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
8376 2013-02-26 Richard Biener <rguenther@suse.de>
8379 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8380 unused variable loops.
8382 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8384 PR tree-optimization/56448
8385 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8386 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8387 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8388 later operands of the references, or even first operand for
8389 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8391 PR tree-optimization/56443
8392 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8393 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8394 to type_for_mode langhook.
8396 2013-02-25 Matt Turner <mattst88@gmail.com>
8398 * doc/invoke.texi: Document r4700.
8400 2013-02-25 Richard Biener <rguenther@suse.de>
8402 PR tree-optimization/56175
8403 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8405 (simplify_bitwise_binary): ... here. Also guard the conversion
8406 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8408 2013-02-25 Catherine Moore <clm@codesourcery.com>
8411 2013-02-24 Catherine Moore <clm@codesourcery.com>
8412 Maciej W. Rozycki <macro@codesourcery.com>
8413 Tom de Vries <tom@codesourcery.com>
8414 Nathan Sidwell <nathan@codesourcery.com>
8415 Iain Sandoe <iain@codesourcery.com>
8416 Nathan Froyd <froydnj@codesourcery.com>
8417 Chao-ying Fu <fu@mips.com>
8419 * doc/extend.texi: (micromips, nomicromips, nocompression):
8420 Document new function attributes.
8421 * doc/invoke.texi (minterlink-compressed, mmicromips,
8422 m14k, m14ke, m14kec): Document new options.
8423 (minterlink-mips16): Update documentation.
8424 * doc/md.texi (ZC, ZD): Document new constraints.
8425 * configure.ac (gcc_cv_as_micromips): Check if linker
8426 supports the .set micromips directive.
8427 * configure: Regenerate.
8428 * config.in: Regenerate.
8429 * config/mips/mips-tables.opt: Regenerate.
8430 * config/mips/micromips.md: New file.
8431 * constraints.md (ZC, AD): New constraints.
8432 * config/mips/predicates.md (movep_src_register): New predicate.
8433 (movep_src_operand): New predicate.
8434 (non_volatile_mem_operand): New predicate.
8435 * config/mips/mips.md (multimem): New type.
8436 (length): Differentiate between 17-bit and 18-bit branch offsets.
8437 (MOVEP1, MOVEP2): New mode iterator.
8438 (mov_<load>l): Use ZC constraint.
8439 (mov_<load>r): Likewise.
8440 (mov_<store>l): Likewise.
8441 (mov_<store>r): Likewise.
8442 (*branch_equality<mode>_inverted): Add microMIPS support.
8443 (*branch_equality<mode>): Likewise.
8444 (*jump_absolute): Likewise.
8445 (indirect_jump_<mode>): Likewise.
8446 (tablejump_<mode>): Likewise.
8447 (<optab>_internal): Likewise.
8448 (sibcall_internal): Likewise.
8449 (sibcall_value_internal): Likewise.
8450 (prefetch): Use constraint ZD.
8451 * config/mips/mips.opt (minterlink-compressed): New option.
8452 (minterlink-mips16): Now an alias for minterlink-compressed.
8453 (mmicromips): New option.
8454 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8455 (compare_and_swap_12): Likewise.
8456 (sync_add<mode>): Likewise.
8457 (sync_<optab>_12): Likewise.
8458 (sync_old_<optab>_12): Likewise.
8459 (sync_new_<optab>_12): Likewise.
8460 (sync_nand_12): Likewise.
8461 (sync_old_nand_12): Likewise.
8462 (sync_new_nand_12): Likewise.
8463 (sync_sub<mode>): Likewise.
8464 (sync_old_add<mode>): Likewise.
8465 (sync_old_sub<mode>): Likewise.
8466 (sync_new_add<mode>): Likewise.
8467 (sync_new_sub<mode>): Likewise.
8468 (sync_<optab><mode>): Likewise.
8469 (sync_old_<optab><mode>): Likewise.
8470 (sync_new_<optab><mode>): Likewise.
8471 (sync_nand<mode>): Likewise.
8472 (sync_old_nand<mode>): Likewise.
8473 (sync_new_nand<mode>): Likewise.
8474 (sync_lock_test_and_set<mode>): Likewise.
8475 (test_and_set_12): Likewise.
8476 (atomic_compare_and_swap<mode>): Likewise.
8477 (atomic_exchange<mode>_llsc): Likewise.
8478 (atomic_fetch_add<mode>_llsc): Likewise.
8479 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8480 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8481 (umips_save_restore_pattern_p): Likewise.
8482 (umips_load_store_pair_p): Likewise.
8483 (umips_output_load_store_pair): Likewise.
8484 (umips_movep_target_p): Likewise.
8485 (umips_12bit_offset_address_p): Likewise.
8486 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8487 (mips_base_mips16): Rename this...
8488 (mips_base_compression_flags): ...to this. Update all uses.
8489 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8490 (mips_mips16_decl_p): Delete.
8491 (mips_nomips16_decl_p): Delete.
8492 (mips_get_compress_on_flags): New function.
8493 (mips_get_compress_off_flags): New function.
8494 (mips_get_compress_mode): New function.
8495 (mips_get_compress_on_name): New function.
8496 (mips_get_compress_off_name): New function.
8497 (mips_insert_attributes): Support multiple compression types.
8498 (mips_merge_decl_attributes): Likewise.
8499 (umips_12bit_offset_address_p): New function.
8500 (mips_start_function_definition): Emit .set micromips directive.
8501 (mips_call_may_need_jalx_p): New function.
8502 (mips_function_ok_for_sibcall): Add microMIPS support.
8503 (mips_print_operand_punctuation): Support short delay slots and
8505 (umips_swm_mask, umips_swm_encoding): New.
8506 (umips_build_save_restore): New function.
8507 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8508 (was_mips16_p): Remove.
8509 (old_compression_mode): New.
8510 (mips_set_compression_mode): New function.
8511 (mips_set_current_function): Add microMIPS support.
8512 (mips_option_override): Likewise.
8513 (umips_save_restore_pattern_p): New function.
8514 (umips_output_save_restore): New function.
8515 (umips_load_store_pair_p_1): New function.
8516 (umips_load_store_pair_p): New function.
8517 (umips_output_load_store_pair_1): New function.
8518 (umips_output_load_store_pair): New function.
8519 (umips_movep_target_p) New function.
8520 (mips_prepare_pch_save): Add microMIPS support.
8521 * config/mips/mips.h (TARGET_COMPRESSION): New.
8522 (TARGET_CPU_CPP_BUILTINS): Update macro
8523 to use new compression flags and to support microMIPS.
8524 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8525 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8526 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8527 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8528 (ASM_SPEC): Support mmicromips and mno-micromips.
8529 (M16STORE_REG_P): New macro.
8530 (MIPS_CALL): Support TARGET_MICROMIPS.
8531 (MICROMIPS_J): New macro.
8532 (mips_base_mips16): Rename this...
8533 (mips_base_compression_flags): ...to this.
8534 (UMIPS_12BIT_OFFSET_P): New macro.
8535 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8536 (MULTILIB_DIRNAMES): Likewise.
8538 2013-02-25 Tom de Vries <tom@codesourcery.com>
8540 PR rtl-optimization/56131
8541 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8542 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8543 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8545 2013-02-25 Tobias Burnus <burnus@net-b.de>
8547 * doc/invoke.texi (-fsanitize=): Move from optimization
8548 to debugging options.
8550 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8552 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8554 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8555 Alexander Monakov <amonakov@ispras.ru>
8558 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8559 flush pending lists also on non-jumps. Adjust comment.
8561 2013-02-24 Catherine Moore <clm@codesourcery.com>
8562 Maciej W. Rozycki <macro@codesourcery.com>
8563 Tom de Vries <tom@codesourcery.com>
8564 Nathan Sidwell <nathan@codesourcery.com>
8565 Iain Sandoe <iain@codesourcery.com>
8566 Nathan Froyd <froydnj@codesourcery.com>
8567 Chao-ying Fu <fu@mips.com>
8569 * doc/extend.texi: (micromips, nomicromips, nocompression):
8570 Document new function attributes.
8571 * doc/invoke.texi (minterlink-compressed, mmicromips,
8572 m14k, m14ke, m14kec): Document new options.
8573 (minterlink-mips16): Update documentation.
8574 * doc/md.texi (ZC, ZD): Document new constraints.
8575 * configure.ac (gcc_cv_as_micromips): Check if linker
8576 supports the .set micromips directive.
8577 * configure: Regenerate.
8578 * config.in: Regenerate.
8579 * config/mips/mips-tables.opt: Regenerate.
8580 * config/mips/micromips.md: New file.
8581 * constraints.md (ZC, AD): New constraints.
8582 * config/mips/predicates.md (movep_src_register): New predicate.
8583 (movep_src_operand): New predicate.
8584 (non_volatile_mem_operand): New predicate.
8585 * config/mips/mips.md (multimem): New type.
8586 (length): Differentiate between 17-bit and 18-bit branch offsets.
8587 (MOVEP1, MOVEP2): New mode iterator.
8588 (mov_<load>l): Use ZC constraint.
8589 (mov_<load>r): Likewise.
8590 (mov_<store>l): Likewise.
8591 (mov_<store>r): Likewise.
8592 (*branch_equality<mode>_inverted): Add microMIPS support.
8593 (*branch_equality<mode>): Likewise.
8594 (*jump_absolute): Likewise.
8595 (indirect_jump_<mode>): Likewise.
8596 (tablejump_<mode>): Likewise.
8597 (<optab>_internal): Likewise.
8598 (sibcall_internal): Likewise.
8599 (sibcall_value_internal): Likewise.
8600 (prefetch): Use constraint ZD.
8601 * config/mips/mips.opt (minterlink-compressed): New option.
8602 (minterlink-mips16): Now an alias for minterlink-compressed.
8603 (mmicromips): New option.
8604 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8605 (compare_and_swap_12): Likewise.
8606 (sync_add<mode>): Likewise.
8607 (sync_<optab>_12): Likewise.
8608 (sync_old_<optab>_12): Likewise.
8609 (sync_new_<optab>_12): Likewise.
8610 (sync_nand_12): Likewise.
8611 (sync_old_nand_12): Likewise.
8612 (sync_new_nand_12): Likewise.
8613 (sync_sub<mode>): Likewise.
8614 (sync_old_add<mode>): Likewise.
8615 (sync_old_sub<mode>): Likewise.
8616 (sync_new_add<mode>): Likewise.
8617 (sync_new_sub<mode>): Likewise.
8618 (sync_<optab><mode>): Likewise.
8619 (sync_old_<optab><mode>): Likewise.
8620 (sync_new_<optab><mode>): Likewise.
8621 (sync_nand<mode>): Likewise.
8622 (sync_old_nand<mode>): Likewise.
8623 (sync_new_nand<mode>): Likewise.
8624 (sync_lock_test_and_set<mode>): Likewise.
8625 (test_and_set_12): Likewise.
8626 (atomic_compare_and_swap<mode>): Likewise.
8627 (atomic_exchange<mode>_llsc): Likewise.
8628 (atomic_fetch_add<mode>_llsc): Likewise.
8629 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8630 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8631 (umips_save_restore_pattern_p): Likewise.
8632 (umips_load_store_pair_p): Likewise.
8633 (umips_output_load_store_pair): Likewise.
8634 (umips_movep_target_p): Likewise.
8635 (umips_12bit_offset_address_p): Likewise.
8636 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8637 (mips_base_mips16): Rename this...
8638 (mips_base_compression_flags): ...to this. Update all uses.
8639 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8640 (mips_mips16_decl_p): Delete.
8641 (mips_nomips16_decl_p): Delete.
8642 (mips_get_compress_on_flags): New function.
8643 (mips_get_compress_off_flags): New function.
8644 (mips_get_compress_mode): New function.
8645 (mips_get_compress_on_name): New function.
8646 (mips_get_compress_off_name): New function.
8647 (mips_insert_attributes): Support multiple compression types.
8648 (mips_merge_decl_attributes): Likewise.
8649 (umips_12bit_offset_address_p): New function.
8650 (mips_start_function_definition): Emit .set micromips directive.
8651 (mips_call_may_need_jalx_p): New function.
8652 (mips_function_ok_for_sibcall): Add microMIPS support.
8653 (mips_print_operand_punctuation): Support short delay slots and
8655 (umips_swm_mask, umips_swm_encoding): New.
8656 (umips_build_save_restore): New function.
8657 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8658 (was_mips16_p): Remove.
8659 (old_compression_mode): New.
8660 (mips_set_compression_mode): New function.
8661 (mips_set_current_function): Add microMIPS support.
8662 (mips_option_override): Likewise.
8663 (umips_save_restore_pattern_p): New function.
8664 (umips_output_save_restore): New function.
8665 (umips_load_store_pair_p_1): New function.
8666 (umips_load_store_pair_p): New function.
8667 (umips_output_load_store_pair_1): New function.
8668 (umips_output_load_store_pair): New function.
8669 (umips_movep_target_p) New function.
8670 (mips_prepare_pch_save): Add microMIPS support.
8671 * config/mips/mips.h (TARGET_COMPRESSION): New.
8672 (TARGET_CPU_CPP_BUILTINS): Update macro
8673 to use new compression flags and to support microMIPS.
8674 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8675 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8676 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8677 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8678 (ASM_SPEC): Support mmicromips and mno-micromips.
8679 (M16STORE_REG_P): New macro.
8680 (MIPS_CALL): Support TARGET_MICROMIPS.
8681 (MICROMIPS_J): New macro.
8682 (mips_base_mips16): Rename this...
8683 (mips_base_compression_flags): ...to this.
8684 (UMIPS_12BIT_OFFSET_P): New macro.
8685 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8686 (MULTILIB_DIRNAMES): Likewise.
8688 2013-02-24 Jakub Jelinek <jakub@redhat.com>
8691 * target-globals.c (save_target_globals): For init_reg_sets and
8692 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8694 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8696 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8697 * config/aarch64/t-aarch64
8698 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8700 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8703 * lra-constraints.c (process_alt_operands): Reload operand
8704 conflicting with earlier clobber only if no more other conflicting
8707 2013-02-22 Jakub Jelinek <jakub@redhat.com>
8710 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8711 if not linking a shared library.
8713 2013-02-22 Seth LaForge <sethml@google.com>
8715 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8717 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8719 * config/arm/arm.md (split for extendsidi): Update condition.
8720 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8721 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8722 (qhs_zextenddi_cstr): Likewise.
8724 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8727 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8728 avoid signed wrapping.
8729 (expand_mult): Handle properly multiplication by
8730 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8731 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8732 in the compiler if coeff is HOST_WIDE_INT_MIN.
8733 (expand_divmod): Don't make ext_op1 static, change it's type to
8734 uhwi. Avoid undefined behavior in -INTVAL (op1).
8736 PR rtl-optimization/50339
8737 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8739 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8740 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8741 into splitting_ashiftrt field.
8742 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8744 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8747 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
8750 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8751 are sure to go irrevocable.
8753 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
8755 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8756 scalars are valid operands.
8758 2013-02-21 Martin Jambor <mjambor@suse.cz>
8760 PR tree-optimization/56310
8761 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8762 only matching indices and non-negative final offsets.
8763 (intersect_aggregates_with_edge): Pass src_idx to
8764 agg_replacements_to_vector. Pass src_idx insstead of index to
8765 intersect_with_agg_replacements.
8767 2013-02-21 Martin Jambor <mjambor@suse.cz>
8769 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8770 instead of hard-wired defaults.
8772 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8774 * doc/invoke.texi (MIPS Options): Update documentation of the
8775 floating-point multiply-accumulate instruction restrictions.
8777 2013-02-21 Kostya Serebryany <kcc@google.com>
8779 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8780 asan_shadow_offset on x86_64 linux.
8782 2013-02-21 Richard Biener <rguenther@suse.de>
8784 PR tree-optimization/56415
8786 2013-02-11 Richard Biener <rguenther@suse.de>
8788 PR tree-optimization/56273
8789 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8792 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8795 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8799 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8800 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8802 2013-02-20 Jan Hubicka <jh@suse.cz>
8804 PR tree-optimization/56265
8805 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8806 when target is referenced for first time.
8808 2013-02-20 Richard Biener <rguenther@suse.de>
8810 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8811 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8812 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8813 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8814 not return anything.
8815 (rename_ssa_copies): Do not remove unused locals.
8816 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
8817 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
8818 * passes.c (execute_function_todo): Do not schedule unused locals
8819 removal if cleanup_tree_cfg did something.
8820 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8821 about the number of removed locals.
8823 2013-02-20 Richard Biener <rguenther@suse.de>
8825 PR tree-optimization/56398
8826 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
8828 2013-02-20 Martin Jambor <mjambor@suse.cz>
8830 PR tree-optimization/55334
8831 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8832 restricted pointers to arrays.
8834 2013-02-20 Richard Biener <rguenther@suse.de>
8835 Jakub Jelinek <jakub@redhat.com>
8837 PR tree-optimization/56396
8838 * tree-ssa-ccp.c (n_const_val): New static variable.
8839 (get_value): Return NULL for SSA names we don't have a lattice
8841 (ccp_initialize): Initialize n_const_val.
8842 * tree-ssa-copy.c (n_copy_of): New static variable.
8843 (init_copy_prop): Initialize n_copy_of.
8844 (get_value): Return NULL_TREE for SSA names we don't have a
8847 2013-02-20 Martin Jambor <mjambor@suse.cz>
8849 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8851 2013-02-20 Richard Biener <rguenther@suse.de>
8853 * genpreds.c (write_lookup_constraint): Do not compare first
8854 letter of the constraint again.
8856 2013-02-20 Richard Biener <rguenther@suse.de>
8858 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8860 (get_use_iv_cost): Terminate hashtable walk when coming across
8863 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8865 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8866 reassociation for avx2 targets.
8868 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8870 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8871 Add version check for v8.10.a to enable microblaze_has_clz
8872 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
8873 version and TARGET_PATTERN_COMPARE check
8874 * config/microblaze/microblaze.md: New clzsi2 instruction
8876 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8878 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
8879 function before branching.
8881 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8883 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8885 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8887 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8890 * sel-sched.c: Include ira.h.
8891 (implicit_clobber_conflict_p): New function.
8892 (moveup_expr): Use it.
8893 * Makefile.in (sel-sched.o): Depend on ira.h.
8895 2013-02-19 Richard Biener <rguenther@suse.de>
8897 PR tree-optimization/56384
8898 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8899 (vn_hash_type): Split out from ...
8900 (vn_hash_constant_with_type): ... here.
8901 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8902 (vn_phi_eq): Compare types from vn_phi_s structure.
8903 (vn_phi_lookup): Populate vn_phi_s type.
8904 (vn_phi_insert): Likewise.
8906 2013-02-19 Jakub Jelinek <jakub@redhat.com>
8908 PR tree-optimization/56350
8909 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8910 if haven't found reduction or nested cycle operand, rather than
8911 asserting we must find it.
8913 PR tree-optimization/56381
8914 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8917 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
8918 Jakub Jelinek <jakub@redhat.com>
8921 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8922 (swap_optab_enable): Same.
8923 (init_all_optabs): Use argument instead of global.
8924 * tree.h (struct tree_optimization_option): New field target_optabs.
8925 * expr.h (init_all_optabs): Add argument to prototype.
8926 (TREE_OPTIMIZATION_OPTABS): New.
8927 (save_optabs_if_changed): Protoize.
8928 * optabs.h: Declare this_fn_optabs.
8929 * optabs.c (save_optabs_if_changed): New.
8930 Declare this_fn_optabs.
8931 (init_optabs): Add argument to init_all_optabs() call.
8932 * function.c (invoke_set_current_function_hook): Handle per
8934 * function.h (struct function): New field optabs.
8935 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8936 optimization_current_node has changed.
8937 * target-globals.h (save_target_globals_default_opts): Protoize.
8938 * target-globals.c (save_target_globals_default_opts): New.
8940 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8943 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8944 registers %fr12 and %fr12R as call used.
8947 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
8948 and HImode, require all displacements to be an integer multiple of
8950 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8951 only allow QImode and HImode when reload is in progress and strict is
8952 true. Likewise for symbolic addresses. Use base14_operand to check
8953 displacements in REG+BASE addresses.
8955 2013-02-18 Richard Biener <rguenther@suse.de>
8957 PR tree-optimization/56366
8958 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8959 handle sign-conversion of outer-loop initial induction value.
8961 2013-02-18 Richard Biener <rguenther@suse.de>
8964 * cfghooks.c (merge_blocks): If we merge a latch into another
8965 block adjust references to it.
8966 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8967 (verify_loop_structure): Verify that a recorded latch is in fact
8970 2013-02-18 Richard Biener <rguenther@suse.de>
8972 PR tree-optimization/56321
8973 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8974 order SSA name release and virtual operand unlinking.
8976 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8978 * config/microblaze/microblaze.md (save_stack_block): Define.
8979 (restore_stack_block): Likewise.
8981 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8983 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8984 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8985 * config/microblaze/microblaze.c (microblaze_option_override):
8986 Bail out early for PIC modes when target does not support PIC.
8988 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8990 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8991 Replace with a microblaze version.
8992 (microblaze_trampoline_init): Adapt for microblaze.
8993 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8996 2013-02-16 Jakub Jelinek <jakub@redhat.com>
8997 Dodji Seketeli <dodji@redhat.com>
9000 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9001 (instrument_mem_region_access): Do not forget to always put
9002 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9003 0) statement, even for cases where either 'base' or 'base + len'
9004 are not instrumented -- because they have been previously
9005 instrumented. Simplify the logic by putting all the statements
9006 instrument 'base + len' inside a sequence, and then insert that
9007 sequence right before the current insertion point. Then, to
9008 instrument 'base + len', just get an iterator on that statement.
9009 And do not forget to update the pointer to iterator the function
9010 received as argument.
9012 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9014 PR rtl-optimization/56348
9015 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9017 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9019 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9020 (clean_graph_dump_file): Pass base to start_graph_dump.
9022 2013-02-14 Richard Henderson <rth@redhat.com>
9025 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9027 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9029 * collect2-aix.h: Define F_LOADONLY.
9031 2013-02-14 Richard Biener <rguenther@suse.de>
9034 * varasm.c (output_constant_def_1): Get the decl representing
9035 the constant as argument.
9036 (output_constant_def): Wrap output_constant_def_1.
9037 (make_decl_rtl): Use output_constant_def_1 with the decl
9038 representing the constant.
9039 (build_constant_desc): Optionally re-use a decl already
9040 representing the constant.
9041 (tree_output_constant_def): Adjust.
9043 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9046 * asan.c (instrument_builtin_call): Really put the length of the
9047 second source argument into src1_len.
9049 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9051 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9052 argument. If it is false, don't create edge from then_bb to
9054 (insert_if_then_before_iter): Pass true to it.
9055 (build_check_stmt): Pass false to it.
9056 (transform_statements): Flush hash table only on extended basic
9057 block boundaries, rather than at the beginning of every bb.
9058 Don't flush hash table on nonfreeing_call_p calls.
9059 * tree-flow.h (nonfreeing_call_p): New prototype.
9060 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9062 2013-02-13 David S. Miller <davem@davemloft.net>
9064 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9066 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9069 * ira.c (max_regno_before_ira): Move from ...
9071 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9074 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9076 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9078 2013-02-13 Richard Biener <rguenther@suse.de>
9081 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9082 globals in MEM_REFs.
9084 2013-02-13 Richard Biener <rguenther@suse.de>
9086 * loop-init.c (loop_optimizer_init): Clear loop state when
9087 re-initializing preserved loops.
9088 * loop-unswitch.c (unswitch_single_loop): Return whether
9089 we unswitched the loop. Do not verify loop state here.
9090 (unswitch_loops): When we unswitched a loop discover new loops.
9092 2013-02-13 Kostya Serebryany <kcc@google.com>
9094 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9096 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9098 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9100 Avoid instrumenting duplicated memory access in the same basic block
9101 * Makefile.in (asan.o): Add new dependency on hash-table.h
9102 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9103 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9104 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9105 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9106 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9107 (get_mem_ref_of_assignment): New functions.
9108 (get_mem_refs_of_builtin_call): Extract from
9109 instrument_builtin_call and tweak a little bit to make it fit with
9111 (instrument_builtin_call): Use the new
9112 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9113 of is_gimple_builtin_call.
9114 (instrument_derefs, instrument_mem_region_access): Insert the
9115 instrumented memory reference into the hash table.
9116 (maybe_instrument_assignment): Renamed instrument_assignment into
9117 this, and change it to advance the iterator when instrumentation
9118 actually happened and return true in that case. This makes it
9119 homogeneous with maybe_instrument_assignment, and thus give a
9120 chance to callers to be more 'regular'.
9121 (transform_statements): Clear the memory reference hash table
9122 whenever we enter a new BB, when we cross a function call, or when
9123 we are done transforming statements. Use
9124 maybe_instrument_assignment instead of instrumentation. No more
9125 need to special case maybe_instrument_assignment and advance the
9126 iterator after calling it; it's now handled just like
9127 maybe_instrument_call. Update comment.
9129 2013-02-13 Richard Biener <rguenther@suse.de>
9131 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9132 Fix loop discovery code.
9134 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9137 * lra-constraints.c (process_alt_operands): Match early clobber
9138 operand with itself. Check conflicts with earlyclobber only if
9139 the operand is not reloaded. Prefer to reload conflicting operand
9140 if earlyclobber and matching operands are the same.
9142 2013-02-12 Richard Biener <rguenther@suse.de>
9145 * lto-streamer-out.c (write_symbol): Do not output symbols
9146 for hard register variables.
9148 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9151 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9152 (umulsidi3_insn, mulsidi3_insn): New insns.
9154 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9156 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9157 (struct tune_params): Add vec_costs field.
9158 * config/arm/arm.c (arm_builtin_vectorization_cost)
9159 (arm_add_stmt_cost): New functions.
9160 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9161 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9162 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9163 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9164 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9165 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9166 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9168 2013-02-12 Richard Biener <rguenther@suse.de>
9171 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9172 decls again if possible.
9174 2013-02-12 Richard Biener <rguenther@suse.de>
9177 * tree-ssa.c (verify_ssa_name): Fix check, move
9178 SSA_NAME_IN_FREE_LIST check up.
9180 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9181 Steven Bosscher <steven@gcc.gnu.org>
9183 PR rtl-optimization/56151
9184 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9185 equal to op0 or op1, and last_insn pattern is CODE operation
9186 with MEM dest and one of the operands matches that MEM.
9188 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9190 * doc/extend.texi: Document Function Multiversioning and "default"
9191 parameter string to target attribute.
9192 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9193 target attribute parameter is "default".
9194 (ix86_compare_version_priority): Remove checks for target attribute.
9195 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9196 Remove check for target attribute equal to NULL. Add assert.
9197 (ix86_generate_version_dispatcher_body): Change error to sorry.
9199 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9200 Jack Howarth <howarth@bromo.med.uc.edu>
9201 Patrick Marlier <patrick.marlier@gmail.com>
9204 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9205 define ENDFILE_SPEC as TM_DESTRUCTOR.
9206 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9208 2013-02-11 Alexander Potapenko <glider@google.com>
9209 Jack Howarth <howarth@bromo.med.uc.edu>
9210 Jakub Jelinek <jakub@redhat.com>
9213 * config/darwin.c (cdtor_record): Rename ctor_record.
9214 (sort_cdtor_records): Rename sort_ctor_records.
9215 (finalize_dtors): New routine to sort destructors by
9216 priority before use in assemble_integer.
9217 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9219 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9221 PR rtl-optimization/56275
9222 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9223 offset is non-negative and less than cmode size before
9224 calling simplify_subreg.
9226 2013-02-11 Richard Biener <rguenther@suse.de>
9228 PR tree-optimization/56264
9229 * cfgloop.h (fix_loop_structure): Adjust prototype.
9230 * loop-init.c (fix_loop_structure): Return the number of
9231 newly discovered loops.
9232 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9233 are discovered, do a full loop-closed SSA rewrite.
9235 2013-02-11 Richard Biener <rguenther@suse.de>
9237 PR tree-optimization/56273
9238 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9240 (check_array_ref): Fix missing newline in dumps.
9241 (search_for_addr_array): Likewise.
9243 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9245 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9247 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9250 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9252 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9254 PR rtl-optimization/56246
9255 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9257 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9258 constraints are satisfied.
9260 2013-02-08 Jeff Law <law@redhat.com>
9263 * emit-rtl.c (reg_is_parm_p): New function.
9264 * regs.h (reg_is_parm_p): New prototype.
9265 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9266 callee-clobbered registers.
9268 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9271 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9272 If there is no implicit builtin declaration, just return NULL.
9274 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9276 * config/i386/sse.md (FMAMODEM): New mode iterator.
9277 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9278 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9280 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9282 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9283 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9284 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9286 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9288 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9289 (microblaze*-*-elf): Likewise.
9290 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9292 * config/microblaze/microblaze-c.c: Add builtin defines for
9293 _LITTLE_ENDIAN and _BIG_ENDIAN.
9294 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9295 add to TARGET_DEFAULT flags.
9296 Expand ASM_SPEC and LINK_SPEC.
9297 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9298 * config/microblaze/microblaze.md: Update extendsidi2 and
9299 movdi_internal instructions to use low-order / high-order reg
9301 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9302 options and inversemask / mask of LITTLE_ENDIAN.
9303 * config/microblaze/t-microblaze: Expand multilib options to
9304 include mlittle-endian (le) and update exceptions patterns.
9306 2013-02-08 Jakub Jelinek <jakub@redhat.com>
9308 PR rtl-optimization/56195
9309 * lra-constraints.c (get_reload_reg): Don't reuse regs
9310 if they have smaller mode than requested, if they have
9311 wider mode than requested, try to return a SUBREG.
9313 PR tree-optimization/56250
9314 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9315 if type is unsigned and code isn't MULT_EXPR.
9317 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9319 PR tree-optimization/56064
9320 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9321 bits according to mode.
9322 * fixed-value.h (fixed_from_double_int)
9323 (const_fixed_from_double_int): Adjust comments.
9325 2013-02-08 Richard Biener <rguenther@suse.de>
9328 * lto-streamer.h (struct data_in): Remove current_file, current_line
9329 and current_col members.
9330 * lto-streamer-out.c (lto_output_location): Stream changed bits
9331 en-block for efficiency.
9332 * lto-streamer-in.c (clear_line_info): Remove.
9333 (lto_input_location): Cache current file, line and column
9334 globally via local statics. Read changed bits en-block.
9335 (input_function): Do not call clear_line_info.
9336 (lto_read_body): Likewise.
9337 (lto_input_toplevel_asms): Likewise.
9339 2013-02-08 Michael Matz <matz@suse.de>
9341 PR tree-optimization/52448
9342 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9343 (nt_call_phase): New static.
9344 (add_or_mark_expr): Only mark accesses with newer phase than any
9346 (nonfreeing_call_p): New.
9347 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9348 (nt_fini_block): Keep blocks marked as visited.
9349 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9351 2013-02-08 Richard Biener <rguenther@suse.de>
9353 * ira.c (ira): Free broken dominator information.
9355 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9357 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9359 2013-02-08 Marek Polacek <polacek@redhat.com>
9361 * cfgloop.c (verify_loop_structure): Add more checking of headers.
9363 2013-02-08 Richard Biener <rguenther@suse.de>
9366 * cfgloop.h (flow_loops_find): Adjust.
9367 (bb_loop_header_p): Declare.
9368 * cfgloop.c (bb_loop_header_p): New function split out from ...
9369 (flow_loops_find): ... here. Adjust function signature,
9370 support incremental loop structure update.
9371 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9372 * cfgloopmanip.c (fix_loop_structure): Move ...
9373 * loop-init.c (fix_loop_structure): ... here.
9374 (apply_loop_flags): Split out from ...
9375 (loop_optimizer_init): ... here.
9376 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9377 in incremental mode, only remove dead loops here.
9379 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9382 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9383 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9384 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9385 (*round<mode>3.libgcc): New insns for fixed-modes.
9386 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9387 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9388 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9389 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9390 implementations. Define to __builtin_avr_absFX,
9391 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9392 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9393 __builtin_avr_countlsFX, respectively.
9394 * config/avr/avr-c.c (target.h): Include it.
9395 (enum avr_builtin_id): New enum.
9396 (avr_resolve_overloaded_builtin): New static function.
9397 (avr_register_target_pragmas): Use it to set
9398 targetm.resolve_overloaded_builtin.
9399 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9400 tree nodes used by DEF_BUILTIN.
9401 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9402 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9403 <AVR_BUILTIN_xxBITS>: Same.
9405 2013-02-08 Richard Biener <rguenther@suse.de>
9407 * cfgloop.c (verify_loop_structure): Properly handle
9408 a loop exiting to another loop header.
9409 * ira-int.h (ira_loops): Remove.
9410 * ira.c (ira_loops): Remove.
9411 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9412 (do_reload): Use loop_optimizer_finalize.
9413 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9414 number_of_loops to access the loop tree.
9415 (more_one_region_p): Likewise.
9416 (finish_loop_tree_nodes): Likewise.
9417 (rebuild_regno_allocno_maps): Likewise.
9418 (mark_loops_for_removal): Likewise.
9419 (mark_all_loops_for_removal): Likewise.
9420 (remove_unnecessary_regions): Likewise.
9421 (ira_build): Likewise.
9422 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9424 2013-02-08 Richard Biener <rguenther@suse.de>
9426 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9427 * ipa-pure-const.c (analyze_function): Avoid calling
9428 mark_irreducible_loops twice.
9429 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
9431 2013-02-07 David S. Miller <davem@davemloft.net>
9433 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9435 * var-tracking.c (vt_add_function_parameter): Test the presence of
9436 HAVE_window_save properly and do not remap argument registers when
9437 we have a leaf function.
9439 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
9442 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9444 * config/i386/i386.c (ix86_print_operand): Ditto.
9446 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9448 * lra-constraints.c (process_alt_operands): Fix recently added comment.
9450 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9452 PR rtl-optimization/56225
9453 * lra-constraints.c (process_alt_operands): Check that reload hard
9454 reg can hold value for strict_low_part.
9456 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9459 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9460 dwarf2out_end_function.
9461 (in_first_function_p, maybe_at_text_label_p,
9462 first_loclabel_num_not_at_text_label): New variables.
9463 (dwarf2out_var_location): In the first function find out
9464 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
9465 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9468 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9470 PR rtl-optimization/56178
9471 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9472 SUBREG of a register. Tidy up related block of code.
9473 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9474 note if the source is a register or a SUBREG of a register.
9476 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9479 * config/rs6000/rs6000.md (ptrm): New mode attr.
9480 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9481 call_value_indirect_aix<pttrsize>,
9482 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9485 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9487 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9488 if -bnortl. Convert to strcmp and strncmp.
9490 2013-02-07 Alan Modra <amodra@gmail.com>
9493 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9494 addresses won't wrap when offsetting.
9495 (rs6000_secondary_reload): Provide secondary reloads needed for
9496 wrapping LO_SUM addresses.
9498 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9500 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9501 MACH, just __MACH__.
9503 2013-02-06 Richard Biener <rguenther@suse.de>
9505 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9506 instead of calling fix_loop_structure.
9508 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9511 * omp-low.c (use_pointer_for_field): Return false if
9512 lower_send_shared_vars doesn't generate any copy-out code.
9514 2013-02-06 Tom de Vries <tom@codesourcery.com>
9516 PR rtl-optimization/56131
9517 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9518 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9519 of the label is NULL. Add comment.
9521 2013-02-05 Jakub Jelinek <jakub@redhat.com>
9523 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9526 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9527 (STATIC_LIBTSAN_LIBS): Likewise.
9528 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9529 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9530 is defined, don't add anything else beyond that.
9531 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9532 (LINK_COMMAND_SPEC): Use them.
9534 PR tree-optimization/56205
9535 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9536 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9537 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9539 2013-02-05 Richard Biener <rguenther@suse.de>
9541 PR tree-optimization/53342
9542 PR tree-optimization/53185
9543 * tree-vectorizer.h (vect_check_strided_load): Remove.
9544 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9545 not disallow peeling for vectorized strided loads.
9546 (vect_check_strided_load): Make static and simplify.
9547 (vect_analyze_data_refs): Adjust.
9548 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9549 correctly when vectorizing strided loads.
9551 2013-02-05 Richard Biener <rguenther@suse.de>
9553 * doc/install.texi: Refer to ISL, not PPL.
9555 2013-02-05 Jan Hubicka <jh@suse.cz>
9557 PR tree-optimization/55789
9558 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9560 2013-02-05 Jan Hubicka <jh@suse.cz>
9562 PR tree-optimization/55789
9563 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9564 the dead call anyway.
9566 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9569 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9571 2013-02-04 Alexander Potapenko <glider@google.com>
9572 Jack Howarth <howarth@bromo.med.uc.edu>
9573 Jakub Jelinek <jakub@redhat.com>
9576 * config/darwin.c (sort_ctor_records): Stabilized qsort
9577 on constructor priority by using original position.
9578 (finalize_ctors): New routine to sort constructors by
9579 priority before use in assemble_integer.
9580 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9582 2013-02-04 Jakub Jelinek <jakub@redhat.com>
9585 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9586 about visibility on artificial decls.
9587 * config/sol2.c (solaris_assemble_visibility): Likewise.
9589 2013-02-04 Kai Tietz <ktietz@redhat.com>
9592 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9593 argument and improve checking of return-argument types for 16-byte
9595 (ix86_function_value_1): Add additional valtype argument on call
9596 of function_value_64.
9597 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9598 handling infunction_value_64 function.
9600 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9602 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
9604 2013-02-04 Richard Biener <rguenther@suse.de>
9606 PR tree-optimization/56188
9607 * tree-ssa-structalias.c (label_visit): Consider case with
9608 initially non-empty points-to set.
9609 (perform_var_substitution): Dump node mapping and clean up.
9611 2013-02-04 Richard Guenther <rguenther@suse.de>
9614 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9615 node prevail as last resort.
9616 (lto_symtab_merge_decls): Remove guard on LTRANS here.
9617 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
9619 2013-02-04 Richard Biener <rguenther@suse.de>
9621 PR tree-optimization/56113
9622 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9624 (equiv_class_lookup_or_add): ... this.
9625 (label_visit): Adjust and fix error in previous patch.
9626 (perform_var_substitution): Adjust.
9628 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9630 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9631 * config/sh/sh4-300.md: Likewise.
9632 * config/sh/sh4a.md: Likewise.
9633 * config/sh/constraints.md: Likewise.
9634 * config/sh/sh.md: Likewise.
9635 * config/sh/netbsd-elf.h: Likewise.
9636 * config/sh/predicates.md: Likewise.
9637 * config/sh/sh-protos.h: Likewise.
9638 * config/sh/ushmedia.h: Likewise.
9639 * config/sh/linux.h: Likewise.
9640 * config/sh/sh.c: Likewise.
9641 * config/sh/superh.h: Likewise.
9642 * config/sh/elf.h: Likewise.
9643 * config/sh/sh4.md: Likewise.
9644 * config/sh/sh.h: Likewise.
9646 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9648 * config/pa/constraints.md: Adjust unused letters. Change "T"
9649 constraint to match_test floating_point_store_memory_operand().
9650 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9651 (base14_operand): New.
9652 (floating_point_store_memory_operand): New.
9653 (integer_store_memory_operand): Revise to use base14_operand and
9654 reg_plus_base_memory_operand.
9655 (move_dest_operand): Allow symbolic_memory_operands.
9656 (symbolic_memory_operand): Check for LO_SOM.
9657 (symbolic_operand): Change default case to break.
9658 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9659 CONST_DOUBLE values to be reloaded by putting them into memory when
9660 the destination is a floating point register.
9661 (movdf): Remove code to handle CONST_DOUBLE.
9663 (reload_indf_r1): New.
9664 (reload_insf_r1): New.
9665 Consistently use "Q" and "T" constraints with integer and floating
9666 point move instructions, respectively.
9667 (movdi): Remove FAIL.
9668 Change predicate for source operand unamed DImode move from
9669 general_operand to move_src_operand.
9670 (umulsidi3): Change predicate for destination operand to
9672 Likewise for similar unamed patterns.
9673 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9674 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9675 (hppa_legitimize_address): Simplify mask calculation.
9676 (pa_emit_move_sequence): Revised handling of secondary reloads from
9677 REG+D addresses for floating point loads and stores. Directly handle
9678 loading CONST0_RTX (mode) to a floating point register.
9679 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9680 to floating point registers. Don't restrict secondary reloads to
9681 floating point registers to integer modes. Revise some comments and
9683 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9684 (pa_legitimate_address_p): New.
9685 (pa_legitimize_reload_address): New.
9686 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9687 (STRICT_REG_OK_FOR_BASE_P): New.
9688 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9689 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9691 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
9692 Andrew Dixie <andrewd@gentrack.com>
9694 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9697 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9699 * expmed.c (extract_bit_field_1): Pass the full width of the
9700 structure to get_best_reg_extraction_insn.
9702 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9705 * configure.ac (use_cxa_atexit): Add AIX.
9706 * configure: Regenerate.
9708 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9710 2013-02-01 Jakub Jelinek <jakub@redhat.com>
9713 * final.c (need_profile_function): New variable.
9714 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9715 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9716 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9717 notes, targetm.asm_out.function_prologue doesn't emit anything,
9718 HAVE_prologue and profiler should be emitted before prologue,
9719 set need_profile_function instead of emitting it.
9720 (final_scan_insn): If need_profile_function, emit
9721 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9722 NOTE_INSN_FUNCTION_BEG note.
9724 2013-02-01 Richard Henderson <rth@redhat.com>
9726 * config/rs6000/rs6000.md (smulditi3): New.
9729 * config/alpha/alpha.md (umulditi3): New.
9731 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9733 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9734 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9736 2013-02-01 Richard Biener <rguenther@suse.de>
9738 PR tree-optimization/56113
9739 * tree-ssa-structalias.c (label_visit): Reduce work for
9740 single-predecessor nodes.
9742 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9744 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9745 range isn't testing for zero.
9747 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9750 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9752 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9753 Nick Clifton <nickc@redhat.com>
9755 * config/v850/constraints.md (Q): Define as a memory constraint.
9756 * config/v850/predicates.md (label_ref_operand): New predicate.
9757 (e3v5_shift_operand): New predicate.
9758 (ior_operator): New predicate.
9759 * config/v850/t-v850: Add e3v5 multilib.
9760 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9761 (v850_gen_movdi): Prototype.
9762 * config/v850/v850.c: Add support for e3v5 architecture.
9763 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9765 (construct_save_jarl): Add e3v5 long JARL support.
9766 (v850_adjust_insn_length): New function. Adjust length of call
9767 insns when using e3v5 instructions.
9768 (v850_gen_movdi): New function: Generate instructions to move a
9770 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9771 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9772 (TARGET_USE_FPU): Enable for e3v5.
9773 (CONST_OK_FOR_W): New macro.
9774 (ADJUST_INSN_LENGTH): Define.
9775 * config/v850/v850.md (UNSPEC_LOOP): Define.
9776 (attr cpu): Add v850e3v5.
9777 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9778 (movdi): New pattern.
9779 (movdi_internal): New pattern.
9780 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9781 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9782 (cstoresf4): Likewise.
9783 (cstoredf4): Likewise.
9784 (insv): New pattern.
9785 (rotlso3_a): New pattern.
9786 (rotlsi3_b): New pattern
9787 (rotlsi3_v850e3v5): New pattern.
9788 (doloop_begin): New pattern.
9789 (fix_loop_counter): New pattern.
9790 (doloop_end): New pattern.
9791 (branch_normal): Add e3v5 long branch support.
9792 (branch_invert): Likewise.
9793 (branch_z_normal): Likewise.
9794 (branch_z_invert): Likewise.
9795 (branch_nz_normal): Likewise.
9796 (branch_nz_invert): Likewise.
9797 (call_internal_short): Add e3v5 register-indirect JARL support.
9798 (call_internal_long): Likewise.
9799 (call_value_internal_short): Likewise.
9800 (call_value_internal_long): Likewise.
9801 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9802 (mloop): New option.
9803 * config.gcc: Add support for configuring v840e3v5 target.
9804 * doc/invoke.texi: Document new v850 specific command line options.
9806 2013-01-31 Paul Koning <ni1d@arrl.net>
9810 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9811 children if parent is a class.
9812 (prune_unused_types_prune): Don't add DW_AT_declaration.
9814 2013-01-31 Richard Biener <rguenther@suse.de>
9816 PR tree-optimization/56157
9817 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9818 match up operand with SLP child.
9820 2013-01-31 Jason Merrill <jason@redhat.com>
9823 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9824 parameters the first time.
9825 (gen_scheduled_generic_parms_dies): Check completeness here.
9827 2013-01-31 Richard Biener <rguenther@suse.de>
9830 * common.opt (faggressive-loop-optimizations): New flag,
9832 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9833 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9834 infer_loop_bounds_from_undefined by it.
9836 2013-01-31 Richard Biener <rguenther@suse.de>
9838 PR tree-optimization/56150
9839 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9840 visit virtual operands.
9841 (find_uses_to_rename_bb): Likewise.
9843 2013-01-31 Richard Biener <rguenther@suse.de>
9845 PR tree-optimization/56150
9846 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9847 mixed store non-store stmts.
9849 2013-01-30 Jakub Jelinek <jakub@redhat.com>
9852 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9853 LIBASAN_EARLY_SPEC is defined.
9854 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9855 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9857 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9860 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9861 invalid args instead of ICEing on it.
9862 (ix86_valid_target_attribute_tree): Return error_mark_node if
9863 ix86_valid_target_attribute_inner_p failed.
9864 (ix86_valid_target_attribute_p): Return false only if
9865 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9866 target("default") attribute.
9867 (sorted_attr_string): Change argument from const char * to tree,
9868 merge in all target attribute arguments rather than just one.
9869 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9870 instead of free. Avoid using strcat.
9871 (ix86_mangle_function_version_assembler_name): Mangle
9872 target("default") as if no target attribute is present. Adjust
9873 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9874 instead of xmalloc and XDELETEVEC instead of free.
9875 (ix86_function_versions): Don't return true if one of the decls
9876 doesn't have target attribute. If they don't and one of the decls
9877 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9878 sorted_attr_string caller. Use XDELETEVEC instead of free.
9879 (ix86_supports_function_versions): Remove.
9880 (make_name): Fix up formatting.
9881 (make_dispatcher_decl): Remove resolver_name and its initialization.
9882 Avoid leaking memory.
9883 (is_function_default_version): Return true if there is
9884 target("default") attribute rather than no target attribute at all.
9885 (make_resolver_func): Avoid leaking memory.
9886 (ix86_generate_version_dispatcher_body): Likewise.
9887 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9888 * target.def (supports_function_versions): Remove.
9889 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9890 * doc/tm.texi: Regenerated.
9892 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9894 PR rtl-optimization/56144
9895 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9896 for values with side effects.
9898 2013-01-30 Richard Biener <rguenther@suse.de>
9900 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9901 (sparseset_pop): Likewise.
9902 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9903 to be able to use quick_push in the worker loop.
9905 2013-01-30 Marek Polacek <polacek@redhat.com>
9907 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9909 2013-01-30 Richard Biener <rguenther@suse.de>
9912 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
9914 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
9916 PR tree-optimization/56064
9917 * fixed-value.c (fixed_from_double_int): New function.
9918 * fixed-value.h (fixed_from_double_int): New prototype.
9919 (const_fixed_from_double_int): New static inline function.
9920 * fold-const.c (native_interpret_fixed): New static function.
9921 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9922 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9923 (native_encode_fixed): New static function.
9924 (native_encode_expr) <FIXED_CST>: Use it.
9925 (native_interpret_int): Move double_int worker code to...
9926 * double-int.c (double_int::from_buffer): ...this new static method.
9927 * double-int.h (double_int::from_buffer): Prototype it.
9929 2013-01-30 Richard Biener <rguenther@suse.de>
9931 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9932 New pointer-map and obstack.
9933 (init_alias_vars): Allocate pointer-map and obstack.
9934 (delete_points_to_sets): Free them.
9935 (find_what_var_points_to): Cache result.
9936 (find_what_p_points_to): Adjust for changed interface of
9937 find_what_var_points_to.
9938 (compute_points_to_sets): Likewise.
9939 (ipa_pta_execute): Likewise.
9941 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9943 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9944 * configure: Regenerate.
9945 * config.in: Regenerate.
9946 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9947 #nobits/#progbits if supported.
9949 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9952 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9953 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9954 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9956 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9958 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9959 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
9961 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9963 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9964 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
9966 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9968 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9970 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9971 * config/arm/cortex-a7.md: New bypasses using
9972 arm_mac_accumulator_is_result.
9974 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9976 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
9977 (cortex_a7_neon_mla): Likewise.
9978 (cortex_a7_fpfmad): New reservation.
9979 (cortex_a7_fpmacs): Use ffmas and update required units.
9980 (cortex_a7_fpmuld): Update required units and latency.
9981 (cortex_a7_fpmacd): Likewise.
9982 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9983 (cortex_a7_neon). Likewise.
9984 (bypass) Update participating units.
9986 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9988 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9989 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9991 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9992 (vfp_fmul): Use ffmad.
9993 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9994 (cortex_r4_fmacd): Use ffmad.
9995 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9996 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9997 (cortex_a9_fmacd): Use ffmad.
9998 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9999 (cortex_a8_vfp_macd): Use ffmad.
10000 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10001 (cortex_a5_fpmacd): Use ffmad.
10002 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10003 (cortex_a15_vfp_macd): Use ffmad.
10004 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10006 2013-01-29 Jason Merrill <jason@redhat.com>
10009 * varasm.c (default_assemble_visibility): Don't warn about
10010 visibility on artificial decls.
10012 2013-01-29 Richard Biener <rguenther@suse.de>
10014 PR tree-optimization/56113
10015 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10017 (label_visit): Free duplicate bitmaps and record the leader instead.
10018 (perform_var_substitution): Adjust.
10020 2013-01-29 Richard Biener <rguenther@suse.de>
10022 PR tree-optimization/55270
10023 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10024 the CFG, schedule loops for fixup.
10026 2013-01-29 Nick Clifton <nickc@redhat.com>
10028 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10031 2013-01-28 Leif Ekblad <leif@rdos.net>
10033 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10034 * config/i386/i386.h (TARGET_RDOS): New macro.
10035 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10036 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10037 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10038 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10039 DEFAULT_LARGE_SECTION_THRESHOLD.
10040 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10041 * config/i386/rdos.h: New file.
10042 * config/i386/rdos64.h: New file.
10044 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10047 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10050 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10052 PR rtl-optimization/56117
10053 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10054 call cselib_lookup_from_insn on the MEM before calling
10055 add_insn_mem_dependence.
10057 2013-01-28 Richard Biener <rguenther@suse.de>
10059 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10060 to a stmt that didn't have one.
10061 (copy_phis_for_bb): Likewise for PHI arguments.
10062 (copy_debug_stmt): Likewise for debug stmts.
10064 2013-01-28 Richard Biener <rguenther@suse.de>
10066 PR tree-optimization/56034
10067 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10068 (partition_builtin_p): Adjust.
10069 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10070 it is the last partition.
10071 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10072 up the vertex for the definition.
10073 (classify_partition): Classify whether a partition is a
10074 PKIND_REDUCTION, thus has uses outside of the loop.
10075 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10076 Merge all PKIND_REDUCTION partitions into the last partition.
10077 (tree_loop_distribution): Seed partitions from reductions as well.
10079 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10081 PR tree-optimization/56125
10082 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10083 pow(x,c) into sqrt(x) * powi(x, n/2) or
10084 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10085 optimizing for size.
10086 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10087 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10090 PR tree-optimization/56094
10091 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10092 to UNKNOWN_LOCATION while gimplifying expr.
10094 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10097 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10098 operand 0 in movabs insn template for -masm=intel asm alternative.
10099 (*movabs<mode>_2): Ditto for operand 1.
10101 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10104 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10107 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10109 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10112 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10114 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10115 Undef to avoid warning.
10117 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10119 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10120 * configure: Regenerate.
10122 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10124 PR tree-optimization/56098
10125 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10126 for stmts with volatile ops.
10127 (cond_store_replacement): Don't optimize if assign has volatile ops.
10128 (cond_if_else_store_replacement_1): Don't optimize if either
10129 then_assign or else_assign have volatile ops.
10130 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10133 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10135 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10137 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10139 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10140 missing ':' in asm example.
10142 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10144 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10145 entries into lane and laneq entries.
10146 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10147 Remove AdvSIMD scalar modes.
10148 (aarch64_sq<r>dmulh_laneq<mode>): New.
10149 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10151 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10152 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10153 * config/aarch64/iterators.md (VCOND): New.
10156 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10159 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10160 Add NULL LIBNAME argument to existing definitions.
10161 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10162 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10163 * config/avr/avr.c (DEF_BUILTIN): Same.
10164 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10165 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10166 implementation is available (DECL_ASSEMBLER_NAME is set).
10167 (avr_fold_absfx): New static function.
10168 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10169 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10170 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10171 AVR_BUILTIN_ABSLLK.
10172 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10173 (abshk, absk, abslk, absllk): Provide as static inline functions.
10175 2013-01-25 Marek Polacek <polacek@redhat.com>
10177 PR tree-optimization/56035
10178 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10180 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10182 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10183 (*movtf_internal_rex64): Add (!o,C) alternative
10184 (*movxf_internal_rex64): Ditto.
10185 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10187 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10189 * doc/invoke.texi: fix typo.
10190 * doc/objc.texi: fix typo.
10192 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10194 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10195 for the first two alternatives.
10197 2013-01-24 Diego Novillo <dnovillo@google.com>
10199 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10200 (ggc-zone.o): Remove.
10201 * configure.ac: Remove option --with-gc.
10202 * configure: Re-generate.
10203 * doc/install.texi: Remove documentation for --with-gc.
10204 * gengtype.c (write_enum_defn): Remove. Update all users.
10205 (write_Types_process_field): Remove generation of gt_e_* argument.
10206 (output_type_enum): Remove. Update all users.
10207 (write_enum_defn): Remove. Update all users.
10208 (enum alloc_zone): Remove. Update all users.
10209 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10210 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10211 Update all callers.
10212 (struct ptr_data): Remove field TYPE. Update all users.
10213 (gt_pch_note_object): Remove argument TYPE. Update all users.
10214 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10216 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10217 (struct alloc_zone): Remove.
10218 (ggc_internal_alloc_zone_stat): Remove.
10219 (ggc_internal_cleared_alloc_zone_stat): Remove.
10220 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10221 (ggc_pch_count_object): Remove last argument. Update all users.
10222 (ggc_pch_alloc_object): Remove last argument. Update all users.
10223 (struct alloc_zone): Remove.
10224 * ggc-zone.c: Remove.
10225 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10226 (struct alloc_zone): Remove.
10227 (ggc_alloc_typed_stat): Remove.
10228 (ggc_alloc_typed): Remove.
10229 (ggc_splay_alloc): Remove first argument.
10230 (rtl_zone): Remove. Update all users.
10231 (tree_zone): Remove. Update all users.
10232 (tree_id_zone): Remove. Update all users.
10233 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10234 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10235 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10236 * tree-ssanames.c: Remove references to zone allocator in comments.
10238 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10240 * config/avr/avr.c (avr_out_fract): Make register numbers that
10241 might be outside of source operand signed.
10243 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10245 * config/i386/constraints.md (Yf): New constraint.
10246 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10247 of f constraint to conditionaly disable x87 register preferences.
10248 (*movdf_internal): Ditto.
10249 (*movsf_internal): Ditto.
10251 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10253 PR inline-asm/55934
10254 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10255 that have operands with impossible constraints.
10256 Add a FIXME for a speed-up opportunity.
10257 * lra-constraints.c (process_alt_operands): Verify that a class
10258 selected from constraints on asms is valid for the operand mode.
10259 (curr_insn_transform): Remove incorrect comment.
10261 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10263 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10264 TOC operand is a valid symbol ref in the constant pool.
10266 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10268 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10270 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10273 * config/avr/stdfix.h: New file.
10274 * t-avr (stdfix-gcc.h): New rule to build it.
10275 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10277 2013-01-23 Kostya Serebryany <kcc@google.com>
10279 * config/darwin.h: remove dependency on
10280 CoreFoundation (asan on Mac OS).
10282 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10285 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10286 instead of cmpdi_operand for first comparison operand.
10287 Don't assert that comparison operands aren't both constants.
10289 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10291 * doc/install.texi (Downloading the Source): Update references to
10292 downloading separate components.
10294 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10296 * doc/extend.texi (__int128): Improve grammar.
10298 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
10301 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10302 alternative to (o,r).
10303 (*movdi_internal_rex64): Remove (!o,n) alternative.
10304 (DImode immediate->memory splitter): Remove.
10305 (DImode immediate->memory peephole2): Remove.
10306 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10307 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10308 alternative to (!o,*r).
10309 (*movtf_internal_sse): New pattern.
10310 (*movxf_internal_rex64): New pattern.
10311 (*movxf_internal): Disable for TARGET_64BIT.
10312 (*movdf_internal_rex64): Remove (!o,F) alternative.
10314 2013-01-22 Jakub Jelinek <jakub@redhat.com>
10316 PR middle-end/56074
10317 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10318 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10319 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10320 stmt locations where LOCATION_LOCUS of the stmt location is
10321 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10324 * config/i386/i386.md (UNSPEC_STOS): New.
10325 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10326 *strsetqi_1): Add UNSPEC_STOS.
10328 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10331 * doc/invoke.texi: Remove left over -Wsynth example.
10333 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10335 PR tree-optimization/56051
10336 * fold-const.c (fold_binary_loc): Don't fold
10337 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10338 a narrowing conversion, or widening conversion from signed
10341 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10343 PR rtl-optimization/56023
10344 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10345 dependent on debug instruction.
10347 2013-01-21 Martin Jambor <mjambor@suse.cz>
10349 PR middle-end/56022
10350 * function.c (allocate_struct_function): Call
10351 invoke_set_current_function_hook earlier.
10353 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10355 * reload1.c (init_reload): Only initialize reload_obstack
10356 during the first call.
10358 2013-01-21 Marek Polacek <polacek@redhat.com>
10360 * cfgloop.c (verify_loop_structure): Fix up grammar.
10362 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10364 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10365 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10367 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10370 * config/arm/marvell-pj4.md: Update copyright year.
10371 Fix up use of alu to alu_reg and simple_alu_imm.
10373 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10375 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10377 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10380 * lra-constraints.c (curr_insn_transform): Don't reuse original
10381 insn for secondary memory move when memory mode should be different.
10383 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10385 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10386 atomic_storedi_1): New patterns.
10388 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10390 btver2 pipeline descriptions.
10391 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10393 * config/i386/i386.md (btver2_decode): New type attributes.
10394 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
10396 * config/i386/btver2.md: New file describing btver2 pipelines.
10398 2013-01-19 Andrew Pinski <apinski@cavium.com>
10400 PR tree-optimization/52631
10401 * tree-ssa-sccvn (visit_use): Before looking up the original
10402 statement, try looking up the simplified expression.
10404 2013-01-19 Anthony Green <green@moxielogic.com>
10406 * config/moxie/moxie.c (moxie_expand_prologue): Set
10407 current_function_static_stack_size.
10409 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10411 PR tree-optimization/56029
10412 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10413 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10415 2013-01-18 Sharad Singhai <singhai@google.com>
10417 PR tree-optimization/55995
10418 * dumpfile.c (dump_loc): Print location only if available.
10419 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10421 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10424 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10425 secondary memory move.
10426 (inherit_reload_reg): Use rclass instead of cl for
10427 check_secondary_memory_needed_p.
10429 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10431 PR middle-end/56015
10432 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
10433 the case where writing real complex part of target modifies op1.
10435 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10437 * config/aarch64/aarch64-simd.md
10438 (aarch64_vcond_internal<mode>): Handle unordered cases.
10439 * config/aarch64/iterators.md (v_cmp_result): New.
10441 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10442 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10444 * config/arm/marvell-pj4.md: New file.
10445 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10446 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10447 (generic_vfp): Likewise.
10448 * config/arm/arm-cores.def: Add marvell-pj4.
10449 * config/arm/arm-tune.md: Regenerate.
10450 * config/arm/arm-tables.opt: Regenerate.
10451 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10452 * doc/invoke.texi: Document marvell-pj4.
10454 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10456 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10458 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10463 * var-tracking.c (negative_power_of_two_p): New.
10464 (global_get_addr_cache, local_get_addr_cache): New.
10465 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10466 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10468 (vt_stack_offset_p): Remove.
10469 (vt_canon_true_dep): Always canonicalize loc's address.
10470 (clobber_overlapping_mems): Make sure we have a MEM.
10471 (local_get_addr_clear_given_value): New.
10472 (val_reset): Clear local cached entries.
10473 (compute_bb_dataflow): Create and release the local cache.
10474 Disable duplicate MEMs clobbering.
10475 (emit_notes_in_bb): Clobber MEMs likewise.
10476 (vt_emit_notes): Create and release the local cache.
10477 (vt_initialize, vt_finalize): Create and release the global
10478 cache, respectively.
10479 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
10481 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10483 PR libmudflap/53359
10484 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10485 not found in the symtab.
10487 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10490 PR rtl-optimization/55547
10491 PR rtl-optimization/53827
10494 * alias.c (offset_overlap_p): New, factored out of...
10495 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10496 the conservative special case for symbolic constants. Don't
10497 adjust zero sizes on alignment.
10499 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10501 PR rtl-optimization/52573
10502 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10503 REG_UNUSED for the same register.
10505 2013-01-17 Richard Biener <rguenther@suse.de>
10506 Marek Polacek <polacek@redhat.com>
10508 PR rtl-optimization/55833
10509 * loop-unswitch.c (unswitch_loops): Move loop verification...
10510 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10511 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10512 Set it to true when we're removing a loop from hierarchy tree in
10513 an irreducible region.
10514 (fix_bb_placements): Adjust caller.
10515 (fix_loop_placements): Likewise.
10517 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
10519 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10520 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10521 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10522 Remove ID. Adjust comments.
10523 * config/avr/avr-c.c (avr_builtin_name): Remove.
10524 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10525 * config/avr/avr.c (avr_tolower): New static function.
10526 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10527 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10528 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10531 2013-01-17 Jan Hubicka <jh@suse.cz>
10533 PR tree-optimization/55273
10534 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10536 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
10539 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10540 store through atomic_store<mode>_1.
10541 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10543 2013-01-17 Martin Jambor <mjambor@suse.cz>
10545 PR tree-optimizations/55264
10546 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10547 for virtual methods.
10548 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10549 virtual methods before inlining is over.
10550 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10552 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10555 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10557 PR rtl-optimization/56005
10558 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10559 pending reads for prefetch.
10561 2013-01-16 Ian Bolton <ian.bolton@arm.com>
10563 * config/aarch64/aarch64.md
10564 (*cstoresi_neg_uxtw): New pattern.
10565 (*cmovsi_insn_uxtw): New pattern.
10566 (*<optab>si3_uxtw): New pattern.
10567 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10568 (*<optab>si3_insn_uxtw): New pattern.
10569 (*bswapsi2_uxtw): New pattern.
10571 2013-01-16 Richard Biener <rguenther@suse.de>
10573 * tree-inline.c (tree_function_versioning): Remove set but
10574 never used variable.
10576 2013-01-16 Richard Biener <rguenther@suse.de>
10578 PR tree-optimization/55964
10579 * tree-flow.h (rename_variables_in_loop): Remove.
10580 (rename_variables_in_bb): Likewise.
10581 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10582 (copy_loop_before): Adjust and delete update-ssa status.
10583 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
10584 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
10585 (rename_variables_in_loop): Remove.
10586 (slpeel_update_phis_for_duplicate_loop): Likewise.
10587 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10588 use available cfg machinery instead of duplicating it.
10589 Update PHI nodes and perform poor-mans SSA update here.
10590 (slpeel_tree_peel_loop_to_edge): Adjust.
10592 2013-01-16 Richard Biener <rguenther@suse.de>
10594 PR tree-optimization/54767
10595 PR tree-optimization/53465
10596 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10597 (vrp_visit_phi_node): For PHI arguments coming via backedges
10598 drop all symbolical range information.
10599 (execute_vrp): Compute backedges.
10601 2013-01-16 Richard Biener <rguenther@suse.de>
10603 * doc/install.texi: Update CLooG and ISL requirements to
10606 2013-01-16 Christian Bruel <christian.bruel@st.com>
10609 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10610 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10611 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10613 2013-01-16 DJ Delorie <dj@redhat.com>
10615 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10616 (UNSPECV_SP_SWITCH_E): New.
10617 (sp_switch_1): Change to an unspec.
10618 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10621 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
10623 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10624 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10625 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10626 (expand_mem_thread_fence): Ditto.
10627 (expand_mem_signal_fence): Ditto.
10628 (expand_atomic_load): Ditto.
10629 (expand_atomic_store): Ditto.
10631 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
10633 PR rtl-optimization/55547
10634 PR rtl-optimization/53827
10637 * alias.c (memrefs_conflict_p): Set sizes to negative after
10640 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10643 * function.c (thread_prologue_and_epilogue_insns): Always
10644 add crtl->drap_reg to set_up_by_prologue.set, even if
10645 stack_realign_drap is false.
10647 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10649 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10650 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10651 *call): Fix indention.
10653 2013-01-15 Tom de Vries <tom@codesourcery.com>
10656 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10659 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10661 PR rtl-optimization/55153
10662 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10664 2013-01-15 Martin Jambor <mjambor@suse.cz>
10666 PR tree-optimization/55920
10667 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10668 accesses as grp_to_be_debug_replaced.
10670 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10672 PR tree-optimization/55920
10673 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10674 there is non-useless type conversion needed from debug rhs to lhs,
10675 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10677 2013-01-15 Joseph Myers <joseph@codesourcery.com>
10678 Mikael Pettersson <mikpe@it.uu.se>
10681 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10683 (ASM_OUTPUT_CASE_LABEL): Remove.
10684 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10685 * final.c (shorten_branches): Update alignment of labels before
10686 jump tables if CASE_VECTOR_SHORTEN_MODE.
10688 2013-01-15 Richard Biener <rguenther@suse.de>
10691 * system.h: Do not include gmp.h for building host tools.
10693 2013-01-15 Richard Biener <rguenther@suse.de>
10695 PR middle-end/55882
10696 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10697 account for bitpos when computing alignment.
10699 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10701 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10702 (ix86_target_macros_internal): Likewise.
10704 * config/i386/i386.c (m_CORE2I7): Removed.
10705 (m_CORE_HASWELL): New macro.
10706 (m_CORE_ALL): Likewise.
10707 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10708 (initial_ix86_arch_features): Likewise.
10709 (processor_target_table): Initializations for Core avx2.
10710 (cpu_names): New names "core-avx2".
10711 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10712 PROCESSOR_CORE_HASWELL.
10713 (ix86_issue_rate): New case.
10714 (ia32_multipass_dfa_lookahead): Likewise.
10715 (ix86_sched_init_global): Likewise.
10717 * config/i386/i386.h (TARGET_HASWELL): New macro.
10718 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10719 (processor_type): New PROCESSOR_HASWELL.
10721 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10723 PR tree-optimization/55955
10724 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10725 *SHIFT_EXPR and *ROTATE_EXPR codes.
10727 PR tree-optimization/48766
10728 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10729 -ftrapv disable -fwrapv.
10731 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10734 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10735 etc. to 1 and not to __flash.
10736 Use LL suffix for __INT24_MAX__ with -mint8.
10737 Use ULL suffix for __UINT24_MAX__ with -mint8.
10739 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10741 * config/avr/avr-arch.h
10742 (struct base_arch_s): Use typedef avr_arch_t instead.
10743 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10744 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10745 * config/avr/avr.c: Same.
10746 * config/avr/avr-devices.c: Same.
10747 * config/avr/driver-avr.c: Same.
10748 * config/avr/gen-avr-mmcu-texi.c: Same.
10749 * config/avr/avr-mcus.def: Adjust comment.
10751 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10753 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10754 * config/aarch64/iterators.md (VALLDI): New.
10756 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
10757 Andi Kleen <ak@linux.intel.com>
10760 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10761 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10764 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10766 * config/avr/avr-stdint.h: Remove trailing blanks.
10767 * config/avr/avr-log.h: Same.
10768 * config/avr/avr-arch.h: Same.
10769 * config/avr/avr-devices.c: Same.
10770 * config/avr/avr-dimode.md: Same.
10771 * config/avr/predicates.md: Same.
10772 * config/avr/avr-c.c: Same. And fix typo.
10774 * config/avr/avr-protos.h: Same. And:
10775 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10776 (init_cumulative_args): Rename to avr_init_cumulative_args.
10777 (expand_prologue): Rename to avr_expand_prologue.
10778 (expand_epilogue): Rename to avr_expand_epilogue.
10779 (adjust_insn_length): Rename to avr_adjust_insn_length.
10780 (notice_update_cc): Rename to avr_notice_update_cc.
10781 (final_prescan_insn): Rename to avr_final_prescan_insn.
10782 * config/avr/avr.c: Same.
10783 * config/avr/avr.h: Same.
10784 * config/avr/avr.md: Remove trailing blanks.
10785 (prologue): Use avr_expand_prologue.
10786 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10788 2013-01-14 Richard Biener <rguenther@suse.de>
10790 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10791 verify_location, collect_subblocks): New functions.
10792 (verify_gimple_in_cfg): Verify that locations only reference
10793 BLOCKs in the functions BLOCK tree.
10795 2013-01-14 Richard Biener <rguenther@suse.de>
10797 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10799 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10801 (insert_out_of_ssa_copy_on_edge): Likewise.
10802 (rewrite_close_phi_out_of_ssa): Likewise.
10803 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10805 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10806 propagated constants.
10807 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10810 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10812 * config/avr/avr-modes.def: Add GPL copyright notice.
10814 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
10816 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10817 MEMMODEL_MASK to determine memory model.
10818 (atomic_store<mode>): Ditto from operands[2].
10819 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10821 2013-01-13 Jakub Jelinek <jakub@redhat.com>
10824 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
10825 (fold_gimple_assign): Don't call unshare_expr here.
10826 (fold_ctor_reference): Call unshare_expr.
10828 2013-01-13 Terry Guo <terry.guo@arm.com>
10830 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10831 * doc/fragments.texi: Document MULTILIB_REUSE.
10832 * gcc.c (multilib_reuse): New internal spec.
10833 (set_multilib_dir): Also search multilib from multilib_reuse.
10834 * genmultilib (tmpmultilib3): Refactor code.
10835 (tmpmultilib4): Ditto.
10836 (multilib_reuse): New multilib argument.
10838 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10840 * Makefile.in: Update copyright.
10842 2013-01-12 Tom de Vries <tom@codesourcery.com>
10844 PR middle-end/55890
10845 * calls.c (expand_call): Check if arg_nr is valid.
10847 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10849 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10850 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
10851 documentation. Add missing '__' in front of
10852 __builtin_ia32_packssdw256.
10854 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10857 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10858 NO_REGS for larl operands.
10859 (s390_reload_larl_operand): Use s390_load_address instead of
10862 2013-01-11 Richard Biener <rguenther@suse.de>
10864 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10865 (verify_node_sharing): ... here.
10866 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10868 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10870 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10871 Substitute TREECHECKING.
10872 * configure: Regenerate.
10873 * Makefile.in (TREECHECKING): New.
10875 2013-01-11 Richard Guenther <rguenther@suse.de>
10877 PR tree-optimization/44061
10878 * tree-vrp.c (extract_range_basic): Compute zero as
10879 value-range for __builtin_constant_p of function parameters.
10881 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10883 Update copyright years.
10885 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10887 PR rtl-optimization/55672
10888 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10889 const to be eliminable.
10891 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
10893 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10894 * configure: Regenerate.
10896 2013-01-10 Richard Biener <rguenther@suse.de>
10898 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
10900 2013-01-10 Richard Biener <rguenther@suse.de>
10903 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10904 locations for virtual PHI arguments.
10905 (rewrite_update_phi_arguments): Likewise.
10907 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10909 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10912 2013-01-10 Jakub Jelinek <jakub@redhat.com>
10914 PR tree-optimization/55921
10915 * tree-complex.c (expand_complex_asm): New function.
10916 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10918 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10921 * config/s390/s390.c (s390_symref_operand_p)
10922 (s390_loadrelative_operand_p): Merge the two functions.
10923 (s390_check_qrst_address, print_operand_address): Add parameters
10924 to s390_loadrelative_operand_p invokation.
10925 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10926 (s390_reload_larl_operand, s390_secondary_reload): Use
10927 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10928 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10930 2013-01-09 Mike Stump <mikestump@comcast.net>
10932 * dse.c (record_store): Remove unnecessary assert.
10934 2013-01-09 Jan Hubicka <jh@suse.cz>
10936 PR tree-optimization/55569
10937 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10938 * cfgloop.h (scale_loop_profile): Likewise.
10940 2013-01-09 Jan Hubicka <jh@suse.cz>
10943 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10945 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10947 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10949 PR middle-end/55114
10950 * expr.h (maybe_emit_group_store): Declare.
10951 * expr.c (maybe_emit_group_store): New function.
10952 * builtins.c (expand_builtin_int_roundingfn): Call it.
10953 (expand_builtin_int_roundingfn_2): Likewise.
10955 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10957 PR rtl-optimization/55829
10958 * lra-constraints.c (match_reload): Add code for absent output.
10959 (curr_insn_transform): Add code for reloads of matched inputs
10962 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
10964 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10965 attribute of movddup insn to DF.
10966 (*vec_interleave_lowv2df): Ditto.
10967 (vec_dupv2df): Ditto.
10969 2013-01-09 Jan Hubicka <jh@suse.cz>
10971 PR tree-optimiation/55875
10972 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10973 EVERY_ITERATION parameter.
10974 (number_of_iterations_exit): Check if exit is executed every iteration.
10975 (idx_infer_loop_bounds): Similarly here.
10976 (n_of_executions_at_most): Simplify
10977 to only test for cases where statement is dominated by the
10978 particular bound; handle correctly the "postdominance" test.
10979 (scev_probably_wraps_p): Use max loop iterations info
10980 as a global bound first.
10982 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
10983 Nick Clifton <nickc@redhat.com>
10985 * config/v850/v850.md (cbranchsf4): New pattern.
10986 (cstoresf4): New pattern.
10987 (cbranchdf4): New pattern.
10988 (cstoredf4): New pattern.
10989 (movsicc): Disallow floating point comparisons.
10990 (cmpsf_le_insn): Fix order of operators.
10991 (cmpsf_lt_insn): Likewise.
10992 (cmpsf_eq_insn): Likewise.
10993 (cmpdf_le_insn): Likewise.
10994 (cmpdf_lt_insn): Likewise.
10995 (cmpdf_eq_insn): Likewise.
10996 (cmpsf_ge_insn): Use LE comparison.
10997 (cmpdf_ge_insn): Likewise.
10998 (cmpsf_gt_insn): Use LT comparison.
10999 (cmpdf_gt_insn): Likewise.
11000 (cmpsf_ne_insn): Delete pattern.
11001 (cmpdf_ne_insn): Delete pattern.
11002 * config/v850/v850.c (v850_gen_float_compare): Use
11003 gen_cmpdf_eq_insn for NE comparison.
11004 (v850_float_z_comparison_operator)
11005 (v850_float_nz_comparison_operator): Move from here ...
11006 * config/v850/predicates.md: ... to here. Move GT and GE
11007 comparisons into v850_float_z_comparison_operator.
11008 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11010 (v850_float_nz_comparison_operator): Likewise.
11012 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11014 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11015 with calls to gen_insvsi/gen_insvdi.
11017 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11019 * config/i386/i386.c (initial_ix86_tune_features): Set up
11020 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11022 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11023 Jakub Jelinek <jakub@redhat.com>
11025 PR tree-optimization/48189
11026 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11027 If nitercst is 0, don't predict the exit edge.
11029 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11031 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11032 in asm_fprintf with reg_names.
11033 (aarch64_print_operand_address): Likewise.
11034 (aarch64_return_addr): Likewise.
11035 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11037 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11039 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11040 (INT_U6_BITS): Likewise.
11041 * config/pa/predicates.md (uint6_operand): New predicate.
11042 (shift5_operand, shift6_operand): Likewise.
11043 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11045 (lshrdi3): Use shift6_operand.
11046 (shrpsi4, shrpdi4): New insn patterns.
11047 (extzv): Delete expander.
11048 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11049 predicates in unamed zero extract patterns. Tighten common constraint.
11050 (extv): Delete expander.
11051 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11052 predicates in unamed sign extract patterns. Tighten common constraint.
11053 (insv): Delete expander.
11054 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11055 predicates in unamed insert patterns. Tighten common constraint.
11056 Change uint32_operand predicate to uint6_operand predicate in unamed
11057 DImode pattern to insert constant values of type 1...1xxxx.
11059 2013-01-04 Jan Hubicka <jh@suse.cz>
11061 PR tree-optimization/55823
11062 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11065 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11066 Uros Bizjak <ubizjak@gmail.com>
11068 PR rtl-optimization/55845
11069 * df-problems.c (can_move_insns_across): Stop scanning at
11070 volatile_insn_p source instruction or give up if
11071 across_from .. across_to range contains any volatile_insn_p
11074 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11076 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11077 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11079 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11080 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11082 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11085 * asan.c (asan_clear_shadow): New function.
11086 (asan_emit_stack_protection): Use it.
11088 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11090 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11091 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11092 with tab instead of space.
11094 2013-01-08 Nick Clifton <nickc@redhat.com>
11096 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11097 register bank 0 at the start of an interrupt handler.
11098 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11101 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11103 * config/aarch64/aarch64-simd.md
11104 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11105 (aarch64_simd_bsl): Likewise.
11106 (aarch64_vcond_internal<mode>): Likewise.
11107 (vcond<mode><mode>): Likewise.
11108 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11109 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11111 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11113 * config/aarch64/aarch64-builtins.c
11114 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11116 2013-01-08 Martin Jambor <mjambor@suse.cz>
11119 * tree-sra.c (analyze_access_subtree): Return true also after
11120 potentially creating a debug-only replacement.
11122 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11124 PR middle-end/55890
11125 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11127 PR tree-optimization/54120
11128 * tree-vrp.c (range_fits_type_p): Don't allow
11129 src_precision < precision from signed vr to unsigned_p
11130 if vr->min or vr->max is negative.
11131 (simplify_float_conversion_using_ranges): Test can_float_p
11132 against CODE_FOR_nothing.
11134 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11135 Richard Biener <rguenther@suse.de>
11137 PR middle-end/55851
11138 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11139 types instead of just INTEGER_TYPE types.
11141 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11143 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11146 2013-01-07 Steve Ellcey <sellcey@mips.com>
11149 * config/mips/mips.opt: Change mad to mmad to match documentation.
11151 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11154 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11155 .progmemx.data now.
11157 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11160 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11161 (avr_addrspace_t): Add .section_name field.
11162 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11164 (avr_addrspace): Same. Initialize .section_name. Remove last
11165 NULL entry. Put __memx into .progmemx.data.
11166 (progmem_section_prefix): Remove.
11167 (avr_asm_init_sections): No need to initialize progmem_section.
11168 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11169 section name prefix.
11170 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11171 retrieve the progmem section.
11172 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11173 boundary to run over avr_addrspace[].
11174 (avr_register_target_pragmas): Ditto.
11176 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11178 * varasm.c (output_constant_def_contents): For asan_protect_global
11179 protected strings, adjust DECL_ALIGN if needed, before testing for
11181 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11182 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11184 (output_object_block): For asan protected decls, emit asan padding
11185 after their contents.
11186 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11187 (asan_finish_file): Test it here instead.
11189 2013-01-07 Nick Clifton <nickc@redhat.com>
11190 Matthias Klose <doko@debian.org>
11191 Doug Kwan <dougkwan@google.com>
11192 H.J. Lu <hongjiu.lu@intel.com>
11195 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11197 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11199 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11201 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11203 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11205 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11208 * doc/install.texi (Cross-Compiler-Specific Options): Document
11211 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11213 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11214 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11215 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11216 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11217 vqmovun_high_s64): Fix source operand number and update copyright.
11219 2013-01-07 Richard Biener <rguenther@suse.de>
11221 PR middle-end/55890
11222 * gimple.h (gimple_call_builtin_p): New overload.
11223 * gimple.c (validate_call): New function.
11224 (gimple_call_builtin_p): Likewise.
11225 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11226 Use gimple_call_builtin_p.
11227 (find_func_clobbers): Likewise.
11228 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11229 (strlen_optimize_stmt): Likewise.
11231 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11233 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11234 (vld1q_dup_*): Likewise.
11235 (vld1_*): Likewise.
11236 (vld1q_*): Likewise.
11237 (vld1_lane_*): Likewise.
11238 (vld1q_lane_*): Likewise.
11240 2013-01-07 Richard Biener <rguenther@suse.de>
11242 * lto-streamer.h (LTO_minor_version): Bump to 2.
11244 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11246 * config/aarch64/aarch64-protos.h
11247 (aarch64_const_double_zero_rtx_p): Rename to...
11248 (aarch64_float_const_zero_rtx_p): ...this.
11249 (aarch64_float_const_representable_p): New.
11250 (aarch64_output_simd_mov_immediate): Likewise.
11251 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11252 move immediate case.
11253 * config/aarch64/aarch64.c
11254 (aarch64_const_double_zero_rtx_p): Rename to...
11255 (aarch64_float_const_zero_rtx_p): ...this.
11256 (aarch64_print_operand): Allow printing of new constants.
11257 (aarch64_valid_floating_const): New.
11258 (aarch64_legitimate_constant_p): Check for valid floating-point
11260 (aarch64_simd_valid_immediate): Likewise.
11261 (aarch64_vect_float_const_representable_p): New.
11262 (aarch64_float_const_representable_p): Likewise.
11263 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11264 (aarch64_output_simd_mov_immediate): New.
11265 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11266 (*movdf_aarch64): Likewise.
11267 * config/aarch64/constraints.md (Ufc): New.
11268 (Y): call aarch64_float_const_zero_rtx.
11269 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11271 2013-01-07 Richard Biener <rguenther@suse.de>
11273 PR tree-optimization/55888
11274 PR tree-optimization/55862
11275 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11276 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11277 not if it is contained therein.
11279 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11281 * config/avr/t-avr: Typo.
11283 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11286 * config/avr/t-avr: Don't automatically rebuild
11287 $(srcdir)/config/avr/t-multilib
11288 $(srcdir)/config/avr/avr-tables.opt
11289 $(srcdir)/doc/avr-mmcu.texi
11290 (avr-mcus): New phony target to build them on request.
11291 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11292 * avr/avr-mcus.def: Adjust comments.
11294 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
11296 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11298 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11300 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11302 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11304 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11306 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
11308 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11309 to generate profiling.
11310 * config/rs6000/aix64.h (LIB_SPEC): Same.
11312 2013-01-04 Andrew Pinski <apinski@cavium.com>
11314 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11316 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11318 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
11320 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11322 (ix86_expand_move): Ditto.
11323 (ix86_zero_extend_to_Pmode): Ditto.
11324 (ix86_expand_call): Ditto.
11325 (ix86_expand_special_args_builtin): Ditto.
11326 (ix86_expand_builtin): Ditto.
11328 2013-01-04 Richard Biener <rguenther@suse.de>
11330 PR tree-optimization/55862
11331 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11332 translating them through PHI nodes.
11334 2013-01-04 Martin Jambor <mjambor@suse.cz>
11336 PR tree-optimization/55755
11337 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11338 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11340 2013-01-04 Marek Polacek <polacek@redhat.com>
11342 PR middle-end/55859
11343 * opts.c (default_options_optimization): Clarify error message.
11345 2013-01-04 Richard Biener <rguenther@suse.de>
11347 PR middle-end/55863
11348 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11351 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11354 * config/pa/pa.md (movsi): Revert previous change.
11355 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11358 2013-01-03 Richard Henderson <rth@redhat.com>
11360 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11361 after eliminating TLS symbols.
11363 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
11366 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11367 * graphite-poly.c (debug_gmp_value): Likewise.
11369 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
11372 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11373 selected code model, define __code_mode_small__, __code_model_medium__,
11374 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11375 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11376 xchg temporary register with %k. Declare temporary register as
11378 [__x86_64__]: For medium and large code models, preserve %rbx register.
11380 2013-01-03 Richard Biener <rguenther@suse.de>
11382 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
11383 (dump_subscript): Adjust.
11384 (finalize_ddr_dependent): Do not dump redundant info.
11385 (analyze_siv_subscript): Adjust.
11386 (subscript_dependence_tester): Likewise.
11387 (compute_affine_dependence): Likewise.
11389 2013-01-03 Richard Biener <rguenther@suse.de>
11392 2013-01-03 Richard Biener <rguenther@suse.de>
11394 PR tree-optimization/55857
11395 * tree-vect-stmts.c (vectorizable_load): Do not setup
11396 re-alignment for invariant loads.
11398 2013-01-02 Richard Biener <rguenther@suse.de>
11400 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11401 invariant load do not generate a vector load from the scalar location.
11403 2013-01-03 Richard Biener <rguenther@suse.de>
11405 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11406 for not vectorizing.
11407 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11408 not build INDIRECT_REFs, call get_name once only.
11409 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11410 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11412 2013-01-03 Richard Biener <rguenther@suse.de>
11414 PR tree-optimization/55857
11415 * tree-vect-stmts.c (vectorizable_load): Do not setup
11416 re-alignment for invariant loads.
11418 2013-01-03 Richard Biener <rguenther@suse.de>
11421 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11422 prefer a built-in decl.
11424 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11426 * gcc.c (process_command): Update copyright notice dates.
11427 * gcov.c (print_version): Likewise.
11428 * gcov-dump.c (print_version): Likewise.
11430 PR rtl-optimization/55838
11431 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11432 iv0.step, iv1.step and step.
11434 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11435 Marc Glisse <marc.glisse@inria.fr>
11437 PR tree-optimization/55832
11438 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11439 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11440 integer_{one,zero}_node.
11442 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11445 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11446 * var-tracking.c (reverse_op): Don't add reverse ops to
11447 VALUEs that have already
11448 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
11450 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11452 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11454 2013-01-02 Teresa Johnson <tejohnson@google.com>
11456 * dumpfile.c (dump_loc): Print filename with location.
11457 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11458 new location_t parameter to emit complete unroll message with
11459 new dump framework.
11460 (canonicalize_loop_induction_variables): Compute loops location
11461 and pass to try_unroll_loop_completely.
11462 * loop-unroll.c (report_unroll_peel): New function.
11463 (peel_loops_completely): Use new dump format with location
11464 for main dumpfile message, and invoke report_unroll_peel on success.
11465 (decide_unrolling_and_peeling): Ditto.
11466 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11467 by report_unroll_peel.
11468 (decide_peel_completely): Ditto.
11469 (decide_unroll_constant_iterations): Ditto.
11470 (decide_unroll_runtime_iterations): Ditto.
11471 (decide_peel_simple): Ditto.
11472 (decide_unroll_stupid): Ditto.
11473 * cfgloop.c (get_loop_location): New function.
11474 * cfgloop.h (get_loop_location): Declare.
11476 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11478 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11481 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11483 PR middle-end/55198
11484 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11485 BLKmode objects when EXPAND_MEMORY is specified.
11487 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11489 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11491 (fold_builtin_cpu): Do not share cpu model decls across statements.
11493 2013-01-02 Jason Merrill <jason@redhat.com>
11496 * tree.c (build_array_type_1): Revert earlier change.
11498 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11500 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11502 * config/aarch64/aarch64-tune.md: Re-generate.
11504 2013-01-02 Richard Biener <rguenther@suse.de>
11506 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11507 invariant load do not generate a vector load from the scalar location.
11509 2013-01-02 Richard Biener <rguenther@suse.de>
11512 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11513 * configure: Regenerate.
11515 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11517 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11518 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11519 (expand_builtin_int_roundingfn_2): Keep the original target around
11520 for the fallback case.
11522 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11524 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11525 to be clear for sign changes.
11527 2013-01-01 Jan Hubicka <jh@suse.cz>
11529 * ipa-inline-analysis.c: Fix formatting.
11531 2013-01-01 Jakub Jelinek <jakub@redhat.com>
11533 PR tree-optimization/55831
11534 * tree-vect-loop.c (get_initial_def_for_induction): Use
11535 gsi_after_labels instead of gsi_start_bb.
11537 Copyright (C) 2013 Free Software Foundation, Inc.
11539 Copying and distribution of this file, with or without modification,
11540 are permitted in any medium without royalty provided the copyright
11541 notice and this notice are preserved.