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