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