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