1 2013-04-26 Richard Biener <rguenther@suse.de>
3 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6 (fixup_loop_arrays_after_move): New function.
7 (move_sese_region_to_fn): Properly outline the loop tree parts
10 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
12 * config/i386/i386.md (type, unit): Fix long lines.
14 2013-04-26 Richard Biener <rguenther@suse.de>
16 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
17 (lto-streamer-out.o): Likewise.
18 * cfgloop.c (init_loops_structure): Export, add struct function
20 (flow_loops_find): Adjust.
21 * cfgloop.h (enum loop_estimation): Add EST_LAST.
22 (init_loops_structure): Declare.
23 * lto-streamer-in.c: Include cfgloop.h.
24 (input_cfg): Input the loop tree.
25 * lto-streamer-out.c: Include cfgloop.h.
26 (output_cfg): Output the loop tree.
27 (output_struct_function_base): Do not drop PROP_loops.
29 2013-03-26 Richard Biener <rguenther@suse.de>
31 * tree-cfg.c (execute_build_cfg): Build the loop tree.
32 (pass_build_cfg): Provide PROP_loops.
33 (move_sese_region_to_fn): Remove loops that are outlined into fn
35 * tree-inline.c: Include cfgloop.h.
36 (initialize_cfun): Do not drop PROP_loops.
37 (copy_loops): New function.
38 (copy_cfg_body): Copy loop structure.
39 (tree_function_versioning): Initialize destination loop tree.
40 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
41 (pass_parallelize_loops): Do IL verification.
42 * loop-init.c (loop_optimizer_init): Fixup loops if required.
43 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
44 the CFG make sure we fixup loops as well.
45 * tree-ssa-tail-merge.c: Include cfgloop.h.
46 (replace_block_by): When merging loop latches mark loops for fixup.
47 * lto-streamer-out.c (output_struct_function_base): Drop
49 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
50 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
51 * ipa-split.c: Include cfgloop.h.
52 (split_function): Add the new return block to the loop tree root.
53 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
54 whether we have removed the forwarder block.
55 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
56 * cfgloop.h (place_new_loop): Declare.
57 * cfgloopmanip.c (place_new_loop): Export.
58 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
59 (tree-switch-conversion.o): Likewise.
60 (tree-complex.o): Likewise.
61 (tree-inline.o): Likewise.
62 (tree-ssa-tailmerge.o): Likewise.
63 (ipa-split.o): Likewise.
64 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
65 (tree-ssa-copy.o): Likewise.
66 * tree-switch-conversion.c: Include cfgloop.h
67 (process_switch): If we emit a bit-test cascade, schedule loops
69 * tree-complex.c: Include cfgloop.h.
70 (expand_complex_div_wide): Properly add new basic-blocks to loops.
71 * asan.c: Include cfgloop.h.
72 (create_cond_insert_point): Properly add new basic-blocks to
73 loops, schedule loop fixup.
74 * cfgloop.c (verify_loop_structure): Check that looks are not
76 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
78 (expand_omp_for_generic): Likewise.
79 (expand_omp_sections): Likewise.
80 (expand_omp_atomic_pipeline): Schedule loops for fixup.
81 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
82 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
83 is initialized, not when loops are present.
84 * tree-parloops.c (parallelize_loops): Remove checking here.
85 * passes.c (init_optimization_passes): Schedule a copy-propagation
86 pass before complete unrolling of inner loops.
88 2013-04-26 Jakub Jelinek <jakub@redhat.com>
90 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
91 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
92 (colorize_init): Add argument to _WIN32 version.
93 * toplev.c: Include diagnostic-color.h.
94 (process_options): Default to -fdiagnostics-color=auto if
95 GCC_COLORS env var is in the environment.
96 * common.opt (fdiagnostics-color=): Add Var and Init.
97 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
98 env var is in the environment, the default is auto rather than never.
100 * diagnostic.h (file_name_as_prefix): Add context argument.
101 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
103 * langhooks.c (lhd_print_error_function): Adjust caller.
105 2013-04-25 Lawrence Crowl <crowl@google.com>
107 * var-tracking.c (shared_hash_def::htab):
108 Change type to hash_table. Update dependent calls and types.
110 2013-04-25 Lawrence Crowl <crowl@google.com>
112 * Makefile.in: Update as needed below.
114 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
115 Move declaration to after the type's method definitons.
117 * attribs.c (htab_t scoped_attributes::attribute_hash):
118 Change type to hash_table. Update dependent calls and types.
120 * bitmap.c (htab_t bitmap_desc_hash):
121 Change type to hash_table. Update dependent calls and types.
123 * cselib.c (htab_t cselib_hash_table):
124 Change type to hash_table. Update dependent calls and types.
126 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
127 (hash_string_slot_node): Move implementation into lto-streamer.h
128 struct string_slot_hasher.
129 (eq_string_slot_node): Likewise.
131 * data-streamer-out.c: Update output_block::string_hash_table
132 dependent calls and types.
134 * dwarf2cfi.c (htab_t trace_index):
135 Change type to hash_table. Update dependent calls and types.
137 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
138 Change type to hash_table. Update dependent calls and types.
139 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
140 (htab_t optimize_external_refs::map): Likewise.
141 (htab_t output_comp_unit::extern_map): Likewise.
142 (htab_t output_comdat_type_unit::extern_map): Likewise.
143 (htab_t output_macinfo::macinfo_htab): Likewise.
144 (htab_t optimize_location_lists::htab): Likewise.
145 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
147 * except.c (htab_t ehspec_hash_type):
148 Change type to hash_table. Update dependent calls and types.
149 (assign_filter_values::ttypes): Likewise.
150 (assign_filter_values::ehspec): Likewise.
151 (sjlj_assign_call_site_values::ar_hash): Likewise.
152 (convert_to_eh_region_ranges::ar_hash): Likewise.
154 * gcse.c (htab_t pre_ldst_table):
155 Change type to hash_table. Update dependent calls and types.
157 * ggc-common.c (htab_t saving_htab):
158 Change type to hash_table. Update dependent calls and types.
159 (htab_t loc_hash): Likewise.
160 (htab_t ptr_hash): Likewise.
161 (call_count): Rename ggc_call_count.
162 (call_alloc): Rename ggc_call_alloc.
163 (loc_descriptor): Rename make_loc_descriptor.
164 (add_statistics): Rename ggc_add_statistics.
166 * ggc-common.c (saving_htab):
167 Change type to hash_table. Update dependent calls and types.
169 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
170 (push_gimplify_context): Likewise.
171 (pop_gimplify_context): Likewise.
172 (struct gimple_temp_hash_elt): Added.
173 (struct gimplify_hasher): Likewise.
174 (struct gimplify_ctx.temp_htab):
175 Change type to hash_table. Update dependent calls and types.
177 * gimple-fold.c: Include gimplify-ctx.h.
179 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
180 Change type to hash_table. Update dependent calls and types.
181 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
182 avoid potential global name collision.
184 * gimplify.c: Include gimplify-ctx.h.
185 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
186 (htab_t gimplify_ctx::temp_htab):
187 Update dependent calls and types for new type hash_table.
188 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
189 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
191 * gimplify-ctx.h: New.
192 (struct gimple_temp_hash_elt): Move from gimplify.c.
193 (class gimplify_hasher): New.
194 (struct gimplify_ctx): Move from gimple.h.
195 (htab_t gimplify_ctx::temp_htab):
196 Change type to hash_table. Update dependent calls and types.
198 * graphite-clast-to-gimple.c: Include graphite-htab.h.
199 (htab_t ivs_params::newivs_index):
200 Change type to hash_table. Update dependent calls and types.
201 (htab_t ivs_params::params_index): Likewise.
202 (htab_t print_generated_program::params_index): Likewise.
203 (htab_t gloog::newivs_index): Likewise.
204 (htab_t gloog::params_index): Likewise.
206 * graphite.c: Include graphite-htab.h.
207 4htab_t graphite_transform_loops::bb_pbb_mapping):
208 Change type to hash_table. Update dependent calls and types.
210 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
211 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
212 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
214 * graphite-dependences.c: Include graphite-htab.h.
215 (loop_is_parallel_p): Change hash table type of parameter.
217 * graphite-htab.h: New.
218 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
219 (extern find_pbb_via_hash): Move from graphite-poly.h.
220 (extern loop_is_parallel_p): Move from graphite-poly.h.
221 (extern get_loop_body_pbbs): Move from graphite-poly.h.
223 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
224 (extern loop_is_parallel_p): Move to graphite-htab.h.
225 (extern get_loop_body_pbbs): Move to graphite-htab.h.
227 * haifa-sched.c (htab_t delay_htab):
228 Change type to hash_table. Update dependent calls and types.
229 (htab_t delay_htab_i2): Likewise.
231 * ira-color.c (htab_t allocno_hard_regs_htab):
232 Change type to hash_table. Update dependent calls and types.
234 * ira-costs.c (htab_t cost_classes_htab):
235 Change type to hash_table. Update dependent calls and types.
237 * loop-invariant.c (htab_t merge_identical_invariants::eq):
238 Change type to hash_table. Update dependent calls and types.
240 * loop-iv.c (htab_t bivs):
241 Change type to hash_table. Update dependent calls and types.
243 * loop-unroll.c (htab_t opt_info::insns_to_split):
244 Change type to hash_table. Update dependent calls and types.
245 (htab_t opt_info::insns_with_var_to_expand): Likewise.
247 * lto-streamer.h (struct string_slot): Move from data-streamer.h
248 (struct string_slot_hasher): New.
249 (htab_t output_block::string_hash_table):
250 Change type to hash_table. Update dependent calls and types.
252 * lto-streamer-in.c (freeing_string_slot_hasher): New.
253 (htab_t file_name_hash_table):
254 Change type to hash_table. Update dependent calls and types.
256 * lto-streamer-out.c: Update output_block::string_hash_table dependent
259 * lto-streamer.c (htab_t tree_htab):
260 Change type to hash_table. Update dependent calls and types.
262 * omp-low.c: Include gimplify-ctx.h.
264 * passes.c (htab_t name_to_pass_map):
265 Change type to hash_table. Update dependent calls and types.
266 (pass_traverse): Rename to passes_pass_traverse.
268 * plugin.c (htab_t event_tab):
269 Change type to hash_table. Update dependent calls and types.
271 * postreload-gcse.c (htab_t expr_table):
272 Change type to hash_table. Update dependent calls and types.
273 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
275 * sese.c (debug_rename_map_1): Make extern.
276 (htab_t copy_bb_and_scalar_dependences::rename_map):
277 Change type to hash_table. Update dependent calls and types.
279 * sese.h (extern debug_rename_map): Move to .c file.
281 * store-motion.c (htab_t store_motion_mems_table):
282 Change type to hash_table. Update dependent calls and types.
284 * trans-mem.c (htab_t tm_new_mem_hash):
285 Change type to hash_table. Update dependent calls and types.
287 * tree-browser.c (htab_t TB_up_ht):
288 Change type to hash_table. Update dependent calls and types.
290 * tree-cfg.c (htab_t discriminator_per_locus):
291 Change type to hash_table. Update dependent calls and types.
293 * tree-complex.c: Include tree-hasher.h
294 (htab_t complex_variable_components):
295 Change type to hash_table. Update dependent calls and types.
297 * tree-eh.c (htab_t finally_tree):
298 Change type to hash_table. Update dependent calls and types.
300 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
301 struct int_tree_hasher.
302 (extern int_tree_map_eq): Likewise.
303 (uid_decl_map_hash): Removed.
304 (extern decl_tree_map_eq): Likewise.
306 * tree-hasher.h: New.
307 (struct int_tree_hasher): New.
308 (typedef int_tree_htab_type): New.
310 * tree-inline.c: Include gimplify-ctx.h.
312 * tree-mudflap.c: Include gimplify-ctx.h.
314 * tree-parloops.c: Include tree-hasher.h.
315 (htab_t eliminate_local_variables_stmt::decl_address):
316 Change type to hash_table. Update dependent calls and types.
317 (htab_t separate_decls_in_region::decl_copies): Likewise.
319 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
320 Change type to hash_table. Update dependent calls and types.
322 * tree-sra.c (candidates):
323 Change type to hash_table. Update dependent calls and types.
325 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
327 (int_tree_map_hash): Likewise.
329 * tree-ssa-dom.c (htab_t avail_exprs):
330 Change type to hash_table. Update dependent calls and types.
332 * tree-ssa-live.c (var_map_base_init::tree_to_index):
333 Change type to hash_table. Update dependent calls and types.
335 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
336 Change type to hash_table. Update dependent calls and types.
338 * tree-ssa-phiopt.c (seen_ssa_names):
339 Change type to hash_table. Update dependent calls and types.
341 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
342 Change type to hash_table. Update dependent calls and types.
344 * tree-ssa-uncprop.c (equiv):
345 Change type to hash_table. Update dependent calls and types.
347 2013-04-25 Jakub Jelinek <jakub@redhat.com>
349 PR rtl-optimization/57003
350 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
351 call note_stores with kill_clobbered_value callback again after
352 killing regs_invalidated_by_call.
354 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
356 * config/aarch64/aarch64-simd.md
357 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
358 (aarch64_simd_bsl<mode>): Likewise.
359 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
361 2013-04-25 Marek Polacek <polacek@redhat.com>
363 PR tree-optimization/57066
364 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
366 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
368 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
370 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
372 * config/aarch64/aarch64-builtins.c
373 (aarch64_fold_builtin): New.
374 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
375 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
376 * config/aarch64/aarch64-simd-builtins.def (abs): New.
377 * config/aarch64/arm_neon.h
378 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
380 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
381 Tejas Belagod <tejas.belagod@arm.com>
383 * config/aarch64/aarch64-builtins.c
384 (aarch64_gimple_fold_builtin): New.
385 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
386 * config/aarch64/aarch64-simd-builtins.def (addv): New.
387 * config/aarch64/aarch64-simd.md (addpv4sf): New.
389 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
391 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
393 * config/aarch64/aarch64.md
394 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
396 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
398 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
399 (*ngcsi_uxtw): New pattern.
401 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
402 Julian Brown <julian@codesourcery.com>
404 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
405 (TB_DREG): Add T_V4HF.
406 (v4hf_UP): New macro.
407 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
408 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
409 Handle initialisation of V4HF. Adjust initialisation of reinterpret
411 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
412 (arm_vector_mode_supported_p): Handle V4HF.
413 (arm_mangle_map): Handle V4HFmode.
414 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
415 * config/arm/arm_neon_builtins.def: Add entries for
416 vcvtv4hfv4sf, vcvtv4sfv4hf.
417 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
418 (neon_vcvtv4hfv4sf): Likewise.
419 * config/arm/neon-gen.ml: Handle half-precision floating point
421 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
422 * config/arm/arm_neon.h: Regenerate.
423 * config/arm/neon.ml (type elts): Add F16.
424 (type vectype): Add T_float16x4, T_floatHF.
425 (type vecmode): Add V4HF.
426 (type features): Add Requires_FP_bit feature.
427 (elt_width): Handle F16.
428 (elt_class): Likewise.
429 (elt_of_class_width): Likewise.
430 (mode_of_elt): Refactor.
431 (type_for_elt): Handle F16, fix error messages.
432 (vectype_size): Handle T_float16x4.
433 (vcvt_sh): New function.
434 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
435 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
436 (string_of_mode): Handle V4HF.
437 * doc/arm-neon-intrinsics.texi: Regenerate.
439 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
441 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
442 format specifier in 'X' case.
444 2013-04-25 Alan Modra <amodra@gmail.com>
447 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
448 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
449 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
450 Repeat for many other rotate/shift and mask patterns using subregs.
452 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
455 2013-04-25 Alan Modra <amodra@gmail.com>
457 * config.gcc: Support little-endian powerpc-linux targets.
458 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
459 (LINK_OS_LINUX_SPEC): Define.
460 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
461 Preserve MASK_LITTLE_ENDIAN.
462 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
463 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
464 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
465 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
466 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
467 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
468 Correct fp word order for little-endian. Don't shift toc entries
469 smaller than a word for little-endian.
470 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
471 (bswapdi2 splits): Correct low-part subreg for little-endian.
472 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
473 low/high where such is correct only for be.
474 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
475 little-endian for -mcall-aixdesc.
477 2013-04-25 Alan Modra <amodra@gmail.com>
479 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
480 replace_equiv_address_nv.
482 2013-04-25 Alan Modra <amodra@gmail.com>
484 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
486 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
489 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
490 * rtl.h (struct rtx_def): ...
492 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
494 PR rtl-optimizations/57046
495 * lra-constraints (split_reg): Set up lra_risky_transformations_p
496 for multi-reg splits.
498 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
500 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
502 2013-04-24 Sterling Augustine <saugustine@google.com>
504 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
505 (comp_dir_string, debug_str_dwo_section): New.
506 (DEBUG_STR_DWO_SECTION): Rename to ...
507 (DEBUG_DWO_STR_SECTION): ... this.
508 (DEBUG_NORM_STR_SECTION): Delete.
509 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
510 (DEBUG_STR_DWO_SECTION_FLAGS): New.
511 (find_AT_string): Move most logic to ...
512 (find_AT_string_in_table): ... here. New.
513 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
514 add_skeleton_AT_string. Delete logic.
515 (output_skeleton_debug_sections): Remove call to
516 add_top_level_skeleton_die_attrs.
517 (add_comp_dir_attribute): Move logic to comp_dir_string.
518 (dwarf2out_init): Initialize debug_str_dwo_section.
519 (output_indirect_string): Call find_string_form.
520 (output_indirect_strings): Rewrite.
521 (prune_unused_types): Empty skeleton_debug_str_hash.
522 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
523 (dwarf2out_finish): Call output_indirect_strings.
525 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
527 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
529 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
531 * rtl.h (struct rtx_def): Add comment for field jump.
532 (LRA_SUBREG_P): New macro.
533 * recog.c (register_operand): Check LRA_SUBREG_P.
534 * lra.c (lra): Add note at the end of RTL code. Align non-empty
536 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
537 (lra_final_code_change): Skip subreg change for operators.
538 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
539 if there are no operand changes.
540 * lra-constraints.c (curr_insn_set): New.
541 (match_reload): Set LRA_SUBREG_P.
542 (emit_spill_move): Ditto.
543 (check_and_process_move): Use curr_insn_set. Process only single
544 set insns. Don't initialize sec_mem_p and change_p.
545 (simplify_operand_subreg): Use LRA_SUBREG_P.
546 (reg_in_class_p): New function.
547 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
548 of #ifdef. Add code to remove cycling.
549 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
550 non-null disp. Reload inner instead of disp when base and index
551 are null. Try to put lo_sum into register.
552 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
553 (check_and_process_move): Move code for move cost check to
554 simple_move_p. Remove equiv_substitution.
555 (simple_move_p): New function.
556 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
557 curr_insn_set. Call check_and_process_move only for single set
558 insns. Use the new function. Move call of check_and_process_move
559 after operand equiv substitution and address process.
561 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
563 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
564 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
565 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
567 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
569 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
571 2013-04-24 Marek Polacek <polacek@redhat.com>
573 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
574 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
575 (select_loops_exit_conditions): Likewise.
576 (number_of_iterations_for_all_loops): Likewise.
577 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
578 (scev_analysis): Likewise.
580 2013-04-02 Catherine Moore <clm@codesourcery.com>
581 Chao-ying Fu <fu@mips.com>
583 * config/mips/micromips.md (jraddiusp): New pattern.
584 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
585 instruction if possible.
587 2013-04-24 Alan Modra <amodra@gmail.com>
589 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
591 2013-04-24 Julian Brown <julian@codesourcery.com>
592 Chung-Lin Tang <cltang@codesourcery.com>
594 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
595 dependency behavior in enumeration type DIE generation. Add TODO note
596 to comments about future DW_FORM_sdata/udata re-work of related code.
598 2013-04-23 Lawrence Crowl <crowl@google.com>
600 * Makefile.in: Update as needed below.
602 * hash-table.h (class hash_table):
603 Correct many methods with parameter types compare_type to the correct
604 value_type. (Correct code was unlikely to notice the change.)
605 (hash_table::elements_with_deleted) New.
606 (class hashtable::iterator): New.
607 (hashtable::begin()): New.
608 (hashtable::end()): New.
609 (FOR_EACH_HASH_TABLE_ELEMENT): New.
611 * statistics.c (statistics_hashes):
612 Change type to hash_table. Update dependent calls and types.
614 * tree-into-ssa.c (var_infos):
615 Change type to hash_table. Update dependent calls and types.
617 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
618 Change type to hash_table. Update dependent calls and types.
620 * tree-ssa-loop-im.c (struct mem_ref.refs):
621 Change type to hash_table. Update dependent calls and types.
623 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
624 Change type to hash_table. Update dependent calls and types.
626 * tree-ssa-sccvn.c (vn_tables_s::nary):
627 Change type to hash_table. Update dependent calls and types.
628 (vn_tables_s::phis): Likewise.
629 (vn_tables_s::references): Likewise.
631 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
632 (vn_reference_eq): Update parameter and return types.
634 * tree-ssa-structalias.c (pointer_equiv_class_table):
635 Change type to hash_table. Update dependent calls and types.
636 (location_equiv_class_table): Likewise.
638 * tree-vect-data-refs.c: Consequential changes for making
639 peeling a hash_table.
641 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
642 (destroy_loop_vec_info): Dependent hash_table update.
644 * tree-vectorizer.h (peeling_htab):
645 Change type to hash_table. Update dependent calls and types.
647 2013-04-23 Shiva Chen <shiva0217@gmail.com>
649 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
650 to check the register content is equal or not.
651 * lra-constraints.c (match_reload): Use lra_assign_reg_val
652 to assign register content record.
653 * lra-eliminations.c (update_reg_eliminate): Use
654 lra_update_reg_val_offset to update register content offset.
655 * lra-int.h (struct lra_reg): Add offset member.
656 (lra_reg_val_equal_p): New static inline function.
657 (lra_update_reg_val_offset): New static inline function.
658 (lra_assign_reg_val): New static inline function.
659 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
660 to assign register content record.
661 (initialize_lra_reg_info_element): Initial offset to zero.
663 2013-04-23 Catherine Moore <clm@codesourcery.com>
665 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
666 operands. Record compression.
668 2013-04-23 Xinliang David Li <davidxl@google.com>
670 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
672 2013-04-23 Richard Biener <rguenther@suse.de>
675 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
676 parameter, only add abnormal goto edges from the copied body
677 if the call could perform abnormal gotos.
678 (copy_cfg_body): Adjust.
680 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
682 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
684 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
686 * config/s390/sjlj.S: New file.
687 * config/s390/target.h: New file.
688 * configure.tgt: Set options for S/390.
690 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
692 * coretypes.h (gimple_stmt_iterator): Add struct to make
695 2013-04-23 Richard Biener <rguenther@suse.de>
697 PR tree-optimization/57026
698 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
699 from SSA names occuring in abnormal PHI nodes.
701 2013-04-22 Andi Kleen <ak@linux.intel.com>
703 * lto/lto.c (print_lto_report_1): Fix LTO report names.
705 2013-04-22 Andi Kleen <ak@linux.intel.com>
707 * lto/lto.c (print_lto_report_1): Declare early.
708 (read_cgraph_and_symbols): Call print_lto_report_1 early.
710 2013-04-22 Andi Kleen <ak@linux.intel.com>
712 * common.opt (-flto-report-wpa): Add.
713 * doc/invoke.texi (-flto-report-wpa): Add.
714 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
717 2013-04-22 Xinliang David Li <davidxl@google.com>
719 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
720 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
721 * Makefile.in: New dependency
723 David Daney <ddaney.cavm@gmail.com>
725 * configure.ac (gcc_cv_as_micromips_support): Use the
726 --fatal-warnings option.
727 * configure: Regenerate.
729 2013-04-22 Marek Polacek <polacek@redhat.com>
732 * tsan.c (instrument_expr): Don't instrument expression
733 in case its size is zero.
735 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
739 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
741 * config/alpha/alpha.c (TARGET_LRA_P): New define.
743 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
745 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
746 (gimple_stmt_iterator): New typedef.
747 * gimple.h (gimple_stmt_iterator): Rename to...
748 (gimple_stmt_iterator_d): ... This.
749 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
750 trees be valid for GIMPLE and GENERIC.
751 (TARGET_GIMPLE_FOLD_BUILTIN): New.
752 * gimple-fold.c (gimple_fold_call): Call target hook
754 * hooks.c (hook_bool_gsiptr_false): New.
755 * hooks.h (hook_bool_gsiptr_false): New.
756 * target.def (fold_stmt): New.
757 * doc/tm.texi: Regenerate.
759 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
762 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
763 a set sp if no stack realignment.
765 2013-04-22 Nick Clifton <nickc@redhat.com>
767 * config.gcc (tilegx-linux): Extend extra_objs rather than
769 (tilepro-linux): Likewise.
771 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
773 * config/aarch64/aarch64-builtins.c
775 (CF0, CF1, CF2, CF3, CF4, CF10): New.
776 (VAR<1-12>): Add MAP parameter.
777 (BUILTIN_*): Likewise.
778 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
779 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
780 (aarch64_ushl_n<mode>): Likewise.
781 (aarch64_sshr_n<mode>): Likewise.
782 (aarch64_ushr_n<mode>): Likewise.
783 (aarch64_<maxmin><mode>): Likewise.
784 (aarch64_sqrt<mode>): Likewise.
785 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
786 (vshr<q>_n_*): Likewise.
788 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
790 * config/aarch64/aarch64-builtins.c
791 (aarch64_simd_builtin_type_mode): Handle SF types.
793 (BUILTIN_GPF): Define.
794 (aarch64_init_simd_builtins): Handle SF types.
795 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
798 * config/aarch64/aarch64-simd.md
799 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
800 (aarch64_frecpe<mode>): New.
801 (aarch64_frecps<mode>): Likewise.
802 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
803 (v8type): Add frecp<esx>.
804 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
805 (aarch64_frecps<mode>): Likewise.
806 * config/aarch64/iterators.md (FRECP): New.
807 (frecp_suffix): Likewise.
808 * config/aarch64/arm_neon.h
809 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
811 2013-04-22 Christian Bruel <christian.bruel@st.com>
814 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
815 (REG_CLASS_NAMES): Idem.
816 (REG_CLASS_CONTENTS): Idem.
817 (REGCLASS_HAS_FP_REG): Idem.
818 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
819 (sh_conditional_register_usage): Idem.
821 2013-04-21 Jeff Law <law@redhat.com>
823 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
824 (ssa_forward_propagate_and_combine): Use it.
826 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
828 * lra.c: Update the flow chart diagram.
830 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
832 PR rtl-optimization/56847
833 * lra-constraints.c (process_alt_operands): Discourage alternative
834 with non-matche doffsettable memory constraint fro memory with
837 2013-04-19 Richard Biener <rguenther@suse.de>
839 PR tree-optimization/56982
840 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
842 * gimplify.c (gimplify_call_expr): Notice special calls.
843 (gimplify_modify_expr): Likewise.
844 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
845 abnormal control flow receivers.
846 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
847 in the same way as cfun->has_nonlocal_labels.
848 (gimple_purge_dead_abnormal_call_edges): Likewise.
849 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
850 receivers start a basic-block.
852 2013-04-19 Richard Biener <rguenther@suse.de>
854 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
856 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
857 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
858 (SLP_TREE_LOAD_PERMUTATION): Add.
859 (vect_transform_slp_perm_load): Adjust prototype.
860 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
861 (vect_free_slp_instance): Likewise.
862 (vect_create_new_slp_node): Likewise.
863 (vect_supported_slp_permutation_p): Remove.
864 (vect_slp_rearrange_stmts): Adjust.
865 (vect_supported_load_permutation_p): Likewise. Inline
866 vect_supported_slp_permutation_p here.
867 (vect_analyze_slp_instance): Compute load permutations per
868 slp node instead of per instance.
869 (vect_get_slp_defs): Adjust.
870 (vect_transform_slp_perm_load): Likewise.
871 (vect_schedule_slp_instance): Remove redundant code.
872 (vect_schedule_slp): Remove hack for PR56270, add it ...
873 * tree-vect-stmts.c (vectorizable_load): ... here, do not
874 CSE loads for SLP. Adjust.
876 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
878 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
879 spelling in two comments.
881 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
884 * config/arm/arm.c (load_multiple_sequence): Require SP
885 as base register for loads if SP is in the register list.
887 2013-04-19 Martin Jambor <mjambor@suse.cz>
889 PR tree-optimization/56718
890 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
891 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
892 and made public. Adjusted all callers.
893 (ipa_intraprocedural_devirtualization): New function.
894 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
895 (ipa_intraprocedural_devirtualization): Likewise.
896 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
898 2013-04-19 Richard Biener <rguenther@suse.de>
900 PR tree-optimization/57000
901 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
903 2013-04-19 Terry Guo <terry.guo@arm.com>
905 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
907 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
908 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
909 (cortex_m4_fmacs): Use new reservations.
910 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
912 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
914 PR rtl-optimization/56999
915 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
917 (lra_coalesce): Remove split_origin_bitmap and related code.
918 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
921 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
923 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
925 (ix86_expand_call): Remove clobbered_registers array and use
926 x86_64_ms_sysv_extra_clobbered_registers instead.
927 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
929 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
931 * config/i386/i386.md (*call_rex64_ms_sysv): Use
932 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
933 (*call_value_rex64_ms_sysv): Ditto.
935 2013-04-18 Cary Coutant <ccoutant@google.com>
937 * dwarf2out.c (output_pubnames): Check die_perennial_p of
938 parent instead of die_mark.
940 2013-04-18 Diego Novillo <dnovillo@google.com>
942 * gimple.c (create_gimple_tmp): New.
943 (get_expr_type): New.
945 (build_type_cast): New.
946 * gimple.h (enum ssa_mode): Define.
947 (gimple_seq_set_location): New.
948 * asan.c (build_check_stmt): Change some gimple_build_* calls
949 to use build_assign and build_type_cast.
951 2013-04-18 Richard Biener <rguenther@suse.de>
953 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
954 handle negative step. Remove redundant checks.
955 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
956 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
957 for negative step and grouped loads fail to vectorize.
959 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
961 * emit-rtl.c (reset_insn_used_flags): New function.
962 (reset_all_used_flags): Use it.
963 (verify_insn_sharing): New function.
964 (verify_rtl_sharing): Fix verification for SEQUENCEs.
966 2013-04-18 Jakub Jelinek <jakub@redhat.com>
968 PR tree-optimization/56984
969 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
970 and (x >> M) >= N don't register any assertion if N << M is the
973 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
975 * lower-subreg.c (resolve_simple_move): If called self-recursive,
976 do not delete_insn insns that have not yet been emitted, only
977 unlink them with remove_insn.
978 * df-scan.c (df_insn_delete): Revert r197492.
980 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
982 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
983 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
985 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
987 * config/arm/arm.md (movsicc_insn): Convert define_insn into
988 define_insn_and_split.
989 (and_scc,ior_scc,negscc): Likewise.
990 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
992 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
994 * config/arm/arm.c (use_return_insn): Return 0 for targets that
995 can benefit from using a sequence of LDRD instructions in epilogue
996 instead of a single LDM instruction.
998 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1001 * doc/extend.texi: Fix typo.
1003 2013-04-17 Richard Biener <rguenther@suse.de>
1005 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
1006 (vect_build_slp_tree): ... here.
1007 (vect_build_slp_tree_1): Compute which stmts of the SLP group
1008 match. Remove special-casing of mismatched complex loads.
1009 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
1010 re-try the match with swapped commutative operands.
1011 (vect_supported_load_permutation_p): Remove special-casing of
1012 mismatched complex loads.
1013 (vect_analyze_slp_instance): Adjust.
1015 2013-04-17 Richard Biener <rguenther@suse.de>
1017 PR rtl-optimization/56921
1018 * cfgloop.h (struct loop): Add simple_loop_desc member.
1019 (struct niter_desc): Mark with GTY(()).
1020 (simple_loop_desc): Do not use aux field but simple_loop_desc.
1021 * loop-iv.c (get_simple_loop_desc): Likewise.
1022 (free_simple_loop_desc): Likewise.
1025 2013-04-16 Richard Biener <rguenther@suse.de>
1027 PR rtl-optimization/56921
1028 * loop-init.c (pass_rtl_move_loop_invariants): Add
1029 TODO_do_not_ggc_collect to todo_flags_finish.
1030 (pass_rtl_unswitch): Same.
1031 (pass_rtl_unroll_and_peel_loops): Same.
1032 (pass_rtl_doloop): Same.
1034 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
1036 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
1037 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
1038 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
1040 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
1041 * tree-streamer.c (record_common_node): Adjust reference in comment.
1043 2013-04-17 Terry Guo <terry.guo@arm.com>
1045 * config/arm/cortex-m4.md: Add a new bypass.
1047 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1049 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
1051 (*subs_<optab><mode>_multp2): New pattern.
1052 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1053 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1055 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1057 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
1058 (*subs_mul_imm_<mode>): New pattern.
1060 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
1063 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1064 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
1065 (vsx_movti_32bit): Change j->wa to O->wa.
1067 2013-04-16 Richard Biener <rguenther@suse.de>
1069 PR rtl-optimization/56921
1070 * loop-init.c (pass_rtl_move_loop_invariants): Add
1071 TODO_do_not_ggc_collect to todo_flags_finish.
1072 (pass_rtl_unswitch): Same.
1073 (pass_rtl_unroll_and_peel_loops): Same.
1074 (pass_rtl_doloop): Same.
1076 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
1078 * config/arm/arm.c (emit_multi_reg_push): New declaration
1079 for an existing function.
1080 (arm_emit_strd_push): New function.
1081 (arm_expand_prologue): Used here.
1082 (arm_emit_ldrd_pop): New function.
1083 (arm_expand_epilogue): Used here.
1084 (arm_get_frame_offsets): Update condition.
1085 (arm_emit_multi_reg_pop): Add a special case for load of a single
1086 register with writeback.
1088 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
1090 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
1093 2013-04-16 Richard Biener <rguenther@suse.de>
1095 PR tree-optimization/56756
1096 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
1097 (first_mem_ref_loc): New.
1098 (execute_sm): Place the load temporarily before a previous
1099 access instead of in the latch edge to ensure its SSA dependencies
1100 are defined at points dominating the load.
1102 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
1104 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
1105 correct fix by moving header and footer insn to the footer of
1106 the merged basic block. Clear BB_END of the merged-away block.
1109 * emit-rtl.c (make_note_raw): New function.
1110 (link_insn_into_chain): New static inline function.
1112 (add_insn_before, add_insn_after): Factor insn chain linking code...
1113 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
1114 using link_insn_into_chain.
1115 (note_outside_basic_block_p): New helper function for emit_note_after
1116 and emit_note_before.
1117 (emit_note_after): Use nobb variant of add_insn_after if the note
1118 should not be contained in a basic block.
1119 (emit_note_before): Use nobb variant of add_insn_before if the note
1120 should not be contained in a basic block.
1121 (emit_note_copy): Use make_note_raw.
1122 (emit_note): Likewise.
1123 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
1124 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
1125 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
1126 the moved barrier the tail of the basic block it follows.
1127 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
1129 2013-04-15 Jakub Jelinek <jakub@redhat.com>
1131 PR tree-optimization/56962
1132 * gimple-ssa-strength-reduction.c (record_increment): Only set
1133 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1134 either rhs1 or rhs2 is equal to c->base_expr.
1136 2013-04-15 Richard Biener <rguenther@suse.de>
1138 PR tree-optimization/56933
1139 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
1141 (GROUP_READ_WRITE_DEPENDENCE): Remove.
1142 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
1143 * tree-vect-data-refs.c (vect_analyze_group_access): Move
1144 dependence check ...
1145 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
1147 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
1148 GROUP_READ_WRITE_DEPENDENCE.
1150 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1152 * emit-rtl.c (reset_all_used_flags): New function.
1153 (verify_rtl_sharing): Call reset_all_used_flags before and after
1154 performing the checks.
1156 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1158 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
1159 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
1160 * config/arm/constraints.md (De): New constraint.
1161 * config/arm/neon.md (anddi3_neon): Delete.
1162 (neon_vand<mode>): Expand to standard anddi3 pattern.
1163 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
1164 Move earlier in the file.
1165 (neon_inv_logic_op2): Likewise.
1166 (arm_anddi_operand_neon): New predicate.
1168 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1170 * configure.ac (gcc_cv_ld_as_needed): Set
1171 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
1172 Use -z ignore, -z record on *-*-solaris2*.
1173 (HAVE_LD_AS_NEEDED): Update comment.
1174 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
1175 * configure: Regenerate.
1176 * config.in: Regenerate.
1177 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
1178 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
1179 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
1180 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
1181 equivalents. Fix markup.
1182 * doc/tm.texi: Regenerate.
1184 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
1186 * config/i386/i386.opt: New option mstack-protector-guard=.
1187 * config/i386/i386-opts.h: Add enum stack_protector_guard.
1188 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
1189 TARGET_SSP_TLS_GUARD.
1190 * config/i386/i386.c (ix86_option_override_internal): Set
1191 ix86_stack_protector_guard.
1192 * config/i386/i386.md (stack_protect_set): Enable for
1193 TARGET_SSP_TLS_GUARD only.
1194 (stack_protect_set_<mode>): Ditto.
1195 (stack_protect_test): Ditto.
1196 (stack_protect_test_<mode>): Ditto.
1197 * doc/invoke.texi (i386 Option): Document.
1199 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
1202 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1203 (S_MODES): Set H_MODE bit.
1204 (SF_MODES): Set only S_MODE and SF_MODE bits.
1205 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1206 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1207 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1208 <MODE_FLOAT>: Likewise.
1210 2013-04-15 Joey Ye <joey.ye@arm.com>
1212 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
1214 2013-04-15 Joey Ye <joey.ye@arm.com>
1216 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
1218 (thumb_far_jump_used_p): Count instruction size and set
1221 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
1223 * reorg.c (fill_simple_delay_slots): Reindent block of code.
1224 * resource.c (mark_target_live_regs): Reformat conditional block.
1226 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1228 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
1229 notes, they are emitted only just before final.
1230 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
1232 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1234 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
1235 * cfgrtl.c (delete_insn): Call it here instead.
1236 * lra-spills.c (lra_final_code_change): Use delete_insn.
1237 * haifa-sched.c (sched_remove_insn): Likewise.
1238 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
1239 returning to the nop pool.
1240 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
1241 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
1243 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1245 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
1246 * doc/tm.texi: Regenerated.
1248 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
1250 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
1253 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1255 * df-core.c (df_find_def): Compare register numbers.
1256 (df_find_use): Likewise.
1258 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
1261 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1262 lra_in_progress for return.
1264 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1266 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
1267 define_insn into define_insn_and_split and emit movsicc patterns.
1269 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1271 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
1273 2013-04-12 Richard Biener <rguenther@suse.de>
1275 * tree-pass.h (TODO_do_not_ggc_collect): New.
1276 * passes.c (execute_one_ipa_transform_pass): Honor
1277 TODO_do_not_ggc_collect.
1278 (execute_one_pass): Likewise.
1281 2013-04-10 Richard Biener <rguenther@suse.de>
1283 * passes.c (init_optimization_passes): Remove reload pass.
1284 * ira.c (do_reload): Merge into ...
1286 (rest_of_handle_reload): Remove.
1287 (pass_reload): Likewise.
1288 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1289 of reload for vzeroupper pass placement.
1291 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1293 PR tree-optimization/56918
1294 PR tree-optimization/56920
1295 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1296 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
1297 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
1298 use wide_mul_with_sign method.
1300 2013-04-12 Richard Biener <rguenther@suse.de>
1302 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
1303 not be considered a gimple constant.
1305 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
1307 * fold-const.c (const_binop): Handle vector shifts by a scalar.
1308 (fold_binary_loc): Call const_binop also for mixed vector-scalar
1311 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
1312 Jakub Jelinek <jakub@redhat.com>
1314 * opts.c: Include diagnostic-color.h.
1315 (common_handle_option): Handle OPT_fdiagnostics_color_.
1316 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
1317 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
1318 (diagnostic-color.o): New.
1319 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
1320 (diagnostic_color_rule): New enum.
1321 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
1322 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
1323 the location string.
1324 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
1325 either NULL, or color kind.
1326 * diagnostic-color.c: New file.
1327 * diagnostic-color.h: New file.
1328 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
1330 * doc/invoke.texi (-fdiagnostics-color): Document.
1331 * pretty-print.h (pp_show_color): Define.
1332 (struct pretty_print_info): Add show_color field.
1333 * diagnostic.c: Include diagnostic-color.h.
1334 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
1335 macros. Colorize error:, warning: etc. strings and also the location
1337 (diagnostic_show_locus): Colorize the caret line.
1338 * pretty-print.c: Include diagnostic-color.h.
1339 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
1340 inside of %< %> quotes or quoted through q format modifier.
1342 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1344 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
1346 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1348 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
1350 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
1353 2013-04-11 Marek Polacek <polacek@redhat.com>
1355 PR tree-optimization/48184
1356 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
1358 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
1360 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
1361 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
1362 (skip_simple_arithmetic): Tidy up.
1363 * tree.h (skip_simple_constant_arithmetic): Declare.
1365 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1367 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
1369 2013-04-11 Richard Biener <rguenther@suse.de>
1371 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1372 generate vector constants.
1374 2013-04-11 Richard Biener <rguenther@suse.de>
1376 PR tree-optimization/56878
1377 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
1378 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
1380 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1381 Prefer to align the DR with the most invariant base address.
1383 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1385 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
1388 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1390 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1391 floating-point vector comparisons against 0.
1393 2013-04-11 Jakub Jelinek <jakub@redhat.com>
1395 PR tree-optimization/56899
1396 * fold-const.c (extract_muldiv_1): Apply distributive law
1397 only if TYPE_OVERFLOW_WRAPS (ctype).
1399 2013-04-11 Bin Cheng <bin.cheng@arm.com>
1402 * ira-costs.c (scan_one_insn): Check whether the source rtx of
1403 loading has side effect.
1405 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
1407 * config/sparc/sparc.c: Include tree-pass.h.
1408 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1409 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
1410 head of file. Change return type. Split off gate function.
1411 (sparc_gate_work_around_errata): New function.
1412 (pass_work_around_errata): New pass definition.
1413 (insert_pass_work_around_errata) New pass insert definition to
1414 insert pass_work_around_errata just after delayed-branch scheduling.
1415 (sparc_option_override): Insert the pass.
1416 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1418 2013-04-10 David S. Miller <davem@davemloft.net>
1420 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1421 or -mcpu=hypersparc.
1423 * target.def (cstore_mode): New hook.
1424 * target.h: Include insn-codes.h
1425 * targhooks.c: Likewise.
1426 (default_cstore_mode): New function.
1427 * targhooks.h: Declare it.
1428 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
1429 * doc/tm.texi: Rebuild.
1430 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
1431 target hook, rather than inspecting the insn_data.
1432 * config/sparc/sparc.c (sparc_cstore_mode): New function.
1433 (TARGET_CSTORE_MODE): Redefine.
1434 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
1436 * config/sparc/predicates.md (cstore_result_operand): New special
1438 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
1439 Use it for operand 0.
1440 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
1441 (*snesi_special): Likewise.
1442 (*snesi_zero): Likewise.
1443 (*seqsi_zero): Likewise.
1444 (*sltu_insn): Likewise.
1445 (*sgeu_insn): Likewise.
1446 (*seqdi_special): Make operand 0 and comparison operation be of
1448 (*snedi_special): Likewise.
1449 (*snedi_special_vis3): Likewise.
1450 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
1451 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
1452 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
1453 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
1454 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
1455 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
1456 (*sltu_extend_sp64): Likewise.
1457 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
1458 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
1459 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
1460 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
1461 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
1463 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
1465 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1466 (aarch64_start_file): Use the new function.
1468 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1469 Jason Merrill <jason@redhat.com>
1471 * common.opt: Add -gdwarf.
1472 * opts.c (common_handle_option): Handle it.
1473 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
1475 2013-04-10 Richard Biener <rguenther@suse.de>
1477 * passes.c (execute_todo): Do not call ggc_collect conditional here.
1478 (execute_one_ipa_transform_pass): But unconditionally here.
1479 (execute_one_pass): And here.
1480 (init_optimization_passes): Remove reload pass.
1481 * tree-pass.h (TODO_ggc_collect): Remove.
1482 (pass_reload): Likewise.
1483 * ira.c (do_reload): Merge into ...
1485 (rest_of_handle_reload): Remove.
1486 (pass_reload): Likewise.
1487 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1488 of reload for vzeroupper pass placement.
1489 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
1490 and todo_flags_finish of all passes.
1492 2013-04-10 Richard Biener <rguenther@suse.de>
1494 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
1495 first_const_oprnd field, rename first_def_type to first_op_type.
1496 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
1497 (vect_get_and_check_slp_defs): Always use the type of the
1498 operand. Allow mixed vect_external_def, vect_constant_def types.
1499 (vect_get_constant_vectors): Handle mixed vect_external_def,
1500 vect_constant_def types.
1502 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
1504 PR tree-optimization/55524
1505 * tree-ssa-math-opts.c
1506 (convert_mult_to_fma): Don't use an fms construct
1507 when we don't have an fms operation, but fnma, and it looks
1508 likely that we'll be able to use the latter.
1510 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1512 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
1514 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
1515 inline fail caused by overwritable functions.
1517 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
1519 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
1520 unnecessary bits in the constant power of two case.
1522 2013-04-10 Richard Biener <rguenther@suse.de>
1524 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
1525 broken code swapping operands.
1526 (vect_build_slp_tree): Do not compute load permutations here.
1527 (vect_analyze_slp_instance): Compute load permutations here,
1528 after building the SLP tree.
1530 2013-04-09 Christian Bruel <christian.bruel@st.com>
1532 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
1533 of next/prev_real_insn.
1535 2013-04-09 Jan Hubicka <jh@suse.cz>
1537 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1538 Drop aliased parameter.
1539 (function_and_variable_visibility): Do not handle alias pairs.
1540 * cgraph.c (varpool_externally_visible_p): Update prototype.
1541 * varpool.c (varpool_add_new_variable): Update.
1543 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1545 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
1547 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
1549 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
1551 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
1553 2013-04-09 Marek Polacek <polacek@redhat.com>
1555 PR tree-optimization/48762
1556 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
1558 2013-04-09 Richard Biener <rguenther@suse.de>
1560 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
1562 (vect_build_slp_tree): Likewise.
1563 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
1564 calculating the cost of a SLP instance.
1565 (vect_analyze_slp_instance): Use it from here, after building
1568 2013-04-09 Jakub Jelinek <jakub@redhat.com>
1571 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1572 expand_omp_for_static_chunk): Use simple_p = true in
1573 force_gimple_operand_gsi calls when assigning to addressable decls.
1575 2013-04-09 Jeff Law <law@redhat.com>
1577 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
1578 when the boolean was created by converting a wider object which
1579 had a boolean range.
1581 2013-04-09 Richard Biener <rguenther@suse.de>
1583 * tree-vectorizer.h (slp_void_p): Remove.
1584 (slp_tree): Typedef before _slp_tree declaration.
1585 (struct _slp_tree): Use a vector of slp_tree as children.
1586 (vect_get_place_in_interleaving_chain): Remove.
1587 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
1589 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
1591 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
1592 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1593 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1594 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
1595 Use slp_node instead of slp_void_p and adjust.
1597 2013-04-09 Richard Biener <rguenther@suse.de>
1599 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
1600 work that is not necessary.
1602 2013-04-09 Jakub Jelinek <jakub@redhat.com>
1604 PR tree-optimization/56854
1605 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
1606 forward into clobber stmts if it would change MEM_REF lhs into
1609 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
1611 * tree.c (type_hash_lookup, type_hash_add): Make static.
1612 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
1614 2013-04-09 Richard Biener <rguenther@suse.de>
1616 * tree.h (unsave_expr_now): Remove.
1617 * tree-inline.c (mark_local_for_remap_r): Remove.
1618 (unsave_expr_1): Likewise.
1619 (unsave_r): Likewise.
1620 (unsave_expr_now): Likewise.
1621 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
1622 (propagate_tree_value): Likewise.
1624 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
1626 * doc/rtl.texi (sequence): Rewrite documentation to match the
1627 current use of SEQUENCE rtl objects.
1628 * rtl.def (SEQUENCE): Likewise.
1630 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
1631 Update documentation.
1632 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
1633 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
1635 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
1637 2013-04-08 Teresa Johnson <tejohnson@google.com>
1639 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
1640 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
1642 (estimate_edge_size_and_time): Add comment to suggest using rounding
1644 (estimate_node_size_and_time): Ditto.
1645 (remap_edge_change_prob): Use helper rounding divide methods.
1646 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
1647 (gimple_mod_pow2_value_transform): Ditto.
1648 (gimple_mod_subtract_transform): Ditto.
1649 (gimple_ic_transform): Ditto.
1650 (gimple_stringops_transform): Ditto.
1651 * stmt.c (conditional_probability): Ditto.
1652 (emit_case_dispatch_table): Ditto.
1653 * lto-cgraph.c (merge_profile_summaries): Ditto.
1654 * tree-optimize.c (execute_fixup_cfg): Ditto.
1655 * cfgcleanup.c (try_forward_edges): Ditto.
1656 * cfgloopmanip.c (scale_loop_profile): Ditto.
1658 (duplicate_loop_to_header_edge): Ditto.
1659 (lv_adjust_loop_entry_edge): Ditto.
1660 * tree-vect-loop.c (vect_transform_loop): Ditto.
1661 * profile.c (compute_branch_probabilities): Ditto.
1662 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1663 * lto-streamer-in.c (input_cfg): Ditto.
1664 * gimple-streamer-in.c (input_bb): Ditto.
1665 * ipa-cp.c (update_profiling_info): Ditto.
1666 (update_specialized_profile): Ditto.
1667 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
1668 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
1670 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1671 (compute_trg_info): Ditto.
1672 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
1673 (purge_dead_edges): Ditto.
1674 * loop-unswitch.c (unswitch_loop): Ditto.
1675 * cgraphclones.c (cgraph_clone_edge): Ditto.
1676 (cgraph_clone_node): Ditto.
1677 * tree-inline.c (copy_bb): Ditto.
1678 (copy_edges_for_bb): Ditto.
1679 (initialize_cfun): Ditto.
1680 (copy_cfg_body): Ditto.
1681 (expand_call_inline): Ditto.
1683 2013-04-08 Kai Tietz <ktietz@redhat.com>
1685 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
1686 TARGET_CYGWIN64 by TARGET_64BIT.
1688 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
1690 * config/epiphany/epiphany.md (GPR_1): New constant.
1691 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
1692 * config/epiphany/epiphany.c (gen_compare_reg):
1693 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
1694 is already in place.
1695 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
1696 Don't require being called during rtl expansion; If y operlaps r0,
1698 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
1699 (epiphany_expand_epilogue): Likewise.
1701 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
1702 Don't use CC_FPmode for ORDERED / UNORDERED.
1703 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
1705 * config/epiphany/constraints.md (CnL): New constraint.
1706 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
1707 * config/epiphany/predicates.md (add_operand): Allow 1024.
1709 * config/epiphany/epiphany.md (logical_op): New code iterator.
1710 (op_mnc): New code attribute.
1711 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
1712 (mov_f+1, mov_f+2): New peephole2 patterns.
1714 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
1715 (cstoresi4): Also allow re-use of zero result when doing a NE
1716 comparison to a non-zero operand.
1717 Use (clobber (scratch)) for first insn if the gpr output is not needed.
1719 * config/epiphany/epiphany.md (<insn_opname>v2si3):
1720 Use gen_addsi3_i / gen_subsi3_i.
1722 2013-04-08 Jakub Jelinek <jakub@redhat.com>
1726 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
1727 contain anything but clobbers, at most one __builtin_stack_restore,
1728 optionally debug stmts and final resx, and if it has at least one
1729 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
1730 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
1731 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
1732 which isn't defaut definition, remove them.
1733 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
1734 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
1735 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
1736 with MEM_REF LHS with SSA_NAME address.
1738 2013-04-08 Jeff Law <law@redhat.com>
1740 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
1742 2013-04-08 Richard Biener <rguenther@suse.de>
1744 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
1746 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
1747 determined vector type.
1748 (vect_analyze_data_refs): Likewise.
1749 (vect_get_new_vect_var): Adjust.
1750 (vect_create_destination_var): Preserve SSA name versions.
1751 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
1752 not dump anything here.
1754 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
1756 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
1757 Add member lr_slot_known.
1758 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
1760 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
1761 Remove code that sets lr_slot_offset according to what a previous
1762 version of epiphany_emit_save_restore used to do.
1763 (epiphany_emit_save_restore): When doing an lr save or restore,
1764 set/verify lr_slot_known and lr_slot_offset.
1766 2013-04-08 Xinyu Qi <xyqi@marvell.com>
1769 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
1772 2013-04-08 Richard Biener <rguenther@suse.de>
1774 * alias.c (find_base_term): Fix thinko in previous change.
1776 2013-04-08 Jakub Jelinek <jakub@redhat.com>
1778 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
1779 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
1780 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
1781 if possible to compute val.
1782 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
1783 For QImode integers don't require anything about precision. Use
1784 const_with_all_bytes_same to find out if the constant doesn't have
1785 repeated bytes in it.
1787 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1789 * config/s390/s390.c (s390_expand_insv): Only accept insertions
1792 2013-04-08 Marek Polacek <polacek@redhat.com>
1794 PR rtl-optimization/48182
1795 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
1798 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1801 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
1802 nuses, make sure we have a label.
1804 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1807 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
1808 (rs6000_emit_swdiv_low_precision): Remove.
1809 (rs6000_emit_swdiv): Rewrite to handle between one and four
1810 iterations of Newton-Raphson generally; modify required number of
1811 iterations for some cases.
1812 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
1814 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
1816 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
1817 set-but-unused variable.
1819 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
1820 basic blocks of released function bodies garbage-collectable.
1822 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
1823 (struct rtl_opt_pass): Add TODO_df_finish.
1825 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
1827 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1829 * config/arm/constraints.md (q): New constraint.
1830 * config/arm/ldrdstrd.md: New file.
1831 * config/arm/arm.md (ldrdstrd.md) New include.
1832 (arm_movdi): Use "q" instead of "r" constraint
1833 for double-word memory access.
1834 (movdf_soft_insn): Likewise.
1835 * config/arm/vfp.md (movdi_vfp): Likewise.
1836 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
1837 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
1838 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
1839 (mem_ok_for_ldrd_strd): Likewise.
1840 (output_move_double): Update assertion.
1842 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1844 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
1846 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1848 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
1849 define_insn_and_split.
1850 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
1852 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1854 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
1855 define_insn_and_split.
1856 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
1857 (shiftsi3_compare): New pattern.
1859 * config/arm/unspecs.md (UNSPEC_RRX): New.
1861 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1863 * config/arm/arm.md (negdi_extendsidi): New pattern.
1864 (negdi_zero_extendsidi): Likewise.
1866 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1868 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
1869 define_insn_and_split.
1870 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
1871 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
1873 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1875 * config/arm/arm.md (arm_subdi3): Convert define_insn into
1876 define_insn_and_split.
1877 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
1878 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
1880 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1882 * config/arm/arm.md (subsi3_carryin): New pattern.
1883 (subsi3_carryin_const): Likewise.
1884 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
1885 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
1887 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1889 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
1891 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1893 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
1894 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
1896 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1898 * config/arm/arm.c (arm_expand_builtin): Change fcode
1899 type to unsigned int.
1901 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1903 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
1905 2013-04-04 Ian Lance Taylor <iant@google.com>
1907 * doc/standards.texi (Standards): The Go frontend supports the Go 1
1910 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
1913 * df-scan.c (df_insn_delete): Disable failing assert.
1915 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1917 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
1918 New function prototype.
1919 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
1920 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1921 (arm_builtin_vectorized_function): New function.
1923 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1925 * config/arm/arm_neon_builtins.def: New file.
1926 * config/arm/arm.c (neon_builtin_data): Move contents to
1927 arm_neon_builtins.def.
1928 (enum arm_builtins): Include neon builtin definitions.
1929 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
1930 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
1932 2013-04-04 Marek Polacek <polacek@redhat.com>
1934 PR tree-optimization/48186
1935 * predict.c (maybe_hot_frequency_p): Return false if
1936 HOT_BB_FREQUENCY_FRACTION is 0.
1937 (cgraph_maybe_hot_edge_p): Likewise.
1939 2013-04-04 Richard Biener <rguenther@suse.de>
1941 PR tree-optimization/56826
1942 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
1945 2013-04-04 Richard Biener <rguenther@suse.de>
1947 PR tree-optimization/56213
1948 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
1949 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
1951 2013-04-04 Richard Biener <rguenther@suse.de>
1953 PR tree-optimization/56837
1954 * tree-loop-distribution.c (classify_partition): For non-zero
1955 values require that the value has the same precision as its
1956 mode to be useful as memset value.
1958 2013-04-03 Nick Clifton <nickc@redhat.com>
1960 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
1961 (fmssf4): Use fmsf.s on E3V5 architectures.
1962 (fnmasf4): Use fnmaf.s on E3V5 architectures.
1963 (fnmssf4): Use fnmsf.s on E3V5 architectures.
1965 2013-04-03 Jeff Law <law@redhat.com>
1967 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1968 (lra-eliminations.o): Likewise.
1970 2013-04-03 Teresa Johnson <tejohnson@google.com>
1972 * gcov-io.c (compute_working_sets): Moved most of body of old
1973 compute_working_sets here from profile.c.
1974 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
1975 (gcov_working_set_t): Moved typedef here from basic-block.h
1976 (compute_working_set): Declare.
1977 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
1978 (get_working_sets): Renamed from compute_working_set,
1979 replace most of body with call to new compute_working_sets.
1980 (get_exec_counts): Replace call to compute_working_sets
1981 to get_working_sets.
1982 * profile.h (get_working_sets): Renamed from compute_working_set.
1983 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
1984 to get_working_sets.
1985 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
1986 * gcov-dump.c (dump_working_sets): New function.
1988 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1990 * hwint.c (sext_hwi, zext_hwi): New functions.
1991 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
1992 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
1993 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
1994 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
1995 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
1996 (sext_hwi, zext_hwi): New functions.
1998 2013-04-03 Jeff Law <law@redhat.com>
2000 PR tree-optimization/56799
2001 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
2002 back test for widening conversion erroneously dropped in prior change.
2004 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2007 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
2008 instead of next_real_insn.
2010 2013-04-03 Marek Polacek <polacek@redhat.com>
2013 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
2015 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2018 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
2020 (thumb1_output_casesi): Likewise.
2021 (thumb2_output_casesi): Likewise.
2023 2013-04-03 Richard Biener <rguenther@suse.de>
2025 PR tree-optimization/56817
2026 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2028 (tree_unroll_loops_completely_1): ... new function to manually
2029 walk the loop tree, properly defering outer loops of unrolled
2030 loops to later iterations.
2032 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2034 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
2035 (vectorizable_load): Likewise.
2036 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
2037 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
2039 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2041 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
2044 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2046 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2048 2013-04-03 Bin Cheng <bin.cheng@arm.com>
2050 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
2052 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2054 PR tree-optimization/56790
2055 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
2058 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2060 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
2062 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
2063 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
2066 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2069 * tree.h (force_folding_builtin_constant_p): New decl.
2070 * builtins.c (force_folding_builtin_constant_p): New variable.
2071 (fold_builtin_constant_p): Fold immediately also if
2072 force_folding_builtin_constant_p.
2074 2013-04-03 Richard Biener <rguenther@suse.de>
2076 PR tree-optimization/56812
2077 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2078 DRs of the same interleaving chain are independent.
2080 2013-04-02 Jason Merrill <jason@redhat.com>
2082 * gdbinit.in (pbb): Use debug fn.
2084 2013-04-02 Lawrence Crowl <crowl@google.com>
2086 * sese.h (struct ivtype_map_elt_s): Remove unused.
2087 (extern debug_ivtype_map): Remove unused.
2088 (extern eq_ivtype_map_elts): Remove unused.
2089 * sese.c (debug_ivtype_map): Removed unused.
2090 (debug_ivtype_map_1): Removed unused.
2091 (debug_ivtype_elt): Remove unused.
2092 (eq_ivtype_map_elts): Remove unused.
2095 2013-04-02 Kai Tietz <ktietz@redhat.com>
2098 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
2099 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
2100 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
2102 (legitimize_pe_coff_symbol): Likewise.
2103 (is_imported_p): New helper-function.
2104 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
2105 for Windows x64 targets.
2106 (ix86_expand_prologue): Optimize for pe-coff targets.
2107 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
2108 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
2109 medium/large code-model.
2110 (legitimize_pic_address): Likewise.
2111 (legitimize_tls_address): Likewise.
2112 (ix86_expand_call): Likewise.
2113 (x86_output_mi_thunk): Likewise.
2114 (get_dllimport_decl): Add new beimport argument.
2115 (construct_plt_address): Don't assert for x64 pe-coff targets.
2116 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
2118 (SYMBOL_FLAG_STUBVAR): New macro.
2119 (SYMBOL_REF_STUBVAR_P): Likewise.
2120 * config/i386/winnt.c (stub_list): New structure.
2121 (stub_head): New local variable.
2122 (i386_pe_record_stub): New function.
2123 (i386_pe_file_end): Emit refptr-stubs.
2125 2013-04-02 Jakub Jelinek <jakub@redhat.com>
2127 PR rtl-optimization/56745
2128 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2129 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2132 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
2133 and both of them are MEM_REFs, just compare first argument for
2134 equality and attempt to deal even with differing offsets.
2137 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
2138 of gimple_clobber_p to be MEM_REF.
2139 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
2140 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
2141 after gimplification.
2142 * asan.c (get_mem_ref_of_assignment): Don't instrument
2143 gimple_clobber_p stmts.
2144 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
2145 gimple_clobber_p stmt if they have MEM_REF lhs and
2146 are dead because of another gimple_clobber_p stmt.
2147 * tree-ssa-live.c (clear_unused_block_pointer): Treat
2148 gimple_clobber_p stmts like debug stmts.
2149 (remove_unused_locals): Remove clobbers with MEM_REF lhs
2150 that refer to unused VAR_DECLs or uninitialized values.
2151 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
2152 gimple_clobber_p stmts if they refer to removed parameters.
2153 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
2156 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
2158 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
2159 using SWI48 mode attribute.
2161 2013-04-02 Wei Mi <wmi@google.com>
2163 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2164 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2165 *<rotate_insn><mode>3_mask in i386.md.
2167 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
2169 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
2171 2013-04-02 Richard Biener <rguenther@suse.de>
2173 PR tree-optimization/56778
2174 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2175 Runtime alias tests are not supported for gather loads.
2176 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
2177 stmts referenced from SSA operands before updating SSA form.
2179 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
2180 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2182 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
2183 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
2184 * config/arm/cortex-a53.md: New file.
2185 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
2186 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
2187 * config/arm/arm.c (arm_issue_rate): Likewise.
2188 * config/arm/arm-tune.md: Regenerate
2189 * config/arm/arm-tables.opt: Regenerate.
2190 * config/arm/arm-cores.def: Add cortex-a53.
2192 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
2194 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
2197 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2199 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
2200 scalar load/store operations using B/H registers.
2201 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
2203 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2205 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
2207 * config/aarch64/aarch64.c
2208 (aarch64_simd_scalar_immediate_valid_for_move): New.
2209 * config/aarch64/aarch64-protos.h
2210 (aarch64_simd_scalar_immediate_valid_for_move): New.
2211 * config/aarch64/constraints.md (Dh, Dq): New.
2212 * config/aarch64/iterators.md (hq): New.
2214 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
2216 * reorg.c (get_branch_condition): Deal with conditional returns.
2217 (fill_simple_delay_slots): Remove dead code dealing with jumps.
2219 2013-04-01 Wei Mi <wmi@google.com>
2221 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2222 Truncate operand 2 using %b asm operand modifier.
2223 (*<shift_insn><mode>3_mask): Ditto.
2224 (*<rotate_insn><mode>3_mask): Ditto.
2226 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
2229 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
2231 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2233 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
2235 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
2237 2013-03-30 Lawrence Crowl <crowl@google.com>
2239 * dse.c (clear_alias_sets): Remove never set.
2240 (disqualified_clear_alias_sets): Remove never set.
2241 (clear_alias_mode_pool): Remove never set.
2242 (dse_step0): Remove condition that is never true.
2243 (canon_address): Remove condition that is never true.
2244 (dse_step7): Remove condition that is never true.
2245 (rest_of_handle_dse): Remove condition that is never true.
2246 (rest_of_handle_dse::did_global): Remove never read from above.
2247 (dse_step2_spill): Remove never called from above.
2248 (dse_step5_spill): Remove never called from above.
2250 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
2252 * doc/md.texi (Standard Names) <casesi>: Update documentation for
2253 JUMP_TABLE_DATA changes.
2254 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
2255 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
2256 (Insns) <jump_table_data>: New entry.
2257 * doc/tm.texi: Regenerate.
2259 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
2261 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
2262 for table jump at the end of a basic block using tablejump_p.
2263 * targhooks.c (default_invalid_within_doloop): Likewise.
2264 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
2265 target hook implementation that is identical to the default hook.
2266 (rs6000_invalid_within_doloop): Remove.
2268 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
2269 unused variable from tablejump_p call.
2271 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
2272 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
2273 (INSN_DELETED_P): Likewise.
2274 (emit_jump_table_data): New prototype.
2275 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
2276 after 4th as unused.
2277 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
2278 * sched-vis.c (print_insn): Likewise.
2279 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
2280 insn for compatibility with back ends that use next_active_insn to
2281 identify jump table data.
2282 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
2283 (remove_insn): Likewise.
2284 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
2286 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
2287 (emit_jump_table_data): New function.
2289 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
2290 basic block, a JUMP_TABLE_DATA never is.
2291 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
2292 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
2293 off from code handling real insns.
2294 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
2295 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
2296 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
2297 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
2298 is not a NONDEBUG_INSN_P.
2299 * ira-costs.c (scan_one_insn): Likewise.
2300 * jump.c (mark_all_labels): Likewise.
2301 (mark_jump_label_1): Likewise.
2302 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2303 * lra.c (get_insn_freq): Expect all insns reaching here to be in
2305 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
2306 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
2307 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
2308 JUMP_TABLE_DATA_P insns.
2309 (calculate_elim_costs_all_insns): Likewise.
2310 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
2311 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
2312 (delete_output_reload): Code style fixups.
2313 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
2314 insn flags on this non-insn.
2315 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
2316 as scheduling barriers, for pre-change compatibility.
2317 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
2318 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
2320 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
2321 redundant JUMP_TABLE_DATA_P test.
2322 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
2323 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2324 (frv_for_each_packet): Likewise.
2325 * config/i386/i386.c (min_insn_size): Likewise.
2326 (ix86_avoid_jump_mispredicts): Likewise.
2327 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2328 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
2329 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2330 (mips16_insn_length): Robustify.
2331 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
2332 (mips16_split_long_branches): Likewise.
2333 * config/pa/pa.c (pa_combine_instructions): Likewise.
2334 * config/rs6000/rs6000.c (get_next_active_insn): Treat
2335 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
2336 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
2337 as contributing to pool range lengths.
2338 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
2339 Remove redundant JUMP_TABLE_DATA_P test.
2340 (sh_loop_align): Likewise.
2341 (split_branches): Likewise.
2342 (sh_insn_length_adjustment): Likewise.
2343 * config/spu/spu.c (get_branch_target): Likewise.
2345 2013-03-29 Jan Hubicka <jh@suse.cz>
2347 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
2348 gcov streaming; stream hot bb threshold to ltrans.
2349 * predict.c (get_hot_bb_threshold): Break out from ....
2350 (maybe_hot_count_p): ... here.
2351 (set_hot_bb_threshold): New function.
2352 * lto-section-in.c (lto_section_name): Add profile.
2353 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
2354 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
2356 (histogram_entry): New structure.
2357 (histogram, histogram_pool): New global vars.
2358 (histogram_hash): New structure.
2359 (histogram_hash::hash): New method.
2360 (histogram_hash::equal): Likewise.
2361 (account_time_size): New function.
2362 (cmp_counts): New function.
2363 (dump_histogram): New function.
2364 (ipa_profile_generate_summary): New function.
2365 (ipa_profile_write_summary): New function.
2366 (ipa_profile_read_summary): New function.
2367 (ipa_profile): Decide on threshold.
2368 (pass_ipa_profile): Add ipa_profile_write_summary and
2369 ipa_profile_read_summary.
2370 * Makefile.in (ipa.o): Update dependencies.
2371 * lto-streamer.h (LTO_section_ipa_profile): New section.
2373 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
2375 * tree.h (VAR_P): New.
2377 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
2380 * doc/invoke.texi ([-fwhole-program]): Fix typo.
2382 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
2384 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
2385 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2386 (control_flow_insn_p): Likewise.
2387 * cfgrtl.c (duplicate_insn_chain): Likewise.
2388 * final.c (get_attr_length_1): Likewise.
2389 (shorten_branches): Likewise.
2390 (final_scan_insn): Likewise.
2391 * function.c (instantiate_virtual_regs): Likewise.
2392 * gcse.c (insert_insn_end_basic_block): Likewise.
2393 * ira-costs.c (scan_one_insn): Likewise.
2394 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2395 * lra.c (check_rtl): Likewise.
2396 * reload1.c (elimination_costs_in_insn): Likewise.
2397 * reorg.c (follow_jumps): Likewise.
2399 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
2400 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2401 (thumb_far_jump_used_p): Likewise.
2402 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
2403 (workaround_speculation): Likewise.
2404 (add_sched_insns_for_speculation): Likewise.
2405 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
2406 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2407 (frv_for_each_packet): Likewise.
2408 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
2409 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
2410 (final_emit_insn_group_barriers): Likewise.
2411 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2412 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2413 (mips16_insn_length): Likewise.
2414 * config/pa/pa.c (pa_reorg): Likewise.
2415 (pa_combine_instructions): Likewise.
2416 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
2417 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
2418 (sh_reorg): Likewise.
2419 (split_branches): Likewise.
2420 * config/spu/spu.c (get_branch_target): Likewise.
2422 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
2425 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
2427 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
2428 Fix declaration name.
2430 2013-03-28 Lawrence Crowl <crowl@google.com>
2432 * graphds.h (struct graph.indicies): Remove unused.
2433 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
2434 (SCOP_ORIGINAL_PDDRS): Remove unused.
2435 * sese.h (extern insert_loop_close_phis): Removed unused.
2436 (extern insert_guard_phis): Removed unused.
2437 (extern ivtype_map_elt_info): Removed unused.
2438 (new_ivtype_map_elt): Removed unused.
2439 * sese.c (ivtype_map_elt_info): Removed unused.
2441 2013-03-28 Lawrence Crowl <crowl@google.com>
2443 * Makefile.in: Add several missing include dependences.
2445 (test-dump.o): New. This object is not added to any executable,
2446 but is present for ad-hoc testing.
2448 (debug (const bitmap_head_def &)): New.
2449 (debug (const bitmap_head_def *)): New.
2451 (extern debug (const bitmap_head_def &)): New.
2452 (extern debug (const bitmap_head_def *)): New.
2454 (debug (edge_def &)): New.
2455 (debug (edge_def *)): New.
2457 (debug (basic_block_def &)): New.
2458 (debug (basic_block_def *)): New.
2460 (dump_node (const_tree, int, FILE *)): Correct source file.
2462 (debug (die_struct &)): New.
2463 (debug (die_struct *)): New.
2465 (extern debug (die_struct &)): New.
2466 (extern debug (die_struct *)): New.
2467 * gimple-pretty-print.c
2468 (debug (gimple_statement_d &)): New.
2469 (debug (gimple_statement_d *)): New.
2470 * gimple-pretty-print.h
2471 (extern debug (gimple_statement_d &)): New.
2472 (extern debug (gimple_statement_d *)): New.
2474 (debug (ira_allocno_copy &)): New.
2475 (debug (ira_allocno_copy *)): New.
2476 (debug (ira_allocno &)): New.
2477 (debug (ira_allocno *)): New.
2479 (extern debug (ira_allocno_copy &)): New.
2480 (extern debug (ira_allocno_copy *)): New.
2481 (extern debug (ira_allocno &)): New.
2482 (extern debug (ira_allocno *)): New.
2484 (debug (live_range &)): New.
2485 (debug (live_range *)): New.
2487 (debug (lra_live_range &)): New.
2488 (debug (lra_live_range *)): New.
2490 (debug (lra_live_range &)): New.
2491 (debug (lra_live_range *)): New.
2493 (debug (omega_pb_d &)): New.
2494 (debug (omega_pb_d *)): New.
2496 (extern debug (omega_pb_d &)): New.
2497 (extern debug (omega_pb_d *)): New.
2499 (debug (const rtx_def &)): New.
2500 (debug (const rtx_def *)): New.
2502 (debug_tree (tree): Move within file.
2503 (debug_raw (const tree_node &)): New.
2504 (debug_raw (const tree_node *)): New.
2505 (dump_tree_via_hooks (const tree_node *, int)): New.
2506 (debug (const tree_node &)): New.
2507 (debug (const tree_node *)): New.
2508 (debug_verbose (const tree_node &)): New.
2509 (debug_verbose (const tree_node *)): New.
2510 (debug_head (const tree_node &)): New.
2511 (debug_head (const tree_node *)): New.
2512 (debug_body (const tree_node &)): New.
2513 (debug_body (const tree_node *)): New.
2514 (debug_vec_tree (tree): Move and reimplement in terms of dump.
2515 (debug (vec<tree, va_gc> &)): New.
2516 (debug (vec<tree, va_gc> *)): New.
2518 (extern debug (const rtx_def &)): New.
2519 (extern debug (const rtx_def *)): New.
2521 (debug_raw (simple_bitmap_def &)): New.
2522 (debug_raw (simple_bitmap_def *)): New.
2523 (debug (simple_bitmap_def &)): New.
2524 (debug (simple_bitmap_def *)): New.
2526 (extern debug (simple_bitmap_def &)): New.
2527 (extern debug (simple_bitmap_def *)): New.
2528 (extern debug_raw (simple_bitmap_def &)): New.
2529 (extern debug_raw (simple_bitmap_def *)): New.
2531 (debug (vinsn_def &)): New.
2532 (debug (vinsn_def *)): New.
2533 (debug_verbose (vinsn_def &)): New.
2534 (debug_verbose (vinsn_def *)): New.
2535 (debug (expr_def &)): New.
2536 (debug (expr_def *)): New.
2537 (debug_verbose (expr_def &)): New.
2538 (debug_verbose (expr_def *)): New.
2539 (debug (vec<rtx> &)): New.
2540 (debug (vec<rtx> *)): New.
2542 (extern debug (vinsn_def &)): New.
2543 (extern debug (vinsn_def *)): New.
2544 (extern debug_verbose (vinsn_def &)): New.
2545 (extern debug_verbose (vinsn_def *)): New.
2546 (extern debug (expr_def &)): New.
2547 (extern debug (expr_def *)): New.
2548 (extern debug_verbose (expr_def &)): New.
2549 (extern debug_verbose (expr_def *)): New.
2550 (extern debug (vec<rtx> &)): New.
2551 (extern debug (vec<rtx> *)): New.
2553 (_list_iter_cond_expr): Make inline instead of static.
2555 (debug (sreal &)): New.
2556 (debug (sreal *)): New.
2558 (extern debug (sreal &)): New.
2559 (extern debug (sreal *)): New.
2561 (extern debug_raw (const tree_node &)): New.
2562 (extern debug_raw (const tree_node *)): New.
2563 (extern debug (const tree_node &)): New.
2564 (extern debug (const tree_node *)): New.
2565 (extern debug_verbose (const tree_node &)): New.
2566 (extern debug_verbose (const tree_node *)): New.
2567 (extern debug_head (const tree_node &)): New.
2568 (extern debug_head (const tree_node *)): New.
2569 (extern debug_body (const tree_node &)): New.
2570 (extern debug_body (const tree_node *)): New.
2571 (extern debug (vec<tree, va_gc> &)): New.
2572 (extern debug (vec<tree, va_gc> *)): New.
2574 (debug (struct loop &)): New.
2575 (debug (struct loop *)): New.
2576 (debug_verbose (struct loop &)): New.
2577 (debug_verbose (struct loop *)): New.
2578 * tree-dump.c: Add header dependence.
2580 (extern debug (struct loop &)): New.
2581 (extern debug (struct loop *)): New.
2582 (extern debug_verbose (struct loop &)): New.
2583 (extern debug_verbose (struct loop *)): New.
2585 (debug (data_reference &)): New.
2586 (debug (data_reference *)): New.
2587 (debug (vec<data_reference_p> &)): New.
2588 (debug (vec<data_reference_p> *)): New.
2589 (debug (vec<ddr_p> &)): New.
2590 (debug (vec<ddr_p> *)): New.
2592 (extern debug (data_reference &)): New.
2593 (extern debug (data_reference *)): New.
2594 (extern debug (vec<data_reference_p> &)): New.
2595 (extern debug (vec<data_reference_p> *)): New.
2596 (extern debug (vec<ddr_p> &)): New.
2597 (extern debug (vec<ddr_p> *)): New.
2599 (debug (pt_solution &)): New.
2600 (debug (pt_solution *)): New.
2602 (extern debug (pt_solution &)): New.
2603 (extern debug (pt_solution *)): New.
2605 (debug (_var_map &)): New.
2606 (debug (_var_map *)): New.
2607 (debug (tree_live_info_d &)): New.
2608 (debug (tree_live_info_d *)): New.
2610 (extern debug (_var_map &)): New.
2611 (extern debug (_var_map *)): New.
2612 (extern debug (tree_live_info_d &)): New.
2613 (extern debug (tree_live_info_d *)): New.
2615 2013-03-28 Jan Hubicka <jh@suse.cz>
2617 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
2619 2013-03-28 Ian Bolton <ian.bolton@arm.com>
2621 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
2622 record only when desired or required.
2624 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
2626 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
2627 *vec_extractv2di_1_rex64. Use x64 isa attribute.
2629 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2631 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
2632 (*andsi3_compare0_uxtw): New pattern.
2633 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
2634 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
2636 2013-03-28 Jan Hubicka <jh@suse.cz>
2638 * data-streamer-in.c (streamer_read_gcov_count): New function.
2639 * gimple-streamer-out.c: Include value-prof.h.
2640 (output_gimple_stmt): Output histogram.
2641 (output_bb): Use streamer_write_gcov_count.
2642 * value-prof.c: Include data-streamer.h
2643 (dump_histogram_value): Add HIST_TYPE_MAX.
2644 (stream_out_histogram_value): New function.
2645 (stream_in_histogram_value): New function.
2646 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
2647 (stream_out_histogram_value, stream_in_histogram_value): Declare.
2648 * data-streamer-out.c (streamer_write_gcov_count): New function.
2649 (streamer_write_gcov_count_stream): New function.
2650 * lto-cgraph.c (lto_output_edge): Update counter streaming.
2651 (lto_output_node): Likewise.
2652 (input_node, input_edge): Likewise.
2653 * lto-streamer-out.c (output_cfg): Update streaming.
2654 * lto-streamer-in.c (input_cfg): Likewise.
2655 * data-streamer.h (streamer_write_gcov_count,
2656 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
2657 * gimple-streamer-in.c: Include value-prof.h
2658 (input_gimple_stmt): Input histograms.
2659 (input_bb): Update profile streaming.
2661 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
2663 * genmodes.c (emit_max_int): New function.
2664 (emit_insn_modes_h): Added call to emit_max_function.
2665 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
2667 * machmode.def: Fixed comment.
2669 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
2671 * combine.c (try_combine): Removed useless assert.
2672 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
2674 2013-03-28 Marek Polacek <polacek@redhat.com>
2675 Richard Biener <rguenther@suse.de>
2677 PR tree-optimization/56695
2678 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
2679 build signed result of a vector comparison.
2680 * tree-cfg.c (verify_gimple_comparison): Check that a result
2681 of a vector comparison has signed type.
2683 2013-03-28 Richard Biener <rguenther@suse.de>
2685 PR tree-optimization/37021
2686 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
2687 do not restrict gaps between groups.
2688 * tree-vect-stmts.c (vectorizable_load): Properly account for
2689 a gap between groups.
2691 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
2693 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
2694 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
2697 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
2699 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
2700 * doc/extend.texi (Named Address Spaces): Ditto.
2701 (Variable Attributes): Ditto.
2703 2013-03-27 Kai Tietz <ktietz@redhat.com>
2705 * config.build: Add support for cygwin x64 target.
2706 * config.gcc: Likewise.
2707 * config.host: Likewise.
2708 * configure.ac: Likewise
2709 * configure: Regenerated.
2711 2013-03-27 Kai Tietz <ktietz@redhat.com>
2713 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
2714 * config/i386/t-cygwin-w64: New file.
2715 * config/i386/cygwin-w64.h: New file.
2716 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
2717 and add support for x64-cygwin target.
2718 (CPP_SPEC): Likewise.
2719 (CXX_WRAP_SPEC_LIST): Undefine before define.
2720 (LIBGCJ_SONAME): Use 15 as version.
2722 2013-03-27 Richard Biener <rguenther@suse.de>
2724 PR tree-optimization/56716
2725 * tree-ssa-structalias.c (perform_var_substitution): Adjust
2726 dumping for ref nodes.
2728 2013-03-27 Martin Jambor <mjambor@suse.cz>
2730 PR tree-optimization/55334
2731 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
2732 restricted pointers to arrays.
2734 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2736 * Makefile.in (.SUFFIXES): Add .cc.
2737 (.c.o): Apply same recipe for implicit rule .cc.o.
2739 2013-03-27 Richard Biener <rguenther@suse.de>
2741 PR tree-optimization/37021
2742 * tree-vect-data-refs.c (vect_check_strided_load): Allow
2743 REALPART/IMAGPART_EXPRs around the supported refs.
2744 * tree-ssa-structalias.c (find_func_aliases): Assume that
2745 floating-point values are not used to transfer pointers.
2747 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2749 * target.def (TARGET_HAS_IFUNC_P): New target hook.
2750 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
2751 * doc/tm.texi: Regenerate.
2752 * targhooks.h (default_has_ifunc_p): New.
2753 * targhooks.c (default_has_ifunc_p): Ditto.
2754 * config/linux-protos.h: New file.
2755 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2756 this hook for linux which disables support of indirect functions in
2758 * config/linux-android.c: New file.
2759 * config/t-linux-android.c: Ditto.
2760 * config.gcc: Added new object file linux-android.o.
2761 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2762 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
2763 * varasm.c (do_assemble_alias): Likewise.
2764 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
2765 doesn't support indirect functions.
2766 * configure: Regenerate.
2768 2013-03-27 Bin Cheng <bin.cheng@arm.com>
2771 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
2772 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
2775 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2777 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
2779 2013-03-27 Terry Guo <terry.guo@arm.com>
2781 * config/arm/arm-cores.def: Added core cortex-r7.
2782 * config/arm/arm-tune.md: Regenerated.
2783 * config/arm/arm-tables.opt: Regenerated.
2784 * doc/invoke.texi: Added entry for core cortex-r7.
2786 2013-03-27 Walter Lee <walt@tilera.com>
2788 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
2789 double-decrement of next_scratch_regno.
2791 2013-03-27 Walter Lee <walt@tilera.com>
2793 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
2795 (insn_v1mulus): Ditto.
2796 (insn_v2muls): Ditto.
2798 2013-03-27 Walter Lee <walt@tilera.com>
2800 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
2801 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
2803 2013-03-27 Walter Lee <walt@tilera.com>
2805 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
2806 (*sibcall_value): Ditto.
2808 2013-03-27 Walter Lee <walt@tilera.com>
2810 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
2811 (insn_mnz_v8qi): ... this ...
2812 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
2814 (insn_v<n>mnz): Replaced by ...
2815 (insn_v1mnz): ... this ...
2816 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
2818 (insn_mz_<mode>): Replaced by ...
2819 (insn_mz_v8qi): ... this ...
2820 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
2822 (insn_v<n>mz): Replaced by ...
2823 (insn_v1mz): ... this ...
2824 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
2827 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
2829 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
2831 2013-03-26 Roland McGrath <mcgrathr@google.com>
2833 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
2834 than fprintf with a non-constant, non-format string.
2836 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
2838 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
2839 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
2840 operand 0 predicate.
2841 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
2842 attribute. Use general_x64nomem_operand as operand 1 predicate.
2843 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
2844 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
2845 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
2846 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
2847 (mov<mode>_insv_1): Remove expander. Merge insn with
2848 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
2849 Use general_x64nomem_operand as operand 1 predicate.
2850 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
2851 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
2852 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
2853 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
2854 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
2855 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
2856 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
2857 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
2858 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
2859 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
2860 (general_x64nomem_operand): Ditto.
2862 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
2864 * config/rtems.opt: Add -pthread option.
2866 2013-03-26 Richard Biener <rguenther@suse.de>
2868 * alias.c (find_base_term): Avoid redundant and not used recursion.
2869 (base_alias_check): Get the initial base term from the caller.
2870 (true_dependence_1): Compute and pass base terms to base_alias_check.
2871 (write_dependence_p): Likewise.
2872 (may_alias_p): Likewise.
2874 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
2876 * config/aarch64/aarch64.c (aarch64_classify_address): Support
2877 PC-relative load in SI modes and above only.
2879 2013-03-26 Xinyu Qi <xyqi@marvell.com>
2881 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
2882 * config/arm/iwmmxt.md (WCGR0): Update.
2883 (WCGR1, WCGR2, WCGR3): Likewise.
2885 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
2887 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
2888 Use x64 and nox64 isa attributes.
2890 2013-03-26 Richard Biener <rguenther@suse.de>
2892 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2893 alignment computations and rely on get_object_alignment_1
2894 for the !TYPE_P case.
2895 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
2897 2013-03-26 Walter Lee <walt@tilera.com>
2899 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
2900 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
2902 2013-03-25 Jeff Law <law@redhat.com>
2904 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
2905 check for INTEGRAL_TYPE_P that was missing due to checking in
2906 wrong version of prior patch.
2908 2013-03-25 Walter Lee <walt@tilera.com>
2910 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2911 TILEGX_INSN_SHUFFLEBYTES1.
2912 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2914 (tilegx_builtins): Ditto.
2915 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2917 2013-03-25 Walter Lee <walt@tilera.com>
2919 * config/tilegx/tilegx.md (floatsisf2): New pattern.
2920 (floatunssisf2): New pattern.
2921 (floatsidf2): New pattern.
2922 (floatunssidf2): New pattern.
2924 2013-03-25 Walter Lee <walt@tilera.com>
2926 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2927 tests for constraint J, K, N, P.
2929 2013-03-25 Walter Lee <walt@tilera.com>
2931 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2932 Use indirect/pcrel encoding.
2933 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2936 2013-03-25 Steve Ellcey <sellcey@mips.com>
2938 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
2939 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
2940 * config/mips/mips.c (mips_option_override): Set IMADD default.
2941 * config/mips/mips.h (PTF_AVOID_IMADD): New.
2942 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
2943 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
2944 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
2945 * doc/invoke.texi (-mimadd/-mno-imadd): New.
2947 2013-03-25 Jeff Law <law@redhat.com>
2949 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
2950 slightly to avoid creating and folding useless trees. Simplify
2951 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
2953 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
2955 * config/i386/i386.md (*zero_extendsidi2): Merge with
2956 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
2957 * config/i386/predicates.md (x86_64_zext_operand): Rename from
2958 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
2959 targets. Clarify comment.
2961 2013-03-25 Martin Jambor <mjambor@suse.cz>
2963 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
2964 pass-through jump functions differently.
2965 (ipa_read_jump_function): Likewise. Also use setter functions to set
2968 2013-03-25 Martin Jambor <mjambor@suse.cz>
2970 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
2971 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
2973 (ipa_get_indirect_edge_target): New function.
2974 (devirtualization_time_bonus): New parameter known_aggs, pass it to
2975 ipa_get_indirect_edge_target. Update all callers.
2976 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
2977 ipa_get_indirect_edge_target_1 instead of calling
2978 ipa_get_indirect_edge_target.
2979 (create_specialized_node): Pass aggvlas to
2980 ipcp_discover_new_direct_edges.
2982 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2984 * config/arm/arm.md (f_sels, f_seld): New types.
2985 (*cmov<mode>): New pattern.
2986 * config/arm/predicates.md (arm_vsel_comparison_operator): New
2989 2013-03-25 Kai Tietz <ktietz@redhat.com>
2991 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
2992 POSIX-printf for mingw-hosted builds.
2994 2013-03-25 Richard Biener <rguenther@suse.de>
2997 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2998 must-not-throw stmt location.
3000 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3002 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
3003 Emit load-acquire versions when acq is true.
3004 (arm_emit_store_exclusive): Add rel parameter.
3005 Emit store-release versions when rel is true.
3006 (arm_split_compare_and_swap): Use acquire-release instructions
3008 of barriers when appropriate.
3009 (arm_split_atomic_op): Likewise.
3010 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
3011 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
3012 (VUNSPEC_SLX): Likewise.
3013 (VUNSPEC_LDA): Likewise.
3014 (VUNSPEC_STL): Likewise.
3015 * config/arm/sync.md (atomic_load<mode>): New pattern.
3016 (atomic_store<mode>): Likewise.
3017 (arm_load_acquire_exclusive<mode>): Likewise.
3018 (arm_load_acquire_exclusivesi): Likewise.
3019 (arm_load_acquire_exclusivedi): Likewise.
3020 (arm_store_release_exclusive<mode>): Likewise.
3022 2013-03-25 Catherine Moore <clm@codesourcery.com>
3024 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
3025 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
3026 * config/mip/predicates.md (lwsp_swsp_operand,
3027 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
3028 sb16_operand, db4_operand, db7_operand, ib3_operand,
3029 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
3030 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
3031 andi16_operand): New predicates.
3032 * config/mips/mips.md (compression): New attribute.
3033 (enabled): New attribute.
3034 (length): Consider compression in computing length.
3035 (shift_compression): New code attribute.
3036 (*add<mode>3): New operands. Record compression.
3037 (sub<mode>3): Likewise.
3038 (one_cmpl<mode>2): Likewise.
3039 (*and<mode>3): Likewise.
3040 (*ior<mode>3): Likewise.
3041 (unnamed pattern for xor): Likewise.
3042 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
3043 (*<optab><mode>3): Likewise.
3044 (*mov<mode>_internal: Likewise.
3045 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
3046 (mips_unsigned_immediate_p): New.
3047 (umips_lwsp_swsp_address_p): New.
3048 (m16_based_address_p): New.
3049 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
3050 (mips_unsigned_immediate_p): New prototype.
3051 (lwsp_swsp_address_p): New prototype.
3052 (m16_based_address_p): New prototype.
3053 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
3054 (mips_signed_immediate_p): New function.
3055 (m16_based_address_p): New function.
3056 (lwsp_swsp_address_p): New function.
3057 (mips_print_operand_punctuation): Recognize short delay slot insns
3058 for microMIPS.add<mode>3"
3060 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3063 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3064 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3066 2013-03-25 Richard Biener <rguenther@suse.de>
3068 PR tree-optimization/56689
3069 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
3072 2013-03-25 Richard Biener <rguenther@suse.de>
3074 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
3076 (memory_references): Likewise.
3077 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
3078 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
3079 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
3080 (gather_mem_refs_in_loops): Fold into ...
3081 (analyze_memory_references): ... this. Move initialization
3082 to tree_ssa_lim_initialize.
3083 (fill_always_executed_in): Rename to ...
3084 (fill_always_executed_in_1): ... this.
3085 (fill_always_executed_in): Move contains_call computation to
3086 this new function from ...
3087 (tree_ssa_lim_initialize): ... here.
3088 (tree_ssa_lim): Call fill_always_executed_in.
3090 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3092 * postreload.c (reload_combine): Fix code detecting returns.
3094 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3096 * function.c (emit_use_return_register_into_block): On cc0 targets,
3097 do not emit the sequence between cc0 setter and user.
3099 2013-03-25 Kai Tietz <ktietz@redhat.com>
3101 * config/i386/predicates.md (local_symbolic_operand): Interpret
3102 dll-imported symbols as none-local.
3104 2013-03-25 Richard Biener <rguenther@suse.de>
3106 * tree-ssa-loop-im.c (struct depend): Remove.
3107 (struct lim_aux_data): Make depends a vec of gimples.
3108 (free_lim_aux_data): Adjust.
3109 (add_dependency): Likewise.
3110 (set_level): Likewise.
3112 2013-03-25 Richard Biener <rguenther@suse.de>
3115 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
3116 the pointer returned by calls with ECF_MALLOC set.
3118 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3120 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
3122 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3124 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
3125 using MMXMODE mode iterator.
3126 (*move<mode>_internal): Merge with *movv2sf_internal and
3127 *movv2sf_internal_rex64 using MMXMODE mode iterator.
3129 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3131 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
3132 (record_last_mem_set_info): Likewise.
3134 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
3135 of XNEWVEC followed by memset.
3136 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
3138 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3140 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3141 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
3142 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
3143 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
3144 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
3145 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
3146 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
3147 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
3148 BARRIER_P instead of GET_CODE.
3150 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3152 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
3153 inaccuracy in the probing code.
3155 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
3156 (ctrapdi4): Likewise.
3158 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3160 * calls.c (expand_call): Add missing guard to code handling return
3161 of non-BLKmode structures in MSB.
3162 * function.c (expand_function_end): Likewise.
3164 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3166 * combine.c (try_combine): Adjust comment. Do not add the set of
3167 insn #0 if the destination indirectly is set or dies in insn #2.
3168 Tidy up code to distribute a new note.
3170 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3172 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
3173 also for alternatives 16 and 17.
3175 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3177 * config/i386/sse.md (*mov<mode>_internal): Merge with
3178 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
3179 Emit insn template depending on type attribute. Use
3180 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3181 movd instead of movq mnemonic for interunit moves. Rewrite mode
3182 attribute calculation. Remove unit attribute calculation.
3183 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
3184 Set prefix_data16 attribute for DImode ssemov types.
3185 Use Ym instead of y for SSE-MMX conversion alternatives.
3186 Reorder operand constraints.
3188 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
3190 * df.h (df_insn_delete): Adjust prototype.
3191 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
3192 and let it decide whether mark the basic block dirty.
3193 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
3194 * df-scan.c (df_insn_info_delete): New helper function, split
3195 off from df_insn_delete.
3196 (df_scan_free_bb_info): Use it.
3197 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
3199 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
3200 that the insn is actually an insn and it has a non-NULL basic block.
3201 Do not mark basic block dirty if only deleting a DEBUG_INSN.
3203 2013-03-22 Richard Biener <rguenther@suse.de>
3205 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
3207 (mem_ref_alloc): Do not allocate them.
3208 (refs_independent_p): Do not query or maintain a cache.
3210 2013-03-22 Richard Biener <rguenther@suse.de>
3212 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
3213 (gather_mem_refs_in_loops): Do not compute it.
3214 (analyze_memory_references): Do not allocate it.
3215 (tree_ssa_lim_finalize): Do not free it.
3216 (for_all_locs_in_loop): Do not query all_refs_in_loop.
3218 2013-03-22 Richard Biener <rguenther@suse.de>
3220 * is-a.h (as_a): Use gcc_checking_assert.
3222 2013-03-22 Ian Bolton <ian.bolton@arm.com>
3224 * config/aarch64/aarch64.c (aarch64_print_operand): New
3225 format specifier for printing a constant in hex.
3226 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
3227 format specifier for printing second operand.
3229 2013-03-22 Richard Biener <rguenther@suse.de>
3231 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
3233 (gather_mem_refs_in_loops): Perform store accumulation here.
3234 (create_vop_ref_mapping_loop): Remove.
3235 (create_vop_ref_mapping): Likewise.
3236 (analyze_memory_references): Initialize refs_stored_in_loop.
3237 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
3238 (record_indep_loop): Remove.
3239 (record_dep_loop): New function.
3240 (ref_indep_loop_p_1): Adjust to only walk over references
3241 in the loop, not its subloops.
3242 (ref_indep_loop_p): Rename to ...
3243 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
3244 maintaining a more fine-grained cache.
3245 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
3246 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
3248 2013-03-22 Richard Biener <rguenther@suse.de>
3250 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
3251 (struct mem_ref): Make accesses_in_loop a vec of a vec of
3252 aggregate mem_ref_loc.
3253 (free_mem_ref_locs): Inline into ...
3254 (memref_free): ... this and adjust.
3255 (mem_ref_alloc): Adjust.
3256 (mem_ref_locs_alloc): Remove.
3257 (record_mem_ref_loc): Adjust.
3258 (get_all_locs_in_loop): Rewrite into ...
3259 (for_all_locs_in_loop): ... this iterator.
3260 (rewrite_mem_ref_loc): New functor.
3261 (rewrite_mem_refs): Use for_all_locs_in_loop.
3262 (sm_set_flag_if_changed): New functor.
3263 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
3264 (ref_always_accessed): New functor.
3265 (ref_always_accessed_p): Use for_all_locs_in_loop.
3267 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3269 * tree-pass.h (PROP_gimple_lvec): New.
3270 * passes.c (dump_properties): Handle PROP_gimple_lvec.
3271 (init_optimization_passes): Move pass_lower_vector.
3272 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
3274 (pass_lower_vector): Provide PROP_gimple_lvec.
3275 (pass_lower_vector_ssa): Likewise.
3276 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
3278 2013-03-21 Mark Wielaard <mjw@redhat.com>
3280 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3282 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3284 * config/i386/i386.md (*movdi_internal): Disparage slightly
3285 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
3286 conversion alternatives.
3288 2013-03-21 Jakub Jelinek <jakub@redhat.com>
3291 * diagnostic.def (DK_WERROR): New kind.
3292 * diagnostic.h (werrorcount): Define.
3293 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
3294 promoted to DK_ERROR, increment DK_WERROR counter instead of
3296 * toplev.c (toplev_main): Call print_ignored_options even if
3297 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
3298 even if just werrorcount is non-zero.
3301 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
3303 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
3304 (string_cst_pool_decl): New function.
3305 (optimize_one_addr_into_implicit_ptr): New function.
3306 (resolve_addr_in_expr): Optimize DWARF location expression
3307 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
3308 which doesn't live in memory, but has DW_AT_location or
3309 DW_AT_const_value, or refers to a string literal, into
3310 DW_OP_GNU_implicit_pointer.
3311 (optimize_location_into_implicit_ptr): New function.
3312 (resolve_addr): If removing DW_AT_location of a variable because
3313 it was DW_OP_addr of address of the variable, but the variable doesn't
3314 live in memory, try to emit const value attribute for the initializer.
3316 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3318 * tree.h (VECTOR_TYPE_P): New macro.
3319 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
3321 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
3322 VEC_COND_EXPR cannot be lvalues.
3323 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
3325 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3327 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
3328 Restrict the transformation to equal modes.
3330 2013-03-21 Richard Biener <rguenther@suse.de>
3332 PR tree-optimization/39326
3333 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
3334 (MEM_ANALYZABLE): Adjust.
3335 (record_mem_ref_loc): Move bitmap ops ...
3336 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
3337 unanalyzable refs, do not record locations for it.
3338 (analyze_memory_references): Allocate ref zero as shared
3340 (refs_independent_p): Do not test for unanalyzed mems here.
3341 (ref_indep_loop_p_1): Special-case disambiguation against
3343 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
3345 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
3347 * config/arm/arm-protos.h (tune_params): Add
3348 prefer_neon_for_64bits field.
3349 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
3350 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
3351 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3352 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3353 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
3354 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3355 (arm_option_override): Handle -mneon-for-64bits new option.
3356 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
3357 (prefer_neon_for_64bits): Declare new variable.
3358 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
3359 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
3360 (arch_enabled): Handle new arch types. Remove support for onlya8
3362 (one_cmpldi2): Use new arch names.
3363 (zero_extend<mode>di2, extend<mode>di2): Ditto.
3364 * config/arm/arm.opt (mneon-for-64bits): Add option.
3365 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
3366 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
3367 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
3369 * doc/invoke.texi (-mneon-for-64bits): Document.
3371 2013-03-21 Richard Biener <rguenther@suse.de>
3373 PR tree-optimization/39326
3374 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
3375 (sort_bbs_in_loop_postorder_cmp): New function.
3376 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
3378 2013-03-21 Richard Biener <rguenther@suse.de>
3380 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
3381 (vect_insert_into_interleaving_chain): Likewise.
3382 (vect_drs_dependent_in_basic_block): Inline ...
3383 (vect_slp_analyze_data_ref_dependence): ... here. New function,
3385 (vect_analyze_data_ref_dependence): ... here. Simplify.
3386 (vect_check_interleaving): Simplify.
3387 (vect_analyze_data_ref_dependences): Likewise. Split out ...
3388 (vect_slp_analyze_data_ref_dependences): ... this new function.
3389 (dr_group_sort_cmp): New function.
3390 (vect_analyze_data_ref_accesses): Compute data-reference groups
3391 here instead of in vect_analyze_data_ref_dependence. Use
3392 a more efficient algorithm.
3393 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
3394 vect_slp_analyze_data_ref_dependences. Call
3395 vect_analyze_data_ref_accesses earlier.
3396 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3397 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
3398 (vect_slp_analyze_data_ref_dependences): New prototype.
3400 2013-03-21 Richard Biener <rguenther@suse.de>
3402 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
3403 ref is stored in the loop.
3404 (find_refs_for_sm): Walk only over all stores.
3405 (store_motion_loop): Allocate from lim_bitmap_obstack.
3406 (store_motion): Likewise.
3408 2013-03-21 Richard Biener <rguenther@suse.de>
3410 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
3411 Update virtual SSA form.
3413 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3415 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
3416 * configure: Regenerate.
3417 * config.in: Regenerate.
3418 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
3419 if !HAVE_LD_EH_FRAME_CIEV3.
3421 2013-03-21 Richard Biener <rguenther@suse.de>
3423 * tree-cfg.c (verify_expr_no_block): New function.
3424 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
3425 nor DECL_VALUE_EXPR have locations with associated blocks.
3426 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
3427 (clear_unused_block_pointer): Remove code dealing with
3428 blocks in DECL_DEBUG_EXPR locations.
3430 2013-03-21 Richard Biener <rguenther@suse.de>
3432 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
3433 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
3434 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
3435 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
3436 instead of DECL_DEBUG_EXPR_IS_FROM.
3437 * gimplify.c (gimplify_modify_expr): Likewise.
3438 * tree-cfg.c (verify_expr_location_1): Likewise.
3439 * tree-complex.c (create_one_component_var): Likewise.
3440 * tree-sra.c (create_access_replacement): Likewise.
3441 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
3442 (clear_unused_block_pointer): Likewise.
3443 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3444 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3445 * var-tracking.c (var_debug_decl): Likewise.
3446 (track_expr_p): Likewise.
3447 * tree-inline.c (add_local_variables): Likewise. Set
3448 DECL_HAS_DEBUG_EXPR_P after copying it.
3449 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3450 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
3452 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3455 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
3456 * configure: Regenerate.
3457 * config.in: Regenerate.
3458 * config/i386/i386.md (*movdf_internal): Use
3459 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3460 movd instead of movq mnemonic for interunit moves.
3461 (*movdi_internal): Ditto.
3463 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3465 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
3466 (abd<mode>_3): New pattern.
3467 (aba<mode>_3): New pattern.
3468 (fabd<mode>_3): New pattern.
3470 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3472 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
3473 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
3474 occurrence of REGISTER_PREFIX as its empty string.
3476 2013-03-20 Jeff Law <law@redhat.com>
3478 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
3479 addititional equivalences for equality comparisons between an SSA_NAME
3480 and a constant where the SSA_NAME was set from a widening conversion.
3482 2013-03-20 Walter Lee <walt@tilera.com>
3484 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3486 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3488 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
3489 depending on type attribute.
3490 (*movti_internal): Ditto.
3491 (*movtf_internal): Ditto.
3492 (*movxf_internal): Ditto.
3493 (*movdf_internal): Ditto.
3494 (*movsf_internal): Ditto.
3496 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3498 * config/i386/i386.md (*movti_internal): Set prefix attribute to
3499 maybe_vex for sselog1 and ssemov types.
3500 (*movdi_internal): Reorder operand constraints.
3501 (*movsi_internal): Ditto. Set prefix attribute to
3502 maybe_vex for sselog1 and ssemov types.
3503 (*movtf_internal): Set prefix attribute to maybe_vex
3504 for sselog1 and ssemov types.
3505 (*movdf_internal): Ditto. Set prefix_data16 attribute for
3506 DImode ssemov types. Reorder operand constraints.
3507 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
3508 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
3509 attribute for SImode ssemov types. Reorder operand constraints.
3511 2013-03-20 Martin Jambor <mjambor@suse.cz>
3513 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
3514 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
3516 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
3518 * config/rs6000/predicates.md (indexed_address, update_address_mem
3519 update_indexed_address_mem): New predicates.
3520 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
3521 attribute for load/store instructions.
3522 * config/rs6000/dfp.md (movsd_store): Likewise.
3523 (movsd_load): Likewise.
3524 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
3525 (unnamed HI->DI extend define_insn): Likewise.
3526 (unnamed SI->DI extend define_insn): Likewise.
3527 (unnamed QI->SI extend define_insn): Likewise.
3528 (unnamed QI->HI extend define_insn): Likewise.
3529 (unnamed HI->SI extend define_insn): Likewise.
3530 (unnamed HI->SI extend define_insn): Likewise.
3531 (extendsfdf2_fpr): Likewise.
3532 (movsi_internal1): Likewise.
3533 (movsi_internal1_single): Likewise.
3534 (movhi_internal): Likewise.
3535 (movqi_internal): Likewise.
3536 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
3537 attribute for load/store instructions.
3538 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
3540 (mov<mode>_softfloat): Likewise.
3541 (mov<mode>_hardfloat32): Likewise.
3542 (mov<mode>_hardfloat64): Likewise.
3543 (mov<mode>_softfloat64): Likewise.
3544 (movdi_internal32): Likewise.
3545 (movdi_internal64): Likewise.
3546 (probe_stack_<mode>): Likewise.
3548 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3550 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
3551 floating point, and decimal floating point to reload iterator.
3553 * config/rs6000/constraints.md (wl constraint): New constraints to
3554 return FLOAT_REGS if certain options are used to reduce the number
3555 of separate patterns that exist in the file.
3556 (wx constraint): Likewise.
3557 (wz constraint): Likewise.
3559 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3560 -mdebug=reg, print wg, wl, wx, and wz constraints.
3561 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3562 Initialize the reload functions for 64-bit binary/decimal floating
3564 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3565 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3566 create the buffer on the stack to overcome not having a 32-bit
3568 (rs6000_emit_move): Likewise.
3569 (rs6000_secondary_memory_needed_rtx): Likewise.
3570 (rs6000_alloc_sdmode_stack_slot): Likewise.
3571 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3572 via xxlxor, just like DFmode 0.0.
3574 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
3575 define as 1 if we are running on a power7 or newer.
3576 (enum r6000_reg_class_enum): Add new constraints.
3578 * config/rs6000/dfp.md (movsd): Delete, combine with binary
3579 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
3580 with other moves by using conditional constraits (wg). Use LFIWZX
3581 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
3582 (movsd splitter): Likewise.
3583 (movsd_hardfloat): Likewise.
3584 (movsd_softfloat): Likewise.
3586 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
3587 binary and decimal floating point moves.
3588 (fmove_ok): New attributes to combine binary and decimal floating
3589 point moves, and to combine power6x (mfpgpr) moves along normal
3591 (real_value_to_target): Likewise.
3598 (movsf): Combine binary and decimal floating point moves. Combine
3599 power6x (mfpgpr) moves with other moves by using conditional
3600 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
3601 (mov<mode> for SFmode/SDmode); Likewise.
3602 (SFmode/SDmode splitters): Likewise.
3603 (movsf_hardfloat): Likewise.
3604 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
3605 (movsf_softfloat): Likewise.
3606 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
3608 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
3609 wx and wz constraints.
3611 * config/rs6000/constraints.md (wg constraint): New constraint to
3612 return FLOAT_REGS if -mmfpgpr (power6x) was used.
3614 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
3617 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3618 -mdebug=reg, print wg, wl, wx, and wz constraints.
3619 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3620 Initialize the reload functions for 64-bit binary/decimal floating
3622 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3623 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3624 create the buffer on the stack to overcome not having a 32-bit
3626 (rs6000_emit_move): Likewise.
3627 (rs6000_secondary_memory_needed_rtx): Likewise.
3628 (rs6000_alloc_sdmode_stack_slot): Likewise.
3629 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3630 via xxlxor, just like DFmode 0.0.
3632 * config/rs6000/dfp.md (movdd): Delete, combine with binary
3633 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
3634 with other moves by using conditional constraits (wg). Use LFIWZX
3635 and STFIWX for loading SDmode on power7.
3636 (movdd splitters): Likewise.
3637 (movdd_hardfloat32): Likewise.
3638 (movdd_softfloat32): Likewise.
3639 (movdd_hardfloat64_mfpgpr): Likewise.
3640 (movdd_hardfloat64): Likewise.
3641 (movdd_softfloat64): Likewise.
3643 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
3644 64-bit binary and decimal floating point moves.
3645 (FMOVE64X): Likewise.
3646 (movdf): Combine 64-bit binary and decimal floating point moves.
3647 Combine power6x (mfpgpr) moves with other moves by using
3648 conditional constraits (wg).
3649 (mov<mode> for DFmode/DDmode): Likewise.
3650 (DFmode/DDmode splitters): Likewise.
3651 (movdf_hardfloat32): Likewise.
3652 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
3653 (movdf_softfloat32): Likewise.
3654 (movdf_hardfloat64_mfpgpr): Likewise.
3655 (movdf_hardfloat64): Likewise.
3656 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
3657 (movdf_softfloat64): Likewise.
3658 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
3659 (reload_<mode>_load): Move to later in the file so they aren't in
3660 the middle of the floating point move insns.
3661 (reload_<mode>_store): Likewise.
3663 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
3666 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
3667 constraint if -mdebug=reg.
3668 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
3669 Enable using dd reload support if needed.
3671 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
3672 binary and decimal floating point moves in rs6000.md.
3673 (movtd_internal): Likewise.
3675 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
3676 decimal floating point moves.
3678 (movtf_internal): Likewise.
3679 (mov<mode>_internal, TDmode/TFmode): Likewise.
3680 (movtf_softfloat): Likewise.
3681 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
3683 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
3684 movdi_internal64, using wg constraint for move direct operations.
3685 (movdi_internal64): Likewise.
3687 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
3688 MODES_TIEABLE_P for selected modes. Print the numerical value of
3689 the various virtual registers. Use GPR/FPR first/last values,
3690 instead of hard coding the register numbers. Print which modes
3691 have reload functions registered.
3692 (rs6000_option_override_internal): If -mdebug=reg, trace the options
3693 settings before/after setting cpu, target and subtarget settings.
3694 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
3695 and for secondary reload failures in rs6000_secondary_reload_inner.
3696 (rs6000_secondary_reload_fail): Likewise.
3697 (rs6000_secondary_reload_inner): Likewise.
3699 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
3700 macros for first/last GPR and FPR registers.
3701 (LAST_GPR_REGNO): Likewise.
3702 (FIRST_FPR_REGNO): Likewise.
3703 (LAST_FPR_REGNO): Likewise.
3705 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
3706 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
3707 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
3708 (vcond<mode><mode>): Likewise.
3709 (vcondu<mode><mode>): Likewise.
3710 (vector_gtu<mode>): Likewise.
3711 (vector_gte<mode>): Likewise.
3712 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
3713 to prevent the compiler from converting DImode operations to TImode.
3714 (ior<mode>3): Likewise.
3715 (and<mode>3): Likewise.
3716 (one_cmpl<mode>2): Likewise.
3717 (nor<mode>3): Likewise.
3718 (andc<mode>3): Likewise.
3720 * config/rs6000/constraints.md (wt constraint): New constraint
3721 that returns VSX_REGS if TImode is allowed in VSX registers.
3723 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
3726 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
3727 similar to TImode, but it is restricted to being in the GPRs.
3729 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
3730 TImode to occupy a single VSX register.
3732 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
3733 -mvsx-timode for power7/power8.
3734 (power7 cpu): Likewise.
3735 (power8 cpu): Likewise.
3737 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
3738 sure that TFmode/TDmode take up two registers if they are ever
3739 allowed in the upper VSX registers.
3740 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
3742 (rs6000_init_hard_regno_mode_ok): Likewise.
3743 (rs6000_debug_reg_global): Add debugging for PTImode and wt
3744 constraint. Print if LRA is turned on.
3745 (rs6000_option_override_internal): Give an error if -mvsx-timode
3746 and VSX is not enabled.
3747 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
3748 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
3749 to reg+offset addressing. Use PTImode when checking offset
3750 addresses for validity.
3751 (reg_offset_addressing_ok_p): Likewise.
3752 (rs6000_legitimate_offset_address_p): Likewise.
3753 (rs6000_legitimize_address): Likewise.
3754 (rs6000_legitimize_reload_address): Likewise.
3755 (rs6000_legitimate_address_p): Likewise.
3756 (rs6000_eliminate_indexed_memrefs): Likewise.
3757 (rs6000_emit_move): Likewise.
3758 (rs6000_secondary_reload): Likewise.
3759 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
3760 reloads to fpr registers to continue to use reg+offset addressing,
3761 but 64-bit reloads to altivec registers need reg+reg addressing.
3762 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
3763 it. Treat LO_SUM like a PLUS operation.
3764 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
3765 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
3766 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
3767 registers to share a register with a smaller sized type, since VSX
3768 puts scalars in the upper 64-bits.
3769 (print_operand): Add support for PTImode.
3770 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
3771 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
3772 registers, but don't have arithmetic support.
3773 (rs6000_memory_move_cost): Add test for VSX.
3774 (rs6000_opt_masks): Add -mvsx-timode.
3776 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
3779 (VSr): Use wt constraint for TImode.
3780 (VSv): Drop TImode support.
3781 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
3782 (vsx_movti_64bit): Likewise.
3783 (vsx_movti_32bit): Likewise.
3784 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
3785 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
3786 one '?' on the appropriate output constraint. Do not allow TImode
3787 logical operations on 32-bit systems.
3788 (vsx_ior<mode>3): Likewise.
3789 (vsx_xor<mode>3): Likewise.
3790 (vsx_one_cmpl<mode>2): Likewise.
3791 (vsx_nor<mode>3): Likewise.
3792 (vsx_andc<mode>3): Likewise.
3793 (vsx_concat_<mode>): Likewise.
3794 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
3796 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
3797 OPTION_MASK_VSX_TIMODE.
3798 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
3799 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
3801 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
3802 (TI2 iterator): New iterator for TImode, PTImode.
3803 (wd mode attribute): Add values for vector types.
3804 (movti_string): Replace TI move operations with operations for TImode
3805 and PTImode. Add support for TImode being allowed in VSX registers.
3806 (mov<mode>_string, TImode/PTImode): Likewise.
3807 (movti_ppc64): Likewise.
3808 (mov<mode>_ppc64, TImode/PTImode): Likewise.
3809 (TI mode splitters): Likewise.
3811 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
3814 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
3816 PR tree-optimization/56355
3817 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
3818 Also handle integers with undefined overflow.
3820 2013-03-20 Catherine Moore <clm@codesourcery.com>
3821 Maciej W. Rozycki <macro@codesourcery.com>
3822 Tom de Vries <tom@codesourcery.com>
3823 Nathan Sidwell <nathan@codesourcery.com>
3824 Iain Sandoe <iain@codesourcery.com>
3825 Nathan Froyd <froydnj@codesourcery.com>
3826 Chao-ying Fu <fu@mips.com>
3828 * doc/extend.texi: (micromips, nomicromips, nocompression):
3829 Document new function attributes.
3830 * doc/invoke.texi (minterlink-compressed, mmicromips,
3831 m14k, m14ke, m14kec): Document new options.
3832 (minterlink-mips16): Update documentation.
3833 * doc/md.texi (ZC, ZD): Document new constraints.
3834 * configure.ac (gcc_cv_as_micromips): Check if linker
3835 supports the .set micromips directive.
3836 * configure: Regenerate.
3837 * config.in: Regenerate.
3838 * config/mips/mips-tables.opt: Regenerate.
3839 * config/mips/micromips.md: New file.
3840 * constraints.md (ZC, ZD): New constraints.
3841 * config/mips/predicates.md (movep_src_register): New predicate.
3842 (movep_src_operand): New predicate.
3843 (non_volatile_mem_operand): New predicate.
3844 * config/mips/mips.md (multimem): New type.
3845 (length): Differentiate between 17-bit and 18-bit branch offsets.
3846 (MOVEP1, MOVEP2): New mode iterator.
3847 (mov_<load>l): Use ZC constraint.
3848 (mov_<load>r): Likewise.
3849 (mov_<store>l): Likewise.
3850 (mov_<store>r): Likewise.
3851 (*branch_equality<mode>_inverted): Add microMIPS support.
3852 (*branch_equality<mode>): Likewise.
3853 (*jump_absolute): Likewise.
3854 (indirect_jump_<mode>): Likewise.
3855 (tablejump_<mode>): Likewise.
3856 (<optab>_internal): Likewise.
3857 (sibcall_internal): Likewise.
3858 (sibcall_value_internal): Likewise.
3859 (prefetch): Use constraint ZD.
3860 * config/mips/mips.opt (minterlink-compressed): New option.
3861 (minterlink-mips16): Now an alias for minterlink-compressed.
3862 (mmicromips): New option.
3863 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3864 (compare_and_swap_12): Likewise.
3865 (sync_add<mode>): Likewise.
3866 (sync_<optab>_12): Likewise.
3867 (sync_old_<optab>_12): Likewise.
3868 (sync_new_<optab>_12): Likewise.
3869 (sync_nand_12): Likewise.
3870 (sync_old_nand_12): Likewise.
3871 (sync_new_nand_12): Likewise.
3872 (sync_sub<mode>): Likewise.
3873 (sync_old_add<mode>): Likewise.
3874 (sync_old_sub<mode>): Likewise.
3875 (sync_new_add<mode>): Likewise.
3876 (sync_new_sub<mode>): Likewise.
3877 (sync_<optab><mode>): Likewise.
3878 (sync_old_<optab><mode>): Likewise.
3879 (sync_new_<optab><mode>): Likewise.
3880 (sync_nand<mode>): Likewise.
3881 (sync_old_nand<mode>): Likewise.
3882 (sync_new_nand<mode>): Likewise.
3883 (sync_lock_test_and_set<mode>): Likewise.
3884 (test_and_set_12): Likewise.
3885 (atomic_compare_and_swap<mode>): Likewise.
3886 (atomic_exchange<mode>_llsc): Likewise.
3887 (atomic_fetch_add<mode>_llsc): Likewise.
3888 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3889 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3890 (umips_save_restore_pattern_p): Likewise.
3891 (umips_load_store_pair_p): Likewise.
3892 (umips_output_load_store_pair): Likewise.
3893 (umips_movep_target_p): Likewise.
3894 (umips_12bit_offset_address_p): Likewise.
3895 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3896 (mips_base_mips16): Rename this...
3897 (mips_base_compression_flags): ...to this. Update all uses.
3898 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3899 (mips_mips16_decl_p): Delete.
3900 (mips_nomips16_decl_p): Delete.
3901 (mips_get_compress_on_flags): New function.
3902 (mips_get_compress_off_flags): New function.
3903 (mips_get_compress_mode): New function.
3904 (mips_get_compress_on_name): New function.
3905 (mips_get_compress_off_name): New function.
3906 (mips_insert_attributes): Support multiple compression types.
3907 (mips_merge_decl_attributes): Likewise.
3908 (umips_12bit_offset_address_p): New function.
3909 (mips_start_function_definition): Emit .set micromips directive.
3910 (mips_call_may_need_jalx_p): New function.
3911 (mips_function_ok_for_sibcall): Add microMIPS support.
3912 (mips_print_operand_punctuation): Support short delay slots and
3914 (umips_swm_mask, umips_swm_encoding): New.
3915 (umips_build_save_restore): New function.
3916 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3917 (was_mips16_p): Remove.
3918 (old_compression_mode): New.
3919 (mips_set_compression_mode): New function.
3920 (mips_set_current_function): Add microMIPS support.
3921 (mips_option_override): Likewise.
3922 (umips_save_restore_pattern_p): New function.
3923 (umips_output_save_restore): New function.
3924 (umips_load_store_pair_p_1): New function.
3925 (umips_load_store_pair_p): New function.
3926 (umips_output_load_store_pair_1): New function.
3927 (umips_output_load_store_pair): New function.
3928 (umips_movep_target_p) New function.
3929 (mips_prepare_pch_save): Add microMIPS support.
3930 * config/mips/mips.h (TARGET_COMPRESSION): New.
3931 (TARGET_CPU_CPP_BUILTINS): Update macro
3932 to use new compression flags and to support microMIPS.
3933 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3934 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3935 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3936 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3937 (ASM_SPEC): Support mmicromips and mno-micromips.
3938 (M16STORE_REG_P): New macro.
3939 (MIPS_CALL): Support TARGET_MICROMIPS.
3940 (MICROMIPS_J): New macro.
3941 (mips_base_mips16): Rename this...
3942 (mips_base_compression_flags): ...to this.
3943 (UMIPS_12BIT_OFFSET_P): New macro.
3944 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3945 (MULTILIB_DIRNAMES): Likewise.
3946 2013-03-20 Richard Biener <rguenther@suse.de>
3948 PR tree-optimization/56661
3949 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3950 the result does not have to be distinct.
3952 2013-03-20 Richard Biener <rguenther@suse.de>
3954 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
3957 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3958 Steven Bosscher <steven@gcc.gnu.org>
3960 PR rtl-optimization/56605
3961 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3963 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3966 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
3967 that require movd instead of movq.
3969 2013-03-20 Richard Biener <rguenther@suse.de>
3971 * tree-ssa-structalias.c (struct variable_info): Add pointer
3972 to the first field of an aggregate with sub-vars. Make
3973 this and the pointer to the next subfield its ID.
3974 (vi_next): New function.
3975 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
3976 storedanything_id, integer_id): Increment by one.
3977 (new_var_info, get_call_vi, lookup_call_clobber_vi,
3978 get_call_clobber_vi): Adjust.
3979 (solution_set_expand): Simplify and speedup.
3980 (solution_set_add): Inline into ...
3981 (set_union_with_increment): ... this. Adjust accordingly.
3982 (do_sd_constraint): Likewise.
3983 (do_ds_constraint): Likewise.
3984 (do_complex_constraint): Simplify.
3985 (build_pred_graph): Adjust.
3986 (solve_graph): Likewise. Simplify and speedup.
3987 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
3988 get_constraint_for_component_ref, get_constraint_for_1,
3989 first_vi_for_offset, first_or_preceding_vi_for_offset,
3990 create_function_info_for, create_variable_info_for_1,
3991 create_variable_info_for, intra_create_variable_infos): Adjust.
3992 (init_base_vars): Push NULL for ID zero.
3993 (compute_points_to_sets): Adjust.
3995 2013-03-20 Richard Biener <rguenther@suse.de>
3997 * cfgloop.c (verify_loop_structure): Streamline and avoid
3998 ICEing on corrupt loop tree.
3999 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
4002 2013-03-20 Richard Biener <rguenther@suse.de>
4004 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
4005 check whether an SSA update is needed.
4007 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
4009 * config/mips/constraints.md (T): Rename to...
4013 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
4014 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
4016 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4018 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
4019 (*subsi3_carryin_uxtw): Likewise.
4021 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4023 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
4024 (*rorsi3_insn_uxtw): Likewise.
4026 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4028 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
4029 (*extrsi5_insn_uxtw): Likewise.
4031 2013-03-19 Richard Biener <rguenther@suse.de>
4033 PR tree-optimization/56273
4034 * passes.c (init_optimization_passes): Move second VRP after DOM.
4036 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
4038 * config/i386/i386.md (*movti_internal): Merge from
4039 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
4040 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
4041 nox64 isa attributes.
4043 2013-03-18 Richard Biener <rguenther@suse.de>
4045 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
4047 (merge_node_constraints): Likewise.
4048 (build_succ_graph): Likewise.
4049 (valid_graph_edge): Inline into single caller.
4050 (unify_nodes): Likewise. Use bitmap_set_bit return value
4052 (scc_visit): Fix formatting and variable use.
4053 (do_sd_constraint): Use gcc_checking_assert.
4054 (do_ds_constraint): Likewise.
4055 (do_complex_constraint): Likewise.
4056 (condense_visit): Likewise. Cleanup.
4057 (dump_pred_graph): New function.
4058 (perform_var_substitution): Dump the pred-graph before
4059 variable substitution.
4060 (find_equivalent_node): Use gcc_checking_assert.
4061 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
4063 2013-03-18 Richard Biener <rguenther@suse.de>
4065 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4066 Remove cond_expr_stmt_list argument and do not gimplify the
4068 (vect_loop_versioning): Adjust.
4069 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4070 Cleanup to use less temporaries.
4071 (vect_create_data_ref_ptr): Cleanup.
4073 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4075 PR tree-optimization/56635
4076 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
4077 require types_compatible_p types.
4079 2013-03-18 Nick Clifton <nickc@redhat.com>
4081 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
4084 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
4085 Add missing line to comment describing function.
4087 2013-03-18 Richard Biener <rguenther@suse.de>
4089 PR tree-optimization/56210
4090 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4091 Handle string / character search functions.
4092 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4094 2013-03-18 Richard Biener <rguenther@suse.de>
4097 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
4098 and implement properly.
4099 * gimple.h (gimple_cond_single_var_p): Remove.
4101 2013-03-18 Richard Biener <rguenther@suse.de>
4103 * tree-data-ref.h (find_data_references_in_loop): Declare.
4104 * tree-data-ref.c (get_references_in_stmt): Use a stack
4105 vector pre-allocated in the callers.
4106 (find_data_references_in_stmt): Adjust.
4107 (graphite_find_data_references_in_stmt): Likewise.
4108 (create_rdg_vertices): Likewise.
4109 (find_data_references_in_loop): Export.
4110 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4111 Compute dependences here...
4112 (vect_analyze_data_refs): ...not here. When we encounter
4113 a non-vectorizable data reference in basic-block vectorization
4114 truncate the data reference vector. Do not bother to
4115 fixup data-dependence information for gather loads.
4116 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
4117 of data references, as reported.
4119 2013-03-18 Richard Biener <rguenther@suse.de>
4121 PR tree-optimization/3713
4122 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
4123 has_constants and expr.
4124 (stmt_has_constants): Properly valueize SSA names when deciding
4125 whether the stmt has constants.
4127 2013-03-18 Richard Biener <rguenther@suse.de>
4129 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
4130 whole function when there is nothing to do.
4131 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
4132 * tree-vectorizer.c (vectorize_loops): Update virtual and
4133 loop-closed SSA once.
4134 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
4136 2013-03-18 Richard Biener <rguenther@suse.de>
4139 * domwalk.c (bb_postorder): New global static.
4140 (cmp_bb_postorder): New function.
4141 (walk_dominator_tree): Replace scheme imposing an order for
4142 visiting dominator sons by one sorting them at the time they
4143 are pushed on the stack.
4145 2013-03-18 Richard Biener <rguenther@suse.de>
4147 PR tree-optimization/39326
4148 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
4149 (struct mem_ref): Replace mem member with ao_ref typed member.
4150 (MEM_ANALYZABLE): Adjust.
4151 (memref_eq): Likewise.
4152 (mem_ref_alloc): Likewise.
4153 (gather_mem_refs_stmt): Likewise.
4154 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
4155 (execute_sm_if_changed_flag_set): Adjust.
4156 (execute_sm): Likewise.
4157 (ref_always_accessed_p): Likewise.
4158 (refs_independent_p): Likewise.
4159 (can_sm_ref_p): Likewise.
4161 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4164 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
4165 return 1 even for !unsignedp.
4167 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4169 * config/i386/i386.md (isa): Add x64 and nox64.
4170 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
4171 (*pushtf): Enable *roF alternative for x64 isa only.
4172 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
4173 mode attribute of integer alternatives to DImode for TARGET_64BIT.
4174 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
4175 (*movtf_internal): Merge from *movtf_internal_rex64 and
4176 *movtf_internal_sse. Use x64 and nox64 isa attributes.
4177 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
4178 nox64 isa attributes.
4179 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
4180 nox64 isa attributes.
4181 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
4183 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4185 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4187 2013-03-17 Jakub Jelinek <jakub@redhat.com>
4190 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
4191 class names. Remove trailing comma after "ALL_REGS".
4193 2013-03-16 Jan Hubicka <jh@suse.cz>
4195 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
4196 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
4197 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
4198 of cgraph_get_create_node.
4199 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4201 2013-03-16 Jason Merrill <jason@redhat.com>
4204 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
4205 with DW_AT_default_value.
4207 2013-03-16 Jakub Jelinek <jakub@redhat.com>
4209 * BASE-VER: Set to 4.9.0.
4211 2013-03-14 Andi Kleen <ak@linux.intel.com>
4214 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
4215 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
4216 Document _x* TSX intrinsics.
4218 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4219 David Holsgrove <david.holsgrove@xilinx.com>
4221 * configure.ac: Add MicroBlaze TLS support detection.
4222 * configure: Regenerate.
4223 * config/microblaze/microblaze-protos.h
4224 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
4225 symbol_mentioned_p, label_mentioned_p): Add prototypes.
4226 * config/microblaze/microblaze.c (microblaze_address_type): Add
4227 ADDRESS_TLS and tls_reloc address types.
4228 (microblaze_address_info): Add tls_reloc.
4229 (TARGET_HAVE_TLS): Define.
4230 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
4231 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
4232 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
4233 load_tls_operand, microblaze_call_tls_get_addr,
4234 microblaze_legitimize_tls_address): New functions.
4235 (microblaze_classify_unspec): Handle UNSPEC_TLS.
4236 (get_base_reg): Use microblaze_tls_symbol_p.
4237 (microblaze_classify_address): Handle TLS.
4238 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
4239 label_mentioned_p and microblaze_tls_referenced_p.
4240 (microblaze_legitimize_address): Handle TLS.
4241 (microblaze_address_insns): Handle ADDRESS_TLS.
4242 (pic_address_needs_scratch): Handle TLS.
4243 (print_operand_address): Handle TLS.
4244 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
4245 (microblaze_expand_move): Handle TLS.
4246 (microblaze_legitimate_constant_p): Check
4247 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
4248 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4249 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
4250 (PIC_OFFSET_TABLE_REGNUM): Set.
4251 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
4252 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
4253 (addsi3, movsi_internal2, movdf_internal): Update constraints
4254 * config/microblaze/predicates.md (arith_plus_operand): Define
4255 (move_operand): Redefine as move_src_operand,
4256 check microblaze_tls_referenced_p.
4258 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4260 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
4261 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
4263 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4265 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
4268 2013-03-14 Jakub Jelinek <jakub@redhat.com>
4270 PR tree-optimization/53265
4271 * common.opt (Waggressive-loop-optimizations): New option.
4272 * tree-ssa-loop-niter.c: Include tree-pass.h.
4273 (do_warn_aggressive_loop_optimizations): New function.
4274 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
4275 if number_of_latch_executions returned constant.
4276 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
4277 early. If number_of_latch_executions returned constant, set
4278 nb_iterations_upper_bound back to it.
4279 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
4281 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
4282 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
4284 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
4285 (MULTILIB_OSDIRNAMES): Set.
4286 * genmultilib: If defaultosdirname doesn't start with :: , set
4287 defaultosdirname2 instead, clear it and emit two . multilib_raw
4288 entries instead of just one.
4290 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
4292 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4293 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
4294 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4295 (SUBTARGET_OVERRIDE_OPTIONS): New.
4297 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
4300 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
4301 (musermode): Convert to Var(TARGET_USERMODE).
4302 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
4303 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
4304 * config/sh/sh.c (sh_option_override): Use
4305 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
4306 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
4308 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
4310 (udivsi3_i4_single, divsi3_i4_single): Use
4311 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
4313 2013-03-13 Dave Korn <dave.korn.cygwin@....>
4315 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
4318 2013-03-13 Richard Biener <rguenther@suse.de>
4320 PR tree-optimization/56608
4321 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
4322 calls when vectorizing basic-blocks.
4324 2013-03-13 Jakub Jelinek <jakub@redhat.com>
4327 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
4330 2013-03-12 Jakub Jelinek <jakub@redhat.com>
4332 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
4334 2013-03-11 Jan Hubicka <jh@suse.cz>
4337 * lto-streamer-out.c (output_symbol_p): Skip references from
4338 constructors of external variables.
4340 2013-03-11 Jan Hubicka <jh@suse.cz>
4343 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
4345 * emit-rtl.c (verify_rtx_sharing): Likewise.
4346 (copy_insn_1): Likewise.
4347 * rtl.c (copy_rtx): Likewise.
4349 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
4352 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
4353 output_operand_lossage message.
4355 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
4358 * arm.c (shift_op): Validate RTL pattern on the fly.
4359 (arm_print_operand, case 'S'): Don't use shift_operator to validate
4362 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4365 * config/pa/pa.md (call_value): Check for calls to powf and direct to
4366 new call patterns that clobber %fr12.
4367 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
4368 split and postreload patterns.
4369 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
4370 registers %fr12 and %fr12R as call used.
4372 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
4374 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
4375 (canon_address, record_store, replace_read, check_mem_read_rtx,
4376 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
4377 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
4378 rest_of_handle_dse): Likewise.
4380 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4383 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
4385 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
4386 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
4387 (save_optabs_if_changed): Replace with...
4388 (init_tree_optimization_optabs): ...this.
4389 * optabs.c (save_optabs_if_changed): Rename to...
4390 (init_tree_optimization_optabs): ...this. Take the optimization node
4391 as argument. Do nothing if the base optabs are already correct.
4392 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
4393 to recompute optabs.
4394 * function.h (function): Remove optabs field.
4395 * function.c (invoke_set_current_function_hook): Call
4396 init_tree_optimization_optabs. Use the result to initialize
4399 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
4401 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
4402 if GTMA_HAS_NO_INSTRUMENTATION.
4403 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
4404 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
4405 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
4406 * gimple-pretty-print.c (dump_gimple_transaction): Handle
4407 GTMA_HAS_NO_INSTRUMENTATION.
4409 2013-03-08 Jakub Jelinek <jakub@redhat.com>
4411 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4414 2013-03-08 Marek Polacek <polacek@redhat.com>
4415 Jakub Jelinek <jakub@redhat.com>
4417 PR tree-optimization/56478
4418 * predict.c (is_comparison_with_loop_invariant_p): Change the
4419 type of loop_step to tree.
4420 (predict_loops): Adjust.
4421 (predict_iv_comparison): Perform the computations on double_ints.
4423 2013-03-08 Richard Biener <rguenther@suse.de>
4425 PR tree-optimization/56570
4426 * tree-cfg.c (verify_expr_location_1): Verify locations for
4428 * tree-sra.c (create_access_replacement): Strip locations
4429 from DECL_DEBUG_EXPRs.
4431 2013-03-08 Richard Biener <rguenther@suse.de>
4433 * tree-inline.c (expand_call_inline): Do not associate
4434 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
4435 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
4437 2013-03-08 Richard Biener <rguenther@suse.de>
4439 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
4440 or block changes with -Og. Fix for location / block encoding
4441 changes and PHI arguments with locations.
4443 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
4445 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4447 (struct output_info): Likewise.
4448 (register_overhead): Remove bad gcc_assert.
4449 (bitmap_find_bit): If there is only a single bitmap element, do not
4450 count a miss as a search.
4451 (print_statistics): Update for counter type changes.
4452 (dump_bitmap_statistics): Likewise. Print headers such that they
4453 are properly lined up with the printed counters.
4455 2013-03-07 Jakub Jelinek <jakub@redhat.com>
4457 PR tree-optimization/56559
4458 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
4459 check that it has only a single use.
4461 2013-03-07 Richard Biener <rguenther@suse.de>
4463 * doc/invoke.texi (fwhole-program): Discourage use in combination
4466 2013-03-06 Jakub Jelinek <jakub@redhat.com>
4468 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
4470 PR tree-optimization/56539
4471 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
4472 instead of GSI_CONTINUE_LINKING as last argument to
4473 force_gimple_operand_gsi. Adjust function comment.
4475 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
4479 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
4480 promoted mode, convert the result back to the original mode.
4482 2013-03-06 Richard Biener <rguenther@suse.de>
4485 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
4486 (insert_updated_phi_nodes_compare_uids): New function.
4487 (update_ssa): Sort symbols_to_rename after UID before
4488 traversing it to insert PHI nodes.
4490 2013-03-06 Richard Biener <rguenther@suse.de>
4493 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
4494 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
4497 2013-02-13 Richard Biener <rguenther@suse.de>
4500 * varasm.c (output_constant_def_1): Get the decl representing
4501 the constant as argument.
4502 (output_constant_def): Wrap output_constant_def_1.
4503 (make_decl_rtl): Use output_constant_def_1 with the decl
4504 representing the constant.
4505 (build_constant_desc): Optionally re-use a decl already
4506 representing the constant.
4507 (tree_output_constant_def): Adjust.
4509 2013-03-06 Joey Ye <joey.ye@arm.com>
4512 * gcc.c (convert_white_space): New function.
4513 (main): Handles white space in function name.
4515 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
4518 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
4519 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
4520 to SH_DIV_CALL_TABLE for TARGET_SH2.
4521 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
4523 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
4526 2013-03-05 Sterling Augustine <saugustine@google.com>
4527 Cary Coutant <ccoutant@google.com>
4530 * dwarf2out.c (resolve_addr): Don't call
4531 remove_loc_list_addr_table_entries a second time for the same
4534 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4537 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
4538 (avoid_complex_debug_insns): New function.
4539 (expand_debug_locations): Call it.
4541 PR rtl-optimization/56484
4542 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
4543 lifetimes of hard registers on small register class machines.
4545 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
4547 * config/microblaze/microblaze-protos.h: Rename
4548 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
4549 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
4551 (microblaze_fast_interrupt_function_p): New function.
4552 (microblaze_is_interrupt_handler): Rename to
4553 microblaze_is_interrupt_variant and add fast_interrupt check.
4554 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
4555 (save_restore_insns): Likewise.
4556 (compute_frame_size): Likewise.
4557 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
4558 (microblaze_globalize_label): Likewise.
4559 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
4560 * config/microblaze/microblaze.md: Use wrapper
4561 microblaze_is_interrupt_variant.
4563 2013-03-05 Kai Tietz <ktietz@redhat.com>
4565 * sdbout.c (sdbout_one_type): Switch to current function's section
4566 supporting cold/hot.
4568 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
4570 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
4573 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4576 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
4577 if VALGRIND_GET_VBITS is defined, temporarily make object
4578 memory all defined, and restore previous valgrind addressability
4579 and definability afterwards. Free this_object at the end.
4582 * lra.c (lra): Call lra_clear_live_ranges if live_p,
4583 right before calling lra_create_live_ranges, also call it
4584 when clearing live_p. Only call lra_clear_live_ranges
4585 at the end if live_p.
4588 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
4590 2013-03-05 Richard Biener <rguenther@suse.de>
4592 PR tree-optimization/56521
4593 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
4596 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
4599 * except.h (remove_unreachable_eh_regions): New prototype.
4600 * except.c (remove_eh_handler_splicer): New function, split out
4601 of remove_eh_handler.
4602 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
4603 warning about running it on many EH regions one at a time.
4604 (remove_unreachable_eh_regions_worker): New function, walk the
4605 EH tree in depth-first order and remove non-marked regions.
4606 (remove_unreachable_eh_regions): New function.
4607 * tree-eh.c (mark_reachable_handlers): New function, split out
4608 from remove_unreachable_handlers.
4609 (remove_unreachable_handlers): Use mark_reachable_handlers and
4610 remove_unreachable_eh_regions.
4611 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
4612 and remove_unreachable_eh_regions.
4614 2013-03-05 Richard Biener <rguenther@suse.de>
4617 * loop-init.c (fix_loop_structure): Remove loops in two stages,
4618 not freeing them until the end.
4620 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4622 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
4624 2013-03-05 Richard Biener <rguenther@suse.de>
4626 PR tree-optimization/56270
4627 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
4628 of loads after scheduling an SLP instance.
4630 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4632 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
4634 (check_gcc_parallelize): Run guality.exp as a separate job from
4635 vect.exp with unsorted.exp and $(dg_target_exps) separately from
4636 struct-layout-1.exp with stackalign.exp.
4638 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
4641 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
4642 load_index sbitmap even if some bit in it isn't set.
4645 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
4646 (discover_iteration_bound_by_body_walk): Change queues to
4647 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
4648 spelling in comment. Call safe_push on queues[bound_index] directly.
4649 Release queues[queue_index] in every iteration unconditionally.
4650 Release bounds vector.
4653 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
4654 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
4655 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
4658 2013-03-05 Richard Biener <rguenther@suse.de>
4661 * tree-inline.c (remap_blocks_to_null): New function.
4662 (expand_call_inline): When expanding a call stmt without
4663 an associated block inline remap all callee blocks to NULL.
4665 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4667 PR rtl-optimization/56494
4668 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
4669 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
4670 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
4673 * sel-sched-ir.c (free_sched_pools): Release
4674 succs_info_pool.stack[succs_info_pool.max_top] vectors too
4675 if succs_info_pool.max_top isn't -1.
4678 * opts.c (opts_obstack, opts_concat): Moved to...
4679 * opts-common.c (opts_obstack, opts_concat): ... here.
4681 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4684 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
4686 2013-03-04 Martin Jambor <mjambor@suse.cz>
4688 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
4689 all appropriate places.
4691 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
4693 PR tree-optimization/56424
4694 * ipa-split.c (split_function): Do not set the RSO flag if result is
4695 not by reference and its type is a register type.
4697 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
4699 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
4700 (microblaze_legitimate_pic_operand): Likewise
4701 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
4702 new function microblaze_legitimate_pic_operand
4703 * config/microblaze/microblaze-protos.h
4704 (microblaze_legitimate_pic_operand): Declare.
4706 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4708 * config/microblaze/predicates.md (call_insn_simple_operand):
4709 New predicate for supported rtx code types.
4710 * config/microblaze/microblaze.md (call_internal1): Use
4711 call_insn_simple_operand predicate.
4713 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4716 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
4717 partitions.ordered_remove.
4720 * tree-vect-stmts.c (vectorizable_conversion): Don't call
4721 vec_oprnds0.create (1) for modifier == NONE.
4724 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
4725 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
4726 vec_oprnds1 right before pushing anything to it for
4730 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
4731 set nbbs to 0 instead of having separate code path.
4732 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
4733 instead of false as last argument if returning NULL.
4735 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
4737 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4738 the attribute is now called "target" instead of "option".
4739 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
4740 * doc/tm.texi.in (Target Attributes): Likewise document the correct
4741 attribute/pragma name for TARGET_OPTION_VALID_P and
4742 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
4743 * doc/tm.texi: Regenerated.
4745 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
4747 * config/microblaze/microblaze.c:
4748 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
4749 * config/microblaze/microblaze.h: Add -mxl-reorder to
4751 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
4752 instructions emitted if TARGET_REORDER.
4753 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
4754 or 0 for -m/-mno case, but initialises as 2 to detect default use case
4757 2013-03-01 Xinliang David Li <davidxl@google.com>
4759 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
4762 2013-03-01 Jakub Jelinek <jakub@redhat.com>
4765 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
4766 vector even when returning true. Fix up function comment formatting.
4769 * ira-build.c (ira_loop_nodes_count): New variable.
4770 (create_loop_tree_nodes): Initialize it.
4771 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
4774 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
4775 method on dr_chain and result_chain.
4776 * tree-vect-stmts.c (vectorizable_store): Only call
4777 result_chain.create if j == 0.
4780 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
4781 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
4782 before overwriting it.
4784 2013-03-01 Tobias Burnus <burnus@net-b.de>
4786 * doc/extended.texi (C Extensions): Change order in @menu
4788 (Other MIPS Built-in Functions): Move last MIPS entry before
4789 "picoChip Built-in Functions".
4790 (SH Built-in Functions): Move after RX Built-in Functions.
4791 * doc/gcc.texi (Introduction): Change order in @menu
4793 * doc/md.texi (Constraints): Ditto.
4794 * gty.texi (Type Information): Ditto.
4795 (User-provided marking routines for template types): Make
4797 * doc/invoke.texi (AArch64 Options): Move before
4798 "Adapteva Epiphany Options".
4800 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4801 Jakub Jelinek <jakub@redhat.com>
4804 * asan.c (gate_asan): Lookup no_sanitize_address instead of
4805 no_address_safety_analysis attribute.
4806 * doc/extend.texi (no_address_safety_attribute): Rename to
4807 no_sanitize_address attribute, mention no_address_safety_analysis
4808 attribute as deprecated alias.
4810 2013-02-28 Jakub Jelinek <jakub@redhat.com>
4813 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
4814 type to vec<vec<tree> > *.
4815 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
4816 to be vec<tree> instead of vec<tree> *, set vec_defs
4817 to vNULL and call vec_defs.create (number_of_vects), adjust other
4819 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
4820 vectorizable_condition): Adjust vect_get_slp_defs callers.
4822 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4824 * config/aarch64/aarch64.c
4825 (aarch64_float_const_representable): Remove unused variable.
4827 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4829 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
4831 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4833 * config/aarch64/aarch64-builtins.c
4834 (aarch64_init_simd_builtins): Make static.
4836 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4838 * config/aarch64/aarch64.c
4839 (aarch64_simd_make_constant): Make static.
4841 2013-02-28 Martin Jambor <mjambor@suse.cz>
4843 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
4844 with no initialization to the RHS of debug statements.
4846 2013-02-28 Martin Jambor <mjambor@suse.cz>
4848 PR tree-optimization/56294
4849 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
4851 (get_access_replacement): Do not call create_access_replacement.
4852 Assert a replacement exists.
4853 (get_repl_default_def_ssa_name): Create the replacement declaration
4856 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4858 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
4861 2013-02-28 Marek Polacek <polacek@redhat.com>
4863 PR rtl-optimization/56466
4864 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
4865 if we're changing a loop.
4866 (peel_loops_completely): Likewise.
4868 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
4871 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
4873 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4876 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
4877 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
4878 INTX_FTYPE_FX, FX_FTYPE_INTX.
4879 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
4881 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4883 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
4884 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
4885 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
4886 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
4887 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
4888 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
4889 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
4890 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
4891 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
4892 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
4893 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
4894 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
4895 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
4896 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
4897 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
4898 (avrxmega6): Increase max flash segments from 5 to 6.
4899 * config/avr/t-multilib: Regenerate.
4900 * config/avr/avr-tables.opt: Regenerate.
4901 * doc/avr-mmcu.texi: Regenerate.
4903 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4905 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
4906 (avr_device_to_arch): Rename to avr_device_to_ld.
4907 (avr_device_to_as): New prototype.
4908 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
4909 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
4910 * config/avr/driver-avr.c (avr_device_to_as): New.
4911 (avr_device_to_arch): Rename to avr_device_to_ld.
4913 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4916 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4917 method on dr_chain and result_chain.
4920 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4921 pointer_set_destroy on not_executed_last_iteration.
4924 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4927 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4928 FOR_EACH_DEFINED_FUNCTION when freeing state.
4931 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4933 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4937 * ipa-cp.c (decide_whether_version_node): Call vec_free on
4938 known_aggs[i].items and release known_aggs vector.
4941 * ipa-reference.c (propagate): Free node_info even for alias nodes.
4943 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4945 * config/microblaze/microblaze.c (microblaze_emit_compare):
4946 Use xor for EQ/NE comparisions.
4947 * config/microblaze/microblaze.md (cstoresf4): Add constraints
4948 (cbranchsf4): Adjust operator to comparison_operator.
4950 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4953 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4955 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4956 vec_safe_push, always update *slot.
4957 (redirect_edge_var_map_clear): Use vec_free.
4958 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4959 (free_var_map_entry): Use vec_free.
4960 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4961 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4963 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
4966 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4967 when the may_trap_p bit of the exprs being merged differs.
4968 Reorder tests for speculativeness in the logical and operator.
4970 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4972 * incpath.c (add_standard_paths): Use reconcat instead of concat
4973 where appropriate and avoid leaking memory.
4975 * opts.h: Include obstack.h.
4976 (opts_concat): New prototype.
4977 (opts_obstack): New declaration.
4978 * opts.c (opts_concat): New function.
4979 (opts_obstack): New variable.
4980 (init_options_struct): Call gcc_init_obstack on opts_obstack.
4981 (finish_options): Use opts_concat instead of concat
4982 and XOBNEWVEC instead of XNEWVEC.
4983 * opts-common.c (generate_canonical_option, decode_cmdline_option,
4984 generate_option): Likewise.
4985 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4986 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4989 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4990 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4992 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4995 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4997 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4999 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
5000 (arm_block_move_unaligned_straight): Likewise.
5001 (arm_adjust_block_mem): Likewise.
5003 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5006 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5007 temp, cond and label.
5008 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
5011 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
5012 * config/c6x/c6x.h (dbx_register_map): Update declaration.
5015 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
5016 of prologue/epilogue functions.
5019 * config/tilegx/tilegx.c (tilegx_expand_prologue):
5020 Remove unused variable cfa_offset.
5021 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
5024 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
5025 type promotion to unsigned.
5028 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
5029 for HOST_WIDE_INT of 32 bit / same size as int.
5030 (arm_block_move_unaligned_straight): Likewise.
5031 (arm_adjust_block_mem): Likewise.
5034 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
5037 2013-02-26 Marek Polacek <polacek@redhat.com>
5039 PR tree-optimization/56426
5040 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
5042 2013-02-26 Richard Biener <rguenther@suse.de>
5045 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
5046 unused variable loops.
5048 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5050 PR tree-optimization/56448
5051 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
5052 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
5053 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
5054 later operands of the references, or even first operand for
5055 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
5057 PR tree-optimization/56443
5058 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
5059 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
5060 to type_for_mode langhook.
5062 2013-02-25 Matt Turner <mattst88@gmail.com>
5064 * doc/invoke.texi: Document r4700.
5066 2013-02-25 Richard Biener <rguenther@suse.de>
5068 PR tree-optimization/56175
5069 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
5071 (simplify_bitwise_binary): ... here. Also guard the conversion
5072 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
5074 2013-02-25 Catherine Moore <clm@codesourcery.com>
5077 2013-02-24 Catherine Moore <clm@codesourcery.com>
5078 Maciej W. Rozycki <macro@codesourcery.com>
5079 Tom de Vries <tom@codesourcery.com>
5080 Nathan Sidwell <nathan@codesourcery.com>
5081 Iain Sandoe <iain@codesourcery.com>
5082 Nathan Froyd <froydnj@codesourcery.com>
5083 Chao-ying Fu <fu@mips.com>
5085 * doc/extend.texi: (micromips, nomicromips, nocompression):
5086 Document new function attributes.
5087 * doc/invoke.texi (minterlink-compressed, mmicromips,
5088 m14k, m14ke, m14kec): Document new options.
5089 (minterlink-mips16): Update documentation.
5090 * doc/md.texi (ZC, ZD): Document new constraints.
5091 * configure.ac (gcc_cv_as_micromips): Check if linker
5092 supports the .set micromips directive.
5093 * configure: Regenerate.
5094 * config.in: Regenerate.
5095 * config/mips/mips-tables.opt: Regenerate.
5096 * config/mips/micromips.md: New file.
5097 * constraints.md (ZC, AD): New constraints.
5098 * config/mips/predicates.md (movep_src_register): New predicate.
5099 (movep_src_operand): New predicate.
5100 (non_volatile_mem_operand): New predicate.
5101 * config/mips/mips.md (multimem): New type.
5102 (length): Differentiate between 17-bit and 18-bit branch offsets.
5103 (MOVEP1, MOVEP2): New mode iterator.
5104 (mov_<load>l): Use ZC constraint.
5105 (mov_<load>r): Likewise.
5106 (mov_<store>l): Likewise.
5107 (mov_<store>r): Likewise.
5108 (*branch_equality<mode>_inverted): Add microMIPS support.
5109 (*branch_equality<mode>): Likewise.
5110 (*jump_absolute): Likewise.
5111 (indirect_jump_<mode>): Likewise.
5112 (tablejump_<mode>): Likewise.
5113 (<optab>_internal): Likewise.
5114 (sibcall_internal): Likewise.
5115 (sibcall_value_internal): Likewise.
5116 (prefetch): Use constraint ZD.
5117 * config/mips/mips.opt (minterlink-compressed): New option.
5118 (minterlink-mips16): Now an alias for minterlink-compressed.
5119 (mmicromips): New option.
5120 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5121 (compare_and_swap_12): Likewise.
5122 (sync_add<mode>): Likewise.
5123 (sync_<optab>_12): Likewise.
5124 (sync_old_<optab>_12): Likewise.
5125 (sync_new_<optab>_12): Likewise.
5126 (sync_nand_12): Likewise.
5127 (sync_old_nand_12): Likewise.
5128 (sync_new_nand_12): Likewise.
5129 (sync_sub<mode>): Likewise.
5130 (sync_old_add<mode>): Likewise.
5131 (sync_old_sub<mode>): Likewise.
5132 (sync_new_add<mode>): Likewise.
5133 (sync_new_sub<mode>): Likewise.
5134 (sync_<optab><mode>): Likewise.
5135 (sync_old_<optab><mode>): Likewise.
5136 (sync_new_<optab><mode>): Likewise.
5137 (sync_nand<mode>): Likewise.
5138 (sync_old_nand<mode>): Likewise.
5139 (sync_new_nand<mode>): Likewise.
5140 (sync_lock_test_and_set<mode>): Likewise.
5141 (test_and_set_12): Likewise.
5142 (atomic_compare_and_swap<mode>): Likewise.
5143 (atomic_exchange<mode>_llsc): Likewise.
5144 (atomic_fetch_add<mode>_llsc): Likewise.
5145 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5146 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5147 (umips_save_restore_pattern_p): Likewise.
5148 (umips_load_store_pair_p): Likewise.
5149 (umips_output_load_store_pair): Likewise.
5150 (umips_movep_target_p): Likewise.
5151 (umips_12bit_offset_address_p): Likewise.
5152 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5153 (mips_base_mips16): Rename this...
5154 (mips_base_compression_flags): ...to this. Update all uses.
5155 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5156 (mips_mips16_decl_p): Delete.
5157 (mips_nomips16_decl_p): Delete.
5158 (mips_get_compress_on_flags): New function.
5159 (mips_get_compress_off_flags): New function.
5160 (mips_get_compress_mode): New function.
5161 (mips_get_compress_on_name): New function.
5162 (mips_get_compress_off_name): New function.
5163 (mips_insert_attributes): Support multiple compression types.
5164 (mips_merge_decl_attributes): Likewise.
5165 (umips_12bit_offset_address_p): New function.
5166 (mips_start_function_definition): Emit .set micromips directive.
5167 (mips_call_may_need_jalx_p): New function.
5168 (mips_function_ok_for_sibcall): Add microMIPS support.
5169 (mips_print_operand_punctuation): Support short delay slots and
5171 (umips_swm_mask, umips_swm_encoding): New.
5172 (umips_build_save_restore): New function.
5173 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5174 (was_mips16_p): Remove.
5175 (old_compression_mode): New.
5176 (mips_set_compression_mode): New function.
5177 (mips_set_current_function): Add microMIPS support.
5178 (mips_option_override): Likewise.
5179 (umips_save_restore_pattern_p): New function.
5180 (umips_output_save_restore): New function.
5181 (umips_load_store_pair_p_1): New function.
5182 (umips_load_store_pair_p): New function.
5183 (umips_output_load_store_pair_1): New function.
5184 (umips_output_load_store_pair): New function.
5185 (umips_movep_target_p) New function.
5186 (mips_prepare_pch_save): Add microMIPS support.
5187 * config/mips/mips.h (TARGET_COMPRESSION): New.
5188 (TARGET_CPU_CPP_BUILTINS): Update macro
5189 to use new compression flags and to support microMIPS.
5190 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5191 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5192 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5193 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5194 (ASM_SPEC): Support mmicromips and mno-micromips.
5195 (M16STORE_REG_P): New macro.
5196 (MIPS_CALL): Support TARGET_MICROMIPS.
5197 (MICROMIPS_J): New macro.
5198 (mips_base_mips16): Rename this...
5199 (mips_base_compression_flags): ...to this.
5200 (UMIPS_12BIT_OFFSET_P): New macro.
5201 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5202 (MULTILIB_DIRNAMES): Likewise.
5204 2013-02-25 Tom de Vries <tom@codesourcery.com>
5206 PR rtl-optimization/56131
5207 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
5208 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
5209 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
5211 2013-02-25 Tobias Burnus <burnus@net-b.de>
5213 * doc/invoke.texi (-fsanitize=): Move from optimization
5214 to debugging options.
5216 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5218 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
5220 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5221 Alexander Monakov <amonakov@ispras.ru>
5224 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
5225 flush pending lists also on non-jumps. Adjust comment.
5227 2013-02-24 Catherine Moore <clm@codesourcery.com>
5228 Maciej W. Rozycki <macro@codesourcery.com>
5229 Tom de Vries <tom@codesourcery.com>
5230 Nathan Sidwell <nathan@codesourcery.com>
5231 Iain Sandoe <iain@codesourcery.com>
5232 Nathan Froyd <froydnj@codesourcery.com>
5233 Chao-ying Fu <fu@mips.com>
5235 * doc/extend.texi: (micromips, nomicromips, nocompression):
5236 Document new function attributes.
5237 * doc/invoke.texi (minterlink-compressed, mmicromips,
5238 m14k, m14ke, m14kec): Document new options.
5239 (minterlink-mips16): Update documentation.
5240 * doc/md.texi (ZC, ZD): Document new constraints.
5241 * configure.ac (gcc_cv_as_micromips): Check if linker
5242 supports the .set micromips directive.
5243 * configure: Regenerate.
5244 * config.in: Regenerate.
5245 * config/mips/mips-tables.opt: Regenerate.
5246 * config/mips/micromips.md: New file.
5247 * constraints.md (ZC, AD): New constraints.
5248 * config/mips/predicates.md (movep_src_register): New predicate.
5249 (movep_src_operand): New predicate.
5250 (non_volatile_mem_operand): New predicate.
5251 * config/mips/mips.md (multimem): New type.
5252 (length): Differentiate between 17-bit and 18-bit branch offsets.
5253 (MOVEP1, MOVEP2): New mode iterator.
5254 (mov_<load>l): Use ZC constraint.
5255 (mov_<load>r): Likewise.
5256 (mov_<store>l): Likewise.
5257 (mov_<store>r): Likewise.
5258 (*branch_equality<mode>_inverted): Add microMIPS support.
5259 (*branch_equality<mode>): Likewise.
5260 (*jump_absolute): Likewise.
5261 (indirect_jump_<mode>): Likewise.
5262 (tablejump_<mode>): Likewise.
5263 (<optab>_internal): Likewise.
5264 (sibcall_internal): Likewise.
5265 (sibcall_value_internal): Likewise.
5266 (prefetch): Use constraint ZD.
5267 * config/mips/mips.opt (minterlink-compressed): New option.
5268 (minterlink-mips16): Now an alias for minterlink-compressed.
5269 (mmicromips): New option.
5270 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5271 (compare_and_swap_12): Likewise.
5272 (sync_add<mode>): Likewise.
5273 (sync_<optab>_12): Likewise.
5274 (sync_old_<optab>_12): Likewise.
5275 (sync_new_<optab>_12): Likewise.
5276 (sync_nand_12): Likewise.
5277 (sync_old_nand_12): Likewise.
5278 (sync_new_nand_12): Likewise.
5279 (sync_sub<mode>): Likewise.
5280 (sync_old_add<mode>): Likewise.
5281 (sync_old_sub<mode>): Likewise.
5282 (sync_new_add<mode>): Likewise.
5283 (sync_new_sub<mode>): Likewise.
5284 (sync_<optab><mode>): Likewise.
5285 (sync_old_<optab><mode>): Likewise.
5286 (sync_new_<optab><mode>): Likewise.
5287 (sync_nand<mode>): Likewise.
5288 (sync_old_nand<mode>): Likewise.
5289 (sync_new_nand<mode>): Likewise.
5290 (sync_lock_test_and_set<mode>): Likewise.
5291 (test_and_set_12): Likewise.
5292 (atomic_compare_and_swap<mode>): Likewise.
5293 (atomic_exchange<mode>_llsc): Likewise.
5294 (atomic_fetch_add<mode>_llsc): Likewise.
5295 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5296 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5297 (umips_save_restore_pattern_p): Likewise.
5298 (umips_load_store_pair_p): Likewise.
5299 (umips_output_load_store_pair): Likewise.
5300 (umips_movep_target_p): Likewise.
5301 (umips_12bit_offset_address_p): Likewise.
5302 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5303 (mips_base_mips16): Rename this...
5304 (mips_base_compression_flags): ...to this. Update all uses.
5305 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5306 (mips_mips16_decl_p): Delete.
5307 (mips_nomips16_decl_p): Delete.
5308 (mips_get_compress_on_flags): New function.
5309 (mips_get_compress_off_flags): New function.
5310 (mips_get_compress_mode): New function.
5311 (mips_get_compress_on_name): New function.
5312 (mips_get_compress_off_name): New function.
5313 (mips_insert_attributes): Support multiple compression types.
5314 (mips_merge_decl_attributes): Likewise.
5315 (umips_12bit_offset_address_p): New function.
5316 (mips_start_function_definition): Emit .set micromips directive.
5317 (mips_call_may_need_jalx_p): New function.
5318 (mips_function_ok_for_sibcall): Add microMIPS support.
5319 (mips_print_operand_punctuation): Support short delay slots and
5321 (umips_swm_mask, umips_swm_encoding): New.
5322 (umips_build_save_restore): New function.
5323 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5324 (was_mips16_p): Remove.
5325 (old_compression_mode): New.
5326 (mips_set_compression_mode): New function.
5327 (mips_set_current_function): Add microMIPS support.
5328 (mips_option_override): Likewise.
5329 (umips_save_restore_pattern_p): New function.
5330 (umips_output_save_restore): New function.
5331 (umips_load_store_pair_p_1): New function.
5332 (umips_load_store_pair_p): New function.
5333 (umips_output_load_store_pair_1): New function.
5334 (umips_output_load_store_pair): New function.
5335 (umips_movep_target_p) New function.
5336 (mips_prepare_pch_save): Add microMIPS support.
5337 * config/mips/mips.h (TARGET_COMPRESSION): New.
5338 (TARGET_CPU_CPP_BUILTINS): Update macro
5339 to use new compression flags and to support microMIPS.
5340 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5341 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5342 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5343 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5344 (ASM_SPEC): Support mmicromips and mno-micromips.
5345 (M16STORE_REG_P): New macro.
5346 (MIPS_CALL): Support TARGET_MICROMIPS.
5347 (MICROMIPS_J): New macro.
5348 (mips_base_mips16): Rename this...
5349 (mips_base_compression_flags): ...to this.
5350 (UMIPS_12BIT_OFFSET_P): New macro.
5351 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5352 (MULTILIB_DIRNAMES): Likewise.
5354 2013-02-24 Jakub Jelinek <jakub@redhat.com>
5357 * target-globals.c (save_target_globals): For init_reg_sets and
5358 target_reinit remporarily set this_fn_optabs to this_target_optabs.
5360 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
5362 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
5363 * config/aarch64/t-aarch64
5364 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
5366 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
5369 * lra-constraints.c (process_alt_operands): Reload operand
5370 conflicting with earlier clobber only if no more other conflicting
5373 2013-02-22 Jakub Jelinek <jakub@redhat.com>
5376 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
5377 if not linking a shared library.
5379 2013-02-22 Seth LaForge <sethml@google.com>
5381 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
5383 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
5385 * config/arm/arm.md (split for extendsidi): Update condition.
5386 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
5387 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
5388 (qhs_zextenddi_cstr): Likewise.
5390 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5393 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
5394 avoid signed wrapping.
5395 (expand_mult): Handle properly multiplication by
5396 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
5397 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
5398 in the compiler if coeff is HOST_WIDE_INT_MIN.
5399 (expand_divmod): Don't make ext_op1 static, change it's type to
5400 uhwi. Avoid undefined behavior in -INTVAL (op1).
5402 PR rtl-optimization/50339
5403 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
5405 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
5406 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
5407 into splitting_ashiftrt field.
5408 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
5410 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
5413 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
5416 * trans-mem.c (execute_tm_mark): Do not expand transactions that
5417 are sure to go irrevocable.
5419 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
5421 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
5422 scalars are valid operands.
5424 2013-02-21 Martin Jambor <mjambor@suse.cz>
5426 PR tree-optimization/56310
5427 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
5428 only matching indices and non-negative final offsets.
5429 (intersect_aggregates_with_edge): Pass src_idx to
5430 agg_replacements_to_vector. Pass src_idx insstead of index to
5431 intersect_with_agg_replacements.
5433 2013-02-21 Martin Jambor <mjambor@suse.cz>
5435 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
5436 instead of hard-wired defaults.
5438 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
5440 * doc/invoke.texi (MIPS Options): Update documentation of the
5441 floating-point multiply-accumulate instruction restrictions.
5443 2013-02-21 Kostya Serebryany <kcc@google.com>
5445 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
5446 asan_shadow_offset on x86_64 linux.
5448 2013-02-21 Richard Biener <rguenther@suse.de>
5450 PR tree-optimization/56415
5452 2013-02-11 Richard Biener <rguenther@suse.de>
5454 PR tree-optimization/56273
5455 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5458 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5461 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
5465 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
5466 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
5468 2013-02-20 Jan Hubicka <jh@suse.cz>
5470 PR tree-optimization/56265
5471 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
5472 when target is referenced for first time.
5474 2013-02-20 Richard Biener <rguenther@suse.de>
5476 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
5477 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
5478 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5479 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
5480 not return anything.
5481 (rename_ssa_copies): Do not remove unused locals.
5482 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
5483 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
5484 * passes.c (execute_function_todo): Do not schedule unused locals
5485 removal if cleanup_tree_cfg did something.
5486 * tree-ssa-live.c (remove_unused_locals): Dump statistics
5487 about the number of removed locals.
5489 2013-02-20 Richard Biener <rguenther@suse.de>
5491 PR tree-optimization/56398
5492 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
5494 2013-02-20 Martin Jambor <mjambor@suse.cz>
5496 PR tree-optimization/55334
5497 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
5498 restricted pointers to arrays.
5500 2013-02-20 Richard Biener <rguenther@suse.de>
5501 Jakub Jelinek <jakub@redhat.com>
5503 PR tree-optimization/56396
5504 * tree-ssa-ccp.c (n_const_val): New static variable.
5505 (get_value): Return NULL for SSA names we don't have a lattice
5507 (ccp_initialize): Initialize n_const_val.
5508 * tree-ssa-copy.c (n_copy_of): New static variable.
5509 (init_copy_prop): Initialize n_copy_of.
5510 (get_value): Return NULL_TREE for SSA names we don't have a
5513 2013-02-20 Martin Jambor <mjambor@suse.cz>
5515 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
5517 2013-02-20 Richard Biener <rguenther@suse.de>
5519 * genpreds.c (write_lookup_constraint): Do not compare first
5520 letter of the constraint again.
5522 2013-02-20 Richard Biener <rguenther@suse.de>
5524 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
5526 (get_use_iv_cost): Terminate hashtable walk when coming across
5529 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
5531 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
5532 reassociation for avx2 targets.
5534 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5536 * config/microblaze/microblaze.c: microblaze_has_clz = 0
5537 Add version check for v8.10.a to enable microblaze_has_clz
5538 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
5539 version and TARGET_PATTERN_COMPARE check
5540 * config/microblaze/microblaze.md: New clzsi2 instruction
5542 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5544 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
5545 function before branching.
5547 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
5549 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
5551 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
5553 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
5556 * sel-sched.c: Include ira.h.
5557 (implicit_clobber_conflict_p): New function.
5558 (moveup_expr): Use it.
5559 * Makefile.in (sel-sched.o): Depend on ira.h.
5561 2013-02-19 Richard Biener <rguenther@suse.de>
5563 PR tree-optimization/56384
5564 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
5565 (vn_hash_type): Split out from ...
5566 (vn_hash_constant_with_type): ... here.
5567 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
5568 (vn_phi_eq): Compare types from vn_phi_s structure.
5569 (vn_phi_lookup): Populate vn_phi_s type.
5570 (vn_phi_insert): Likewise.
5572 2013-02-19 Jakub Jelinek <jakub@redhat.com>
5574 PR tree-optimization/56350
5575 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
5576 if haven't found reduction or nested cycle operand, rather than
5577 asserting we must find it.
5579 PR tree-optimization/56381
5580 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
5583 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
5584 Jakub Jelinek <jakub@redhat.com>
5587 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
5588 (swap_optab_enable): Same.
5589 (init_all_optabs): Use argument instead of global.
5590 * tree.h (struct tree_optimization_option): New field target_optabs.
5591 * expr.h (init_all_optabs): Add argument to prototype.
5592 (TREE_OPTIMIZATION_OPTABS): New.
5593 (save_optabs_if_changed): Protoize.
5594 * optabs.h: Declare this_fn_optabs.
5595 * optabs.c (save_optabs_if_changed): New.
5596 Declare this_fn_optabs.
5597 (init_optabs): Add argument to init_all_optabs() call.
5598 * function.c (invoke_set_current_function_hook): Handle per
5600 * function.h (struct function): New field optabs.
5601 * config/mips/mips.c (mips_set_mips16_mode): Handle when
5602 optimization_current_node has changed.
5603 * target-globals.h (save_target_globals_default_opts): Protoize.
5604 * target-globals.c (save_target_globals_default_opts): New.
5606 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5609 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
5610 registers %fr12 and %fr12R as call used.
5613 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
5614 and HImode, require all displacements to be an integer multiple of
5616 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
5617 only allow QImode and HImode when reload is in progress and strict is
5618 true. Likewise for symbolic addresses. Use base14_operand to check
5619 displacements in REG+BASE addresses.
5621 2013-02-18 Richard Biener <rguenther@suse.de>
5623 PR tree-optimization/56366
5624 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5625 handle sign-conversion of outer-loop initial induction value.
5627 2013-02-18 Richard Biener <rguenther@suse.de>
5630 * cfghooks.c (merge_blocks): If we merge a latch into another
5631 block adjust references to it.
5632 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
5633 (verify_loop_structure): Verify that a recorded latch is in fact
5636 2013-02-18 Richard Biener <rguenther@suse.de>
5638 PR tree-optimization/56321
5639 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
5640 order SSA name release and virtual operand unlinking.
5642 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5644 * config/microblaze/microblaze.md (save_stack_block): Define.
5645 (restore_stack_block): Likewise.
5647 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5649 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
5650 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
5651 * config/microblaze/microblaze.c (microblaze_option_override):
5652 Bail out early for PIC modes when target does not support PIC.
5654 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5656 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
5657 Replace with a microblaze version.
5658 (microblaze_trampoline_init): Adapt for microblaze.
5659 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
5662 2013-02-16 Jakub Jelinek <jakub@redhat.com>
5663 Dodji Seketeli <dodji@redhat.com>
5666 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
5667 (instrument_mem_region_access): Do not forget to always put
5668 instrumentation of the of 'base' and 'base + len' in a "if (len !=
5669 0) statement, even for cases where either 'base' or 'base + len'
5670 are not instrumented -- because they have been previously
5671 instrumented. Simplify the logic by putting all the statements
5672 instrument 'base + len' inside a sequence, and then insert that
5673 sequence right before the current insertion point. Then, to
5674 instrument 'base + len', just get an iterator on that statement.
5675 And do not forget to update the pointer to iterator the function
5676 received as argument.
5678 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
5680 PR rtl-optimization/56348
5681 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
5683 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
5685 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
5686 (clean_graph_dump_file): Pass base to start_graph_dump.
5688 2013-02-14 Richard Henderson <rth@redhat.com>
5691 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
5693 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
5695 * collect2-aix.h: Define F_LOADONLY.
5697 2013-02-14 Richard Biener <rguenther@suse.de>
5700 * varasm.c (output_constant_def_1): Get the decl representing
5701 the constant as argument.
5702 (output_constant_def): Wrap output_constant_def_1.
5703 (make_decl_rtl): Use output_constant_def_1 with the decl
5704 representing the constant.
5705 (build_constant_desc): Optionally re-use a decl already
5706 representing the constant.
5707 (tree_output_constant_def): Adjust.
5709 2013-02-14 Dodji Seketeli <dodji@redhat.com>
5712 * asan.c (instrument_builtin_call): Really put the length of the
5713 second source argument into src1_len.
5715 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5717 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
5718 argument. If it is false, don't create edge from then_bb to
5720 (insert_if_then_before_iter): Pass true to it.
5721 (build_check_stmt): Pass false to it.
5722 (transform_statements): Flush hash table only on extended basic
5723 block boundaries, rather than at the beginning of every bb.
5724 Don't flush hash table on nonfreeing_call_p calls.
5725 * tree-flow.h (nonfreeing_call_p): New prototype.
5726 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
5728 2013-02-13 David S. Miller <davem@davemloft.net>
5730 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
5732 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
5735 * ira.c (max_regno_before_ira): Move from ...
5737 (fix_reg_equiv_init): Use max_regno_before_ira instead of
5740 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5742 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
5744 2013-02-13 Richard Biener <rguenther@suse.de>
5747 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
5748 globals in MEM_REFs.
5750 2013-02-13 Richard Biener <rguenther@suse.de>
5752 * loop-init.c (loop_optimizer_init): Clear loop state when
5753 re-initializing preserved loops.
5754 * loop-unswitch.c (unswitch_single_loop): Return whether
5755 we unswitched the loop. Do not verify loop state here.
5756 (unswitch_loops): When we unswitched a loop discover new loops.
5758 2013-02-13 Kostya Serebryany <kcc@google.com>
5760 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
5762 * sanitizer.def: Rename __asan_init to __asan_init_v1.
5764 2013-02-12 Dodji Seketeli <dodji@redhat.com>
5766 Avoid instrumenting duplicated memory access in the same basic block
5767 * Makefile.in (asan.o): Add new dependency on hash-table.h
5768 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
5769 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
5770 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
5771 (free_mem_ref_resources, has_mem_ref_been_instrumented)
5772 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
5773 (get_mem_ref_of_assignment): New functions.
5774 (get_mem_refs_of_builtin_call): Extract from
5775 instrument_builtin_call and tweak a little bit to make it fit with
5777 (instrument_builtin_call): Use the new
5778 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
5779 of is_gimple_builtin_call.
5780 (instrument_derefs, instrument_mem_region_access): Insert the
5781 instrumented memory reference into the hash table.
5782 (maybe_instrument_assignment): Renamed instrument_assignment into
5783 this, and change it to advance the iterator when instrumentation
5784 actually happened and return true in that case. This makes it
5785 homogeneous with maybe_instrument_assignment, and thus give a
5786 chance to callers to be more 'regular'.
5787 (transform_statements): Clear the memory reference hash table
5788 whenever we enter a new BB, when we cross a function call, or when
5789 we are done transforming statements. Use
5790 maybe_instrument_assignment instead of instrumentation. No more
5791 need to special case maybe_instrument_assignment and advance the
5792 iterator after calling it; it's now handled just like
5793 maybe_instrument_call. Update comment.
5795 2013-02-13 Richard Biener <rguenther@suse.de>
5797 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5798 Fix loop discovery code.
5800 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
5803 * lra-constraints.c (process_alt_operands): Match early clobber
5804 operand with itself. Check conflicts with earlyclobber only if
5805 the operand is not reloaded. Prefer to reload conflicting operand
5806 if earlyclobber and matching operands are the same.
5808 2013-02-12 Richard Biener <rguenther@suse.de>
5811 * lto-streamer-out.c (write_symbol): Do not output symbols
5812 for hard register variables.
5814 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
5817 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
5818 (umulsidi3_insn, mulsidi3_insn): New insns.
5820 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
5822 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
5823 (struct tune_params): Add vec_costs field.
5824 * config/arm/arm.c (arm_builtin_vectorization_cost)
5825 (arm_add_stmt_cost): New functions.
5826 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
5827 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
5828 (arm_default_vec_cost): New struct of type cpu_vec_costs.
5829 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
5830 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
5831 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
5832 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
5834 2013-02-12 Richard Biener <rguenther@suse.de>
5837 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
5838 decls again if possible.
5840 2013-02-12 Richard Biener <rguenther@suse.de>
5843 * tree-ssa.c (verify_ssa_name): Fix check, move
5844 SSA_NAME_IN_FREE_LIST check up.
5846 2013-02-12 Jakub Jelinek <jakub@redhat.com>
5847 Steven Bosscher <steven@gcc.gnu.org>
5849 PR rtl-optimization/56151
5850 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
5851 equal to op0 or op1, and last_insn pattern is CODE operation
5852 with MEM dest and one of the operands matches that MEM.
5854 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
5856 * doc/extend.texi: Document Function Multiversioning and "default"
5857 parameter string to target attribute.
5858 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
5859 target attribute parameter is "default".
5860 (ix86_compare_version_priority): Remove checks for target attribute.
5861 (ix86_mangle_function_version_assembler_name): Change error to sorry.
5862 Remove check for target attribute equal to NULL. Add assert.
5863 (ix86_generate_version_dispatcher_body): Change error to sorry.
5865 2013-02-11 Iain Sandoe <iain@codesourcery.com>
5866 Jack Howarth <howarth@bromo.med.uc.edu>
5867 Patrick Marlier <patrick.marlier@gmail.com>
5870 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
5871 define ENDFILE_SPEC as TM_DESTRUCTOR.
5872 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
5874 2013-02-11 Alexander Potapenko <glider@google.com>
5875 Jack Howarth <howarth@bromo.med.uc.edu>
5876 Jakub Jelinek <jakub@redhat.com>
5879 * config/darwin.c (cdtor_record): Rename ctor_record.
5880 (sort_cdtor_records): Rename sort_ctor_records.
5881 (finalize_dtors): New routine to sort destructors by
5882 priority before use in assemble_integer.
5883 (machopic_asm_out_destructor): Use finalize_dtors if needed.
5885 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
5887 PR rtl-optimization/56275
5888 * simplify-rtx.c (avoid_constant_pool_reference): Check that
5889 offset is non-negative and less than cmode size before
5890 calling simplify_subreg.
5892 2013-02-11 Richard Biener <rguenther@suse.de>
5894 PR tree-optimization/56264
5895 * cfgloop.h (fix_loop_structure): Adjust prototype.
5896 * loop-init.c (fix_loop_structure): Return the number of
5897 newly discovered loops.
5898 * tree-cfgcleanup.c (repair_loop_structures): When new loops
5899 are discovered, do a full loop-closed SSA rewrite.
5901 2013-02-11 Richard Biener <rguenther@suse.de>
5903 PR tree-optimization/56273
5904 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5906 (check_array_ref): Fix missing newline in dumps.
5907 (search_for_addr_array): Likewise.
5909 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
5911 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5913 2013-02-09 Jakub Jelinek <jakub@redhat.com>
5916 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5918 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
5920 PR rtl-optimization/56246
5921 * lra-constraints.c (simplify_operand_subreg): Try to reuse
5923 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5924 constraints are satisfied.
5926 2013-02-08 Jeff Law <law@redhat.com>
5929 * emit-rtl.c (reg_is_parm_p): New function.
5930 * regs.h (reg_is_parm_p): New prototype.
5931 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5932 callee-clobbered registers.
5934 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5937 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5938 If there is no implicit builtin declaration, just return NULL.
5940 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5942 * config/i386/sse.md (FMAMODEM): New mode iterator.
5943 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5944 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5946 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5948 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5949 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5950 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5952 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5954 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5955 (microblaze*-*-elf): Likewise.
5956 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5958 * config/microblaze/microblaze-c.c: Add builtin defines for
5959 _LITTLE_ENDIAN and _BIG_ENDIAN.
5960 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5961 add to TARGET_DEFAULT flags.
5962 Expand ASM_SPEC and LINK_SPEC.
5963 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5964 * config/microblaze/microblaze.md: Update extendsidi2 and
5965 movdi_internal instructions to use low-order / high-order reg
5967 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5968 options and inversemask / mask of LITTLE_ENDIAN.
5969 * config/microblaze/t-microblaze: Expand multilib options to
5970 include mlittle-endian (le) and update exceptions patterns.
5972 2013-02-08 Jakub Jelinek <jakub@redhat.com>
5974 PR rtl-optimization/56195
5975 * lra-constraints.c (get_reload_reg): Don't reuse regs
5976 if they have smaller mode than requested, if they have
5977 wider mode than requested, try to return a SUBREG.
5979 PR tree-optimization/56250
5980 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5981 if type is unsigned and code isn't MULT_EXPR.
5983 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5985 PR tree-optimization/56064
5986 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5987 bits according to mode.
5988 * fixed-value.h (fixed_from_double_int)
5989 (const_fixed_from_double_int): Adjust comments.
5991 2013-02-08 Richard Biener <rguenther@suse.de>
5994 * lto-streamer.h (struct data_in): Remove current_file, current_line
5995 and current_col members.
5996 * lto-streamer-out.c (lto_output_location): Stream changed bits
5997 en-block for efficiency.
5998 * lto-streamer-in.c (clear_line_info): Remove.
5999 (lto_input_location): Cache current file, line and column
6000 globally via local statics. Read changed bits en-block.
6001 (input_function): Do not call clear_line_info.
6002 (lto_read_body): Likewise.
6003 (lto_input_toplevel_asms): Likewise.
6005 2013-02-08 Michael Matz <matz@suse.de>
6007 PR tree-optimization/52448
6008 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
6009 (nt_call_phase): New static.
6010 (add_or_mark_expr): Only mark accesses with newer phase than any
6012 (nonfreeing_call_p): New.
6013 (nt_init_block): Update nt_call_phase, mark blocks as visited.
6014 (nt_fini_block): Keep blocks marked as visited.
6015 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
6017 2013-02-08 Richard Biener <rguenther@suse.de>
6019 * ira.c (ira): Free broken dominator information.
6021 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6023 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
6025 2013-02-08 Marek Polacek <polacek@redhat.com>
6027 * cfgloop.c (verify_loop_structure): Add more checking of headers.
6029 2013-02-08 Richard Biener <rguenther@suse.de>
6032 * cfgloop.h (flow_loops_find): Adjust.
6033 (bb_loop_header_p): Declare.
6034 * cfgloop.c (bb_loop_header_p): New function split out from ...
6035 (flow_loops_find): ... here. Adjust function signature,
6036 support incremental loop structure update.
6037 (verify_loop_structure): Cleanup. Verify a loop is a loop.
6038 * cfgloopmanip.c (fix_loop_structure): Move ...
6039 * loop-init.c (fix_loop_structure): ... here.
6040 (apply_loop_flags): Split out from ...
6041 (loop_optimizer_init): ... here.
6042 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
6043 in incremental mode, only remove dead loops here.
6045 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6048 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
6049 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
6050 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
6051 (*round<mode>3.libgcc): New insns for fixed-modes.
6052 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
6053 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
6054 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
6055 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
6056 implementations. Define to __builtin_avr_absFX,
6057 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
6058 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
6059 __builtin_avr_countlsFX, respectively.
6060 * config/avr/avr-c.c (target.h): Include it.
6061 (enum avr_builtin_id): New enum.
6062 (avr_resolve_overloaded_builtin): New static function.
6063 (avr_register_target_pragmas): Use it to set
6064 targetm.resolve_overloaded_builtin.
6065 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
6066 tree nodes used by DEF_BUILTIN.
6067 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
6068 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
6069 <AVR_BUILTIN_xxBITS>: Same.
6071 2013-02-08 Richard Biener <rguenther@suse.de>
6073 * cfgloop.c (verify_loop_structure): Properly handle
6074 a loop exiting to another loop header.
6075 * ira-int.h (ira_loops): Remove.
6076 * ira.c (ira_loops): Remove.
6077 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
6078 (do_reload): Use loop_optimizer_finalize.
6079 * ira-build.c (create_loop_tree_nodes): Use get_loops and
6080 number_of_loops to access the loop tree.
6081 (more_one_region_p): Likewise.
6082 (finish_loop_tree_nodes): Likewise.
6083 (rebuild_regno_allocno_maps): Likewise.
6084 (mark_loops_for_removal): Likewise.
6085 (mark_all_loops_for_removal): Likewise.
6086 (remove_unnecessary_regions): Likewise.
6087 (ira_build): Likewise.
6088 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6090 2013-02-08 Richard Biener <rguenther@suse.de>
6092 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
6093 * ipa-pure-const.c (analyze_function): Avoid calling
6094 mark_irreducible_loops twice.
6095 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
6097 2013-02-07 David S. Miller <davem@davemloft.net>
6099 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
6101 * var-tracking.c (vt_add_function_parameter): Test the presence of
6102 HAVE_window_save properly and do not remap argument registers when
6103 we have a leaf function.
6105 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
6108 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
6110 * config/i386/i386.c (ix86_print_operand): Ditto.
6112 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6114 * lra-constraints.c (process_alt_operands): Fix recently added comment.
6116 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6118 PR rtl-optimization/56225
6119 * lra-constraints.c (process_alt_operands): Check that reload hard
6120 reg can hold value for strict_low_part.
6122 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6125 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
6126 dwarf2out_end_function.
6127 (in_first_function_p, maybe_at_text_label_p,
6128 first_loclabel_num_not_at_text_label): New variables.
6129 (dwarf2out_var_location): In the first function find out
6130 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
6131 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
6134 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
6136 PR rtl-optimization/56178
6137 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
6138 SUBREG of a register. Tidy up related block of code.
6139 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
6140 note if the source is a register or a SUBREG of a register.
6142 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6145 * config/rs6000/rs6000.md (ptrm): New mode attr.
6146 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
6147 call_value_indirect_aix<pttrsize>,
6148 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
6151 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6153 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
6154 if -bnortl. Convert to strcmp and strncmp.
6156 2013-02-07 Alan Modra <amodra@gmail.com>
6159 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
6160 addresses won't wrap when offsetting.
6161 (rs6000_secondary_reload): Provide secondary reloads needed for
6162 wrapping LO_SUM addresses.
6164 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
6166 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
6167 MACH, just __MACH__.
6169 2013-02-06 Richard Biener <rguenther@suse.de>
6171 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
6172 instead of calling fix_loop_structure.
6174 2013-02-06 Jakub Jelinek <jakub@redhat.com>
6177 * omp-low.c (use_pointer_for_field): Return false if
6178 lower_send_shared_vars doesn't generate any copy-out code.
6180 2013-02-06 Tom de Vries <tom@codesourcery.com>
6182 PR rtl-optimization/56131
6183 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
6184 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
6185 of the label is NULL. Add comment.
6187 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6189 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
6192 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
6193 (STATIC_LIBTSAN_LIBS): Likewise.
6194 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
6195 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
6196 is defined, don't add anything else beyond that.
6197 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
6198 (LINK_COMMAND_SPEC): Use them.
6200 PR tree-optimization/56205
6201 * tree-stdarg.c (check_all_va_list_escapes): Return true if
6202 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
6203 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
6205 2013-02-05 Richard Biener <rguenther@suse.de>
6207 PR tree-optimization/53342
6208 PR tree-optimization/53185
6209 * tree-vectorizer.h (vect_check_strided_load): Remove.
6210 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
6211 not disallow peeling for vectorized strided loads.
6212 (vect_check_strided_load): Make static and simplify.
6213 (vect_analyze_data_refs): Adjust.
6214 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
6215 correctly when vectorizing strided loads.
6217 2013-02-05 Richard Biener <rguenther@suse.de>
6219 * doc/install.texi: Refer to ISL, not PPL.
6221 2013-02-05 Jan Hubicka <jh@suse.cz>
6223 PR tree-optimization/55789
6224 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
6226 2013-02-05 Jan Hubicka <jh@suse.cz>
6228 PR tree-optimization/55789
6229 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
6230 the dead call anyway.
6232 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
6235 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
6237 2013-02-04 Alexander Potapenko <glider@google.com>
6238 Jack Howarth <howarth@bromo.med.uc.edu>
6239 Jakub Jelinek <jakub@redhat.com>
6242 * config/darwin.c (sort_ctor_records): Stabilized qsort
6243 on constructor priority by using original position.
6244 (finalize_ctors): New routine to sort constructors by
6245 priority before use in assemble_integer.
6246 (machopic_asm_out_constructor): Use finalize_ctors if needed.
6248 2013-02-04 Jakub Jelinek <jakub@redhat.com>
6251 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
6252 about visibility on artificial decls.
6253 * config/sol2.c (solaris_assemble_visibility): Likewise.
6255 2013-02-04 Kai Tietz <ktietz@redhat.com>
6258 * config/i386/i386.c (function_value_ms_64): Add additional valtype
6259 argument and improve checking of return-argument types for 16-byte
6261 (ix86_function_value_1): Add additional valtype argument on call
6262 of function_value_64.
6263 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
6264 handling infunction_value_64 function.
6266 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6268 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
6270 2013-02-04 Richard Biener <rguenther@suse.de>
6272 PR tree-optimization/56188
6273 * tree-ssa-structalias.c (label_visit): Consider case with
6274 initially non-empty points-to set.
6275 (perform_var_substitution): Dump node mapping and clean up.
6277 2013-02-04 Richard Guenther <rguenther@suse.de>
6280 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
6281 node prevail as last resort.
6282 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6283 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
6285 2013-02-04 Richard Biener <rguenther@suse.de>
6287 PR tree-optimization/56113
6288 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
6290 (equiv_class_lookup_or_add): ... this.
6291 (label_visit): Adjust and fix error in previous patch.
6292 (perform_var_substitution): Adjust.
6294 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6296 * config/sh/divtab.c: Fix formatting and comments throughout the file.
6297 * config/sh/sh4-300.md: Likewise.
6298 * config/sh/sh4a.md: Likewise.
6299 * config/sh/constraints.md: Likewise.
6300 * config/sh/sh.md: Likewise.
6301 * config/sh/netbsd-elf.h: Likewise.
6302 * config/sh/predicates.md: Likewise.
6303 * config/sh/sh-protos.h: Likewise.
6304 * config/sh/ushmedia.h: Likewise.
6305 * config/sh/linux.h: Likewise.
6306 * config/sh/sh.c: Likewise.
6307 * config/sh/superh.h: Likewise.
6308 * config/sh/elf.h: Likewise.
6309 * config/sh/sh4.md: Likewise.
6310 * config/sh/sh.h: Likewise.
6312 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6314 * config/pa/constraints.md: Adjust unused letters. Change "T"
6315 constraint to match_test floating_point_store_memory_operand().
6316 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
6317 (base14_operand): New.
6318 (floating_point_store_memory_operand): New.
6319 (integer_store_memory_operand): Revise to use base14_operand and
6320 reg_plus_base_memory_operand.
6321 (move_dest_operand): Allow symbolic_memory_operands.
6322 (symbolic_memory_operand): Check for LO_SOM.
6323 (symbolic_operand): Change default case to break.
6324 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
6325 CONST_DOUBLE values to be reloaded by putting them into memory when
6326 the destination is a floating point register.
6327 (movdf): Remove code to handle CONST_DOUBLE.
6329 (reload_indf_r1): New.
6330 (reload_insf_r1): New.
6331 Consistently use "Q" and "T" constraints with integer and floating
6332 point move instructions, respectively.
6333 (movdi): Remove FAIL.
6334 Change predicate for source operand unamed DImode move from
6335 general_operand to move_src_operand.
6336 (umulsidi3): Change predicate for destination operand to
6338 Likewise for similar unamed patterns.
6339 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
6340 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
6341 (hppa_legitimize_address): Simplify mask calculation.
6342 (pa_emit_move_sequence): Revised handling of secondary reloads from
6343 REG+D addresses for floating point loads and stores. Directly handle
6344 loading CONST0_RTX (mode) to a floating point register.
6345 (pa_secondary_reload): Handle reloading DF and SFmode constant values
6346 to floating point registers. Don't restrict secondary reloads to
6347 floating point registers to integer modes. Revise some comments and
6349 (TARGET_LEGITIMATE_ADDRESS_P): Define.
6350 (pa_legitimate_address_p): New.
6351 (pa_legitimize_reload_address): New.
6352 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
6353 (STRICT_REG_OK_FOR_BASE_P): New.
6354 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
6355 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
6357 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
6358 Andrew Dixie <andrewd@gentrack.com>
6360 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
6363 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
6365 * expmed.c (extract_bit_field_1): Pass the full width of the
6366 structure to get_best_reg_extraction_insn.
6368 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6371 * configure.ac (use_cxa_atexit): Add AIX.
6372 * configure: Regenerate.
6374 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
6376 2013-02-01 Jakub Jelinek <jakub@redhat.com>
6379 * final.c (need_profile_function): New variable.
6380 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
6381 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
6382 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
6383 notes, targetm.asm_out.function_prologue doesn't emit anything,
6384 HAVE_prologue and profiler should be emitted before prologue,
6385 set need_profile_function instead of emitting it.
6386 (final_scan_insn): If need_profile_function, emit
6387 profile_function on the first NOTE_INSN_BASIC_BLOCK or
6388 NOTE_INSN_FUNCTION_BEG note.
6390 2013-02-01 Richard Henderson <rth@redhat.com>
6392 * config/rs6000/rs6000.md (smulditi3): New.
6395 * config/alpha/alpha.md (umulditi3): New.
6397 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6399 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
6400 (ASM_OUTPUT_ALIGNED_LOCAL): New.
6402 2013-02-01 Richard Biener <rguenther@suse.de>
6404 PR tree-optimization/56113
6405 * tree-ssa-structalias.c (label_visit): Reduce work for
6406 single-predecessor nodes.
6408 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
6410 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
6411 range isn't testing for zero.
6413 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
6416 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
6418 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
6419 Nick Clifton <nickc@redhat.com>
6421 * config/v850/constraints.md (Q): Define as a memory constraint.
6422 * config/v850/predicates.md (label_ref_operand): New predicate.
6423 (e3v5_shift_operand): New predicate.
6424 (ior_operator): New predicate.
6425 * config/v850/t-v850: Add e3v5 multilib.
6426 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
6427 (v850_gen_movdi): Prototype.
6428 * config/v850/v850.c: Add support for e3v5 architecture.
6429 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
6431 (construct_save_jarl): Add e3v5 long JARL support.
6432 (v850_adjust_insn_length): New function. Adjust length of call
6433 insns when using e3v5 instructions.
6434 (v850_gen_movdi): New function: Generate instructions to move a
6436 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
6437 (CPP_SPEC): Define __v850e3v5__ as appropriate.
6438 (TARGET_USE_FPU): Enable for e3v5.
6439 (CONST_OK_FOR_W): New macro.
6440 (ADJUST_INSN_LENGTH): Define.
6441 * config/v850/v850.md (UNSPEC_LOOP): Define.
6442 (attr cpu): Add v850e3v5.
6443 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6444 (movdi): New pattern.
6445 (movdi_internal): New pattern.
6446 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6447 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6448 (cstoresf4): Likewise.
6449 (cstoredf4): Likewise.
6450 (insv): New pattern.
6451 (rotlso3_a): New pattern.
6452 (rotlsi3_b): New pattern
6453 (rotlsi3_v850e3v5): New pattern.
6454 (doloop_begin): New pattern.
6455 (fix_loop_counter): New pattern.
6456 (doloop_end): New pattern.
6457 (branch_normal): Add e3v5 long branch support.
6458 (branch_invert): Likewise.
6459 (branch_z_normal): Likewise.
6460 (branch_z_invert): Likewise.
6461 (branch_nz_normal): Likewise.
6462 (branch_nz_invert): Likewise.
6463 (call_internal_short): Add e3v5 register-indirect JARL support.
6464 (call_internal_long): Likewise.
6465 (call_value_internal_short): Likewise.
6466 (call_value_internal_long): Likewise.
6467 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
6468 (mloop): New option.
6469 * config.gcc: Add support for configuring v840e3v5 target.
6470 * doc/invoke.texi: Document new v850 specific command line options.
6472 2013-01-31 Paul Koning <ni1d@arrl.net>
6476 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
6477 children if parent is a class.
6478 (prune_unused_types_prune): Don't add DW_AT_declaration.
6480 2013-01-31 Richard Biener <rguenther@suse.de>
6482 PR tree-optimization/56157
6483 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
6484 match up operand with SLP child.
6486 2013-01-31 Jason Merrill <jason@redhat.com>
6489 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
6490 parameters the first time.
6491 (gen_scheduled_generic_parms_dies): Check completeness here.
6493 2013-01-31 Richard Biener <rguenther@suse.de>
6496 * common.opt (faggressive-loop-optimizations): New flag,
6498 * doc/invoke.texi (faggressive-loop-optimizations): Document.
6499 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
6500 infer_loop_bounds_from_undefined by it.
6502 2013-01-31 Richard Biener <rguenther@suse.de>
6504 PR tree-optimization/56150
6505 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
6506 visit virtual operands.
6507 (find_uses_to_rename_bb): Likewise.
6509 2013-01-31 Richard Biener <rguenther@suse.de>
6511 PR tree-optimization/56150
6512 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
6513 mixed store non-store stmts.
6515 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6518 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
6519 LIBASAN_EARLY_SPEC is defined.
6520 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
6521 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
6523 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
6526 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
6527 invalid args instead of ICEing on it.
6528 (ix86_valid_target_attribute_tree): Return error_mark_node if
6529 ix86_valid_target_attribute_inner_p failed.
6530 (ix86_valid_target_attribute_p): Return false only if
6531 ix86_valid_target_attribute_tree returned error_mark_node. Allow
6532 target("default") attribute.
6533 (sorted_attr_string): Change argument from const char * to tree,
6534 merge in all target attribute arguments rather than just one.
6535 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
6536 instead of free. Avoid using strcat.
6537 (ix86_mangle_function_version_assembler_name): Mangle
6538 target("default") as if no target attribute is present. Adjust
6539 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
6540 instead of xmalloc and XDELETEVEC instead of free.
6541 (ix86_function_versions): Don't return true if one of the decls
6542 doesn't have target attribute. If they don't and one of the decls
6543 is DECL_FUNCTION_VERSIONED, report an error. Adjust
6544 sorted_attr_string caller. Use XDELETEVEC instead of free.
6545 (ix86_supports_function_versions): Remove.
6546 (make_name): Fix up formatting.
6547 (make_dispatcher_decl): Remove resolver_name and its initialization.
6548 Avoid leaking memory.
6549 (is_function_default_version): Return true if there is
6550 target("default") attribute rather than no target attribute at all.
6551 (make_resolver_func): Avoid leaking memory.
6552 (ix86_generate_version_dispatcher_body): Likewise.
6553 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
6554 * target.def (supports_function_versions): Remove.
6555 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
6556 * doc/tm.texi: Regenerated.
6558 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
6560 PR rtl-optimization/56144
6561 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
6562 for values with side effects.
6564 2013-01-30 Richard Biener <rguenther@suse.de>
6566 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
6567 (sparseset_pop): Likewise.
6568 * cfganal.c (compute_idf): Likewise. Increase work-stack size
6569 to be able to use quick_push in the worker loop.
6571 2013-01-30 Marek Polacek <polacek@redhat.com>
6573 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
6575 2013-01-30 Richard Biener <rguenther@suse.de>
6578 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
6580 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
6582 PR tree-optimization/56064
6583 * fixed-value.c (fixed_from_double_int): New function.
6584 * fixed-value.h (fixed_from_double_int): New prototype.
6585 (const_fixed_from_double_int): New static inline function.
6586 * fold-const.c (native_interpret_fixed): New static function.
6587 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
6588 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
6589 (native_encode_fixed): New static function.
6590 (native_encode_expr) <FIXED_CST>: Use it.
6591 (native_interpret_int): Move double_int worker code to...
6592 * double-int.c (double_int::from_buffer): ...this new static method.
6593 * double-int.h (double_int::from_buffer): Prototype it.
6595 2013-01-30 Richard Biener <rguenther@suse.de>
6597 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
6598 New pointer-map and obstack.
6599 (init_alias_vars): Allocate pointer-map and obstack.
6600 (delete_points_to_sets): Free them.
6601 (find_what_var_points_to): Cache result.
6602 (find_what_p_points_to): Adjust for changed interface of
6603 find_what_var_points_to.
6604 (compute_points_to_sets): Likewise.
6605 (ipa_pta_execute): Likewise.
6607 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6609 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
6610 * configure: Regenerate.
6611 * config.in: Regenerate.
6612 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
6613 #nobits/#progbits if supported.
6615 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
6618 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
6619 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
6620 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
6622 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6624 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
6625 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
6627 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6629 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
6630 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
6632 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6634 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
6636 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
6637 * config/arm/cortex-a7.md: New bypasses using
6638 arm_mac_accumulator_is_result.
6640 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6642 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
6643 (cortex_a7_neon_mla): Likewise.
6644 (cortex_a7_fpfmad): New reservation.
6645 (cortex_a7_fpmacs): Use ffmas and update required units.
6646 (cortex_a7_fpmuld): Update required units and latency.
6647 (cortex_a7_fpmacd): Likewise.
6648 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
6649 (cortex_a7_neon). Likewise.
6650 (bypass) Update participating units.
6652 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6654 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
6655 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
6657 * config/arm/vfp11.md (vfp_farith): Use ffmas.
6658 (vfp_fmul): Use ffmad.
6659 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
6660 (cortex_r4_fmacd): Use ffmad.
6661 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
6662 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
6663 (cortex_a9_fmacd): Use ffmad.
6664 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
6665 (cortex_a8_vfp_macd): Use ffmad.
6666 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
6667 (cortex_a5_fpmacd): Use ffmad.
6668 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
6669 (cortex_a15_vfp_macd): Use ffmad.
6670 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
6672 2013-01-29 Jason Merrill <jason@redhat.com>
6675 * varasm.c (default_assemble_visibility): Don't warn about
6676 visibility on artificial decls.
6678 2013-01-29 Richard Biener <rguenther@suse.de>
6680 PR tree-optimization/56113
6681 * tree-ssa-structalias.c (equiv_class_lookup): Also return
6683 (label_visit): Free duplicate bitmaps and record the leader instead.
6684 (perform_var_substitution): Adjust.
6686 2013-01-29 Richard Biener <rguenther@suse.de>
6688 PR tree-optimization/55270
6689 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
6690 the CFG, schedule loops for fixup.
6692 2013-01-29 Nick Clifton <nickc@redhat.com>
6694 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
6697 2013-01-28 Leif Ekblad <leif@rdos.net>
6699 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
6700 * config/i386/i386.h (TARGET_RDOS): New macro.
6701 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
6702 * config/i386/i386.c (ix86_option_override_internal): For 64bit
6703 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
6704 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
6705 DEFAULT_LARGE_SECTION_THRESHOLD.
6706 * config/i386/i386.md (R14_REG, R15_REG): New constants.
6707 * config/i386/rdos.h: New file.
6708 * config/i386/rdos64.h: New file.
6710 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
6713 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
6716 2013-01-28 Jakub Jelinek <jakub@redhat.com>
6718 PR rtl-optimization/56117
6719 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
6720 call cselib_lookup_from_insn on the MEM before calling
6721 add_insn_mem_dependence.
6723 2013-01-28 Richard Biener <rguenther@suse.de>
6725 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
6726 to a stmt that didn't have one.
6727 (copy_phis_for_bb): Likewise for PHI arguments.
6728 (copy_debug_stmt): Likewise for debug stmts.
6730 2013-01-28 Richard Biener <rguenther@suse.de>
6732 PR tree-optimization/56034
6733 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
6734 (partition_builtin_p): Adjust.
6735 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
6736 it is the last partition.
6737 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
6738 up the vertex for the definition.
6739 (classify_partition): Classify whether a partition is a
6740 PKIND_REDUCTION, thus has uses outside of the loop.
6741 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
6742 Merge all PKIND_REDUCTION partitions into the last partition.
6743 (tree_loop_distribution): Seed partitions from reductions as well.
6745 2013-01-28 Jakub Jelinek <jakub@redhat.com>
6747 PR tree-optimization/56125
6748 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
6749 pow(x,c) into sqrt(x) * powi(x, n/2) or
6750 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
6751 optimizing for size.
6752 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
6753 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
6756 PR tree-optimization/56094
6757 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
6758 to UNKNOWN_LOCATION while gimplifying expr.
6760 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
6763 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
6764 operand 0 in movabs insn template for -masm=intel asm alternative.
6765 (*movabs<mode>_2): Ditto for operand 1.
6767 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
6770 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
6773 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6775 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
6778 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6780 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
6781 Undef to avoid warning.
6783 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6785 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
6786 * configure: Regenerate.
6788 2013-01-25 Jakub Jelinek <jakub@redhat.com>
6790 PR tree-optimization/56098
6791 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
6792 for stmts with volatile ops.
6793 (cond_store_replacement): Don't optimize if assign has volatile ops.
6794 (cond_if_else_store_replacement_1): Don't optimize if either
6795 then_assign or else_assign have volatile ops.
6796 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
6799 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6801 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
6803 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6805 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
6806 missing ':' in asm example.
6808 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
6810 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
6811 entries into lane and laneq entries.
6812 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
6813 Remove AdvSIMD scalar modes.
6814 (aarch64_sq<r>dmulh_laneq<mode>): New.
6815 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
6817 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
6818 builtin implementations to relfect changes in RTL in aarch64-simd.md.
6819 * config/aarch64/iterators.md (VCOND): New.
6822 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6825 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
6826 Add NULL LIBNAME argument to existing definitions.
6827 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
6828 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
6829 * config/avr/avr.c (DEF_BUILTIN): Same.
6830 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
6831 (avr_expand_builtin): Expand to a vanilla call if a libgcc
6832 implementation is available (DECL_ASSEMBLER_NAME is set).
6833 (avr_fold_absfx): New static function.
6834 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
6835 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
6836 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
6838 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
6839 (abshk, absk, abslk, absllk): Provide as static inline functions.
6841 2013-01-25 Marek Polacek <polacek@redhat.com>
6843 PR tree-optimization/56035
6844 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
6846 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
6848 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
6849 (*movtf_internal_rex64): Add (!o,C) alternative
6850 (*movxf_internal_rex64): Ditto.
6851 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
6853 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
6855 * doc/invoke.texi: fix typo.
6856 * doc/objc.texi: fix typo.
6858 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6860 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
6861 for the first two alternatives.
6863 2013-01-24 Diego Novillo <dnovillo@google.com>
6865 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
6866 (ggc-zone.o): Remove.
6867 * configure.ac: Remove option --with-gc.
6868 * configure: Re-generate.
6869 * doc/install.texi: Remove documentation for --with-gc.
6870 * gengtype.c (write_enum_defn): Remove. Update all users.
6871 (write_Types_process_field): Remove generation of gt_e_* argument.
6872 (output_type_enum): Remove. Update all users.
6873 (write_enum_defn): Remove. Update all users.
6874 (enum alloc_zone): Remove. Update all users.
6875 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
6876 * ggc-common.c (ggc_splay_alloc): Remove first argument.
6878 (struct ptr_data): Remove field TYPE. Update all users.
6879 (gt_pch_note_object): Remove argument TYPE. Update all users.
6880 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
6882 * ggc-none.c (ggc_alloc_typed_stat): Remove.
6883 (struct alloc_zone): Remove.
6884 (ggc_internal_alloc_zone_stat): Remove.
6885 (ggc_internal_cleared_alloc_zone_stat): Remove.
6886 * ggc-page.c (ggc_alloc_typed_stat): Remove.
6887 (ggc_pch_count_object): Remove last argument. Update all users.
6888 (ggc_pch_alloc_object): Remove last argument. Update all users.
6889 (struct alloc_zone): Remove.
6890 * ggc-zone.c: Remove.
6891 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
6892 (struct alloc_zone): Remove.
6893 (ggc_alloc_typed_stat): Remove.
6894 (ggc_alloc_typed): Remove.
6895 (ggc_splay_alloc): Remove first argument.
6896 (rtl_zone): Remove. Update all users.
6897 (tree_zone): Remove. Update all users.
6898 (tree_id_zone): Remove. Update all users.
6899 (ggc_internal_zone_alloc_stat): Remove. Update all users.
6900 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
6901 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
6902 * tree-ssanames.c: Remove references to zone allocator in comments.
6904 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
6906 * config/avr/avr.c (avr_out_fract): Make register numbers that
6907 might be outside of source operand signed.
6909 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
6911 * config/i386/constraints.md (Yf): New constraint.
6912 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6913 of f constraint to conditionaly disable x87 register preferences.
6914 (*movdf_internal): Ditto.
6915 (*movsf_internal): Ditto.
6917 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
6920 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6921 that have operands with impossible constraints.
6922 Add a FIXME for a speed-up opportunity.
6923 * lra-constraints.c (process_alt_operands): Verify that a class
6924 selected from constraints on asms is valid for the operand mode.
6925 (curr_insn_transform): Remove incorrect comment.
6927 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
6929 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6930 TOC operand is a valid symbol ref in the constant pool.
6932 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6934 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6936 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
6939 * config/avr/stdfix.h: New file.
6940 * t-avr (stdfix-gcc.h): New rule to build it.
6941 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6943 2013-01-23 Kostya Serebryany <kcc@google.com>
6945 * config/darwin.h: remove dependency on
6946 CoreFoundation (asan on Mac OS).
6948 2013-01-23 Jakub Jelinek <jakub@redhat.com>
6951 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6952 instead of cmpdi_operand for first comparison operand.
6953 Don't assert that comparison operands aren't both constants.
6955 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6957 * doc/install.texi (Downloading the Source): Update references to
6958 downloading separate components.
6960 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6962 * doc/extend.texi (__int128): Improve grammar.
6964 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
6967 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6968 alternative to (o,r).
6969 (*movdi_internal_rex64): Remove (!o,n) alternative.
6970 (DImode immediate->memory splitter): Remove.
6971 (DImode immediate->memory peephole2): Remove.
6972 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6973 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6974 alternative to (!o,*r).
6975 (*movtf_internal_sse): New pattern.
6976 (*movxf_internal_rex64): New pattern.
6977 (*movxf_internal): Disable for TARGET_64BIT.
6978 (*movdf_internal_rex64): Remove (!o,F) alternative.
6980 2013-01-22 Jakub Jelinek <jakub@redhat.com>
6983 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6984 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6985 * tree-vect-loop-manip.c (find_loop_location): Also ignore
6986 stmt locations where LOCATION_LOCUS of the stmt location is
6987 UNKNOWN_LOCATION or BUILTINS_LOCATION.
6990 * config/i386/i386.md (UNSPEC_STOS): New.
6991 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6992 *strsetqi_1): Add UNSPEC_STOS.
6994 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
6997 * doc/invoke.texi: Remove left over -Wsynth example.
6999 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7001 PR tree-optimization/56051
7002 * fold-const.c (fold_binary_loc): Don't fold
7003 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
7004 a narrowing conversion, or widening conversion from signed
7007 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7009 PR rtl-optimization/56023
7010 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
7011 dependent on debug instruction.
7013 2013-01-21 Martin Jambor <mjambor@suse.cz>
7016 * function.c (allocate_struct_function): Call
7017 invoke_set_current_function_hook earlier.
7019 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7021 * reload1.c (init_reload): Only initialize reload_obstack
7022 during the first call.
7024 2013-01-21 Marek Polacek <polacek@redhat.com>
7026 * cfgloop.c (verify_loop_structure): Fix up grammar.
7028 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
7030 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
7031 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
7033 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7036 * config/arm/marvell-pj4.md: Update copyright year.
7037 Fix up use of alu to alu_reg and simple_alu_imm.
7039 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7041 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
7043 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
7046 * lra-constraints.c (curr_insn_transform): Don't reuse original
7047 insn for secondary memory move when memory mode should be different.
7049 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7051 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
7052 atomic_storedi_1): New patterns.
7054 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7056 btver2 pipeline descriptions.
7057 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
7059 * config/i386/i386.md (btver2_decode): New type attributes.
7060 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
7062 * config/i386/btver2.md: New file describing btver2 pipelines.
7064 2013-01-19 Andrew Pinski <apinski@cavium.com>
7066 PR tree-optimization/52631
7067 * tree-ssa-sccvn (visit_use): Before looking up the original
7068 statement, try looking up the simplified expression.
7070 2013-01-19 Anthony Green <green@moxielogic.com>
7072 * config/moxie/moxie.c (moxie_expand_prologue): Set
7073 current_function_static_stack_size.
7075 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7077 PR tree-optimization/56029
7078 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
7079 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
7081 2013-01-18 Sharad Singhai <singhai@google.com>
7083 PR tree-optimization/55995
7084 * dumpfile.c (dump_loc): Print location only if available.
7085 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
7087 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
7090 * lra-constraints.c (curr_insn_transform): Reuse original insn for
7091 secondary memory move.
7092 (inherit_reload_reg): Use rclass instead of cl for
7093 check_secondary_memory_needed_p.
7095 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7098 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
7099 the case where writing real complex part of target modifies op1.
7101 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
7103 * config/aarch64/aarch64-simd.md
7104 (aarch64_vcond_internal<mode>): Handle unordered cases.
7105 * config/aarch64/iterators.md (v_cmp_result): New.
7107 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
7108 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7110 * config/arm/marvell-pj4.md: New file.
7111 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
7112 * config/arm/arm.md (generic_sched): Add marvell_pj4.
7113 (generic_vfp): Likewise.
7114 * config/arm/arm-cores.def: Add marvell-pj4.
7115 * config/arm/arm-tune.md: Regenerate.
7116 * config/arm/arm-tables.opt: Regenerate.
7117 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
7118 * doc/invoke.texi: Document marvell-pj4.
7120 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
7122 * config/aarch64/arm_neon.h: Map scalar types to standard types.
7124 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7129 * var-tracking.c (negative_power_of_two_p): New.
7130 (global_get_addr_cache, local_get_addr_cache): New.
7131 (get_addr_from_global_cache, get_addr_from_local_cache): New.
7132 (vt_canonicalize_addr): Rewrite using the above. Adjust the
7134 (vt_stack_offset_p): Remove.
7135 (vt_canon_true_dep): Always canonicalize loc's address.
7136 (clobber_overlapping_mems): Make sure we have a MEM.
7137 (local_get_addr_clear_given_value): New.
7138 (val_reset): Clear local cached entries.
7139 (compute_bb_dataflow): Create and release the local cache.
7140 Disable duplicate MEMs clobbering.
7141 (emit_notes_in_bb): Clobber MEMs likewise.
7142 (vt_emit_notes): Create and release the local cache.
7143 (vt_initialize, vt_finalize): Create and release the global
7144 cache, respectively.
7145 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
7147 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7150 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
7151 not found in the symtab.
7153 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7156 PR rtl-optimization/55547
7157 PR rtl-optimization/53827
7160 * alias.c (offset_overlap_p): New, factored out of...
7161 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
7162 the conservative special case for symbolic constants. Don't
7163 adjust zero sizes on alignment.
7165 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
7167 PR rtl-optimization/52573
7168 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
7169 REG_UNUSED for the same register.
7171 2013-01-17 Richard Biener <rguenther@suse.de>
7172 Marek Polacek <polacek@redhat.com>
7174 PR rtl-optimization/55833
7175 * loop-unswitch.c (unswitch_loops): Move loop verification...
7176 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
7177 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
7178 Set it to true when we're removing a loop from hierarchy tree in
7179 an irreducible region.
7180 (fix_bb_placements): Adjust caller.
7181 (fix_loop_placements): Likewise.
7183 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
7185 * config/avr/builtins.def (DEF_BUILTIN): Factor out
7186 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
7187 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
7188 Remove ID. Adjust comments.
7189 * config/avr/avr-c.c (avr_builtin_name): Remove.
7190 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
7191 * config/avr/avr.c (avr_tolower): New static function.
7192 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
7193 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
7194 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
7197 2013-01-17 Jan Hubicka <jh@suse.cz>
7199 PR tree-optimization/55273
7200 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
7202 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
7205 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
7206 store through atomic_store<mode>_1.
7207 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
7209 2013-01-17 Martin Jambor <mjambor@suse.cz>
7211 PR tree-optimizations/55264
7212 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
7213 for virtual methods.
7214 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
7215 virtual methods before inlining is over.
7216 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
7218 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
7221 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
7223 PR rtl-optimization/56005
7224 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
7225 pending reads for prefetch.
7227 2013-01-16 Ian Bolton <ian.bolton@arm.com>
7229 * config/aarch64/aarch64.md
7230 (*cstoresi_neg_uxtw): New pattern.
7231 (*cmovsi_insn_uxtw): New pattern.
7232 (*<optab>si3_uxtw): New pattern.
7233 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
7234 (*<optab>si3_insn_uxtw): New pattern.
7235 (*bswapsi2_uxtw): New pattern.
7237 2013-01-16 Richard Biener <rguenther@suse.de>
7239 * tree-inline.c (tree_function_versioning): Remove set but
7240 never used variable.
7242 2013-01-16 Richard Biener <rguenther@suse.de>
7244 PR tree-optimization/55964
7245 * tree-flow.h (rename_variables_in_loop): Remove.
7246 (rename_variables_in_bb): Likewise.
7247 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
7248 (copy_loop_before): Adjust and delete update-ssa status.
7249 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
7250 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
7251 (rename_variables_in_loop): Remove.
7252 (slpeel_update_phis_for_duplicate_loop): Likewise.
7253 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
7254 use available cfg machinery instead of duplicating it.
7255 Update PHI nodes and perform poor-mans SSA update here.
7256 (slpeel_tree_peel_loop_to_edge): Adjust.
7258 2013-01-16 Richard Biener <rguenther@suse.de>
7260 PR tree-optimization/54767
7261 PR tree-optimization/53465
7262 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
7263 (vrp_visit_phi_node): For PHI arguments coming via backedges
7264 drop all symbolical range information.
7265 (execute_vrp): Compute backedges.
7267 2013-01-16 Richard Biener <rguenther@suse.de>
7269 * doc/install.texi: Update CLooG and ISL requirements to
7272 2013-01-16 Christian Bruel <christian.bruel@st.com>
7275 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
7276 (broken_move): Handle UNSPECV_SP_SWITCH_B.
7277 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
7279 2013-01-16 DJ Delorie <dj@redhat.com>
7281 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7282 (UNSPECV_SP_SWITCH_E): New.
7283 (sp_switch_1): Change to an unspec.
7284 (sp_switch_2): Change to an unspec. Don't use post-inc when we
7287 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
7289 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
7290 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
7291 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
7292 (expand_mem_thread_fence): Ditto.
7293 (expand_mem_signal_fence): Ditto.
7294 (expand_atomic_load): Ditto.
7295 (expand_atomic_store): Ditto.
7297 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
7299 PR rtl-optimization/55547
7300 PR rtl-optimization/53827
7303 * alias.c (memrefs_conflict_p): Set sizes to negative after
7306 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7309 * function.c (thread_prologue_and_epilogue_insns): Always
7310 add crtl->drap_reg to set_up_by_prologue.set, even if
7311 stack_realign_drap is false.
7313 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7315 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
7316 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
7317 *call): Fix indention.
7319 2013-01-15 Tom de Vries <tom@codesourcery.com>
7322 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
7325 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
7327 PR rtl-optimization/55153
7328 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
7330 2013-01-15 Martin Jambor <mjambor@suse.cz>
7332 PR tree-optimization/55920
7333 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
7334 accesses as grp_to_be_debug_replaced.
7336 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7338 PR tree-optimization/55920
7339 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
7340 there is non-useless type conversion needed from debug rhs to lhs,
7341 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
7343 2013-01-15 Joseph Myers <joseph@codesourcery.com>
7344 Mikael Pettersson <mikpe@it.uu.se>
7347 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
7349 (ASM_OUTPUT_CASE_LABEL): Remove.
7350 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
7351 * final.c (shorten_branches): Update alignment of labels before
7352 jump tables if CASE_VECTOR_SHORTEN_MODE.
7354 2013-01-15 Richard Biener <rguenther@suse.de>
7357 * system.h: Do not include gmp.h for building host tools.
7359 2013-01-15 Richard Biener <rguenther@suse.de>
7362 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
7363 account for bitpos when computing alignment.
7365 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
7367 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
7368 (ix86_target_macros_internal): Likewise.
7370 * config/i386/i386.c (m_CORE2I7): Removed.
7371 (m_CORE_HASWELL): New macro.
7372 (m_CORE_ALL): Likewise.
7373 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
7374 (initial_ix86_arch_features): Likewise.
7375 (processor_target_table): Initializations for Core avx2.
7376 (cpu_names): New names "core-avx2".
7377 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
7378 PROCESSOR_CORE_HASWELL.
7379 (ix86_issue_rate): New case.
7380 (ia32_multipass_dfa_lookahead): Likewise.
7381 (ix86_sched_init_global): Likewise.
7383 * config/i386/i386.h (TARGET_HASWELL): New macro.
7384 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
7385 (processor_type): New PROCESSOR_HASWELL.
7387 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7389 PR tree-optimization/55955
7390 * tree-vect-loop.c (vectorizable_reduction): Give up early on
7391 *SHIFT_EXPR and *ROTATE_EXPR codes.
7393 PR tree-optimization/48766
7394 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
7395 -ftrapv disable -fwrapv.
7397 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7400 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
7401 etc. to 1 and not to __flash.
7402 Use LL suffix for __INT24_MAX__ with -mint8.
7403 Use ULL suffix for __UINT24_MAX__ with -mint8.
7405 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7407 * config/avr/avr-arch.h
7408 (struct base_arch_s): Use typedef avr_arch_t instead.
7409 (struct arch_info_s): Use typedef avr_arch_info_t instead.
7410 (struct mcu_type_s): Use typedef avr_mcu_t instead.
7411 * config/avr/avr.c: Same.
7412 * config/avr/avr-devices.c: Same.
7413 * config/avr/driver-avr.c: Same.
7414 * config/avr/gen-avr-mmcu-texi.c: Same.
7415 * config/avr/avr-mcus.def: Adjust comment.
7417 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
7419 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
7420 * config/aarch64/iterators.md (VALLDI): New.
7422 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
7423 Andi Kleen <ak@linux.intel.com>
7426 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
7427 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
7430 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7432 * config/avr/avr-stdint.h: Remove trailing blanks.
7433 * config/avr/avr-log.h: Same.
7434 * config/avr/avr-arch.h: Same.
7435 * config/avr/avr-devices.c: Same.
7436 * config/avr/avr-dimode.md: Same.
7437 * config/avr/predicates.md: Same.
7438 * config/avr/avr-c.c: Same. And fix typo.
7440 * config/avr/avr-protos.h: Same. And:
7441 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
7442 (init_cumulative_args): Rename to avr_init_cumulative_args.
7443 (expand_prologue): Rename to avr_expand_prologue.
7444 (expand_epilogue): Rename to avr_expand_epilogue.
7445 (adjust_insn_length): Rename to avr_adjust_insn_length.
7446 (notice_update_cc): Rename to avr_notice_update_cc.
7447 (final_prescan_insn): Rename to avr_final_prescan_insn.
7448 * config/avr/avr.c: Same.
7449 * config/avr/avr.h: Same.
7450 * config/avr/avr.md: Remove trailing blanks.
7451 (prologue): Use avr_expand_prologue.
7452 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
7454 2013-01-14 Richard Biener <rguenther@suse.de>
7456 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
7457 verify_location, collect_subblocks): New functions.
7458 (verify_gimple_in_cfg): Verify that locations only reference
7459 BLOCKs in the functions BLOCK tree.
7461 2013-01-14 Richard Biener <rguenther@suse.de>
7463 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
7465 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
7467 (insert_out_of_ssa_copy_on_edge): Likewise.
7468 (rewrite_close_phi_out_of_ssa): Likewise.
7469 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
7471 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
7472 propagated constants.
7473 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
7476 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7478 * config/avr/avr-modes.def: Add GPL copyright notice.
7480 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
7482 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
7483 MEMMODEL_MASK to determine memory model.
7484 (atomic_store<mode>): Ditto from operands[2].
7485 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
7487 2013-01-13 Jakub Jelinek <jakub@redhat.com>
7490 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
7491 (fold_gimple_assign): Don't call unshare_expr here.
7492 (fold_ctor_reference): Call unshare_expr.
7494 2013-01-13 Terry Guo <terry.guo@arm.com>
7496 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
7497 * doc/fragments.texi: Document MULTILIB_REUSE.
7498 * gcc.c (multilib_reuse): New internal spec.
7499 (set_multilib_dir): Also search multilib from multilib_reuse.
7500 * genmultilib (tmpmultilib3): Refactor code.
7501 (tmpmultilib4): Ditto.
7502 (multilib_reuse): New multilib argument.
7504 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
7506 * Makefile.in: Update copyright.
7508 2013-01-12 Tom de Vries <tom@codesourcery.com>
7511 * calls.c (expand_call): Check if arg_nr is valid.
7513 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7515 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
7516 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
7517 documentation. Add missing '__' in front of
7518 __builtin_ia32_packssdw256.
7520 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7523 * config/s390/s390.c (s390_preferred_reload_class): Do not return
7524 NO_REGS for larl operands.
7525 (s390_reload_larl_operand): Use s390_load_address instead of
7528 2013-01-11 Richard Biener <rguenther@suse.de>
7530 * tree-cfg.c (verify_node_sharing_1): Split out from ...
7531 (verify_node_sharing): ... here.
7532 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
7534 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
7536 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
7537 Substitute TREECHECKING.
7538 * configure: Regenerate.
7539 * Makefile.in (TREECHECKING): New.
7541 2013-01-11 Richard Guenther <rguenther@suse.de>
7543 PR tree-optimization/44061
7544 * tree-vrp.c (extract_range_basic): Compute zero as
7545 value-range for __builtin_constant_p of function parameters.
7547 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
7549 Update copyright years.
7551 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
7553 PR rtl-optimization/55672
7554 * lra-eliminations.c (mark_not_eliminable): Permit addition with
7555 const to be eliminable.
7557 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
7559 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
7560 * configure: Regenerate.
7562 2013-01-10 Richard Biener <rguenther@suse.de>
7564 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
7566 2013-01-10 Richard Biener <rguenther@suse.de>
7569 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
7570 locations for virtual PHI arguments.
7571 (rewrite_update_phi_arguments): Likewise.
7573 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
7575 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
7578 2013-01-10 Jakub Jelinek <jakub@redhat.com>
7580 PR tree-optimization/55921
7581 * tree-complex.c (expand_complex_asm): New function.
7582 (expand_complex_operations_1): Call it for GIMPLE_ASM.
7584 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7587 * config/s390/s390.c (s390_symref_operand_p)
7588 (s390_loadrelative_operand_p): Merge the two functions.
7589 (s390_check_qrst_address, print_operand_address): Add parameters
7590 to s390_loadrelative_operand_p invokation.
7591 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
7592 (s390_reload_larl_operand, s390_secondary_reload): Use
7593 s390_loadrelative_operand_p instead of s390_symref_operand_p.
7594 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
7596 2013-01-09 Mike Stump <mikestump@comcast.net>
7598 * dse.c (record_store): Remove unnecessary assert.
7600 2013-01-09 Jan Hubicka <jh@suse.cz>
7602 PR tree-optimization/55569
7603 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
7604 * cfgloop.h (scale_loop_profile): Likewise.
7606 2013-01-09 Jan Hubicka <jh@suse.cz>
7609 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
7611 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
7613 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
7616 * expr.h (maybe_emit_group_store): Declare.
7617 * expr.c (maybe_emit_group_store): New function.
7618 * builtins.c (expand_builtin_int_roundingfn): Call it.
7619 (expand_builtin_int_roundingfn_2): Likewise.
7621 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
7623 PR rtl-optimization/55829
7624 * lra-constraints.c (match_reload): Add code for absent output.
7625 (curr_insn_transform): Add code for reloads of matched inputs
7628 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
7630 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
7631 attribute of movddup insn to DF.
7632 (*vec_interleave_lowv2df): Ditto.
7633 (vec_dupv2df): Ditto.
7635 2013-01-09 Jan Hubicka <jh@suse.cz>
7637 PR tree-optimiation/55875
7638 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
7639 EVERY_ITERATION parameter.
7640 (number_of_iterations_exit): Check if exit is executed every iteration.
7641 (idx_infer_loop_bounds): Similarly here.
7642 (n_of_executions_at_most): Simplify
7643 to only test for cases where statement is dominated by the
7644 particular bound; handle correctly the "postdominance" test.
7645 (scev_probably_wraps_p): Use max loop iterations info
7646 as a global bound first.
7648 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
7649 Nick Clifton <nickc@redhat.com>
7651 * config/v850/v850.md (cbranchsf4): New pattern.
7652 (cstoresf4): New pattern.
7653 (cbranchdf4): New pattern.
7654 (cstoredf4): New pattern.
7655 (movsicc): Disallow floating point comparisons.
7656 (cmpsf_le_insn): Fix order of operators.
7657 (cmpsf_lt_insn): Likewise.
7658 (cmpsf_eq_insn): Likewise.
7659 (cmpdf_le_insn): Likewise.
7660 (cmpdf_lt_insn): Likewise.
7661 (cmpdf_eq_insn): Likewise.
7662 (cmpsf_ge_insn): Use LE comparison.
7663 (cmpdf_ge_insn): Likewise.
7664 (cmpsf_gt_insn): Use LT comparison.
7665 (cmpdf_gt_insn): Likewise.
7666 (cmpsf_ne_insn): Delete pattern.
7667 (cmpdf_ne_insn): Delete pattern.
7668 * config/v850/v850.c (v850_gen_float_compare): Use
7669 gen_cmpdf_eq_insn for NE comparison.
7670 (v850_float_z_comparison_operator)
7671 (v850_float_nz_comparison_operator): Move from here ...
7672 * config/v850/predicates.md: ... to here. Move GT and GE
7673 comparisons into v850_float_z_comparison_operator.
7674 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
7676 (v850_float_nz_comparison_operator): Likewise.
7678 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7680 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
7681 with calls to gen_insvsi/gen_insvdi.
7683 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7685 * config/i386/i386.c (initial_ix86_tune_features): Set up
7686 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
7688 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
7689 Jakub Jelinek <jakub@redhat.com>
7691 PR tree-optimization/48189
7692 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
7693 If nitercst is 0, don't predict the exit edge.
7695 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7697 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
7698 in asm_fprintf with reg_names.
7699 (aarch64_print_operand_address): Likewise.
7700 (aarch64_return_addr): Likewise.
7701 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
7703 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7705 * config/pa/pa.h (VAL_U6_BITS_P): Define.
7706 (INT_U6_BITS): Likewise.
7707 * config/pa/predicates.md (uint6_operand): New predicate.
7708 (shift5_operand, shift6_operand): Likewise.
7709 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
7711 (lshrdi3): Use shift6_operand.
7712 (shrpsi4, shrpdi4): New insn patterns.
7713 (extzv): Delete expander.
7714 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
7715 predicates in unamed zero extract patterns. Tighten common constraint.
7716 (extv): Delete expander.
7717 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
7718 predicates in unamed sign extract patterns. Tighten common constraint.
7719 (insv): Delete expander.
7720 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
7721 predicates in unamed insert patterns. Tighten common constraint.
7722 Change uint32_operand predicate to uint6_operand predicate in unamed
7723 DImode pattern to insert constant values of type 1...1xxxx.
7725 2013-01-04 Jan Hubicka <jh@suse.cz>
7727 PR tree-optimization/55823
7728 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
7731 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7732 Uros Bizjak <ubizjak@gmail.com>
7734 PR rtl-optimization/55845
7735 * df-problems.c (can_move_insns_across): Stop scanning at
7736 volatile_insn_p source instruction or give up if
7737 across_from .. across_to range contains any volatile_insn_p
7740 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7742 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
7743 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
7745 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7746 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
7748 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7751 * asan.c (asan_clear_shadow): New function.
7752 (asan_emit_stack_protection): Use it.
7754 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7756 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
7757 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
7758 with tab instead of space.
7760 2013-01-08 Nick Clifton <nickc@redhat.com>
7762 * config/rl78/rl78.c (rl78_expand_prologue): Always select
7763 register bank 0 at the start of an interrupt handler.
7764 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
7767 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7769 * config/aarch64/aarch64-simd.md
7770 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
7771 (aarch64_simd_bsl): Likewise.
7772 (aarch64_vcond_internal<mode>): Likewise.
7773 (vcond<mode><mode>): Likewise.
7774 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
7775 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
7777 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7779 * config/aarch64/aarch64-builtins.c
7780 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
7782 2013-01-08 Martin Jambor <mjambor@suse.cz>
7785 * tree-sra.c (analyze_access_subtree): Return true also after
7786 potentially creating a debug-only replacement.
7788 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7791 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
7793 PR tree-optimization/54120
7794 * tree-vrp.c (range_fits_type_p): Don't allow
7795 src_precision < precision from signed vr to unsigned_p
7796 if vr->min or vr->max is negative.
7797 (simplify_float_conversion_using_ranges): Test can_float_p
7798 against CODE_FOR_nothing.
7800 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7801 Richard Biener <rguenther@suse.de>
7804 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
7805 types instead of just INTEGER_TYPE types.
7807 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
7809 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
7812 2013-01-07 Steve Ellcey <sellcey@mips.com>
7815 * config/mips/mips.opt: Change mad to mmad to match documentation.
7817 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7820 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
7823 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7826 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
7827 (avr_addrspace_t): Add .section_name field.
7828 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
7830 (avr_addrspace): Same. Initialize .section_name. Remove last
7831 NULL entry. Put __memx into .progmemx.data.
7832 (progmem_section_prefix): Remove.
7833 (avr_asm_init_sections): No need to initialize progmem_section.
7834 (avr_asm_named_section): Use avr_addrspace[].section_name to get
7835 section name prefix.
7836 (avr_asm_select_section): Ditto. And use get_unnamed_section to
7837 retrieve the progmem section.
7838 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
7839 boundary to run over avr_addrspace[].
7840 (avr_register_target_pragmas): Ditto.
7842 2013-01-06 Jakub Jelinek <jakub@redhat.com>
7844 * varasm.c (output_constant_def_contents): For asan_protect_global
7845 protected strings, adjust DECL_ALIGN if needed, before testing for
7847 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
7848 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
7850 (output_object_block): For asan protected decls, emit asan padding
7851 after their contents.
7852 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
7853 (asan_finish_file): Test it here instead.
7855 2013-01-07 Nick Clifton <nickc@redhat.com>
7856 Matthias Klose <doko@debian.org>
7857 Doug Kwan <dougkwan@google.com>
7858 H.J. Lu <hongjiu.lu@intel.com>
7861 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
7863 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
7865 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
7867 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
7869 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
7871 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7874 * doc/install.texi (Cross-Compiler-Specific Options): Document
7877 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
7879 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
7880 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
7881 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
7882 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
7883 vqmovun_high_s64): Fix source operand number and update copyright.
7885 2013-01-07 Richard Biener <rguenther@suse.de>
7888 * gimple.h (gimple_call_builtin_p): New overload.
7889 * gimple.c (validate_call): New function.
7890 (gimple_call_builtin_p): Likewise.
7891 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7892 Use gimple_call_builtin_p.
7893 (find_func_clobbers): Likewise.
7894 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
7895 (strlen_optimize_stmt): Likewise.
7897 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7899 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
7900 (vld1q_dup_*): Likewise.
7902 (vld1q_*): Likewise.
7903 (vld1_lane_*): Likewise.
7904 (vld1q_lane_*): Likewise.
7906 2013-01-07 Richard Biener <rguenther@suse.de>
7908 * lto-streamer.h (LTO_minor_version): Bump to 2.
7910 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7912 * config/aarch64/aarch64-protos.h
7913 (aarch64_const_double_zero_rtx_p): Rename to...
7914 (aarch64_float_const_zero_rtx_p): ...this.
7915 (aarch64_float_const_representable_p): New.
7916 (aarch64_output_simd_mov_immediate): Likewise.
7917 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7918 move immediate case.
7919 * config/aarch64/aarch64.c
7920 (aarch64_const_double_zero_rtx_p): Rename to...
7921 (aarch64_float_const_zero_rtx_p): ...this.
7922 (aarch64_print_operand): Allow printing of new constants.
7923 (aarch64_valid_floating_const): New.
7924 (aarch64_legitimate_constant_p): Check for valid floating-point
7926 (aarch64_simd_valid_immediate): Likewise.
7927 (aarch64_vect_float_const_representable_p): New.
7928 (aarch64_float_const_representable_p): Likewise.
7929 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7930 (aarch64_output_simd_mov_immediate): New.
7931 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7932 (*movdf_aarch64): Likewise.
7933 * config/aarch64/constraints.md (Ufc): New.
7934 (Y): call aarch64_float_const_zero_rtx.
7935 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7937 2013-01-07 Richard Biener <rguenther@suse.de>
7939 PR tree-optimization/55888
7940 PR tree-optimization/55862
7941 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7942 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7943 not if it is contained therein.
7945 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7947 * config/avr/t-avr: Typo.
7949 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7952 * config/avr/t-avr: Don't automatically rebuild
7953 $(srcdir)/config/avr/t-multilib
7954 $(srcdir)/config/avr/avr-tables.opt
7955 $(srcdir)/doc/avr-mmcu.texi
7956 (avr-mcus): New phony target to build them on request.
7957 (s-avr-mlib, s-avr-mmcu-texi): Remove.
7958 * avr/avr-mcus.def: Adjust comments.
7960 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
7962 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7964 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7966 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7968 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7970 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7972 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
7974 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7975 to generate profiling.
7976 * config/rs6000/aix64.h (LIB_SPEC): Same.
7978 2013-01-04 Andrew Pinski <apinski@cavium.com>
7980 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7982 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7984 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
7986 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7988 (ix86_expand_move): Ditto.
7989 (ix86_zero_extend_to_Pmode): Ditto.
7990 (ix86_expand_call): Ditto.
7991 (ix86_expand_special_args_builtin): Ditto.
7992 (ix86_expand_builtin): Ditto.
7994 2013-01-04 Richard Biener <rguenther@suse.de>
7996 PR tree-optimization/55862
7997 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7998 translating them through PHI nodes.
8000 2013-01-04 Martin Jambor <mjambor@suse.cz>
8002 PR tree-optimization/55755
8003 * tree-sra.c (sra_modify_assign): Do not check that an access has no
8004 children when trying to avoid producing a VIEW_CONVERT_EXPR.
8006 2013-01-04 Marek Polacek <polacek@redhat.com>
8009 * opts.c (default_options_optimization): Clarify error message.
8011 2013-01-04 Richard Biener <rguenther@suse.de>
8014 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
8017 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8020 * config/pa/pa.md (movsi): Revert previous change.
8021 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
8024 2013-01-03 Richard Henderson <rth@redhat.com>
8026 * config/i386/i386.c (ix86_expand_move): Always assign to op1
8027 after eliminating TLS symbols.
8029 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
8032 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
8033 * graphite-poly.c (debug_gmp_value): Likewise.
8035 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
8038 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
8039 selected code model, define __code_mode_small__, __code_model_medium__,
8040 __code_model_large__, __code_model_32__ or __code_model_kernel__.
8041 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
8042 xchg temporary register with %k. Declare temporary register as
8044 [__x86_64__]: For medium and large code models, preserve %rbx register.
8046 2013-01-03 Richard Biener <rguenther@suse.de>
8048 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
8049 (dump_subscript): Adjust.
8050 (finalize_ddr_dependent): Do not dump redundant info.
8051 (analyze_siv_subscript): Adjust.
8052 (subscript_dependence_tester): Likewise.
8053 (compute_affine_dependence): Likewise.
8055 2013-01-03 Richard Biener <rguenther@suse.de>
8058 2013-01-03 Richard Biener <rguenther@suse.de>
8060 PR tree-optimization/55857
8061 * tree-vect-stmts.c (vectorizable_load): Do not setup
8062 re-alignment for invariant loads.
8064 2013-01-02 Richard Biener <rguenther@suse.de>
8066 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8067 invariant load do not generate a vector load from the scalar location.
8069 2013-01-03 Richard Biener <rguenther@suse.de>
8071 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
8072 for not vectorizing.
8073 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8074 not build INDIRECT_REFs, call get_name once only.
8075 (vect_create_data_ref_ptr): Likewise. Dump base object kind
8076 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
8078 2013-01-03 Richard Biener <rguenther@suse.de>
8080 PR tree-optimization/55857
8081 * tree-vect-stmts.c (vectorizable_load): Do not setup
8082 re-alignment for invariant loads.
8084 2013-01-03 Richard Biener <rguenther@suse.de>
8087 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
8088 prefer a built-in decl.
8090 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8092 * gcc.c (process_command): Update copyright notice dates.
8093 * gcov.c (print_version): Likewise.
8094 * gcov-dump.c (print_version): Likewise.
8096 PR rtl-optimization/55838
8097 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
8098 iv0.step, iv1.step and step.
8100 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8101 Marc Glisse <marc.glisse@inria.fr>
8103 PR tree-optimization/55832
8104 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
8105 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
8106 integer_{one,zero}_node.
8108 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8111 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
8112 * var-tracking.c (reverse_op): Don't add reverse ops to
8113 VALUEs that have already
8114 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8116 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8118 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
8120 2013-01-02 Teresa Johnson <tejohnson@google.com>
8122 * dumpfile.c (dump_loc): Print filename with location.
8123 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
8124 new location_t parameter to emit complete unroll message with
8126 (canonicalize_loop_induction_variables): Compute loops location
8127 and pass to try_unroll_loop_completely.
8128 * loop-unroll.c (report_unroll_peel): New function.
8129 (peel_loops_completely): Use new dump format with location
8130 for main dumpfile message, and invoke report_unroll_peel on success.
8131 (decide_unrolling_and_peeling): Ditto.
8132 (decide_peel_once_rolling): Remove old dumpfile message subsumed
8133 by report_unroll_peel.
8134 (decide_peel_completely): Ditto.
8135 (decide_unroll_constant_iterations): Ditto.
8136 (decide_unroll_runtime_iterations): Ditto.
8137 (decide_peel_simple): Ditto.
8138 (decide_unroll_stupid): Ditto.
8139 * cfgloop.c (get_loop_location): New function.
8140 * cfgloop.h (get_loop_location): Declare.
8142 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8144 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
8147 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8150 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
8151 BLKmode objects when EXPAND_MEMORY is specified.
8153 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8155 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
8157 (fold_builtin_cpu): Do not share cpu model decls across statements.
8159 2013-01-02 Jason Merrill <jason@redhat.com>
8162 * tree.c (build_array_type_1): Revert earlier change.
8164 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
8166 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
8168 * config/aarch64/aarch64-tune.md: Re-generate.
8170 2013-01-02 Richard Biener <rguenther@suse.de>
8172 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8173 invariant load do not generate a vector load from the scalar location.
8175 2013-01-02 Richard Biener <rguenther@suse.de>
8178 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
8179 * configure: Regenerate.
8181 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8183 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
8184 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
8185 (expand_builtin_int_roundingfn_2): Keep the original target around
8186 for the fallback case.
8188 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8190 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
8191 to be clear for sign changes.
8193 2013-01-01 Jan Hubicka <jh@suse.cz>
8195 * ipa-inline-analysis.c: Fix formatting.
8197 2013-01-01 Jakub Jelinek <jakub@redhat.com>
8199 PR tree-optimization/55831
8200 * tree-vect-loop.c (get_initial_def_for_induction): Use
8201 gsi_after_labels instead of gsi_start_bb.
8203 Copyright (C) 2013 Free Software Foundation, Inc.
8205 Copying and distribution of this file, with or without modification,
8206 are permitted in any medium without royalty provided the copyright
8207 notice and this notice are preserved.