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