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