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