re PR tree-optimization/57705 (Non-constant step induction vars not vectorized)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
2
3         PR tree-optimization/57705
4         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
5         SSA_NAME step, provided that it is not defined inside the loop.
6         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
7         loop.
8         (get_initial_def_for_induction): Handle SSA_NAME IV step.
9
10 2013-06-25  Martin Jambor  <mjambor@suse.cz>
11
12         PR middle-end/57670
13         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
14         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
15         calls in the dump.
16         (ipa_note_param_call): Initialize member_ptr flag.
17         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
18         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
19         (ipa_write_indirect_edge_info): Stream member_ptr flag.
20         (ipa_read_indirect_edge_info): Likewise.
21
22 2013-06-25  Richard Biener  <rguenther@suse.de>
23
24         PR middle-end/56977
25         * passes.c (init_optimization_passes): Move pass_fold_builtins
26         and pass_dce earlier with -Og.
27
28 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
29
30         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
31         <BIT_FIELD_REF>: Remove trailing TAB.
32         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
33         remove blank line.
34
35 2013-06-24  Martin Jambor  <mjambor@suse.cz>
36
37         PR tree-optimization/57358
38         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
39         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
40         (ipa_analyze_params_uses): Generate pessimistic info when true.
41
42 2013-06-24  Martin Jambor  <mjambor@suse.cz>
43
44         PR tree-optimization/57539
45         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
46         global.inlined_to of the new node to it.  All callers changed.
47         * ipa-inline-transform.c (clone_inlined_nodes): New variable
48         inlining_into, pass it to cgraph_clone_node.
49         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
50         ipa_free_edge_args_substructures.
51         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
52         rdesc linked list.  Do not assert rdesc edges have inlined caller.
53         Assert we have found an rdesc in the rdesc list.
54
55 2013-06-24  Richard Biener  <rguenther@suse.de>
56
57         * pointer-set.h (struct pointer_set_t): Move here from
58         pointer-set.c.
59         (pointer_set_lookup): Declare.
60         (class pointer_map): New template class implementing a
61         generic pointer to T map.
62         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
63         pointer_map<T>::contains, pointer_map<T>::insert,
64         pointer_map<T>::traverse): New functions.
65         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
66         (pointer_set_lookup): New function.
67         (pointer_set_contains): Use pointer_set_lookup.
68         (pointer_set_insert): Likewise.
69         (insert_aux): Remove.
70         (struct pointer_map_t): Embed a pointer_set_t.
71         (pointer_map_create): Adjust.
72         (pointer_map_destroy): Likewise.
73         (pointer_map_contains): Likewise.
74         (pointer_map_insert): Likewise.
75         (pointer_map_traverse): Likewise.
76         * tree-streamer.h (struct streamer_tree_cache_d): Use a
77         pointer_map<unsigned> instead of a pointer_map_t.
78         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
79         (streamer_tree_cache_lookup): Likewise.
80         (streamer_tree_cache_create): Likewise.
81         (streamer_tree_cache_delete): Likewise.
82         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
83         pointer_map<unsigned> instead of a pointer_map_t.
84         (lto_init_tree_ref_encoder): Adjust.
85         (lto_destroy_tree_ref_encoder): Likewise.
86         * lto-section-out.c (lto_output_decl_index): Likewise.
87         (lto_record_function_out_decl_state): Likewise.
88         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
89
90 2013-06-24  Richard Biener  <rguenther@suse.de>
91
92         PR tree-optimization/57488
93         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
94
95 2013-06-24  Alan Modra  <amodra@gmail.com>
96
97         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
98         (gen_easy_altivec_constant): Likewise.
99         * config/rs6000/predicates.md (easy_vector_constant_add_self,
100         easy_vector_constant_msb): Likewise.
101
102 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
103
104         PR target/57688
105         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
106         add missing return true.
107
108 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
109
110         PR target/52483
111         * config/sh/predicates.md (general_extend_operand): Invoke
112         general_movsrc_operand for memory operands.
113         (general_movsrc_operand): Allow reg+reg addressing, do not use
114         general_operand for memory operands.
115
116 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
117
118         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
119         when current target options does not apply.
120         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
121         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
122         * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
123         * config/i386/mmintrin.h: Ditto.
124         * config/i386/nmmintrin.h: Ditto.
125         * config/i386/avx2intrin.h: Ditto.
126         * config/i386/fxsrintrin.h: Ditto.
127         * config/i386/tbmintrin.h: Ditto.
128         * config/i386/xsaveintrin.h: Ditto.
129         * config/i386/f16cintrin.h: Ditto.
130         * config/i386/xtestintrin.h: Ditto.
131         * config/i386/xsaveoptintrin.h: Ditto.
132         * config/i386/bmi2intrin.h: Ditto.
133         * config/i386/lzcntintrin.h: Ditto.
134         * config/i386/smmintrin.h: Ditto.
135         * config/i386/wmmintrin.h: Ditto.
136         * config/i386/x86intrin.h: Remove all header include guards.
137         * config/i386/prfchwintrin.h: Ditto.
138         * config/i386/pmmintrin.h: Ditto.
139         * config/i386/tmmintrin.h: Ditto.
140         * config/i386/xmmintrin.h: Ditto.
141         * config/i386/popcntintrin.h: Ditto.
142         * config/i386/rdseedintrin.h: Ditto.
143         * config/i386/ammintrin.h: Ditto.
144         * config/i386/emmintrin.h: Ditto.
145         * config/i386/immintrin.h: Remove all header include guards.
146         * config/i386/fma4intrin.h: Ditto.
147         * config/i386/lwpintrin.h: Ditto.
148         * config/i386/xopintrin.h: Ditto.
149         * config/i386/ia32intrin.h: Ditto.
150         * config/i386/avxintrin.h: Ditto.
151         * config/i386/rtmintrin.h: Ditto.
152         * config/i386/fmaintrin.h: Ditto.
153         * config/i386/mm3dnow.h: Ditto.
154
155 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
156
157         * common/config/i386/i386-common.c: Handle LZCNT.
158
159 2013-06-22  Andi Kleen  <ak@linux.intel.com>
160
161         * doc/extend.texi: Use __atomic_store_n instead of
162         __atomic_store in HLE example.
163
164 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
165
166         * config/sh/sh.c: Remove <cstdlib> workaround.
167
168 2013-06-21  Andi Kleen  <ak@linux.intel.com>
169
170         * doc/extend.texi: Dont use __atomic_clear in HLE
171         example.  Fix typo.
172
173 2013-06-21  Andi Kleen  <ak@linux.intel.com>
174
175         * doc/extend.texi: Document that __atomic_clear and
176           __atomic_test_and_set should only be used with bool.
177
178 2013-06-20  Jan Hubicka  <jh@suse.cz>
179
180         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
181         types_same_for_odr.
182         * tree.c (decls_same_for_odr): New function.
183         (same_for_edr): New function.
184         (types_same_for_odr): New function.
185         (get_binfo_at_offset): Use it.
186         * tree.h (types_same_for_odr): Declare.
187
188 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
189             Jason Merrill  <jason@redhat.com>
190
191         * system.h: Include <cstdlib> as well as <stdlib.h>.
192
193 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
194
195         PR target/57655
196         * config/i386/i386.c (construct_container): Report error if
197         long double is used with disabled x87 float returns.
198
199 2013-06-20  Jan Hubicka  <jh@suse.cz>
200
201         * lto-cgraph.c (input_symtab): Do not set cgraph state.
202
203 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
204
205         PR rtl-optimization/57425
206         PR rtl-optimization/57569
207         * alias.c (write_dependence_p): Remove parameters mem_mode and
208         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
209         Changed all callers.
210         (canon_anti_dependence): Get comments and semantics in sync.
211         Add parameter mem_canonicalized.  Changed all callers.
212         * rtl.h (canon_anti_dependence): Update prototype.
213
214 2013-06-20  Richard Biener  <rguenther@suse.de>
215
216         * data-streamer-in.c (streamer_read_uhwi): Optimize single
217         byte case, inline streamer_read_uchar and defer section
218         overrun check.
219
220 2013-06-20  Richard Biener  <rguenther@suse.de>
221
222         PR tree-optimization/57584
223         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
224         SSA names into the expanded expression that take part in
225         abnormal coalescing.
226
227 2013-06-19    <singhai@google.com>
228
229         * gcov.c (print_usage): Handle new option.
230         (process_args): Ditto.
231         (get_gcov_intermediate_filename): New function.
232         (output_intermediate_file): New function.
233         (output_gcov_file): New function
234         (generate_results): Handle new option.
235         (release_function): Relase demangled name.
236         (read_graph_file): Handle demangled name.
237         (output_lines): Ditto.
238         * doc/gcov.texi: Document gcov intermediate format.
239
240 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
241
242         PR bootstrap/57604
243         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
244         (lra_emit_add): Use the functions.  Add comment about Y as an
245         address segment.
246
247 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
248
249         PR driver/57652
250         * collect2.c (collect_atexit): New.
251         (collect_exit): Delete.
252         (main): Register collect_atexit with atexit.
253         (collect_wait): Change collect_exit to exit.
254         (do_wait): Same.
255         * collect2.h (collect_exit): Delete.
256         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
257
258 2013-06-19  Wei Mi  <wmi@google.com>
259
260         PR rtl-optimization/57518
261         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
262         if regno is used in paradoxical subreg.
263         (update_equiv_regs): Check pdx_subregs[regno] before
264         set a reg to be equivalent with a mem.
265
266 2013-06-19  Matthias Klose  <doko@ubuntu.com>
267
268         PR driver/57651
269         * file-find.h (find_a_file): Add a mode parameter.
270         * file-find.c (find_a_file): Likewise.
271         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
272         with X_OK for the executables.
273         * collect2.c (main): Call find_a_file with X_OK.
274
275 2013-06-19  Steve Ellcey  <sellcey@mips.com>
276
277         PR target/56942
278         * config/mips/mips.md (casesi_internal_mips16_<mode>):
279         Use NEXT_INSN instead of next_real_insn.
280
281 2013-06-19  Jan Hubicka  <jh@suse.cz>
282
283         * cgraph.h (const_value_known_p): Replace by ...
284         (ctor_for_folding): .. this one.
285         * cgraphunit.c (process_function_and_variable_attributes): Use it.
286         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
287         * expr.c (expand_expr_real_1): Likewise.
288         (string_constant): Likewise.
289         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
290         * ipa.c (process_references): Likewise.
291         (symtab_remove_unreachable_nodes): Likewise.
292         * ipa-inline-analysis.c (param_change_prob): Likewise.
293         * gimple-fold.c (canonicalize_constructor_val): Likewise.
294         (get_base_constructor): Likwise.
295         * varpool.c (varpool_remove_node): Likewise.
296         (varpool_remove_initializer): LIkewise.
297         (dump_varpool_node): LIkwise.
298         (const_value_known_p): Rewrite to ...
299         (ctor_for_folding): ... this one.
300
301 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
302
303         PR driver/57651
304         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
305         PERSONALITY in $PATH derived prefixes.
306
307 2013-06-19  Jeff Law  <law@redhat.com>
308
309         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
310         in comment.
311
312         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
313         (simplify_bitwise_binary): Use it to simpify certain binary ops on
314         booleans.
315
316 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
317
318         * config/arm/vfp.md: Move VFP instruction classification documentation
319         to ...
320         * config/arm/arm.md: ... here.  Update instruction classification
321         documentation.
322
323 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
324
325         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
326         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
327         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
328
329 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
330
331         PR target/57609
332         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
333         with NEXT_INSN.  Use tablejump_p to check for jump table data
334         insns.
335
336 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
337
338         PR c++/56544
339         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
340         that now in C++ the value is correct per the C++ standards.
341
342 2013-06-19  Richard Biener  <rguenther@suse.de>
343
344         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
345         for global context.
346
347 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
348
349         Revert:
350         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
351
352         PR target/57609
353         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
354         with next_active_insn.
355
356 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
357
358         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
359         functions are inlined during failures to flag an error.
360         * tree-inline.c (expand_call_inline): Allow the error to be flagged
361         in early inline pass.
362
363 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
364
365         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
366         in comments.
367
368 2013-06-18  Julian Brown  <julian@codesourcery.com>
369
370         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
371         Permit virtual register pre-reload if !strict.
372         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
373         change.
374         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
375         prototype.
376         * config/arm/neon.md (movmisalign<mode>): Use
377         neon_perm_struct_or_reg_operand instead of
378         neon_struct_or_register_operand.
379         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
380         neon_permissive_struct_operand instead of neon_struct_operand.
381         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
382         neon_vector_mem_operand.
383         * config/arm/predicates.md (neon_struct_operand): Adjust call to
384         neon_vector_mem_operand.
385         (neon_permissive_struct_operand): New.
386         (neon_struct_or_register_operand): Rename to...
387         (neon_perm_struct_or_reg_operand): This. Adjust call to
388         neon_vector_mem_operand.
389
390 2013-06-18  Richard Biener  <rguenther@suse.de>
391
392         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
393         * lto-streamer.h: Include pointer-set.h.
394         (struct lto_decl_slot): Remove.
395         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
396         Remove next_index entry.
397         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
398         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
399         (lto_init_tree_ref_encoder): Adjust.
400         (lto_destroy_tree_ref_encoder): Likewise.
401         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
402         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
403         (lto_output_decl_index): Adjust.
404         (lto_new_out_decl_state): Likewise.
405         (lto_record_function_out_decl_state): Likewise.
406         * lto-streamer-out.c (copy_function): Likewise.
407
408 2013-06-18  Richard Biener  <rguenther@suse.de>
409
410         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
411         * cgraphunit.c: Include cfgloop.h.
412         (init_lowered_empty_function): Initialize the loop tree.
413         (assemble_thunk): Insert new BBs into loops.
414
415 2013-06-18  Richard Biener  <rguenther@suse.de>
416
417         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
418         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
419         the map from cache entry to cache index optional.
420         (streamer_tree_cache_replace_tree): Adjust accordingly.
421         (streamer_tree_cache_append): Likewise.
422         (streamer_tree_cache_delete): Likewise.
423         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
424         streamer cache map from cache entry to cache index.
425         * lto-streamer-out.c (create_output_block): Adjust.
426
427 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
428
429         * config/arm/arm.md (attribute "insn"): Move multiplication and
430         division attributes to...
431         (attribute "type"): ... here.  Remove mult.
432         (attribute "mul32"): New attribute.
433         (attribute "mul64"): Add umaal.
434         (*arm_mulsi3): Update attributes.
435         (*arm_mulsi3_v6): Likewise.
436         (*thumb_mulsi3): Likewise.
437         (*thumb_mulsi3_v6): Likewise.
438         (*mulsi3_compare0): Likewise.
439         (*mulsi3_compare0_v6): Likewise.
440         (*mulsi_compare0_scratch): Likewise.
441         (*mulsi_compare0_scratch_v6): Likewise.
442         (*mulsi3addsi): Likewise.
443         (*mulsi3addsi_v6): Likewise.
444         (*mulsi3addsi_compare0): Likewise.
445         (*mulsi3addsi_compare0_v6): Likewise.
446         (*mulsi3addsi_compare0_scratch): Likewise.
447         (*mulsi3addsi_compare0_scratch_v6): Likewise.
448         (*mulsi3subsi): Likewise.
449         (*mulsidi3adddi): Likewise.
450         (*mulsi3addsi_v6): Likewise.
451         (*mulsidi3adddi_v6): Likewise.
452         (*mulsidi3_nov6): Likewise.
453         (*mulsidi3_v6): Likewise.
454         (*umulsidi3_nov6): Likewise.
455         (*umulsidi3_v6): Likewise.
456         (*umulsidi3adddi): Likewise.
457         (*umulsidi3adddi_v6): Likewise.
458         (*smulsi3_highpart_nov6): Likewise.
459         (*smulsi3_highpart_v6): Likewise.
460         (*umulsi3_highpart_nov6): Likewise.
461         (*umulsi3_highpart_v6): Likewise.
462         (mulhisi3): Likewise.
463         (*mulhisi3tb): Likewise.
464         (*mulhisi3bt): Likewise.
465         (*mulhisi3tt): Likewise.
466         (maddhisi4): Likewise.
467         (*maddhisi4tb): Likewise.
468         (*maddhisi4tt): Likewise.
469         (maddhidi4): Likewise.
470         (*maddhidi4tb): Likewise.
471         (*maddhidi4tt): Likewise.
472         (divsi3): Likewise.
473         (udivsi3): Likewise.
474         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
475         (thumb2_mulsi_short_compare0): Likewise.
476         (thumb2_mulsi_short_compare0_scratch): Likewise.
477         * config/arm/arm1020e.md (1020mult1): Update attribute change.
478         (1020mult2): Likewise.
479         (1020mult3): Likewise.
480         (1020mult4): Likewise.
481         (1020mult5): Likewise.
482         (1020mult6): Likewise.
483         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
484         change.
485         (cortex_a15_mult64): Likewise.
486         (cortex_a15_sdiv): Likewise.
487         (cortex_a15_udiv): Likewise.
488         * config/arm/arm1026ejs.md (mult1): Update attribute change.
489         (mult2): Likewise.
490         (mult3): Likewise.
491         (mult4): Likewise.
492         (mult5): Likewise.
493         (mult6): Likewise.
494         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
495         (pj4_ir_div): Likewise.
496         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
497         (11_mult2): Likewise.
498         (11_mult3): Likewise.
499         (11_mult4): Likewise.
500         (11_mult5): Likewise.
501         (11_mult6): Likewise.
502         (11_mult7): Likewise.
503         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
504         (cortex_a8_mla): Likewise.
505         (cortex_a8_mull): Likewise.
506         (cortex_a8_smulwy): Likewise.
507         (cortex_a8_smlald): Likewise.
508         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
509         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
510         (cortex_r4_mul_3): Likewise.
511         (cortex_r4_mla_4): Likewise.
512         (cortex_r4_mla_3): Likewise.
513         (cortex_r4_smlald): Likewise.
514         (cortex_r4_mull): Likewise.
515         (cortex_r4_sdiv): Likewise.
516         (cortex_r4_udiv): Likewise.
517         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
518         (cortex_a7_idiv): Likewise.
519         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
520         (9_mult2): Likewise.
521         (9_mult3): Likewise.
522         (9_mult4): Likewise.
523         (9_mult5): Likewise.
524         (9_mult6): Likewise.
525         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
526         (cortex_a53_sdiv): Likewise.
527         (cortex_a53_udiv): Likewise.
528         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
529         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
530         (mp626_mult2): Likewise.
531         (mp626_mult3): Likewise.
532         (mp626_mult4): Likewise.
533         * config/arm/fa526.md (526_mult1): Update attribute change.
534         (526_mult2): Likewise.
535         * config/arm/arm-generic.md (mult): Update attribute change.
536         (mult_ldsched_strongarm): Likewise.
537         (mult_ldsched): Likewise.
538         (multi_cycle): Likewise.
539         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
540         * config/arm/fa606te.md (606te_mult1): Update attribute change.
541         (606te_mult2): Likewise.
542         (606te_mult3): Likewise.
543         (606te_mult4): Likewise.
544         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
545         (cortex_a9_mac16): Likewise.
546         (cortex_a9_multiply): Likewise.
547         (cortex_a9_mac): Likewise.
548         (cortex_a9_multiply_long): Likewise.
549         * config/arm/fa626te.md (626te_mult1): Update attribute change.
550         (626te_mult2): Likewise.
551         (626te_mult3): Likewise.
552         (626te_mult4): Likewise.
553
554 2013-06-18  Richard Biener  <rguenther@suse.de>
555
556         PR lto/57334
557         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
558
559 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
560
561         PR target/57609
562         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
563         with next_active_insn.
564
565 2013-06-18  Alan Modra  <amodra@gmail.com>
566
567         * config/rs6000/rs6000.h (enum data_align): New.
568         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
569         (DATA_ABI_ALIGNMENT): Define.
570         (CONSTANT_ALIGNMENT): Correct comment.
571         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
572         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
573
574 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
575
576         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
577         ATTRIBUTE_UNUSED marking.
578
579 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
580
581         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
582         alternative and update.
583         (aarch64_dup_lanedi): Delete.
584         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
585         * config/aarch64/aarch64-simd-builtins.def: Update.
586
587 2013-06-17  Richard Biener  <rguenther@suse.de>
588
589         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
590         (lto_input_scc): Declare.
591         (lto_input_tree_1): Likewise.
592         (struct lto_stats_d): Add num_tree_bodies_output and
593         num_pickle_refs_output.
594         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
595         (lto_read_tree_1): Split out from ...
596         (lto_read_tree): ... this.
597         (lto_input_scc): New function.
598         (lto_input_tree_1): Split out from ...
599         (lto_input_tree): ... this.  Handle LTO_tree_scc.
600         (lto_data_in_create): Create the streamer cache without hashes.
601         * lto-streamer-out.c (create_output_block): Create the streamer
602         cache with hashes when not doing WPA.
603         (lto_write_tree_1): Split out from ...
604         (lto_write_tree): ... this.
605         (get_symbol_initial_value): New function.
606         (lto_output_tree_1): Split out from ...
607         (lto_output_tree): ... this.  Write trees as series of SCCs
608         using a DFS walk via DFS_write_tree.
609         (struct sccs, struct scc_entry): New types.
610         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
611         (DFS_write_tree_body): New function.
612         (DFS_write_tree): Likewise.
613         (hash_tree): Likewise.
614         (scc_entry_compare): Likewise.
615         (hash_scc): Likewise.
616         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
617         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
618         TREE_CHAIN as regular reference.
619         (streamer_read_integer_cst): Remove.
620         (streamer_get_pickled_tree): Adjust.
621         * tree-streamer-out.c (streamer_write_chain): Disable streaming
622         of DECL_EXTERNALs in BLOCK_VARS for now.
623         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
624         reference.
625         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
626         Add hash value argument and record that if hashes are recorded
627         in the cache.
628         (streamer_tree_cache_insert_1): Adjust.
629         (streamer_tree_cache_insert): Likewise.
630         (streamer_tree_cache_insert_at): Rename to ...
631         (streamer_tree_cache_replace_tree): ... this and adjust.
632         (streamer_tree_cache_append): Adjust.
633         (record_common_node): Likewise.
634         (streamer_tree_cache_create): Add argument whether to
635         record hash values together with trees.
636         (streamer_tree_cache_delete): Adjust.
637         * tree-streamer.h (struct streamer_tree_cache_d): Add
638         vector of hashes.
639         (streamer_read_integer_cst): Remove.
640         (streamer_tree_cache_insert): Adjust.
641         (streamer_tree_cache_append): Likewise.
642         (streamer_tree_cache_insert_at): Rename to ...
643         (streamer_tree_cache_replace_tree): ... this and adjust.
644         (streamer_tree_cache_create): Add argument whether to record hashes.
645         (streamer_tree_cache_get): Rename to ...
646         (streamer_tree_cache_get_tree): ... this.
647         (streamer_tree_cache_get_hash): New function.
648         * tree.c (cache_integer_cst): New function.
649         * tree.h (cache_integer_cst): Declare.
650         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
651         * lto-symtab.c (lto_varpool_replace_node): Only release
652         DECL_INITIAL of non-prevailing decls.
653         * varpool.c (varpool_remove_initializer): Do not release
654         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
655
656 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
657
658         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
659         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
660         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
661         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
662         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
663         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
664         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
665         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
666         instead of TARGET_64BIT.
667         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
668         Require ISA_HAS_<D>DIV.
669
670 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
671
672         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
673         (mips*-*-linux*): Move default with_llsc setting to where other
674         defaults are set.
675         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
676         with_arch block.
677         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
678         Likewise.  Remove default with_tune setting.  Move default float
679         setting to its own block.  Handle with_llsc in the same block as above.
680
681 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
682
683         PR rtl-optimization/57425
684         PR rtl-optimization/57569
685         * alias.c (write_dependence_p): Add new parameters mem_mode,
686         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
687         Changed all callers.
688         (canon_anti_dependence): New function.
689         * cse.c (check_dependence): Use canon_anti_dependence.
690         * cselib.c (cselib_invalidate_mem): Likewise.
691         * rtl.h (canon_anti_dependence): Declare.
692
693 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
694
695         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
696         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
697         ".set mips3" for 64-bit targets.
698
699 2013-06-15  Dehao Chen  <dehao@google.com>
700
701         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
702         * gimple-low.c (gimple_check_call_matching_types): Likewise.
703         (gimple_check_call_args): Likewise.
704         * value-prof.c (check_ic_target): Likewise.
705         * ipa-inline.c (early_inliner): Likewise.
706         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
707         * cgraph.c (cgraph_create_edge_1): Likewise.
708         (cgraph_make_edge_direct): Likewise.
709
710 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
711
712         PR target/57615
713         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
714         rs6000_output_move_128bit to handle emitting quad memory
715         operations.  Set attribute length to 8 bytes.
716
717 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
718
719         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
720         New pattern.
721         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
722         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
723         (aarch64_<su>mlsl<mode>): Likewise.
724
725 2013-06-14  Mike Stump  <mikestump@comcast.net>
726
727         * Makefile.in (TARGET_H): Add insn-codes.h.
728
729 2013-06-14  Alan Modra  <amodra@gmail.com>
730
731         PR middle-end/57134
732         PR middle-end/57586
733         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
734         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
735         bitfield expansion when EXPAND_MEMORY.
736         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
737
738 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
739
740         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
741         test for clearing quad memory on 32-bit later.
742
743 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
744
745         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
746         (fold_negate_expr): Likewise.
747         (fold_real_zero_addition_p): Handle vectors.
748         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
749
750 2013-06-14  Alan Modra  <amodra@gmail.com>
751
752         * varasm.c (force_const_mem): Revert 2013-06-07 change.
753
754 2013-06-13  Jan Hubicka  <jh@suse.cz>
755
756         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
757         Local comdats are not externally visible.
758         * symtab.c (dump_symtab_base): Dump externally visible.
759         (verify_symtab_base): Verify back links in the symtab hash.
760
761 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
762
763         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
764         CONVERT_EXPR as equal nodes.
765
766 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
767
768         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
769
770 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
771
772         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
773         Generalize to complex and vector.
774         * tree.c (build_all_ones_cst): New function.
775         * tree.h (build_all_ones_cst): Declare it.
776
777 2013-06-13  Alan Modra  <amodra@gmail.com>
778
779         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
780         * config/rs6000/rs6000.md (signbittf2): New insn.
781         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
782         (abstf2_internal, cmptf_internal2): Likewise.
783         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
784
785 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
786             Pat Haugen <pthaugen@us.ibm.com>
787             Peter Bergner <bergner@vnet.ibm.com>
788
789         * config/rs6000/rs6000.c (emit_load_locked): Add support for
790         power8 byte, half-word, and quad-word atomic instructions.
791         (emit_store_conditional): Likewise.
792         (rs6000_expand_atomic_compare_and_swap): Likewise.
793         (rs6000_expand_atomic_op): Likewise.
794
795         * config/rs6000/sync.md (larx): Add new modes for power8.
796         (stcx): Likewise.
797         (AINT): New mode iterator to include TImode as well as normal
798         integer modes on power8.
799         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
800         that VSX registers are not considered.  Use AINT mode iterator
801         instead of INT1 to allow inclusion of quad word atomic operations
802         on power8.
803         (load_locked<mode>): Likewise.
804         (store_conditional<mode>): Likewise.
805         (atomic_compare_and_swap<mode>): Likewise.
806         (atomic_exchange<mode>): Likewise.
807         (atomic_nand<mode>): Likewise.
808         (atomic_fetch_<fetchop_name><mode>): Likewise.
809         (atomic_nand_fetch<mode>): Likewise.
810         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
811         each type.
812         (ATOMIC): On power8, add QImode, HImode modes.
813         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
814         modes that promote to SImode.
815         (load_lockedti): Convert TImode arguments to PTImode, so that we
816         get a guaranteed even/odd register pair.
817         (load_lockedpti): Likewise.
818         (store_conditionalti): Likewise.
819         (store_conditionalpti): Likewise.
820
821         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
822         atomic load/store instructions.
823         (HSI): Likewise.
824
825 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
826
827         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
828         loads.
829         (insn_count): New attribute, with most cases extracted from...
830         (length): ...here.  Redefine most cases in terms of insn_count.
831         (single_insn): Delete.
832         (can_delay): Use insn_count to check for single instructions.
833         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
834         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
835         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
836         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
837         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
838         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
839         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
840         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
841         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
842         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
843         rather than "length".
844         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
845         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
846         Use "insn_count" rather than "length".
847         * config/mips/mips-dsp.md
848         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
849         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
850         length attributes.
851
852 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
853
854         PR tree-optimization/57361
855         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
856
857 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
858
859         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
860         to split.
861         (aarch64_simd_combine<mode>): New instruction expansion.
862         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
863         function prototype.
864         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
865         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
866
867 2013-06-12  Jan Hubicka  <jh@suse.cz>
868
869         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
870         decl has when in streaming stage.
871         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
872         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
873
874 2013-06-12  Roland Stigge <stigge@antcom.de>
875
876         PR target/57578
877         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
878
879 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
880
881         PR tree-optimization/57537
882         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
883         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
884
885 2013-06-12  Richard Biener  <rguenther@suse.de>
886
887         * data-streamer.h (streamer_write_char_stream): CSE
888         obs->current_pointer.
889         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
890         streamer_write_char_stream manually and optimize the resulting loop.
891         (streamer_write_hwi_stream): Likewise.
892
893 2013-06-12  Jan Hubicka  <jh@suse.cz>
894
895         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
896         * cgraph.h (varpool_create_empty_node): Declare.
897         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
898         duplicated nodes.
899         * symtab.c (symtab_unregister_node): Be lax about missin entries
900         in node hash.
901         (symtab_get_node): Update comment.
902         * varpool.c (varpool_create_empty_node): Break out from ...
903         (varpool_node_for_decl): ... here.
904         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
905
906 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
907
908         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
909         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
910         part.  Use straight-line flow at the end.
911         <COMPONENT_REF>: Remove superfluous else.
912         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
913
914 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
915
916         PR target/56564
917         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
918         target hook even for !TREE_PUBLIC decls.  If no resolution info
919         is available, return false for common and external decls.
920
921 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
922
923         * config/rl78/constraints.md (U): New constraint.
924         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
925         valloc attribute.
926
927 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
928
929         PR target/57589
930         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
931         to allow returning address to AT_PLATFORM name.
932
933 2013-06-11  Jan Hubicka  <jh@suse.cz>
934
935         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
936         * cgraph.h (symtab_node_base): Add weakref flag.
937         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
938         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
939         (output_weakrefs): Use weakref flag.
940         * fold-const.c (simple_operand_p): Handle WEAK.
941         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
942         * ipa.c (varpool_externally_visible_p): Drop weakref.
943         (function_and_variable_visibility): Update comment; fix weakref
944         sanity checks; do not clear DECL_WEAK on them.
945         * lto-cgraph.c (lto_output_node): update.
946         (lto_output_varpool_node): Update.
947         (input_overwrite_node): Update.
948         (input_node): Update.
949         (input_varpool_node): Update.
950         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
951         (lto_symtab_merge_symbols): Add sanity check.
952         (lto_symtab_prevailing_decl): Do not special case weakrefs.
953         * passes.c (rest_of_decl_compilation): Set static flag, too.
954         * symtab.c (dump_symtab_base): Dump weakref.
955         (verify_symtab_base): Sanity check weakrefs.
956         (symtab_make_decl_local): Remove duplicated code.
957         (symtab_alias_ultimate_target): Simplify.
958         * varpool.c (varpool_create_variable_alias): Set weakref flag.
959
960 2013-06-11  DJ Delorie  <dj@redhat.com>
961
962         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
963         (rl78_unwind_word_mode): New.
964
965 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
966
967         * final.c (debug_prefix_maps): Make static.
968
969 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
970
971         * function.c (initial_trampoline): Remove stray copy.
972
973 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
974
975         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
976
977 2013-06-11  Martin Jambor  <mjambor@suse.cz>
978
979         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
980         within bounds at the beginning of the function.
981
982 2013-06-11  Alan Modra  <amodra@gmail.com>
983
984         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
985         reporting.
986         (get_named_section): Don't NULL !DECL_P decl.
987
988 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
989
990         * doc/invoke.texi (core-avx2): Document.
991         (slm): Likewise.
992         (atom): Updated with MOVBE.
993
994 2013-06-11  Richard Biener  <rguenther@suse.de>
995
996         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
997
998 2013-06-11  Anton Blanchard  <anton@samba.org>
999
1000         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1001         correct shift value in little-endian mode.
1002
1003 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1004
1005         PR target/56564
1006         * varasm.c (get_variable_align): Move #endif to the right place.
1007
1008 2013-06-10  Cary Coutant  <ccoutant@google.com>
1009
1010         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1011         for hash so that hash table traversal order is deterministic.
1012
1013 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1014             Pat Haugen <pthaugen@us.ibm.com>
1015             Peter Bergner <bergner@vnet.ibm.com>
1016
1017         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1018         of vectors in GPRS if they are direct moves or quad word load or
1019         store moves.
1020
1021         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1022         declaration.
1023         (direct_move_p): Likewise.
1024         (quad_load_store_p): Likewise.
1025
1026         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1027         classes into bins based on the physical register type.
1028         (reg_class_to_reg_type): Likewise.
1029         (IS_STD_REG_TYPE): Likewise.
1030         (IS_FP_VECT_REG_TYPE): Likewise.
1031         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1032         use direct move instructions.
1033         (reload_gpr_vsx): Likewise.
1034         (reload_vsx_gpr): Likewise.
1035         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1036         information that is a simplification of register classes.  Also
1037         precalculate direct move reload helpers.
1038         (direct_move_p): New function to return true if the operation can
1039         be done as a direct move instruciton.
1040         (quad_load_store_p): New function to return true if the operation
1041         is a quad memory operation.
1042         (rs6000_legitimize_address): If quad memory, only allow register
1043         indirect for TImode addresses.
1044         (rs6000_legitimate_address_p): Likewise.
1045         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1046         (rs6000_reload_register_type): Likewise.
1047         (register_to_reg_type): Return register type.
1048         (rs6000_secondary_reload_simple_move): New helper function for
1049         secondary reload and secondary memory needed to identify anything
1050         that is a simple move, and does not need reloading.
1051         (rs6000_secondary_reload_direct_move): New helper function for
1052         secondary reload to identify cases that can be done with several
1053         instructions via the direct move instructions.
1054         (rs6000_secondary_reload_move): New helper function for secondary
1055         reload to identify moves between register types that can be done.
1056         (rs6000_secondary_reload): Add support for quad memory operations
1057         and for direct move.
1058         (rs6000_secondary_memory_needed): Likewise.
1059         (rs6000_debug_secondary_memory_needed): Change argument names.
1060         (rs6000_output_move_128bit): New function to return the move to
1061         use for 128-bit moves, including knowing about the various
1062         limitations of quad memory operations.
1063
1064         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1065         memory operations.  call rs6000_output_move_128bit for the actual
1066         instruciton(s) to generate.
1067         (vsx_movti_64bit): Likewise.
1068
1069         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1070         (UNSPEC_P8V_MTVSRWZ): Likewise.
1071         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1072         (UNSPEC_P8V_MTVSRD): Likewise.
1073         (UNSPEC_P8V_XXPERMDI): Likewise.
1074         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1075         (UNSPEC_FUSION_GPR): Likewise.
1076         (FMOVE128_GPR): New iterator for direct move.
1077         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1078         (f32_sv): Likewise.
1079         (f32_dm): Likewise.
1080         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1081         loads and direct move instructions.
1082         (zero_extendsidi2_lfiwzx): Likewise.
1083         (extendsidi2_lfiwax): Likewise.
1084         (extendsidi2_nocell): Likewise.
1085         (floatsi<mode>2_lfiwax): Likewise.
1086         (lfiwax): Likewise.
1087         (floatunssi<mode>2_lfiwzx): Likewise.
1088         (lfiwzx): Likewise.
1089         (fix_trunc<mode>_stfiwx): Likewise.
1090         (fixuns_trunc<mode>_stfiwx): Likewise.
1091         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1092         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1093         (parity<mode>2_cmpb): Set length/type attr.
1094         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1095         for 'mr.' to fast_compare.
1096         (bpermd_<mode>): Change type attr to popcnt.
1097         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1098         (p8_mtvsrwz_1): Likewise.
1099         (p8_mtvsrwz_2): Likewise.
1100         (reload_fpr_from_gpr<mode>): Likewise.
1101         (p8_mtvsrd_1): Likewise.
1102         (p8_mtvsrd_2): Likewise.
1103         (p8_xxpermdi_<mode>): Likewise.
1104         (reload_vsx_from_gpr<mode>): Likewise.
1105         (reload_vsx_from_gprsf): Likewise.
1106         (p8_mfvsrd_3_<mode>): LIkewise.
1107         (reload_gpr_from_vsx<mode>): Likewise.
1108         (reload_gpr_from_vsxsf): Likewise.
1109         (p8_mfvsrd_4_disf): Likewise.
1110         (multi-word GPR splits): Do not split direct moves or quad memory
1111         operations.
1112
1113 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1114
1115         * tree-into-ssa.c (interesting_blocks): Make static.
1116
1117 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1118
1119         PR target/56564
1120         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1121         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1122         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1123         (get_variable_align): New function.
1124         (get_variable_section, emit_bss, emit_common,
1125         assemble_variable_contents, place_block_symbol): Use
1126         get_variable_align instead of DECL_ALIGN.
1127         (assemble_noswitch_variable): Add align argument, use it
1128         instead of DECL_ALIGN.
1129         (assemble_variable): Adjust caller.  Use get_variable_align
1130         instead of DECL_ALIGN.
1131         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1132         caller.
1133         (DATA_ABI_ALIGNMENT): Define.
1134         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1135         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1136         opt is false, only return the psABI mandated alignment increase.
1137         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1138         (DATA_ABI_ALIGNMENT): ... this.
1139         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1140         (DATA_ABI_ALIGNMENT): ... this.
1141         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1142         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1143         (DATA_ABI_ALIGNMENT): ... this.
1144         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1145         * doc/tm.texi: Regenerated.
1146
1147 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1148
1149         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1150         cmp_code to construct REG_EQUAL note.
1151
1152 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1153
1154         PR target/57568
1155         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1156         that operands[2] doesn't overlap with operands[0].
1157
1158 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1159             Jan Hubicka  <jh@suse.cz>
1160
1161         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1162         hack to mark symbols as used.
1163
1164 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1165
1166         PR rtl-optimization/57559
1167         * lra-constraints.c (process_alt_operands): Don't discourage
1168         memory with known offset for offsetable memory constraint.
1169         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1170
1171 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1172
1173         * varasm.c (struct oc_local_state): Reorder fields.
1174         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1175         and adjust accordingly.
1176         (output_constructor): Reorder initialization code and adjust call to
1177         output_constructor_bitfield.
1178
1179 2013-06-07  Jan Hubicka  <jh@suse.cz>
1180
1181         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1182
1183 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1184
1185         * tree-object-size.c (unknown): Make const.
1186
1187 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1188
1189         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1190         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1191         for last alternative in the cpu_facility attribute.
1192
1193 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1194
1195         PR target/56315
1196         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1197         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1198         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1199         * config/arm/constraints.md (Dg): New constraint.
1200         * config/arm/neon.md (xordi3_neon): Remove.
1201         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1202         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1203
1204 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1205
1206         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1207         Clean up alternatives.
1208
1209 2013-06-07  Alan Modra  <amodra@gmail.com>
1210
1211         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1212         va_list_gpr_size.
1213
1214 2013-06-07  Alan Modra  <amodra@gmail.com>
1215
1216         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1217
1218 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1219
1220         * config/arm/constraints.md (Df): New constraint.
1221         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1222         Correct length attribute for last two alternatives.
1223
1224 2013-06-07  Alan Modra  <amodra@gmail.com>
1225
1226         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1227         override user -mfp-in-toc.
1228         (offsettable_ok_by_alignment): Consider just the current access
1229         rather than the whole object, unless BLKmode.  Handle
1230         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1231         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1232         for -mcmodel=medium.
1233         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1234         override user -mfp-in-toc or -msum-in-toc.  Default to
1235         -mno-fp-in-toc for -mcmodel=medium.
1236
1237 2013-06-06  DJ Delorie  <dj@redhat.com>
1238
1239         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1240         TARGET_VALID_POINTER_MODE.
1241
1242 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1243             Pat Haugen <pthaugen@us.ibm.com>
1244             Peter Bergner <bergner@vnet.ibm.com>
1245
1246         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1247         Document new power8 builtins.
1248
1249         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1250         condition code register, to allow 128-bit logical operations to be
1251         done in the VSX or GPR registers.
1252         (nor<mode>3): Use the canonical form for nor.
1253         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1254         vclz*, and vpopcnt* vector instructions.
1255         (nand<mode>3): Likewise.
1256         (orc<mode>3): Likewise.
1257         (clz<mode>2): LIkewise.
1258         (popcount<mode>2): Likewise.
1259
1260         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1261         that only the GPRs are recognized.
1262
1263         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1264         support for new power8 builtins.
1265
1266         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1267         builtin functions.
1268         (xscvdpspn): Likewise.
1269         (vclz): Likewise.
1270         (vclzb): Likewise.
1271         (vclzh): Likewise.
1272         (vclzw): Likewise.
1273         (vclzd): Likewise.
1274         (vpopcnt): Likewise.
1275         (vpopcntb): Likewise.
1276         (vpopcnth): Likewise.
1277         (vpopcntw): Likewise.
1278         (vpopcntd): Likewise.
1279         (vgbbd): Likewise.
1280         (vmrgew): Likewise.
1281         (vmrgow): Likewise.
1282         (eqv): Likewise.
1283         (eqv_v16qi3): Likewise.
1284         (eqv_v8hi3): Likewise.
1285         (eqv_v4si3): Likewise.
1286         (eqv_v2di3): Likewise.
1287         (eqv_v4sf3): Likewise.
1288         (eqv_v2df3): Likewise.
1289         (nand): Likewise.
1290         (nand_v16qi3): Likewise.
1291         (nand_v8hi3): Likewise.
1292         (nand_v4si3): Likewise.
1293         (nand_v2di3): Likewise.
1294         (nand_v4sf3): Likewise.
1295         (nand_v2df3): Likewise.
1296         (orc): Likewise.
1297         (orc_v16qi3): Likewise.
1298         (orc_v8hi3): Likewise.
1299         (orc_v4si3): Likewise.
1300         (orc_v2di3): Likewise.
1301         (orc_v4sf3): Likewise.
1302         (orc_v2df3): Likewise.
1303
1304         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1305         allow power8 quad mode in 64-bit.
1306         (rs6000_builtin_vectorized_function): Add support to vectorize
1307         ISA 2.07 count leading zeros, population count builtins.
1308         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1309         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1310         (builtin_function_type): Add vgbbd builtin function which takes an
1311         unsigned argument.
1312         (altivec_expand_vec_perm_const): Add support for new power8 merge
1313         instructions.
1314
1315         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1316         that does not include TImdoe for use with 32-bit.
1317         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1318         instructions.
1319         (UNSPEC_VSX_CVDPSPN): Likewise.
1320         (vsx_xscvdpspn): Likewise.
1321         (vsx_xscvspdpn): Likewise.
1322         (vsx_xscvdpspn_scalar): Likewise.
1323         (vsx_xscvspdpn_directmove): Likewise.
1324         (vsx_and<mode>3): Split logical operations into 32-bit and
1325         64-bit. Add support to do logical operations on TImode as well as
1326         VSX vector types.  Allow logical operations to be done in either
1327         VSX registers or in general purpose registers in 64-bit mode.  Add
1328         splitters if GPRs were used. For AND, add clobber of CCmode to
1329         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1330         encoding.
1331         (vsx_and<mode>3_32bit): Likewise.
1332         (vsx_and<mode>3_64bit): Likewise.
1333         (vsx_ior<mode>3): Likewise.
1334         (vsx_ior<mode>3_32bit): Likewise.
1335         (vsx_ior<mode>3_64bit): Likewise.
1336         (vsx_xor<mode>3): Likewise.
1337         (vsx_xor<mode>3_32bit): Likewise.
1338         (vsx_xor<mode>3_64bit): Likewise.
1339         (vsx_one_cmpl<mode>2): Likewise.
1340         (vsx_one_cmpl<mode>2_32bit): Likewise.
1341         (vsx_one_cmpl<mode>2_64bit): Likewise.
1342         (vsx_nor<mode>3): Likewise.
1343         (vsx_nor<mode>3_32bit): Likewise.
1344         (vsx_nor<mode>3_64bit): Likewise.
1345         (vsx_andc<mode>3): Likewise.
1346         (vsx_andc<mode>3_32bit): Likewise.
1347         (vsx_andc<mode>3_64bit): Likewise.
1348         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1349         and xxlorc instructions.
1350         (vsx_eqv<mode>3_64bit): Likewise.
1351         (vsx_nand<mode>3_32bit): Likewise.
1352         (vsx_nand<mode>3_64bit): Likewise.
1353         (vsx_orc<mode>3_32bit): Likewise.
1354         (vsx_orc<mode>3_64bit): Likewise.
1355
1356         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1357
1358         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1359         instruction.
1360         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1361         (p8_vmrgow): Likewise.
1362         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1363         GPRs to be split under VSX.
1364         (p8v_clz<mode>2): Add power8 count leading zero support.
1365         (p8v_popcount<mode>2): Add power8 population count support.
1366         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1367         support.
1368
1369         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1370         instruction.
1371
1372         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1373         builtin functions.
1374         (vec_nand): Likewise.
1375         (vec_vclz): Likewise.
1376         (vec_vclzb): Likewise.
1377         (vec_vclzd): Likewise.
1378         (vec_vclzh): Likewise.
1379         (vec_vclzw): Likewise.
1380         (vec_vgbbd): Likewise.
1381         (vec_vmrgew): Likewise.
1382         (vec_vmrgow): Likewise.
1383         (vec_vpopcnt): Likewise.
1384         (vec_vpopcntb): Likewise.
1385         (vec_vpopcntd): Likewise.
1386         (vec_vpopcnth): Likewise.
1387         (vec_vpopcntw): Likewise.
1388
1389 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1390
1391         PR rtl-optimization/57468
1392         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1393         spilled pseudos.
1394
1395 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1396
1397         PR rtl-optimization/57459
1398         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1399         type when setting live regs.
1400
1401 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1402
1403         * config/s390/s390.opt (mlra): New option.
1404         * config/s390/s390.c (s390_decompose_address): Check displacement
1405         for all registers for LRA.
1406         (s390_secondary_reload): Don't used secondary reloads for LRA.
1407         (s390_lra_p): New function.
1408         (TARGET_LRA_P): Define.
1409         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1410         of attribute cpu_facility to zarch for the last alternative.
1411         (*cmpmem_short): Ditto.
1412
1413 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1414
1415         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1416         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1417         (arm_expand_prologue): Likewise.
1418
1419 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1420
1421         PR c++/53743
1422         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1423         as this is now done by redirect_edge_and_branch_force.
1424         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1425         barriers, and fix interaction with splitting.
1426         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1427         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1428         reflect changes made in the routine.
1429         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1430         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1431         since this is called in cfglayout mode, and replace partition fixup
1432         with assert as that is now done by force_nonfallthru_and_redirect.
1433         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1434         already be marked with region crossing note.
1435         (insert_section_boundary_note): Make non-static, gate on flag
1436         has_bb_partition, rewrite to also check for multiple partitions.
1437         (rest_of_handle_reorder_blocks): Remove call to
1438         insert_section_boundary_note, now done later during free_cfg.
1439         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1440         * bb-reorder.h (insert_section_boundary_note): Declare.
1441         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1442         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1443         invoke insert_section_boundary_note.
1444         (try_redirect_by_replacing_jump): Remove unnecessary
1445         check for region crossing note.
1446         (fixup_partition_crossing): New function.
1447         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1448         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1449         in non-cfglayout mode.
1450         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1451         remove old code that tried to do this. Emit barrier correctly
1452         when we are in cfglayout mode.
1453         (last_bb_in_partition): New function.
1454         (rtl_split_edge): Correctly fixup partition boundaries.
1455         (commit_one_edge_insertion): Remove old code that tried to
1456         fixup region crossing edge since this is now handled in
1457         split_block, and set up insertion point correctly since
1458         block may now end in a jump.
1459         (verify_hot_cold_block_grouping): Guard against checking when not in
1460         linearized RTL mode.
1461         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1462         notes.
1463         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1464         rtl_verify_flow_info, so not called in cfglayout mode.
1465         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1466         (fixup_reorder_chain): Remove old code that attempted to fixup region
1467         crossing note as this is now handled in force_nonfallthru_and_redirect.
1468         (duplicate_insn_chain): Don't duplicate switch section notes.
1469         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1470         note.
1471         * basic-block.h (emit_barrier_after_bb): Declare.
1472
1473 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1474
1475         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1476         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1477         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1478
1479 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1480
1481         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1482         where appropriate.
1483         * config/arm/ldmstm.md: Regenerate.
1484
1485 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1486
1487         * config/arm/sync.md (atomic_loaddi_1):
1488         Disable predication for arm_restrict_it.
1489         (arm_load_exclusive<mode>): Likewise.
1490         (arm_load_exclusivesi): Likewise.
1491         (arm_load_exclusivedi): Likewise.
1492         (arm_load_acquire_exclusive<mode>): Likewise.
1493         (arm_load_acquire_exclusivesi): Likewise.
1494         (arm_load_acquire_exclusivedi): Likewise.
1495         (arm_store_exclusive<mode>): Likewise.
1496         (arm_store_exclusive<mode>): Likewise.
1497         (arm_store_release_exclusivedi): Likewise.
1498         (arm_store_release_exclusive<mode>): Likewise.
1499
1500 2013-06-06  Richard Biener  <rguenther@suse.de>
1501
1502         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1503         after LTO_null.
1504         (lto_tag_is_tree_code_p): Adjust.
1505         (lto_tag_is_gimple_code_p): Likewise.
1506         (lto_gimple_code_to_tag): Likewise.
1507         (lto_tag_to_gimple_code): Likewise.
1508         (lto_tree_code_to_tag): Likewise.
1509         (lto_tag_to_tree_code): Likewise.
1510         * data-streamer.h (streamer_write_hwi_in_range): Use
1511         uhwi streaming to stream the normalized range.
1512         (streamer_read_hwi_in_range): Likewise.
1513
1514 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1515
1516         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1517         (predicable_short_it): Likewise.
1518         (predicated): Likewise.
1519         (enabled): Handle above.
1520         (define_cond_exec): Set predicated attribute to yes.
1521
1522 2013-06-05  Mike Stump  <mikestump@comcast.net>
1523
1524         * gdbinit.in (__FUNCTION__): Add.
1525
1526 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1527
1528         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1529         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1530
1531 2013-06-05  Jan Hubicka  <jh@suse.cz>
1532
1533         * varasm.c (mark_decl_referenced): Revert the removal until targets
1534         are fixed.
1535
1536 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1537
1538         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1539         instead of mark_decl_referenced.
1540
1541 2013-06-05  Jan Hubicka  <jh@suse.cz>
1542
1543         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1544         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1545         and symtab_used_from_object_file_p.
1546         (cgraph_make_node_local_1): Clear forced_by_abi.
1547         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1548         * cgraph.h (symtab_node_base): Add forced_by_abi.
1549         (decide_is_variable_needed): Remove.
1550         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1551         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1552         (decide_is_symbol_needed): ... this one; handle symbols in general;
1553         always analyze virtuals; honnor forced_by_abi.
1554         (cgraph_finalize_function): Update.
1555         (varpool_finalize_decl): Update.
1556         (symbol_defined_and_needed): Remove.
1557         (analyze_functions): Update.
1558         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1559         output_refs, input_overwrite_node): Handle forced_by_abi.
1560         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1561         (address_taken_from_non_vtable_p): ... this one.
1562         (comdat_can_be_unshared_p_1): New function.
1563         (cgraph_comdat_can_be_unshared_p): Rename to ...
1564         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1565         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1566         (function_and_variable_visibility): Clear forced_by_abi as needed.
1567         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1568         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1569         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1570         * varpool.c (decide_is_variable_needed): Remove.
1571
1572 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1573
1574         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1575         (arm_option_override): Override arm_restrict_it where appropriate.
1576         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1577         * config/arm/arm.opt (mrestrict-it): New command-line option.
1578         * doc/invoke.texi: Document -mrestrict-it.
1579
1580 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1581
1582         * tsan.c (tsan_atomic_table): Make const.
1583
1584 2013-06-05  Richard Biener  <rguenther@suse.de>
1585
1586         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1587         index associated with the tree we are supposed to replace.
1588         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1589         TREE_ASM_WRITTEN as zero for everything but SSA names.
1590
1591 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1592
1593         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1594
1595 2013-06-04  Jan Hubicka  <jh@suse.cz>
1596
1597         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1598         (input_node, input_varpool_node): Handle correctly external same
1599         body aliases.
1600         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1601         nodes at ltrans stage.
1602
1603 2013-06-04  Jan Hubicka  <jh@suse.cz>
1604
1605         * ipa-inline.c (update_caller_keys): Fix availability test.
1606         (update_callee_keys): Likewise.
1607         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1608         to follow ELF standard.
1609
1610 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1611
1612         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1613         (mips64r5900el-*-elf*): New configurations.
1614         * config/mips/mips-cpus.def (r5900): New processor.
1615         * config/mips/mips-tables.opt: Regenerate.
1616         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1617         (mips_issue_rate): Handle PROCESSOR_R5900.
1618         (mips_reorg_process_insns): Force reorder mode for the R5900.
1619         * config/mips/mips.h (TARGET_MIPS5900): Define.
1620         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1621         TARGET_MIPS5900.
1622         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1623         TARGET_MIPS5900.
1624         * config/mips/mips.md (processor): Add r5900.
1625         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1626
1627 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1628
1629         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1630         into function to generate MOVI instruction.
1631         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1632         (aarch64_preferred_simd_mode): Turn into wrapper.
1633         (aarch64_output_scalar_simd_mov_immediate): New function.
1634         * config/aarch64/aarch64-protos.h: Add prototype for above.
1635
1636 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1637
1638         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1639         element_char member.
1640         (sizetochar): Return signed char.
1641         (aarch64_simd_valid_immediate): Remove elchar and other
1642         unnecessary variables.
1643         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1644         Calculate element_char as required.
1645         * config/aarch64/aarch64-protos.h: Update and move prototype
1646         for aarch64_output_simd_mov_immediate.
1647         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1648         Update arguments.
1649
1650 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1651
1652         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1653         information completed by aarch64_simd_valid_immediate.
1654         (aarch64_legitimate_constant_p): Update arguments.
1655         (aarch64_simd_valid_immediate): Work with struct rather than many
1656         pointers.
1657         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1658         (aarch64_simd_make_constant): Update arguments.
1659         (aarch64_output_simd_mov_immediate): Work with struct rather than
1660         many pointers.  Output immediate directly rather than as operand.
1661         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1662         Update prototype.
1663         * config/aarch64/constraints.md (Dn): Update arguments.
1664
1665 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1666
1667         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1668         longer static.
1669         (aarch64_simd_immediate_valid_for_move): Remove.
1670         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1671         (aarch64_simd_make_constant): Update call.
1672         (aarch64_output_simd_mov_immediate): Update call.
1673         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1674         Add prototype.
1675         * config/aarch64/constraints.md (Dn): Update call.
1676
1677 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1678
1679         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1680         return type to bool for prototype.
1681         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1682         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1683         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1684
1685 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1686
1687         * config/mips/mips.opt (meva): New.
1688         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1689         (ASM_SPEC): Handle -meva.
1690         * doc/invoke.texi (meva):  Document.
1691
1692 2013-06-04  Alan Modra  <amodra@gmail.com>
1693
1694         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1695         constant output.
1696
1697 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1698
1699         * rtl.def: Add extra fourth optional field to define_cond_exec.
1700         * gensupport.c (process_one_cond_exec): Process attributes from
1701         define_cond_exec.
1702         * doc/md.texi: Document fourth field in define_cond_exec.
1703
1704 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1705
1706         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1707         out the processing order as in store_bit_field_1.
1708
1709 2013-06-04  Jan Hubicka  <jh@suse.cz>
1710
1711         PR middle-end/57500
1712         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1713         non-VAR_DECL node if it does not exist yet.
1714
1715 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1716
1717         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1718         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1719         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1720         target_cpu_default setting.
1721
1722 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1723
1724         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1725         default to -fopt-info=optimized instead of all.
1726         * doc/invoke.texi: Ditto.
1727         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1728         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1729         (execute_vect_slp): Emit BB vectorization success under
1730         MSG_OPTIMIZED_LOCATIONS.
1731         * tree-vect-slp.c (vect_slp_transform_bb): Change
1732         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1733         * tree-vect-loop.c (vect_transform_loop): Ditto.
1734
1735 2013-06-03  Jason Merrill  <jason@redhat.com>
1736
1737         PR c++/57415
1738         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1739         Use TARGET_EXPR for C++.
1740
1741 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1742
1743         PR rtl-optimization/57268
1744         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1745         if DEBUG_INSN_P (insn).
1746
1747         Reapply
1748         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1749
1750         PR rtl-optimization/57268
1751         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1752         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1753
1754 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1755
1756         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1757         (ix86_avoid_lea_for_addr): Likewise.
1758         (exact_dependency_1): Likewise.
1759         (ix86_adjust_cost): Likewise.
1760         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1761         removed.
1762         (do_reorder_for_imul): Fix typo, formatting and
1763         !reload_completed check removed.
1764         (ix86_sched_reorder): Fix typo and formatting.
1765         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1766         list.
1767
1768 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1769
1770         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1771
1772 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1773
1774         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1775         <STRING_CST>: Likewise.
1776         <VECTOR_CST>: Likewise.
1777
1778 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1779             Mikael Morin  <mikael@gcc.gnu.org>
1780
1781         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1782         * config.in: Regenerated.
1783         * configure: Regenerated.
1784
1785 2013-06-01  Jan Hubicka  <jh@suse.cz>
1786
1787         PR middle-end/57366
1788         * cgraphunit.c (compile): When weakref is not supported,
1789         set up transparent aliases before final output pass.
1790         * varasm.c (assemble_alias): Do not try to do it here.
1791
1792 2013-06-01  Jan Hubicka  <jh@suse.cz>
1793
1794         PR middle-end/57467
1795         * passes.c (for_per_function): Skip unanalyzed functions.
1796
1797 2013-06-01  Jan Hubicka  <jh@suse.cz>
1798
1799         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1800         (lto_symtab_merge_symbols_1): ... this one.
1801         (lto_symtab_merge_cgraph_nodes): Rename to ...
1802         (lto_symtab_merge_symbols): ... this one; simplify.
1803         * cgraph.c (same_body_aliases_done): Rename to ...
1804         (cpp_implicit_aliases_done): ... this one.
1805         (cgraph_create_function_alias): Update.
1806         (cgraph_same_body_alias): Update.
1807         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1808         (verify_edge_corresponds_to_fndecl): Simplify.
1809         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1810         (cgraph_node): Remove same_body_alias.
1811         (varpool_node): Remove alias_of and extra_name_alias.
1812         (same_body_aliases_done): Rename to ..
1813         (cpp_implicit_aliases_done): ... this one.
1814         (symtab_alias_ultimate_target): Add default parameter.
1815         (symtab_resolve_alias): New function.
1816         (fixup_same_cpp_alias_visibility): Declare.
1817         (cgraph_function_node): Add default parameter.
1818         (cgraph_node_asm_name): Likewise.
1819         (cgraph_function_or_thunk_node): Add default parameter; do
1820         not ICE when it is NULL.
1821         (varpool_variable_node): Likewise.
1822         * tree-emutls.c (create_emultls_var): Update.
1823         (ipa_lower_emutls): Update.
1824         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1825         (cgraph_reset_node): Reset alias info.
1826         (cgraph_finalize_function): Update.
1827         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1828         (analyze_function): Simplify.
1829         (cgraph_process_same_body_aliases): Simplify.
1830         (analyze_functions): Fixup same body aliases.
1831         (handle_alias_pairs): Simplify.
1832         (assemble_thunk): Update.
1833         (assemble_thunks_and_aliases): Update.
1834         (output_weakrefs): Rewrite.
1835         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1836         (lto_output_varpool_node): Likewise.
1837         (compute_ltrans_boundary): Remve assert.
1838         (get_alias_symbol): New functoin.
1839         (input_node): Rewrite alias handling.
1840         (input_varpool_node): Likewise.
1841         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1842         * ipa.c (process_references): Handle weakrefs correctly.
1843         (symtab_remove_unreachable_nodes): Likewise.
1844         * trans-mem.c (get_cg_data): Update.
1845         (ipa_tm_create_version_alias): Update.
1846         (ipa_tm_execute): Update.
1847         * symtab.c (dump_symtab_base): Dump aliases.
1848         (verify_symtab_base): Verify aliases.
1849         (symtab_node_availability): New function.
1850         (symtab_alias_ultimate_target): Simplify.
1851         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1852         handle all the fixup cases.
1853         (symtab_resolve_alias): New function.
1854         * passes.c (ipa_write_summaries): Handle weakrefs.
1855         * varpool.c (varpool_analyze_node): Simplify.
1856         (assemble_aliases): Update.
1857         (varpool_create_variable_alias): Simplify.
1858         (varpool_extra_name_alias): Simplify.
1859         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1860         (lto_symtab_merge_symbols): ... this one.
1861
1862 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1863
1864         Revert
1865         PR rtl-optimization/57268
1866         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1867         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1868
1869 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1870
1871         Partially reverted:
1872         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1873
1874         PR middle-end/57073
1875         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1876         further up.
1877
1878 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1879
1880         PR rtl-optimization/57268
1881         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1882         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1883
1884 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1885
1886         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1887         unordered comparison operators when -fno-trapping-math is in effect
1888         on the e500.
1889         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1890         and implement unordered comparison operators properly on the e500.
1891
1892 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1893
1894         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1895         for constant scalar integers.
1896         (simplify_relational_operation_1): Likewise.
1897
1898 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1899
1900         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1901         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1902         Fix comment.
1903
1904 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1905             Igor Zamyatin  <igor.zamyatin@intel.com>
1906
1907         Silvermont (SLM) architecture performance tuning.
1908         * config/i386/i386.h (enum ix86_tune_indices): Add
1909         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1910         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1911
1912         * config/i386/i386.c (initial_ix86_tune_features)
1913         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1914         (ix86_lea_outperforms): Handle Silvermont tuning.
1915         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1916         call.
1917         (ix86_use_lea_for_mov): Likewise.
1918         (ix86_avoid_lea_for_addr): Likewise.
1919         (ix86_lea_for_add_ok): Likewise.
1920         (exact_dependency_1): New function.
1921         (exact_store_load_dependency): Likewise.
1922         (ix86_adjust_cost): Handle Silvermont tuning.
1923         (do_reoder_for_imul): Likewise.
1924         (swap_top_of_ready_list): New function.
1925         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1926
1927         * config/i386/i386.md (peepholes that split memory operand in fp
1928         converts): New.
1929
1930 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1931
1932         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1933         Remove un-necessary braces.
1934
1935 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1936
1937         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1938         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1939
1940 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1941
1942         PR middle-end/57073
1943         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1944
1945 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1946
1947         PR target/56315
1948         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1949         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1950         * config/arm/neon.md (iordi3_neon): Remove.
1951         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1952         * config/arm/predicates.md (imm_for_neon_logic_operand):
1953         Move to earlier in the file.
1954         (neon_logic_op2): Likewise.
1955         (arm_iordi_operand_neon): New predicate.
1956
1957 2013-05-31  Richard Biener  <rguenther@suse.de>
1958
1959         PR tree-optimization/57478
1960         PR tree-optimization/57453
1961         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1962         are life as well.
1963
1964 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1965
1966         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1967         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1968
1969 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1970             Thomas Koenig  <tkoenig@gcc.gnu.org>
1971
1972         PR middle-end/57073
1973         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1974         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1975
1976 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1977
1978         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1979
1980 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1981
1982         * target.def (register_usage_leveling_p): New hook.
1983         * targhooks.c (default_register_usage_leveling_p): New.
1984         * targhooks.h (default_register_usage_leveling_p): New prototype.
1985         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1986         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1987         * doc/tm.texi: Update.
1988         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1989
1990 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1991
1992         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1993         (*insv_reg<mode>): New define_insn.
1994
1995 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1996
1997         PR rtl-optimization/57439
1998         * postreload.c (move2add_valid_value_p): Check that we have
1999         a zero subreg_regno_offset when accessing the register in
2000         the requested mode.
2001
2002 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2003             Igor Zamyatin  <igor.zamyatin@intel.com>
2004
2005         Silvermont (SLM) architecture pipeline model, tuning and
2006         insn selection.
2007         * config.gcc: Add slm config options and target.
2008
2009         * config/i386/slm.md: New.
2010
2011         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2012
2013         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2014         PROCESSOR_SLM.
2015         (ix86_target_macros_internal): Likewise.
2016
2017         * gcc/config/i386/i386.c (slm_cost): New cost.
2018         (m_SLM): New macro flag.
2019         (initial_ix86_tune_features): Set m_SLM.
2020         (x86_accumulate_outgoing_args): Likewise.
2021         (x86_arch_always_fancy_math_387): Likewise.
2022         (processor_target_table): Add slm cost.
2023         (cpu_names): Add slm cpu name.
2024         (x86_option_override_internal): Set SLM ISA.
2025         (ix86_issue_rate): New case PROCESSOR_SLM.
2026         (ia32_multipass_dfa_lookahead): Likewise.
2027         (fold_builtin_cpu): Add slm.
2028
2029         * config/i386/i386.h (TARGET_SLM): New target macro.
2030         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2031         (processor_type): Add PROCESSOR_SLM.
2032
2033         * config/i386/i386.md (cpu): Add new value "slm".
2034         (slm.md): Include slm.md.
2035
2036 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2037             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2038
2039         * config/arm/arm-protos.h: Add and update function protos.
2040         * config/arm/arm.c (use_simple_return_p): New added.
2041         (thumb2_expand_return): Check simple_return flag.
2042         * config/arm/arm.md: Add simple_return and conditional simple_return.
2043         * config/arm/iterators.md: Add iterator for return and simple_return.
2044
2045 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2046
2047         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2048         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2049         (arm_emit_vfp_multi_reg_pop): Likewise.
2050         (thumb2_emit_ldrd_pop): Likewise.
2051         (arm_expand_epilogue): Add misc REG_CFA notes.
2052         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2053
2054 2013-05-29  Lawrence Crowl  <crowl@google.com>
2055
2056         * config/arm/t-arm: Update for below.
2057
2058         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2059         Change type to hash_table.  Update dependent calls and types.
2060
2061         * config/i386/t-cygming: Update for below.
2062
2063         * config/i386/t-interix: Update for below.
2064
2065         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2066         Change type to hash_table.  Update dependent calls and types.
2067         (i386_find_on_wrapper_list::wrappers): Likewise.
2068
2069         * config/ia64/t-ia64: Update for below.
2070
2071         * config/ia64/ia64.c (bundle_state_table):
2072         Change type to hash_table.  Update dependent calls and types.
2073
2074         * config/mips/mips.c (mips_reorg_process_insns::htab):
2075         Change type to hash_table.  Update dependent calls and types.
2076
2077         * config/sol2.c (solaris_comdat_htab):
2078         Change type to hash_table.  Update dependent calls and types.
2079
2080         * config/t-sol2: Update for above.
2081
2082 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2083
2084         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2085         functions are not yet marked as defined.
2086
2087 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2088             Pat Haugen <pthaugen@us.ibm.com>
2089             Peter Bergner <bergner@vnet.ibm.com>
2090
2091         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2092         instructions.
2093         (VEC_A): Likewise.
2094         (VEC_C): Likewise.
2095         (vrotl<mode>3): Likewise.
2096         (vashl<mode>3): Likewise.
2097         (vlshr<mode>3): Likewise.
2098         (vashr<mode>3): Likewise.
2099
2100         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2101         support for power8 V2DI builtins.
2102
2103         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2104         power8 V2DI builtins.
2105         (vupkhsw): Likewise.
2106         (vupklsw): Likewise.
2107         (vaddudm): Likewise.
2108         (vminsd): Likewise.
2109         (vmaxsd): Likewise.
2110         (vminud): Likewise.
2111         (vmaxud): Likewise.
2112         (vpkudum): Likewise.
2113         (vpksdss): Likewise.
2114         (vpkudus): Likewise.
2115         (vpksdus): Likewise.
2116         (vrld): Likewise.
2117         (vsld): Likewise.
2118         (vsrd): Likewise.
2119         (vsrad): Likewise.
2120         (vsubudm): Likewise.
2121         (vcmpequd): Likewise.
2122         (vcmpgtsd): Likewise.
2123         (vcmpgtud): Likewise.
2124         (vcmpequd_p): Likewise.
2125         (vcmpgtsd_p): Likewise.
2126         (vcmpgtud_p): Likewise.
2127         (vupkhsw): Likewise.
2128         (vupklsw): Likewise.
2129         (vaddudm): Likewise.
2130         (vmaxsd): Likewise.
2131         (vmaxud): Likewise.
2132         (vminsd): Likewise.
2133         (vminud): Likewise.
2134         (vpksdss): Likewise.
2135         (vpksdus): Likewise.
2136         (vpkudum): Likewise.
2137         (vpkudus): Likewise.
2138         (vrld): Likewise.
2139         (vsld): Likewise.
2140         (vsrad): Likewise.
2141         (vsrd): Likewise.
2142         (vsubudm): Likewise.
2143
2144         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2145         support for power8 V2DI instructions.
2146
2147         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2148         power8 V2DI instructions.  Combine pack and unpack insns to use an
2149         iterator for each mode.  Check whether a particular mode supports
2150         Altivec instructions instead of just checking TARGET_ALTIVEC.
2151         (UNSPEC_VPKUWUM): Likewise.
2152         (UNSPEC_VPKSHSS): Likewise.
2153         (UNSPEC_VPKSWSS): Likewise.
2154         (UNSPEC_VPKUHUS): Likewise.
2155         (UNSPEC_VPKSHUS): Likewise.
2156         (UNSPEC_VPKUWUS): Likewise.
2157         (UNSPEC_VPKSWUS): Likewise.
2158         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2159         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2160         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2161         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2162         (UNSPEC_VUPKHSB): Likewise.
2163         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2164         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2165         (UNSPEC_VUPKHSH): Likewise.
2166         (UNSPEC_VUPKLSB): Likewise.
2167         (UNSPEC_VUPKLSH): Likewise.
2168         (VI2): Likewise.
2169         (VI_char): Likewise.
2170         (VI_scalar): Likewise.
2171         (VI_unit): Likewise.
2172         (VP): Likewise.
2173         (VP_small): Likewise.
2174         (VP_small_lc): Likewise.
2175         (VU_char): Likewise.
2176         (add<mode>3): Likewise.
2177         (altivec_vaddcuw): Likewise.
2178         (altivec_vaddu<VI_char>s): Likewise.
2179         (altivec_vadds<VI_char>s): Likewise.
2180         (sub<mode>3): Likewise.
2181         (altivec_vsubcuw): Likewise.
2182         (altivec_vsubu<VI_char>s): Likewise.
2183         (altivec_vsubs<VI_char>s): Likewise.
2184         (altivec_vavgs<VI_char>): Likewise.
2185         (altivec_vcmpbfp): Likewise.
2186         (altivec_eq<mode>): Likewise.
2187         (altivec_gt<mode>): Likewise.
2188         (altivec_gtu<mode>): Likewise.
2189         (umax<mode>3): Likewise.
2190         (smax<mode>3): Likewise.
2191         (umin<mode>3): Likewise.
2192         (smin<mode>3): Likewise.
2193         (altivec_vpkuhum): Likewise.
2194         (altivec_vpkuwum): Likewise.
2195         (altivec_vpkshss): Likewise.
2196         (altivec_vpkswss): Likewise.
2197         (altivec_vpkuhus): Likewise.
2198         (altivec_vpkshus): Likewise.
2199         (altivec_vpkuwus): Likewise.
2200         (altivec_vpkswus): Likewise.
2201         (altivec_vpks<VI_char>ss): Likewise.
2202         (altivec_vpks<VI_char>us): Likewise.
2203         (altivec_vpku<VI_char>us): Likewise.
2204         (altivec_vpku<VI_char>um): Likewise.
2205         (altivec_vrl<VI_char>): Likewise.
2206         (altivec_vsl<VI_char>): Likewise.
2207         (altivec_vsr<VI_char>): Likewise.
2208         (altivec_vsra<VI_char>): Likewise.
2209         (altivec_vsldoi_<mode>): Likewise.
2210         (altivec_vupkhsb): Likewise.
2211         (altivec_vupkhs<VU_char>): Likewise.
2212         (altivec_vupkls<VU_char>): Likewise.
2213         (altivec_vupkhsh): Likewise.
2214         (altivec_vupklsb): Likewise.
2215         (altivec_vupklsh): Likewise.
2216         (altivec_vcmpequ<VI_char>_p): Likewise.
2217         (altivec_vcmpgts<VI_char>_p): Likewise.
2218         (altivec_vcmpgtu<VI_char>_p): Likewise.
2219         (abs<mode>2): Likewise.
2220         (vec_unpacks_hi_v16qi): Likewise.
2221         (vec_unpacks_hi_v8hi): Likewise.
2222         (vec_unpacks_lo_v16qi): Likewise.
2223         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2224         (vec_unpacks_lo_v8hi): Likewise.
2225         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2226         (vec_pack_trunc_v8h): Likewise.
2227         (vec_pack_trunc_v4si): Likewise.
2228         (vec_pack_trunc_<mode>): Likewise.
2229
2230         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2231         V2DI builtins.
2232         (vec_vmaxsd): Likewise.
2233         (vec_vmaxud): Likewise.
2234         (vec_vminsd): Likewise.
2235         (vec_vminud): Likewise.
2236         (vec_vpksdss): Likewise.
2237         (vec_vpksdus): Likewise.
2238         (vec_vpkudum): Likewise.
2239         (vec_vpkudus): Likewise.
2240         (vec_vrld): Likewise.
2241         (vec_vsld): Likewise.
2242         (vec_vsrad): Likewise.
2243         (vec_vsrd): Likewise.
2244         (vec_vsubudm): Likewise.
2245         (vec_vupkhsw): Likewise.
2246         (vec_vupklsw): Likewise.
2247
2248 2013-05-29  Jan Hubicka  <jh@suse.cz>
2249
2250         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2251         flags; reorder rest of fields in more consistent way.
2252         (varpool_node): Remove analyzed, finalized and alias.
2253         (cgraph_ndoe): Likewise.
2254         (symtab_alias_ultimate_target): New function.
2255         (cgraph_function_node): Move offline.
2256         (cgraph_reset_node): Declare.
2257         (cgraph_comdat_can_be_unshared_p): Remove.
2258         (varpool_remove_initializer): Declare.
2259         (varpool_first_defined_variable, varpool_next_defined_variable
2260         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2261         (cgraph_function_with_gimple_body_p): Update.
2262         (varpool_all_refs_explicit_p): Update.
2263         (symtab_alias_target): New function.
2264         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2265         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2266         (cgraph_function_or_thunk_node): Simplify using
2267         symtab_alias_ultimate_target.
2268         (varpool_variable_node): Likewise.
2269         * cgraph.c (cgraph_create_function_alias): Update.
2270         (cgraph_add_thunk): Update.
2271         (cgraph_remove_node): Update.
2272         (dump_cgraph_node): Do not dump removed flags.
2273         (cgraph_function_body_availability): Update.
2274         (cgraph_propagate_frequency): Update.
2275         (verify_cgraph_node): Check sanity of local flag.
2276         (cgraph_function_node): Move here from cgraph.h; revamp for
2277         cgraph_function_or_thunk_node.
2278         * lto-symtab.c (lto_varpool_replace_node): Update.
2279         (lto_symtab_resolve_can_prevail_p): Update.
2280         (lto_symtab_merge_cgraph_nodes): Update.
2281         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2282         propagate_constants_accross_call, devirtualization_time_bonus,
2283         ipcp_propagate_stage): Update.
2284         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2285         * ipa-inline-transform.c (clone_inlined_nodes,
2286         preserve_function_body_p): Update.
2287         * ipa-reference.c (propagate): Update.
2288         (write_node_summary_p): Update.
2289         * toplev.c (wrapup_global_declaration_2): Update.
2290         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2291         (analyze_function) ... this one.
2292         (cgraph_process_new_functions): Update.
2293         (cgraph_reset_node): Export.
2294         (cgraph_finalize_function): Update.
2295         (cgraph_add_new_function): Update.
2296         (process_function_and_variable_attributes): Update.
2297         (varpool_finalize_decl): Update.
2298         (symbol_finalized): Remove.
2299         (symbol_finalized_and_needed): Rename to ...
2300         (symbol_defined_and_needed): ... update.
2301         (cgraph_analyze_functions): Update.
2302         (handle_alias_pairs): Update.
2303         (mark_functions_to_output): Update.
2304         (assemble_thunk): Update.
2305         (output_in_order): Update.
2306         (output_weakrefs): Update.
2307         (finalize_compilation_unit): Update.
2308         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2309         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2310         input_node, input_varpool_node): Update.
2311         * dbxout.c (dbxout_expand_expr): Update.
2312         * cgraphclones.c (cgraph_clone_node): Update.
2313         (cgraph_copy_node_for_versioning): Update.
2314         (cgraph_materialize_clone): Update.
2315         (cgraph_materialize_all_clones): Update.
2316         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2317         propagate_pure_const, propagate_nothrow): Update.
2318         * lto-streamer-out.c (lto_output, write_symbol): Update.
2319         * ipa-utils.c (ipa_reverse_postorder): Update.
2320         * ipa-inline.c (can_inline_edge_p): Update.
2321         (update_caller_keys, ipa_inline): Update.
2322         * dwarf2out.c (reference_to_unused,
2323         premark_types_used_by_global_vars_helper): Update.
2324         * tree-eh.c (tree_could_trap_p): Update.
2325         * ipa-split.c (consider_split, execute_split_functions): Update.
2326         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2327         has_addr_references_p): Update; move ahead in file for better
2328         readability.
2329         (process_references): Simplify.
2330         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2331         bodies are removed.
2332         (cgraph_comdat_can_be_unshared_p): Make static.
2333         (cgraph_externally_visible_p): Update.
2334         (varpool_externally_visible_p): Update.
2335         (function_and_variable_visibility): Update.
2336         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2337         ipa_tm_mark_force_output_node): Update.
2338         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2339         estimate_edge_devirt_benefit, inline_generate_summary,
2340         inline_write_summary): Update.
2341         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2342         * ipa-prop.c (ipa_compute_jump_functions): Update.
2343         (ipa_print_node_params, ipa_prop_read_section,
2344         ipa_update_after_lto_read, read_replacements_section): Update.
2345         * varasm.c (mark_decl_referenced): Update.
2346         (assemble_alias, dump_tm_clone_pairs): Update.
2347         * tree-inline.c (copy_bb): Update.
2348         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2349         Update.
2350         * symtab.c (dump_symtab_base): Print new flags.
2351         (verify_symtab_base): Verify new flags.
2352         (symtab_alias_ultimate_target): New function.
2353         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2354         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2355         Update.
2356         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2357         Update.
2358         * i386.c (ix86_get_function_versions_dispatcher,
2359         ix86_generate_version_dispatcher_body): Update.
2360         (fold_builtin_cpu): Use varpool_add_new_variable.
2361         * varpool.c (varpool_remove_initializer): Break out from ...
2362         (varpool_remove_node): ... this one.
2363         (dump_varpool_node, varpool_node_for_asm,
2364         cgraph_variable_initializer_availability, varpool_analyze_node,
2365         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2366         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2367         Update.
2368
2369 2013-05-29  Jan Hubicka  <jh@suse.cz>
2370
2371         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2372
2373 2013-05-29  Easwaran Raman  <eraman@google.com>
2374
2375         PR tree-optimization/57442
2376         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2377         when control exits the main loop.
2378
2379 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2380
2381         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2382         and RX600.
2383         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2384         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2385         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2386         option.
2387
2388 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2389
2390         PR tree-optimization/57441
2391         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2392         Don't limit size of incr_vec to number of candidates.
2393
2394 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2395
2396         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2397         and mips16 directories.
2398         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2399         (MULTILIB_DIRNAMES): Ditto.
2400         (MULTILIB_EXCEPTIONS): Add new exceptions.
2401         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2402         (MULTILIB_DIRNAMES): Ditto.
2403         (MULTILIB_EXCEPTIONS): Add new exceptions.
2404
2405 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2406             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2407
2408         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2409         SYMBOL_TINY_ABSOLUTE.
2410         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2411         SYMBOL_TINY_ABSOLUTE.
2412         (aarch64_expand_mov_immediate): Likewise.
2413         (aarch64_classify_symbol): Likewise.
2414         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2415         Permit SYMBOL_TINY_ABSOLUTE.
2416         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2417
2418 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2419             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2420
2421         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2422         Refactor if/switch.  Replace gcc_assert with if.
2423
2424 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2425
2426         * config/i386/i386.c (initial_ix86_tune_features): Enable
2427         FP Reassociation for AMD bdver1 and bdver2.
2428
2429 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2430
2431         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2432         and IMAGPART_EXPR do not occur within other handled_components.
2433
2434 2013-05-29  Richard Biener  <rguenther@suse.de>
2435
2436         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2437         access on whether the use is in the BB we currently try to
2438         vectorize.
2439         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2440         vectorize to vect_bb_slp_scalar_cost.
2441
2442 2013-05-29  Richard Biener  <rguenther@suse.de>
2443
2444         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2445         computing scalar cost offsetted by stmts that are kept live
2446         by scalar uses.
2447         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2448         for computation of scalar cost.
2449
2450 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2451
2452         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2453
2454 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2455
2456         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2457         array notation built-in reduction functions.
2458         * doc/passes.texi (Passes): Added documentation about changes done
2459         for Cilk Plus.
2460         * doc/invoke.texi (C Dialect Options): Added documentation about
2461         the -fcilkplus flag.
2462         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2463         (BUILTINS_DEF): Depend on cilkplus.def.
2464         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2465         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2466         * cilkplus.def: New file.
2467
2468 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2469
2470         PR rtl-optimization/57439
2471         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2472
2473 2013-05-28  Easwaran Raman  <eraman@google.com>
2474
2475         PR tree-optimization/57337
2476         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2477         (find_insert_point): Correctly identify the insertion point
2478         when two statements with the same UID is compared.
2479
2480 2013-05-28  Richard Biener  <rguenther@suse.de>
2481
2482         PR tree-optimization/56787
2483         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2484         from the list of data references.
2485         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2486         clobbers.
2487         (vect_analyze_loop_operations): Likewise.
2488         (vect_transform_loop): Remove clobbers.
2489
2490 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2491
2492         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2493         and REALPART_EXPRs have scalar type.
2494
2495 2013-05-28  Richard Biener  <rguenther@suse.de>
2496
2497         PR tree-optimization/57411
2498         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2499         virtual operands.
2500         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2501         virtual operand propagation.
2502
2503 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2504
2505         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2506         destination register for bmasksi_vis.
2507         (vector_init_bshuffle): Likewise.
2508         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2509
2510 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2511
2512         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2513         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2514         mode if the instruction isn't available in the original mode.
2515         * config/sparc/sparc.opt (mfix-ut699): New option.
2516         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2517         (divdf3): Turn into expander.
2518         (divdf3_nofix): New insn.
2519         (divdf3_fix): Likewise.
2520         (divsf3): Disable if -mfix-ut699.
2521         (sqrtdf2): Turn into expander.
2522         (sqrtdf2_nofix): New insn.
2523         (sqrtdf2_fix): Likewise.
2524         (sqrtsf2): Disable if -mfix-ut699.
2525
2526 2013-05-27  Richard Biener  <rguenther@suse.de>
2527
2528         PR middle-end/57412
2529         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2530         block for the new loop.
2531
2532 2013-05-27  Richard Biener  <rguenther@suse.de>
2533
2534         PR tree-optimization/57343
2535         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2536         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2537         (number_of_iterations_cond): Do not build the folded tree.
2538
2539 2013-05-27  Richard Biener  <rguenther@suse.de>
2540
2541         Revert
2542         PR middle-end/57381
2543         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2544         OEP_CONSTANT_ADDRESS_OF retained.
2545
2546         PR tree-optimization/57417
2547         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2548         for unchanged base.
2549         (set_ssa_val_to): Compare addresses using
2550         get_addr_base_and_unit_offset.
2551
2552 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2553
2554         PR rtl-optimization/56833
2555         * postreload.c (move2add_record_mode): New function.
2556         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2557         (move2add_use_add2_insn): Use move2add_record_sym_value.
2558         (move2add_use_add3_insn): Likewise.
2559         (reload_cse_move2add): Use move2add_valid_value_p and
2560         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2561         affected regs by setting reg_mode to VOIDmode.
2562         (move2add_note_store): Don't pretend the inside of a SUBREG is
2563         the actual destination.  Invalidate single/leading registers by
2564         setting reg_mode to VOIDmode.
2565         Use move2add_record_sym_value, move2add_valid_value_p and
2566         move2add_record_mode.
2567
2568 2013-05-27  Richard Biener  <rguenther@suse.de>
2569
2570         PR tree-optimization/57396
2571         * tree-affine.c (double_int_constant_multiple_p): Properly
2572         return false for val == 0 and div != 0.
2573
2574 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2575
2576         * config/mips/mips.h: Use #elif in preprocessor conditions.
2577
2578 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2579
2580         PR target/53916
2581         * config/mips/constraints.md (kl): New constraint.
2582         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2583         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2584         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2585         from LO for MIPS16.
2586         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2587
2588 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2589
2590         PR target/55777
2591         * config/mips/mips.c (mips_can_inline_p): New function.
2592         (TARGET_CAN_INLINE_P): Define.
2593
2594 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2595
2596         * sched-int.h (ds_t, dw_t): Make unsigned int.
2597         Fix documentation that describes how all the ds_t bits are used.
2598         Reserve the last bit for delayed-branch scheduling.
2599         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2600         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2601         (gen_dep_weak_1): Remove prototype.
2602         * sched-deps.c (get_dep_weak_1): Make static.
2603         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2604         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2605         * doc/tm.texi: Regenerate.
2606         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2607
2608 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2609
2610         PR debug/56950
2611         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2612
2613 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2614             Sandra Loosemore  <sandra@codesourcery.com>
2615
2616         * config.gcc (powerpc-*): Allow native for with-cpu.
2617
2618 2013-05-24  Jeff Law  <law@redhat.com>
2619
2620         PR tree-optimization/57124
2621         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2622         conversion feeding a condition if the range has an overflow
2623         if -fstrict-overflow.  Add warnings for when we do make the
2624         transformation.
2625
2626 2013-05-24  Dehao Chen  <dehao@google.com>
2627
2628         * tree-cfg.c (locus_discrim_map): Fix the typo.
2629         (locus_discrim_hasher): Likewise.
2630         (locus_discrim_hasher::hash): Likewise.
2631         (locus_discrim_hasher::equal): Likewise.
2632
2633 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2634
2635         PR tree-optimization/57294
2636         * cgraph.h (ipa_record_stmt_references): Declare.
2637         * cgraphbuild.c (ipa_record_stmt_references): New function.
2638         (build_cgraph_edges): Use ipa_record_stmt_references.
2639         (rebuild_cgraph_edges): Likewise.
2640         (cgraph_rebuild_references): Likewise.
2641         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2642         associated with the old statement and build references from the
2643         newly built statements.
2644         * ipa-ref.c (ipa_remove_stmt_references): New function.
2645         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2646
2647 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2648
2649         * lra-constraints.c (emit_spill_move): Use smaller mode for
2650         mem-mem moves.
2651         (check_and_process_move): Consider mem-reg moves for secondary
2652         too.
2653         (curr_insn_transform): Don't lose insns emitted before for
2654         secondary memory moves.
2655         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2656         reg set up in the current insn.
2657
2658 2013-05-24  Dehao Chen  <dehao@google.com>
2659
2660         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2661         hash function.
2662         (locus_descrim_hasher::equal): Likewise.
2663         (build_gimple_cfg): New discriminator assignment algorithm.
2664         (make_edges): Likewise.
2665         (next_discriminator_for_locus): Likewise.
2666         (same_line_p): Likewise.
2667         (assign_discriminators): Likewise.
2668         (make_cond_expr_edges): Likewise.
2669         (make_gimple_switch_edges): Likewise.
2670         (make_goto_expr_edges): Likewise.
2671         (make_gimple_asm_edges): Likewise.
2672
2673 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2674
2675         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2676         X format specifier to only display bottom 16 bits.
2677         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2678         immediate to match for operand 2, since it will be masked.
2679
2680 2013-05-24  Richard Biener  <rguenther@suse.de>
2681
2682         PR tree-optimization/57287
2683         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2684         all SSA names that occur in abnormal PHIs.
2685
2686 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2687
2688         PR tree-ssa/57385
2689         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2690         that index is not negative.
2691
2692 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2693
2694         PR rtl-optimization/55177
2695         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2696         (simplify_byte_swapping_operation): New.
2697         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2698         (simplify_relational_operation_1): Deal with BSWAP.
2699
2700 2013-05-23  Richard Henderson  <rth@redhat.com>
2701
2702         PR target/56742
2703         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2704         (ix86_reorg): Call it.
2705
2706 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2707
2708         PR target/57379
2709         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2710         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2711         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2712
2713 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2714
2715         PR debug/57351
2716         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2717
2718 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2719             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2720
2721         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2722         * config/aarch64/constraints.md (Usa): Remove.
2723         * doc/md.texi (AArch64 Usa): Remove.
2724
2725 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2726             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2727
2728         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2729         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2730         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2731         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2732
2733 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2734
2735         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2736         instruction (AdvSIMD).
2737         * config/aarch64/aarch64-builtins.c
2738         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2739         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2740
2741 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2742
2743         PR middle-end/57347
2744         * tree.h (contains_bitfld_component_ref_p): Declare.
2745         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2746         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2747         caller.
2748         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2749         not access a bit-field.  Assert all final offsets are byte-aligned.
2750
2751 2013-05-23  Richard Biener  <rguenther@suse.de>
2752
2753         PR tree-optimization/57380
2754         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2755         least one invariant or re-used load.
2756         * passes.c (init_optimization_passes): Move pass_phiprop before
2757         pass_forwprop.
2758
2759 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2760
2761         * config/aarch64/aarch64-simd.md
2762         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2763
2764 2013-05-23  Richard Biener  <rguenther@suse.de>
2765
2766         PR middle-end/57381
2767         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2768         OEP_CONSTANT_ADDRESS_OF retained.
2769
2770 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2771
2772         PR middle-end/57344
2773         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2774         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2775
2776 2013-05-23  Richard Biener  <rguenther@suse.de>
2777
2778         PR rtl-optimization/57341
2779         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2780         instead of true_dependence.
2781
2782 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2783
2784         * bb-reorder.c (branch_threshold): Make const.
2785         (exec_threshold): Ditto.
2786
2787 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2788             Pat Haugen <pthaugen@us.ibm.com>
2789             Peter Bergner <bergner@vnet.ibm.com>
2790
2791         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2792         documentation for the power8 crypto builtins.
2793
2794         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2795
2796         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2797         macros for defining power8 builtin functions.
2798         (BU_P8V_AV_2): Likewise.
2799         (BU_P8V_AV_P): Likewise.
2800         (BU_P8V_VSX_1): Likewise.
2801         (BU_P8V_OVERLOAD_1): Likewise.
2802         (BU_P8V_OVERLOAD_2): Likewise.
2803         (BU_CRYPTO_1): Likewise.
2804         (BU_CRYPTO_2): Likewise.
2805         (BU_CRYPTO_3): Likewise.
2806         (BU_CRYPTO_OVERLOAD_1): Likewise.
2807         (BU_CRYPTO_OVERLOAD_2): Likewise.
2808         (XSCVSPDP): Fix typo, point to the correct instruction.
2809         (VCIPHER): Add power8 crypto builtins.
2810         (VCIPHERLAST): Likewise.
2811         (VNCIPHER): Likewise.
2812         (VNCIPHERLAST): Likewise.
2813         (VPMSUMB): Likewise.
2814         (VPMSUMH): Likewise.
2815         (VPMSUMW): Likewise.
2816         (VPERMXOR_V2DI): Likewise.
2817         (VPERMXOR_V4SI: Likewise.
2818         (VPERMXOR_V8HI: Likewise.
2819         (VPERMXOR_V16QI: Likewise.
2820         (VSHASIGMAW): Likewise.
2821         (VSHASIGMAD): Likewise.
2822         (VPMSUM): Likewise.
2823         (VPERMXOR): Likewise.
2824         (VSHASIGMA): Likewise.
2825
2826         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2827         __CRYPTO__ if the crypto instructions are available.
2828         (altivec_overloaded_builtins): Add support for overloaded power8
2829         builtins.
2830
2831         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2832         support for power8 crypto builtins.
2833         (builtin_function_type): Likewise.
2834         (altivec_init_builtins): Add support for builtins that take vector
2835         long long (V2DI) arguments.
2836
2837         * config/rs6000/crypto.md: New file, define power8 crypto
2838         instructions.
2839
2840 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2841             Pat Haugen <pthaugen@us.ibm.com>
2842             Peter Bergner <bergner@vnet.ibm.com>
2843
2844         * doc/invoke.texi (Option Summary): Add power8 options.
2845         (RS/6000 and PowerPC Options): Likewise.
2846
2847         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2848         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2849         wm, wn, wr documentation.
2850
2851         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2852         registers if direct move instructions are enabled.
2853         (wn): New constraint for no registers.
2854         (wq): New constraint for quad word even GPR registers.
2855         (wr): New constraint if 64-bit instructions are enabled.
2856         (wv): New constraint if power8 vector instructions are enabled.
2857         (wQ): New constraint for quad word memory locations.
2858
2859         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2860         constraint for 0..15 for crypto instructions.
2861         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2862         as GPR and floating point registers.
2863         (int_reg_operand): New predicate to match only GPR registers.
2864         (base_reg_operand): New predicate to match base registers.
2865         (quad_int_reg_operand): New predicate to match even GPR registers
2866         for quad memory operations.
2867         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2868         operations in both GPR and VSX registers.
2869         (quad_memory_operand): New predicate for quad memory operations.
2870         (reg_or_indexed_operand): New predicate for direct move support.
2871
2872         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2873         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2874         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2875         (POWERPC_MASKS): Add power8 options.
2876         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2877         various options.
2878
2879         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2880         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2881
2882         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2883         (-mpower8-fusion): New power8 options.
2884         (-mpower8-fusion-sign): Likewise.
2885         (-mpower8-vector): Likewise.
2886         (-mcrypto): Likewise.
2887         (-mdirect-move): Likewise.
2888         (-mquad-memory): Likewise.
2889
2890         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2891         power8.
2892         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2893         registers.
2894         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2895         (rs6000_debug_vector_unit): Add p8_vector.
2896         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2897         definitions.  Also print fusion state.
2898         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2899         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2900         (rs6000_option_override_internal): Add support for power8.
2901         (rs6000_common_init_builtins): Add debugging for skipped builtins
2902         if -mdebug=builtin.
2903         (rs6000_adjust_cost): Add power8 support.
2904         (rs6000_issue_rate): Likewise.
2905         (insn_must_be_first_in_group): Likewise.
2906         (insn_must_be_last_in_group): Likewise.
2907         (force_new_group): Likewise.
2908         (rs6000_register_move_cost): Likewise.
2909         (rs6000_opt_masks): Likewise.
2910
2911         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2912         power8 capable assembler, default to power7 options.
2913         (TARGET_DIRECT_MOVE): Likewise.
2914         (TARGET_CRYPTO): Likewise.
2915         (TARGET_P8_VECTOR): Likewise.
2916         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2917         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2918         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2919         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2920         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2921         (TARGET_XSCVDPSPN): Likewise.
2922         (TARGET_XSCVSPDPN): Likewsie.
2923         (TARGET_SYNC_HI_QI): Likewise.
2924         (TARGET_SYNC_TI): Likewise.
2925         (MASK_CRYPTO): Likewise.
2926         (MASK_DIRECT_MOVE): Likewise.
2927         (MASK_P8_FUSION): Likewise.
2928         (MASK_P8_VECTOR): Likewise.
2929         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2930         temporary used by some of the direct move instructions to get two FP
2931         temporary registers does not force creation of a stack frame.
2932         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2933         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2934         that any VSX registers are tieable, even if they are also an
2935         Altivec vector mode.
2936         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2937         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2938         (RS6000_BTM_CRYPTO): Likewise.
2939         (RS6000_BTM_COMMON): Likewise.
2940
2941         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2942         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2943         (enum rs6000_vector): Add power8 vector support.
2944
2945 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2946
2947         PR target/19599
2948         PR target/57340
2949         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2950         (any_sibcall_could_use_r3): this and handle indirect calls.
2951         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2952
2953 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2954
2955         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2956
2957 2013-05-22  Richard Biener  <rguenther@suse.de>
2958
2959         PR middle-end/57349
2960         * profile.c (branch_prob): Do not split blocks that are
2961         abnormally receiving from ECF_RETURNS_TWICE functions.
2962
2963 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2964
2965         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2966         address mode.  Move pointer mode initialization to the same place.
2967
2968 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2969
2970         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2971         while it has any effect.
2972
2973 2013-05-21  Easwaran Raman  <eraman@google.com>
2974
2975         PR tree-optimization/57322
2976         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2977         UID of the statement added to the BB to be 1.
2978
2979 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2980
2981         PR tree-optimization/57331
2982         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2983         of conversion from pointer type to integral type with integer.
2984
2985 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2986
2987         PR lto/57289
2988         * ipa-prop.c (ipa_read_node_info): Process param_used and
2989         controlled_uses in the same order as when writing.
2990
2991 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2992
2993         PR plugins/56754
2994         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2995
2996 2013-05-21  Richard Biener  <rguenther@suse.de>
2997
2998         PR tree-optimization/57318
2999         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3000         estimate stmts with side-effects as likely eliminated.
3001
3002 2013-05-21  Richard Biener  <rguenther@suse.de>
3003
3004         PR tree-optimization/57330
3005         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3006         preserve the call stmts fntype.
3007
3008 2013-05-21  Richard Biener  <rguenther@suse.de>
3009
3010         PR tree-optimization/57303
3011         * tree-ssa-sink.c (statement_sink_location): Improve killing
3012         stmt detection and properly handle self-assignments.
3013
3014 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3015
3016         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3017         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3018         registers. Set register size out of the PARALLEL loop.
3019
3020 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3021
3022         PR target/56547
3023         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3024         (*fmasf4, *fmasf4_media): New insns.
3025
3026 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3027
3028         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3029         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3030         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3031         (mips_idiv_insns): Update the comments to say that the returned
3032         instruction counts are in units of BASE_INSN_LENGTH.
3033         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3034         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3035         using 2 rather than 4 as the length of indirect MIPS16 and
3036         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3037         length of a NOP.  Don't divide MIPS16 lengths by 2.
3038         (mips16_split_long_branches): Assume a branch is long if the
3039         length is greater than 4 rather than 8.
3040         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3041         rather than multiplying them by 2.  Multiply instruction counts
3042         by BASE_INSN_LENGTH rather than 4.
3043         (*jump_mips16, tls_get_tp_mips16_<mode>)
3044         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3045
3046 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3047
3048         * config/mips/mips.md (extended_mips16): Remove branch case.
3049         (length): Remove duplicated extended_mips16 test.
3050
3051 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3052
3053         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3054
3055 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3056
3057         * recog.h (Recog_data): Rename to...
3058         (recog_data_d): ...this.
3059         (recog_data): Update accordingly.
3060         * recog.c (recog_data): Likewise.
3061         * reload.c (save_recog_data): Likewise.
3062         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3063         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3064
3065 2013-05-17  Julian Brown  <julian@codesourcery.com>
3066
3067         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3068         found in a REG_EQUAL note, invalidate it.
3069
3070 2013-05-17   Easwaran Raman  <eraman@google.com>
3071
3072         * tree-ssa-reassoc.c (find_insert_point): New function.
3073         (insert_stmt_after): Likewise.
3074         (get_def_stmt): Likewise.
3075         (ensure_ops_are_available): Likewise.
3076         (not_dominated_by): Likewise.
3077         (rewrite_expr_tree): Do not move statements beyond what is
3078         necessary. Remove call to swap_ops_for_binary_stmt...
3079         (reassociate_bb): ... and move it here.
3080         (build_and_add_sum): Assign UIDs for new statements.
3081         (linearize_expr): Likewise.
3082         (do_reassoc): Renumber gimple statement UIDs.
3083
3084 2013-05-17  Jan Hubicka  <jh@suse.cz>
3085
3086         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3087         weakrefs.
3088         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3089         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3090         weakrefs.
3091         (output_weakrefs): Update.
3092
3093 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3094             Martin Jambor  <mjambor@suse.cz>
3095
3096         PR middle-end/57276
3097         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3098         value that corresponds to the given aggval is found in values vector.
3099
3100 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3101
3102         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3103         sse, sse2, sse3, ssse3 and sse4a flags to options.
3104
3105 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3106
3107         * gengtype-state.c: (s_expr_writer): New class, to handle
3108         prettifying of output layout of s-expressions.
3109         (state_writer): New class, to write out gtype.state.
3110         (state_written_type_count): Move this variable into member data of
3111         state_writer.
3112         (s_expr_writer::s_expr_writer): New code: constructor for new class
3113         (state_writer::state_writer(): ditto
3114         (s_expr_writer::write_new_line): New function
3115         (s_expr_writer::write_any_indent): ditto
3116         (s_expr_writer::begin_s_expr): ditto
3117         (s_expr_writer::end_s_expr): ditto
3118         (write_state_fileloc): convert to method of state_writer...
3119         (state_writer:: write_state_fileloc): ...and use methods of
3120         s_expr_writer to write indentation into the gtype.state output file
3121         to visually represent the hierarchical structure of the list
3122         structures
3123         (write_state_fields): ditto, renaming to...
3124         (state_writer::write_state_fields)
3125         (write_state_a_string): ditto, renaming to...
3126         (state_writer::write_state_a_string)
3127         (write_state_string_option): ditto, renaming to...
3128         (state_writer::write_state_string_option)
3129         (write_state_type_option): ditto, renaming to...
3130         (state_writer::write_state_type_option)
3131         (write_state_nested_option): ditto, renaming to...
3132         (state_writer::write_state_nested_option)
3133         (write_state_option): ditto, renaming to...
3134         (state_writer::write_state_option)
3135         (write_state_options): ditto, renaming to...
3136         (state_writer::write_state_options)
3137         (write_state_lang_bitmap): ditto, renaming to...
3138         (state_writer::write_state_lang_bitmap)
3139         (write_state_version): ditto, renaming to...
3140         (state_writer::write_state_version)
3141         (write_state_scalar_type): ditto, renaming to...
3142         (state_writer::write_state_scalar_type)
3143         (write_state_string_type): ditto, renaming to...
3144         (state_writer::write_state_string_type)
3145         (write_state_undefined_type): ditto, renaming to...
3146         (state_writer::write_state_undefined_type)
3147         (write_state_struct_union_type): ditto, renaming to...
3148         (state_writer::write_state_struct_union_type)
3149         (write_state_struct_type): ditto, renaming to...
3150         (state_writer::write_state_struct_type)
3151         (write_state_user_struct_type): ditto, renaming to...
3152         (state_writer::write_state_user_struct_type)
3153         (write_state_lang_struct_type): ditto, renaming to...
3154         (state_writer::write_state_lang_struct_type)
3155         (write_state_param_struct_type): ditto, renaming to...
3156         (state_writer::write_state_param_struct_type)
3157         (write_state_pointer_type): ditto, renaming to...
3158         (state_writer::write_state_pointer_type)
3159         (write_state_array_type): ditto, renaming to...
3160         (state_writer::write_state_array_type)
3161         (write_state_gc_used): ditto, renaming to...
3162         (state_writer::write_state_gc_used)
3163         (write_state_common_type_content): ditto, renaming to...
3164         (state_writer::write_state_common_type_content)
3165         (write_state_type): ditto, renaming to...
3166         (state_writer::write_state_type)
3167         (write_state_pair_list): ditto, renaming to...
3168         (state_writer::write_state_pair_list)
3169         (write_state_pair): ditto, renaming to...
3170         (state_writer::write_state_pair)
3171         (write_state_typedefs): ditto, renaming to...
3172         (state_writer::write_state_typedefs)
3173         (write_state_structures): ditto, renaming to...
3174         (state_writer::write_state_structures)
3175         (write_state_param_structs): ditto, renaming to...
3176         (state_writer::write_state_param_structs)
3177         (write_state_variables): ditto, renaming to...
3178         (state_writer::write_state_variables)
3179         (write_state_srcdir): ditto, renaming to...
3180         (state_writer::write_state_srcdir)
3181         (write_state_files_list): ditto, renaming to...
3182         (state_writer::write_state_files_list)
3183         (write_state_languages): ditto, renaming to...
3184         (state_writer::write_state_languages)
3185         (write_state): create a state_writer instance and use it when
3186         writing out the state file
3187
3188 2013-05-17  Mike Stump  <mikestump@comcast.net>
3189
3190         PR rtl-optimization/57304
3191         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3192         accessing DF_REF_REAL_LOC.
3193
3194 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3195
3196         PR rtl-optimization/57281
3197         PR rtl-optimization/57300
3198         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3199         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3200         what the other splitter did if the registers are dead.
3201
3202 2013-05-17  Richard Biener  <rguenther@suse.de>
3203
3204         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3205         MEM_REF offsets.
3206
3207 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3208
3209         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3210         linking.
3211
3212 2013-05-17  Marek Polacek  <polacek@redhat.com>
3213
3214         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3215         length when doing non-zero store of storing '\0' to '\0'.
3216
3217 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3218
3219         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3220         vect_external_def oprnd1 with loop_vinfo, try to emit
3221         optional cast, negation and and stmts on the loop preheader
3222         edge instead of into the pattern def seq.
3223
3224         PR tree-optimization/57051
3225         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3226         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3227
3228 2013-05-16  Nick Clifton  <nickc@redhat.com>
3229
3230         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3231         (rl78_is_naked_func): New function.
3232         (rl78_expand_prologue): Skip prologue generation for naked functions.
3233         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3234         * doc/extend.texi (naked): Add RL78 to the list of processors
3235         that supports this attribute.
3236
3237 2013-05-16  Jeff Law  <law@redhat.com>
3238
3239         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3240
3241 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3242
3243         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3244         cache parameters using detect_caches_amd also for CYRIX,
3245         NSC and TM2 signatures.
3246
3247 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3248             Dzianis Kahanovich  <mahatma@eu.by>
3249
3250         PR target/45359
3251         PR target/46396
3252         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3253         VIA/Centaur processors and determine their cache parameters
3254         using detect_caches_amd.
3255
3256 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3257
3258         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3259         (rtl_verify_edges): New function.
3260         (rtl_verify_bb_insns): Ditto.
3261         (rtl_verify_bb_pointers): Ditto.
3262         (rtl_verify_bb_insn_chain): Ditto.
3263         (rtl_verify_fallthru): Ditto.
3264         (rtl_verify_bb_layout): Ditto.
3265         (rtl_verify_flow_info_1): Outline checks into new functions.
3266         (rtl_verify_flow_info): Ditto.
3267
3268 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3269
3270         * cfghooks.c (copy_bbs): Add update_dominance argument.
3271         * cfghooks.h (copy_bbs): Update prototype.
3272         * tree-cfg.c (gimple_duplicate_sese_region):
3273         Add update_dominance argument.
3274         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3275         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3276         gimple_duplicate_sese_region call.
3277         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3278         Update copy_bbs call.
3279         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3280         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3281
3282 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3283
3284         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3285         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3286         vect_recog_rotate_pattern.
3287         (vect_recog_rotate_pattern): New function.
3288
3289 2013-05-16  Jason Merrill  <jason@redhat.com>
3290
3291         * Makefile.in (LLINKER): New variable.
3292         (mostlyclean): Remove link mutex.
3293         * configure.ac: Handle --enable-link-mutex.
3294         * lock-and-run.sh: New script.
3295
3296 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3297
3298         PR target/19599
3299         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3300         for NULL decl.
3301
3302 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3303
3304         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3305
3306 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3307
3308         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3309         * config/arm/arm.c (next_consecutive_mem): New function.
3310         (gen_movmem_ldrd_strd): Likewise.
3311         * config/arm/arm.md (movmemqi): Update condition and code.
3312         (unaligned_loaddi, unaligned_storedi): New patterns.
3313
3314 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3315
3316         * config.gcc: Obsolete *-*-solaris2.9*.
3317         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3318
3319 2013-05-16  Richard Biener  <rguenther@suse.de>
3320
3321         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3322         earlier, after GRAPHITE transforms and IV canonicalization.
3323
3324 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3325
3326         * omp-low.c (extract_omp_for_data): For collapsed loops,
3327         if at least one of the loops is known at compile time to
3328         iterate zero times, set count to 0.
3329         (expand_omp_regimplify_p): New function.
3330         (expand_omp_for_generic): For collapsed loops, if at least
3331         one of the loops isn't known to iterate at least once,
3332         add runtime check with setting count to 0.
3333         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3334         For unsigned types if it isn't known at compile time that
3335         the loop will iterate at least once, add runtime check to bypass
3336         the whole loop if initial condition isn't true.
3337
3338 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3339
3340         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3341
3342 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3343
3344         PR middle-end/57286
3345         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3346         transformations to avoid an infinite loop.
3347
3348 2013-05-16  Marek Polacek  <polacek@redhat.com>
3349
3350         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3351
3352 2013-05-15  Leif Ekblad  <leif@rdos.net>
3353
3354         * config/i386/i386.c (ix86_decompose_address): Use
3355         DEFAULT_TLS_SEG_REG to access TLS segment register.
3356         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3357         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3358         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3359
3360 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3361
3362         PR target/57260
3363         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3364         sibling calls to functions that would normally be lazily bound,
3365         unless $gp is call-clobbered.
3366
3367 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3368
3369         * config/i386/i386.c (ix86_option_override_internal): Update
3370         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3371         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3372         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3373         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3374         of TARGET_3DNOW.
3375         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3376
3377 2013-05-15  Andreas Schwab  <schwab@suse.de>
3378
3379         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3380         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3381         third operand.
3382
3383 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3384
3385         * loop-unroll.c (report_unroll_peel): Check decision before
3386         emitting unroll/peel message.
3387
3388 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3389
3390         * function.h (has_bb_partition): New rtl_data flag.
3391         (bb_reorder_complete): Ditto.
3392         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3393         instead of flag_reorder_blocks_and_partition.
3394         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3395         with some enhancements.
3396         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3397         * bb-reorder.c (connect_traces): Check for has_bb_partition
3398         instead of flag_reorder_blocks_and_partition.
3399         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3400         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3401         verify_hot_cold_block_grouping.
3402         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3403
3404 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3405
3406         PR target/19599
3407         * config/arm/predicates.md (call_insn_operand): New predicate.
3408         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3409         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3410         if insn is not a tail call.
3411         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3412         registers.
3413         * config/arm/arm.h (enum reg_class): New caller save register class.
3414         (REG_CLASS_NAMES): Likewise.
3415         (REG_CLASS_CONTENTS): Likewise.
3416         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3417         without decls.
3418
3419 2013-05-15  Richard Biener  <rguenther@suse.de>
3420
3421         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3422         of MSG_OPTIMIZED_LOCATIONS.
3423         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3424         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3425         message.
3426         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3427         of MSG_OPTIMIZED_LOCATIONS.
3428         (execute_vect_slp): Likewise.
3429         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3430         (vect_create_cond_for_alias_checks): Likewise.
3431         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3432         (vect_recog_widen_mult_pattern): Likewise.
3433         (vect_recog_widen_sum_pattern): Likewise.
3434         (vect_recog_over_widening_pattern): Likewise.
3435         (vect_recog_widen_shift_pattern): Likewise.
3436         (vect_recog_vector_vector_shift_pattern): Likewise.
3437         (vect_recog_divmod_pattern): Likewise.
3438         (vect_recog_mixed_size_cond_pattern): Likewise.
3439         (vect_recog_bool_pattern): Likewise.
3440         (vect_pattern_recog_1): Likewise.
3441
3442 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3443
3444         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3445         non-functions to builtin_unreachable.
3446         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3447         correct when new direct edges were discovered.
3448
3449 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3450
3451         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3452         header, print symbol order instead of node uid, print more information
3453         about indirect edge targets.
3454         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3455         uids.
3456         (ipa_make_edge_direct_to_target): Likewise.
3457         (remove_described_reference): Likewise.
3458         (propagate_controlled_uses): Likewise.
3459         (ipa_print_node_params): Also print symbol order.
3460         (ipcp_transform_function): Print symbol order instead of node uids.
3461         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3462         (cgraph_get_create_real_symbol_node): Likewise.
3463         * ipa-cp.c (print_lattice): Likewise.
3464         (print_all_lattices): Likewise.
3465         (determine_versionability): Likewise.
3466         (initialize_node_lattices): Likewise.
3467         (estimate_local_effects): Likewise.
3468         (update_profiling_info): Likewise.
3469         (create_specialized_node): Likewise.
3470         (perhaps_add_new_callers): Likewise.
3471         (decide_about_value): Likewise.
3472         (decide_whether_version_node): Likewise.
3473         (identify_dead_nodes): Likewise.
3474         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3475         (dump_inline_summary): Likewise.
3476         (estimate_node_size_and_time): Likewise.
3477         (inline_analyze_function): Likewise.
3478         * ipa-inline.c (report_inline_failed_reason): Likewise.
3479         (want_early_inline_function_p): Likewise.
3480         (edge_badness): Likewise.
3481         (update_edge_key): Likewise.
3482         (inline_small_functions): Likewise.  Add dumping of order to two other
3483         dumps.
3484         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3485         instead of node uids.
3486         (propagate_pure_const): Likewise.
3487         (propagate_pure_const): Likewise.
3488         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3489         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3490         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3491         of node uids.
3492         * tree-pretty-print.c (dump_function_header): Likewise.
3493         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3494         Print symbol order instead of node uids.
3495
3496 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3497
3498         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3499         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3500
3501 2013-05-15  Richard Biener  <rguenther@suse.de>
3502
3503         PR tree-optimization/57275
3504         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3505         return value for fail to do runtime alias checks for gather loads.
3506
3507 2013-05-15  Jan Hubicka  <jh@suse.cz>
3508
3509         PR lto/57038
3510         PR lto/47375
3511         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3512         weakrefs are not external.
3513         (lto_symtab_merge_decls): Fix thinko when dealing with
3514         non-lto_symtab decls.
3515         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3516         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3517         * varpool.c (dump_varpool_node): Dump more flags.
3518
3519 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3520
3521         * config/i386/i386.c (processor_alias_table): Add instruction
3522         FSGSBASE for AMD bdver3 architecture.
3523
3524 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3525
3526         * tree.c (warn_deprecated_use): Print file:line using locus color.
3527         * diagnostic.c (diagnostic_report_current_module): Print file:line
3528         and file:line:column using locus color.
3529
3530 2013-05-14  Mike Stump  <mikestump@comcast.net>
3531
3532         * gdbinit.in: Add __null.
3533
3534 2013-05-14  Mike Stump  <mikestump@comcast.net>
3535
3536         * recog.h: Rename struct recog_data to Recog_data.
3537         * recog.c: Likewise.
3538         * reload.c (can_reload_into): Likewise.
3539         * config/picochip/picochip.c: Likewise.
3540
3541 2013-05-14  Mike Stump  <mikestump@comcast.net>
3542
3543         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3544
3545 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3546
3547         * resource.h (struct resources): Remove unch_memory member.
3548         (CLEAR_RESOURCE): Don't clear unch_memory.
3549         * resource.c (mark_referenced_resources): Don't set it.
3550         (mark_set_resources): Likewise.
3551         (mark_target_live_regs): Don't clear it.
3552         (init_resource_info): Likewise.
3553         * reorg.c (resource_conflicts_p): Don't compare it.
3554         (redundant_insn): Don't set it.
3555
3556         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3557         Remove prototypes.
3558         * emit-rtl.c (next_label): Remove unused function.
3559         (skip_consecutive_labels, link_cc0_insns): Move to ...
3560         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3561         only place where these functions are used, and make them static.
3562
3563 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3564
3565         * fold-const.c (fold_negate_expr): Handle vectors.
3566         (fold_truth_not_expr): Make it static.
3567         (fold_invert_truthvalue): New static function.
3568         (invert_truthvalue_loc): Handle vectors. Do not call
3569         fold_truth_not_expr directly.
3570         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3571         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3572         (fold_comparison): Handle vector constants.
3573         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3574         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3575         * tree.h (fold_truth_not_expr): Remove declaration.
3576
3577 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3578
3579         * config/aarch64/aarch64-simd.md
3580         (aarch64_vcond_internal<mode>): Rename to...
3581         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3582         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3583         float modes. Clarify all iterator modes.
3584         (vcond<mode><mode>): Use new name for vcond expanders.
3585         (vcond<v_cmp_result><mode>): Likewise.
3586         (vcondu<mode><mode>: Likewise.
3587         * config/aarch64/iterators.md (VDQF_COND): New.
3588
3589 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3590
3591         PR bootstrap/57266
3592         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3593         variable for the shift amount. Check that we shift by non-negative
3594         amounts.
3595
3596 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3597
3598         PR target/42017
3599         * config/arm/arm.h (EPILOGUE_USES): Only return true
3600         for LR_REGNUM after epilogue_completed.
3601
3602 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3603
3604         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3605         is error_mark_node.
3606
3607 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3608
3609         PR target/57261
3610         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3611         and Solaris 11+/x86 with gld.
3612         * configure: Regenerate.
3613
3614 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3615
3616         * expmed.c (expand_shift_1): Canonicalize rotates by
3617         constant bitsize / 2 to bitsize - 1.
3618         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3619         case ROTATERT>: Likewise.
3620
3621         Revert:
3622         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3623
3624         * config/i386/i386.md (rotateinv): New code attr.
3625         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3626         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3627         roll $31, %eax, etc.
3628
3629 2013-05-14  Richard Biener  <rguenther@suse.de>
3630
3631         PR middle-end/57235
3632         * tree-eh.c (sink_clobbers): Give up for successors with
3633         multiple predecessors and no virtual uses.
3634
3635 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3636
3637         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3638         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3639
3640 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3641
3642         PR middle-end/57251
3643         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3644         the case when both op0 and op1 have VOIDmode.
3645
3646 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3647
3648         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3649         in multiply-accumulate mode.
3650
3651 2013-05-13  Guozhi Wei  <carrot@google.com>
3652
3653         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3654
3655 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3656
3657         PR target/56975
3658         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3659         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3660         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3661         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3662         (ix86_expand_prologue): Likewise.
3663         (ix86_expand_split_stack_prologue): Likewise.
3664         (legitimate_pic_address_disp_p): Likewise.
3665         (legitimize_pic_address): Likewise.
3666         (legitimize_tls_address): Likewise.
3667         (legitimize_pe_coff_symbol): Likewise.
3668         (output_pic_addr_const): Likewise.
3669         (construct_plt_address): Likewise.
3670         (ix86_expand_call): Likewise.
3671         (x86_output_mi_thunk): Likewise.
3672         (x86_function_profiler): Likewise.
3673
3674 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3675
3676         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3677         similar switch cases.
3678         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3679         (aarch64_simd_mov_to_<mode>low): Delete.
3680         (aarch64_simd_mov_to_<mode>high): Delete.
3681         (move_lo_quad_<mode>): Add w<-r alternative.
3682         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3683         (aarch64_simd_mov_from_*): Update type attribute.
3684         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3685         statement.
3686
3687 2013-05-13  Jan Hubicka  <jh@suse.cz>
3688
3689         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3690         * config/i386/i386.c (ix86_compute_frame_layout,
3691         ix86_expand_epilogue, emit_i387_cw_initialization,
3692         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3693         ix86_local_alignment): Fix use of size/speed predicates.
3694
3695 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3696
3697         PR tree-optimization/45216
3698         PR tree-optimization/57157
3699         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3700         the (-Y) & (B - 1) variant if OP is |.
3701         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3702         return shifted.  Use (-op1) & (prec - 1) as other_amount
3703         instead of prec - op1.
3704
3705 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3706
3707         PR middle-end/42371
3708         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3709         (ipa_constant_data): New type.
3710         (ipa_jump_func): Use ipa_constant_data to hold information about
3711         constant jump functions.
3712         (ipa_get_jf_constant): Adjust to jump function type changes.
3713         (ipa_get_jf_constant_rdesc): New function.
3714         (ipa_param_descriptor): New field controlled_uses.
3715         (ipa_get_controlled_uses): New function.
3716         (ipa_set_controlled_uses): Likewise.
3717         * ipa-ref.h (ipa_find_reference): Declare.
3718         * ipa-prop.c (ipa_cst_ref_desc): New type.
3719         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3720         changes.
3721         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3722         New parameter cs.  Adjust all callers.
3723         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3724         (remove_described_reference): New function.
3725         (jfunc_rdesc_usable): Likewise.
3726         (try_make_edge_direct_simple_call): Decrement controlled use count,
3727         attempt to remove reference if it hits zero.
3728         (combine_controlled_uses_counters): New function.
3729         (propagate_controlled_uses): Likewise.
3730         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3731         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3732         (ipa_print_node_params): Print described use counter.
3733         (ipa_write_jump_function): Adjust to jump function type changes.
3734         (ipa_read_jump_function): New parameter CS, pass it to
3735         ipa_set_jf_constant.  Adjust caller.
3736         (ipa_write_node_info): Stream controlled use count
3737         (ipa_read_node_info): Likewise.
3738         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3739         asserting.
3740         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3741         count.  Remove cloning-added reference if it reaches zero.
3742         * ipa-ref.c (ipa_find_reference): New function.
3743
3744 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3745
3746         * config/i386/i386.c (processor_target_table): Modified default
3747         alignment values for AMD BD and BT architectures.
3748
3749 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3750
3751         * tree-vect-generic.c (uniform_vector_p): Move ...
3752         * tree.c (uniform_vector_p): ... here.
3753         * tree.h (uniform_vector_p): Declare it.
3754         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3755         into a scalar.
3756
3757 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3758
3759         PR tree-optimization/57230
3760         * tree-ssa-strlen.c (handle_char_store): Record length for
3761         array store from STRING_CST.
3762
3763         PR tree-optimization/57230
3764         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3765         check.
3766
3767 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3768
3769         * config/epiphany/epiphany.c (epiphany_init): Check size of
3770         NUM_MODES_FOR_MODE_SWITCHING.
3771         (epiphany_expand_prologue):
3772         Remove CONFIG_REGNUM initial value handling code.
3773         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3774         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3775         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3776         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3777         Don't return 1 for FP_MODE_NONE.
3778         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3779         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3780         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3781         * config/epiphany/epiphany.md (save_config): New pattern.
3782
3783 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3784
3785         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3786
3787 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3788
3789         * config/i386/i386.md (memory): Handle sseishft1.
3790         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3791         (*vec_extractv2di_1): Ditto.
3792
3793 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3794
3795         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3796         saved registers.
3797
3798 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3799
3800         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3801         Add mthumb/march=armv7-a multilib.
3802         Add mthumb/march=armv7-r multilib.
3803         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3804
3805 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3806
3807         * config/v850/t-rtems: Add more multilibs.
3808
3809 2013-05-10  Richard Biener  <rguenther@suse.de>
3810
3811         PR tree-optimization/57214
3812         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3813         not propagate from SSA names that occur in abnormal PHI nodes.
3814
3815 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3816
3817         * stor-layout.c (element_precision): New function.
3818         * machmode.h (element_precision): Declare it.
3819         * tree.c (build_minus_one_cst): New function.
3820         (element_precision): Likewise.
3821         * tree.h (build_minus_one_cst): Declare new function.
3822         (element_precision): Likewise.
3823         * fold-const.c (operand_equal_p): Use element_precision.
3824         (fold_binary_loc): Handle vector types.
3825         * convert.c (convert_to_integer): Use element_precision.
3826         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3827         separately.
3828
3829 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3830
3831         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3832         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3833         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3834         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3835         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3836         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3837         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3838         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3839         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3840         (Uuw8): New constraints.
3841         (Usb4): Move into alphabetical order.
3842         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3843         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3844         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3845         previously unnamed patterns.
3846         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3847         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3848         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3849         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3850         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3851         of specific lengths.
3852
3853 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3854
3855         * config/i386/i386.md (rotateinv): New code attr.
3856         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3857         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3858         roll $31, %eax, etc.
3859
3860         PR tree-optimization/45216
3861         PR tree-optimization/57157
3862         * tree-ssa-forwprop.c (simplify_rotate): New function.
3863         (ssa_forward_propagate_and_combine): Call it.
3864
3865 2013-05-10  Richard Biener  <rguenther@suse.de>
3866
3867         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3868         disable peeling when we version for aliasing.
3869         (vector_alignment_reachable_p): Honor explicit user alignment.
3870         (vect_supportable_dr_alignment): Likewise.
3871         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3872         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3873         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3874         then peeling to arrange for the cost-model check to come first.
3875
3876 2013-05-10  Alan Modra  <amodra@gmail.com>
3877
3878         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3879         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3880         * configure: Regenerate.
3881
3882 2013-05-10  Alan Modra  <amodra@gmail.com>
3883
3884         PR target/55033
3885         * varasm.c (default_elf_select_section): Move !DECL_P check..
3886         (get_named_section): ..to here before calling get_section_name.
3887         Adjust assertion.
3888         (default_section_type_flags): Add DECL_P check.
3889         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3890         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3891
3892 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3893
3894         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3895         When using gen_stack_adjust_str with a register offset, add a
3896         REG_FRAME_RELATED_EXPR note.
3897
3898 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3899
3900         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3901         (*vec_extractv4si_zext_mem): Ditto.
3902         (*vec_extractv2di): Add 0->x and x->x alternatives.
3903         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3904         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3905
3906 2013-05-09  Jason Merrill  <jason@redhat.com>
3907
3908         N3639 C++1y VLA support
3909         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3910         DECL_VALUE_EXPR.
3911
3912         * tree.c (build_constructor_va): New.
3913         * tree.h: Declare it.
3914
3915 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3916
3917         PR lto/57084
3918         * gimple-fold.c (canonicalize_constructor_val): Call
3919         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3920
3921 2013-05-09  Jan Hubicka  <jh@suse.cz>
3922             Richard Biener  <rguenther@suse.de>
3923
3924         PR lto/54095
3925         * symtab.c (symtab_make_decl_local): Do not add private names.
3926
3927 2013-05-09  Jan Hubicka  <jh@suse.cz>
3928
3929         PR lto/54095
3930         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3931         (unlink_from_assembler_name_hash): Likewise.
3932         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3933         symtab_unregister_node, symtab_initialize_asm_name_hash,
3934         change_decl_assembler_name): Update.
3935
3936 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3937
3938         * config/aarch64/aarch64.md: New movtf split.
3939         (*movtf_aarch64): Update.
3940         (aarch64_movdi_tilow): Handle TF modes and rename to
3941         aarch64_movdi_<mode>low.
3942         (aarch64_movdi_tihigh): Handle TF modes and rename to
3943         aarch64_movdi_<mode>high
3944         (aarch64_movtihigh_di): Handle TF modes and rename to
3945         aarch64_mov<mode>high_di
3946         (aarch64_movtilow_di): Handle TF modes and rename to
3947         aarch64_mov<mode>low_di
3948         (aarch64_movtilow_tilow): Remove spurious whitespace.
3949         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3950         splits.
3951         (aarch64_print_operand): Update.
3952
3953 2013-05-09  Alan Modra  <amodra@gmail.com>
3954
3955         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3956         powerpc64le.
3957         * configure: Regenerate.
3958
3959 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3960
3961         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3962         splitter preparation statements.
3963         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3964         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3965         adjust_address_nv.
3966
3967 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3968
3969         * gimple-ssa-strength-reduction.c (count_candidates): Change
3970         return value to int.
3971         (analyze_candidates_and_replace): Change type of length to int.
3972
3973 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3974
3975         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3976         (*vec_extract<mode>): Use VI12_128 mode iterator.
3977         (*vec_extract<mode>_mem): Ditto.
3978         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3979         attribute.
3980
3981 2013-05-08  Diego Novillo  <dnovillo@google.com>
3982
3983         PR bootstrap/54659
3984
3985         Revert:
3986         2012-08-17  Diego Novillo  <dnovillo@google.com>
3987
3988         PR bootstrap/54281
3989         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3990         * config.in: Regenerate.
3991         * configure: Regenerate.
3992         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3993
3994 2013-05-08  Jan Hubicka  <jh@suse.cz>
3995
3996         PR lto/54095
3997         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3998         * cgraph.h (symtab_node_base): Add unique_name.
3999         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4000         input_overwrite_node, input_varpool_node): Stream unique_name.
4001         * cgraphclones.c (cgraph_create_virtual_clone,
4002         cgraph_function_versioning): Set unique_name.
4003         * ipa.c (function_and_variable_visibility): Set unique_name.
4004
4005 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4006
4007         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4008         (alloc_cand_and_find_basis): Restrict conditional candidate
4009         processing to CAND_MULTs.
4010
4011 2013-05-08  Jan Hubicka  <jh@suse.cz>
4012
4013         PR lto/54095
4014         lto-symtab.c (lto_symtab_symbol_p): New function.
4015         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4016         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4017         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4018         Skip static symbols.
4019
4020 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4021
4022         PR tree-optimization/57200
4023         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4024         Only call inform if the preceding warning_at returns true.
4025
4026 2013-05-07  Han Shen  <shenhan@google.com>
4027
4028         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4029         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4030         * common.opt (fstack-protector-strong): New option.
4031         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4032         * doc/invoke.texi (Optimization Options): Document
4033         "-fstack-protector-strong".
4034         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4035
4036 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4037
4038         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4039
4040 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4041
4042         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4043         it is not lhs of the insn.
4044         (setup_reg_equiv): Remove insn having equiv memory which it is not
4045         lhs of the insn.
4046         * lra-constraints.c (process_address): Try to improve generation
4047         code for address base + disp.
4048         (lra_constraints): Make correct the code for checking insn setting
4049         up backward equivalence.  Remove insn only if it is in the init
4050         insn list.
4051         * lra-eliminations.c (update_reg_eliminate): Change return value.
4052         (lra_eliminate): Use the result.
4053
4054 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4055
4056         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4057         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4058         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4059         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4060         register target operands.
4061         (*vec_extractv8hi_sse2): New pattern.
4062         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4063         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4064         (*vec_extract<mode>_mem): New insn and split pattern.
4065
4066 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4067
4068         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4069         (TARGET_ASAN_SHADOW_OFFSET): Define.
4070         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4071         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4072
4073 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4074
4075         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4076         (incr_vec_index): Return -1 if increment not found.
4077         (create_add_on_incoming_edge): Assert if increment not found.
4078         (record_increment): Limit number of increments recorded.
4079         (all_phi_incrs_profitable): Return false if an increment not found.
4080         (replace_profitable_candidates): Don't process increments that were
4081         not recorded.
4082         (analyze_candidates_and_replace): Limit size of incr_vec.
4083
4084 2013-05-07  Richard Biener  <rguenther@suse.de>
4085
4086         * calls.c (special_function_p): setjmp-like functions are leaf.
4087         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4088         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4089
4090 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4091
4092         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4093         (aarch64_simd_mov<mode>): New expander.
4094         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4095         (aarch64_simd_mov_to_<mode>high): Likewise.
4096         (aarch64_simd_mov_from_<mode>low): Likewise.
4097         (aarch64_simd_mov_from_<mode>high): Likewise.
4098         (aarch64_dup_lane<mode>): Update.
4099         (aarch64_dup_lanedi): New instruction pattern.
4100         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4101         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4102
4103 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4104
4105         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4106         (replace_mult_candidate): Remove unnecessary argument; remove
4107         unnecessary parameter from call to introduce_cast_before_cand.
4108         (replace_unconditional_candidate): Remove unnecessary parameter
4109         from call to replace_mult_candidate.
4110         (replace_conditional_candidate): Likewise.
4111         (insert_initializers): Use make_temp_ssa_name.
4112         (introduce_cast_before_cand): Remove unnecessary argument; use
4113         make_temp_ssa_name.
4114         (replace_one_candidate): Remove unnecessary argument; remove
4115         unnecessary parameter from calls to introduce_cast_before_cand.
4116         (replace_profitable_candidates): Remove unnecessary parameters
4117         from calls to replace_one_candidate.
4118
4119 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4120
4121         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4122         phi def as possibly hiding a basis for a CAND_ADD whose operands
4123         have been commuted in the analysis.
4124         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4125
4126 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4127
4128         * config/aarch64/aarch64.md
4129         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4130         shift value between 0-4.
4131
4132 2013-05-07  Richard Biener  <rguenther@suse.de>
4133
4134         * double-int.h (rshift): New overload.
4135         * double-int.c (rshift): New function.
4136         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4137         (create_reference_ops_from_ref): Remove.
4138         (vn_reference_insert): Use shared ops for constructing the
4139         reference and copy it.
4140
4141 2013-05-07  Richard Biener  <rguenther@suse.de>
4142
4143         PR middle-end/57190
4144         * tree-eh.c (sink_clobbers): Properly propagate
4145         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4146
4147 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4148
4149         PR tree-optimization/57149
4150         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4151         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4152         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4153         uninit_undefined_value_p instead of ssa_undefined_value_p.
4154
4155         PR debug/57184
4156         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4157         for modifier == EXPAND_INITIALIZER.
4158
4159 2013-05-07  Anton Blanchard  <anton@samba.org>
4160
4161         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4162         for powerpc64 little endian.
4163         * configure: Regenerate.
4164
4165 2013-05-06  Graham Stott  <grahams@btinternet.com>
4166
4167         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4168         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4169         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4170         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4171
4172 2013-05-06  Graham Stott  <grahams@btinternet.com>
4173
4174         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4175         codes which allow non-lvalues.
4176
4177 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4178
4179         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4180         components are all 1s.
4181         (integer_minus_onep): New function.
4182         * tree.h (integer_minus_onep): Declare it.
4183         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4184         integer_minus_onep instead of integer_all_onesp.
4185
4186 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4187
4188         PR target/52933
4189         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4190         variations of these patterns.
4191
4192 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4193
4194         * config/i386/i386.md (isa): Add x64_sse4 member.
4195         (enabled): Handle x64_sse4.
4196         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4197         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4198         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4199         instruction for SSE4_1 targets.  Update insn attributes.
4200         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4201         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4202         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4203         const_1 selector.
4204         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4205         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4206         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4207
4208 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4209
4210         PR target/57108
4211         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4212
4213 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4214
4215         * final.c (do_assembler_dialects): Don't handle curly braces and
4216         vertical bar escaped by % as dialect delimiters.
4217         (output_asm_insn): Print curly braces and vertical bar if escaped
4218         by % and ASSEMBLER_DIALECT defined.
4219         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4220         * doc/tm.texi: Regenerated.
4221
4222 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4223
4224         * config/mips/mips.c: Include tree-pass.h.
4225         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4226         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4227         (pass_mips_machine_reorg2): New machine specific pass.
4228         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4229         (mips_option_override): Register the new pass.
4230         * rtl.h (cleanup_barriers): Remove prototype.
4231         (dbr_schedule): Likewise.
4232         * jump.c (cleanup_barriers): Make static.
4233         * reorg.c (dbr_schedule): Likewise.
4234
4235 2013-05-06  Richard Biener  <rguenther@suse.de>
4236
4237         PR tree-optimization/57185
4238         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4239         SSA names properly.
4240
4241 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4242
4243         PR target/57106
4244         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4245         between "first_arg" and "insn", not "last" and "insn".
4246
4247 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4248
4249         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4250         (find_candidates_in_block): Re-enable slsr_process_phi.
4251         (create_phi_basis): Fix double counting of candidate adjustment.
4252
4253 2013-05-06  Richard Biener  <rguenther@suse.de>
4254
4255         PR middle-end/57147
4256         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4257         the edge is also fallthru, preserve it and just clear the
4258         abnormal flag.
4259         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4260         also complex, preserve that and just clear the fallthru flag.
4261         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4262         update virtual operands.
4263
4264 2013-05-06  Alan Modra  <amodra@gmail.com>
4265
4266         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4267         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4268         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4269         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4270         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4271         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4272
4273 2013-05-06  Alan Modra  <amodra@gmail.com>
4274
4275         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4276         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4277         (DEFAULT_ASM_ENDIAN): Define.
4278         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4279         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4280         Update -K PIC clause from sysv4.h.
4281         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4282         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4283
4284 2013-05-06  Alan Modra  <amodra@gmail.com>
4285
4286         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4287         twice for little-endian.
4288         (ashrdi3_no_power, ashrdi3): Support little-endian.
4289
4290 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4291
4292         PR target/55303
4293         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4294         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4295         related expanders.
4296         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4297         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4298         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4299         New predicates.
4300
4301 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4302             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4303
4304         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4305         * config/pa/pa.opt: Make mbig-switch a no-op.
4306         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4307         (CASE_VECTOR_MODE): Always return SImode.
4308         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4309         for the !TARGET_BIG_SWITCH case.
4310         * config/pa/pa-linux.h: Likewise.
4311         * config/pa/pa-openbsd.h: Likewise.
4312         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4313         * config/pa/pa.md (short_jump): Remove define_insn.
4314         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4315         (casesi0): Remove define_insn.
4316         (type): Remove btable_branch.
4317         (pa_combine_type): Likewise.
4318         (in_nullified_branch_delay): Likewise.
4319         (in_call_delay): Likewise.
4320         (define_delay): Likewise.
4321         (define_insn_reservation "Z3"): Likewise.
4322         (define_insn_reservation "Z4"): Likewise.
4323         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4324         (pa_adjust_insn_length): Remove adjustment for btable branches.
4325         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4326         and mno-big-switch
4327
4328 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4329
4330         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4331         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4332         Add m->r,x alternatives.
4333         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4334         splitters using SWI48x mode iterator.
4335         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4336         TARGET_64BIT.  Add m->x alternative.
4337         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4338         Add o->x alternative.  Enable for TARGET_SSE.
4339         (sse_storeq): Remove expander.
4340         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4341         with memory input operand.
4342         (*vec_extractv2di_1 splitter): New.
4343         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4344         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4345
4346 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4347
4348         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4349         (INT_LOWPART): Delete.
4350         (extract_MB): Adjust.
4351         (extract_ME): Adjust.
4352         (print_operand): Adjust.
4353
4354 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4355
4356         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4357         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4358         (reg_or_logical_cint_operand, easy_fp_constant,
4359         logical_const_operand): Delete "CONST_DOUBLE" case.
4360         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4361         "HOST_BITS_PER_WIDE_INT == 64" test.
4362         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4363         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4364         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4365         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4366         test.
4367         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4368         CONST_DOUBLE DImode/VOIDmode case.
4369         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4370         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4371         CONST_DOUBLE VOIDmode case.
4372         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4373         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4374         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4375         Delete CONST_DOUBLE case.
4376         (splitters for mov FMOVE64 const_double): Delete
4377         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4378         "HOST_BITS_PER_WIDE_INT >= 64" test.
4379         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4380         case.
4381         (mov DI const_double): Delete.
4382
4383 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4384
4385         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4386         on op shows all bits zero in mode of a lowpart subreg, return zero.
4387
4388 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4389
4390         PR target/57150
4391         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4392         to save TFmode registers and DImode to save TImode registers for
4393         caller save operations.
4394         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4395         mark being partially clobbered since they only use the first
4396         double word.
4397
4398         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4399         and TDmode only use the upper 64-bits of each VSX register.
4400
4401 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4402
4403         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4404         (find_candidates_in_block): Disable slsr_process_phi.
4405
4406 2013-05-03  Guozhi Wei  <carrot@google.com>
4407
4408         * coverage.c (coverage_obj_init): Move the construction of gcov
4409         constructor to ...
4410         (build_init_ctor): ... here.
4411
4412 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4413
4414         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4415         (slsr_cand_d): Redefine def_phi.
4416         (stride_status, phi_adjust_status, count_phis_status): New enums.
4417         (find_phi_def): New.
4418         (find_basis_for_base_expr): New.
4419         (find_basis_for_candidate): Handle hidden bases.
4420         (alloc_cand_and_find_basis): Handle phi candidates.
4421         (slsr_process_phi): New.
4422         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4423         (create_mul_imm_cand): Likewise.
4424         (create_add_ssa_cand): Exclude phi base candidates.
4425         (create_add_imm_cand): Likewise.
4426         (slsr_process_cast): Likewise.
4427         (slsr_process_copy): Likewise.
4428         (find_candidates_in_block): Handle phi candidates.
4429         (dump_candidate): Likewise.
4430         (unconditional_cands): Delete.
4431         (unconditional_cands_with_known_stride_p): Delete.
4432         (phi_dependent_cand_p): New.
4433         (cand_increment): Handle phi-dependent candidates.
4434         (replace_dependent): Delete.
4435         (replace_mult_candidate): New.
4436         (replace_unconditional_candidate): New.
4437         (incr_vec_index): Move to avoid forward reference.
4438         (create_add_on_incoming_edge): New.
4439         (create_phi_basis): New.
4440         (replace_dependents): Delete.
4441         (replace_conditional_candidate): New.
4442         (phi_add_costs): New.
4443         (replace_uncond_cands_and_profitable_phis): New.
4444         (record_increment): Handle phi adjustments.
4445         (record_phi_increments): New.
4446         (record_increments): Handle phi adjustments.
4447         (phi_incr_cost): New.
4448         (lowest_cost_path): Handle phis.
4449         (total_savings): Likewise.
4450         (analyze_increments): Likewise.
4451         (ncd_with_phi): New.
4452         (ncd_of_cand_and_phis): New.
4453         (nearest_common_dominator_for_cands): Handle phi increments.
4454         (all_phi_incrs_profitable): New.
4455         (replace_profitable_candidates): Handle phi-dependent candidates.
4456         (analyze_candidates_and_replace): Likewise.
4457
4458 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4459
4460         PR bootstrap/57154
4461         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4462         do not exceed REG_BR_PROB_BASE.
4463
4464 2013-05-03  Jeff Law  <law@redhat.com>
4465
4466         PR tree-optimization/57144
4467         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4468         operand of the condition will bit into the new type when eliminating
4469         a cast feeding a condition.
4470
4471 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4472
4473         PR rtl-optimization/57130
4474         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4475         of COMPARE as in_code to the recursive call if needed.
4476
4477 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4478
4479         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4480         (enabled): Handle new members.
4481         * config/i386/sse.md (*vec_concatv2si): Merge from
4482         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4483         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4484
4485 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4486
4487         PR tree-optimization/57027
4488         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4489         for fnms opportunity, check we got the prerequisite kind
4490         of tree / gimple before using accessor functions.
4491
4492 2013-05-03  Richard Biener  <rguenther@suse.de>
4493
4494         * double-int.h (lshift): New overload without precision
4495         and arith argument.
4496         (operator *=, operator +=, operator -=): Move ...
4497         * double-int.c (operator *=, operator +=, operator -=): ... here
4498         and implement more efficiently.
4499         (mul_double_with_sign): Remove.
4500         (lshift_double): Adjust to take unsinged shift argument, push
4501         dispatching code to callers.
4502         (mul_double_wide_with_sign): Add early out for callers that
4503         are not interested in high parts or overflow.
4504         (lshift): New function.
4505         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4506         dispatch code here.
4507         (lrotate, rrotate): Use logical shifts.
4508         * expr.c (get_inner_reference): Use lshift.
4509         * fixed-value.c (do_fixed_divide): Likewise.
4510         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4511         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4512         (indirect_refs_may_alias_p): Likewise.
4513         (stmt_kills_ref_p_1): Likewise.
4514
4515 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4516
4517         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4518
4519 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4520
4521         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4522         scalar form of FABD instruction.
4523
4524 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4525
4526         * lra-constraints.c (process_alt_operands): Add checking alt
4527         number to choose the best alternative.
4528
4529 2013-05-02  Richard Biener  <rguenther@suse.de>
4530
4531         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4532         bitmap and its handling.
4533         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4534
4535 2013-05-02  Richard Biener  <rguenther@suse.de>
4536
4537         PR middle-end/57140
4538         * tree-inline.c (copy_loops): Properly handle removed loops.
4539         (copy_cfg_body): Mark destination loops for fixup if source
4540         loops needed fixup.
4541
4542 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4543
4544         PR target/56732
4545         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4546         generating simple_return for naked functions.
4547
4548 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4549
4550         PR middle-end/56988
4551         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4552         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4553         flags match.
4554         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4555         ipa_agg_replacement_value structures.
4556         (known_aggs_to_agg_replacement_list): Likewise.
4557         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4558         (read_agg_replacement_chain): Likewise.
4559         (ipcp_transform_function): Also check that by_ref flags match.
4560
4561 2013-05-02  Richard Biener  <rguenther@suse.de>
4562
4563         * graphds.h (struct graph): Add obstack member.
4564         * graphds.c (new_graph): Initialize obstack and allocate
4565         vertices from it.
4566         (add_edge): Allocate edge from the obstack.
4567         (free_graph): Free the obstack instead of all edges and vertices.
4568
4569 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4570
4571         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4572         divides.
4573         * cfg.c (update_bb_profile_for_threading): Ditto.
4574         * tree-inline.c (copy_bb): Ditto.
4575         (copy_edges_for_bb): Ditto.
4576         (initialize_cfun): Ditto.
4577         (copy_cfg_body): Ditto.
4578         (expand_call_inline): Ditto.
4579         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4580         (estimate_node_size_and_time): Ditto.
4581         (inline_merge_summary): Ditto.
4582         * cgraphclones.c (cgraph_clone_edge): Ditto.
4583         (cgraph_clone_node): Ditto.
4584         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4585         (compute_trg_info): Ditto.
4586
4587 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4588
4589         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4590         S reg when fp attribute set.
4591         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4592
4593 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4594
4595         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4596         New pattern.
4597         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4598         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4599         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4600
4601 2013-05-02  Richard Biener  <rguenther@suse.de>
4602
4603         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4604         (struct instantiate_cache_entry): New type.
4605         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4606         (struct instantiate_cache_type): New type.
4607         (set_instantiated_value, get_instantiated_value): Remove.
4608         (get_instantiated_value_entry): New function.
4609         (instantiate_scev_name): Use the new cache and adjust.
4610         (instantiate_scev_poly): Adjust.
4611         (instantiate_scev_binary): Likewise.
4612         (instantiate_array_ref): Likewise.
4613         (instantiate_scev_convert): Likewise.
4614         (instantiate_scev_not): Likewise.
4615         (instantiate_scev_3): Likewise.
4616         (instantiate_scev_2): Likewise.
4617         (instantiate_scev_r): Likewise.
4618         (instantiate_scev): Likewise.
4619         (resolve_mixers): Likewise.
4620
4621 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4622
4623         PR target/57091
4624         * lra-constraints.c (best_small_class_operands_num): Remove.
4625         (process_alt_operands): Remove small_class_operands_num.  Take
4626         small classes operands into losers and only if the operand is not
4627         matched.  Modify debugging output.
4628         (curr_insn_transform): Remove best_small_class_operands_num.
4629         Print insn name.
4630
4631 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4632
4633         * config/aarch64/aarch64-builtins.c
4634         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4635         * config/aarch64/aarch64-simd-builtins.def
4636         (reduc_splus_): Add new modes.
4637         (reduc_uplus_): New.
4638         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4639         (reduc_uplus_v4sf): Likewise.
4640         (reduc_splus_v4sf): Likewise.
4641         (aarch64_addv<mode>): Likewise.
4642         (reduc_uplus_<mode>): Likewise.
4643         (reduc_splus_<mode>): Likewise.
4644         (aarch64_addvv2di): Likewise.
4645         (reduc_uplus_v2di): Likewise.
4646         (reduc_splus_v2di): Likewise.
4647         (aarch64_addvv2si): Likewise.
4648         (reduc_uplus_v2si): Likewise.
4649         (reduc_splus_v2si): Likewise.
4650         (reduc_<sur>plus_<mode>): New.
4651         (reduc_<sur>plus_v2di): Likewise.
4652         (reduc_<sur>plus_v2si): Likewise.
4653         (reduc_<sur>plus_v4sf): Likewise.
4654         (aarch64_addpv4sf): Likewise.
4655         * config/aarch64/arm_neon.h
4656         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4657         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4658         add UNSPEC_SADDV, UNSPEC_UADDV.
4659         (SUADDV): New.
4660         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4661
4662 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4663
4664         * config/aarch64/arm_neon.h
4665         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4666
4667 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4668
4669         * config/aarch64/aarch64-builtins
4670         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4671
4672 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4673
4674         * config/aarch64/aarch64-simd-builtins.def
4675         (reduc_smax_): New.
4676         (reduc_smin_): Likewise.
4677         (reduc_umax_): Likewise.
4678         (reduc_umin_): Likewise.
4679         (reduc_smax_nan_): Likewise.
4680         (reduc_smin_nan_): Likewise.
4681         (fmax): Remove.
4682         (fmin): Likewise.
4683         (smax): Update for V2SF, V4SF and V2DF modes.
4684         (smin): Likewise.
4685         (smax_nan): New.
4686         (smin_nan): Likewise.
4687         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4688         (<su><maxmin><mode>3): ...This, refactor.
4689         (s<maxmin><mode>3): New.
4690         (<maxmin_uns><mode>3): Likewise.
4691         (reduc_<maxmin_uns>_<mode>): Refactor.
4692         (reduc_<maxmin_uns>_v4sf): Likewise.
4693         (reduc_<maxmin_uns>_v2si): Likewise.
4694         (aarch64_<fmaxmin><mode>: Remove.
4695         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4696         new builtin names.
4697         (vmin<q>_f<32,64>): Likewise.
4698         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4699         (FMAXMIN): New.
4700         (su): Add mappings for smax, smin, umax, umin.
4701         (maxmin): New.
4702         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4703         (FMAXMIN): Rename as...
4704         (FMAXMIN_UNS): ...This.
4705         (maxminv): Remove.
4706         (fmaxminv): Likewise.
4707         (fmaxmin): Likewise.
4708         (maxmin_uns): New.
4709         (maxmin_uns_op): Likewise.
4710
4711 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4712
4713         * config/aarch64/arm_neon.h
4714         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4715         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4716         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4717
4718 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4719
4720         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4721         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4722
4723 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4724
4725         * config/aarch64/aarch64-simd.md
4726         (vcond<mode>_internal): Handle special cases for constant masks.
4727         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4728         (vcondu<mode><mode>): Likewise.
4729         (vcond<v_cmp_result><mode>): New.
4730
4731 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4732
4733         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4734         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4735         * config/aarch64/aarch64-simd-builtins.def
4736         (cmeq): Update to BUILTIN_VALLDI.
4737         (cmgt): Likewise.
4738         (cmge): Likewise.
4739         (cmle): Likewise.
4740         (cmlt): Likewise.
4741         * config/aarch64/arm_neon.h
4742         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4743         to builtins or C as appropriate.
4744
4745 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4746
4747         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4748         (cmgeu): ...This.
4749         (cmhi): Rename to...
4750         (cmgtu): ...This.
4751         * config/aarch64/aarch64-simd.md
4752         (simd_mode): Add SF.
4753         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4754         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4755         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4756         (cstore<mode>_neg): ...This.
4757         * config/aarch64/iterators.md
4758         (VALLF): new.
4759         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4760         (COMPARISONS): New.
4761         (UCOMPARISONS): Likewise.
4762         (optab): Add missing comparisons.
4763         (n_optab): New.
4764         (cmp_1): Likewise.
4765         (cmp_2): Likewise.
4766         (CMP): Likewise.
4767         (cmp): Remove.
4768         (VCMP_S): Likewise.
4769         (VCMP_U): Likewise.
4770         (V_cmp_result): Add DF, SF modes.
4771         (v_cmp_result): Likewise.
4772         (v): Likewise.
4773         (vmtype): Likewise.
4774         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4775
4776 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4777
4778         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4779         define_insn to define_insn_and_split.
4780         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4781         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4782         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4783         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4784         (thumb2_negscc): Likewise.
4785
4786 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4787
4788         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4789
4790 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4791
4792         * config/arm/thumb2.md: Remove trailing whitespaces.
4793
4794 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4795
4796         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4797         Use gen_int_mode rather than GEN_INT.
4798
4799 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4800
4801         * value-prof.c (stream_in_histogram_value): Remove the strayed
4802         debug_gimple_stmt.
4803
4804 2013-04-30  Richard Biener  <rguenther@suse.de>
4805
4806         PR middle-end/57122
4807         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4808
4809 2013-04-30  Richard Biener  <rguenther@suse.de>
4810
4811         PR middle-end/57107
4812         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4813
4814 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4815
4816         PR rtl-optimization/56957
4817         PR rtl-optimization/57105
4818         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4819         variable.  Use just INSN_UID for determining whether an insn
4820         should be only disconnected from the insn stream.
4821         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4822
4823 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4824
4825         PR tree-optimization/57104
4826         * tsan.c (instrument_expr): Don't instrument accesses to
4827         DECL_HARD_REGISTER VAR_DECLs.
4828
4829 2013-04-30  Richard Biener  <rguenther@suse.de>
4830
4831         * function.h (loops_for_fn): New inline function.
4832         (set_loops_for_fn): Likewise.
4833         * cfgloop.h (place_new_loop): Add struct function parameter.
4834         (get_loop): Likewise.
4835         (get_loops): Likewise.
4836         (number_of_loops): Likewise.
4837         (fel_next): Adjust.
4838         (fel_init): Likewise.
4839         * cfg.c (get_loop_copy): Adjust.
4840         * cfgloop.c (flow_loops_dump): Likewise.
4841         (record_loop_exits): Likewise.
4842         (verify_loop_structure): Likewise.
4843         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4844         (estimate_reg_pressure_cost): Likewise.
4845         (mark_loop_exit_edges): Likewise.
4846         * cfgloopmanip.c (place_new_loop): Likewise.
4847         (add_loop): Likewise.
4848         (duplicate_loop): Likewise.
4849         * graph.c (draw_cfg_nodes): Likewise.
4850         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4851         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4852         (extract_affine_chrec): Likewise.
4853         (build_scop_iteration_domain): Likewise.
4854         * graphite.c (graphite_initialize): Likewise.
4855         * ira-build.c (create_loop_tree_nodes): Likewise.
4856         (more_one_region_p): Likewise.
4857         (rebuild_regno_allocno_maps): Likewise.
4858         (mark_loops_for_removal): Likewise.
4859         (mark_all_loops_for_removal): Likewise.
4860         (remove_unnecessary_regions): Likewise.
4861         (ira_build): Likewise.
4862         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4863         * loop-init.c (fix_loop_structure): Likewise.
4864         (gate_rtl_move_loop_invariants): Likewise.
4865         (gate_rtl_unswitch): Likewise.
4866         (gate_rtl_unroll_and_peel_loops): Likewise.
4867         (rtl_doloop): Likewise.
4868         * lto-streamer-in.c (input_cfg): Likewise.
4869         * lto-streamer-out.c (output_cfg): Likewise.
4870         * modulo-sched.c (sms_schedule): Likewise.
4871         * predict.c (tree_estimate_probability): Likewise.
4872         (tree_estimate_probability_driver): Likewise.
4873         (estimate_loops): Likewise.
4874         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4875         (move_sese_region_to_fn): Likewise.
4876         (debug_loop_num): Likewise.
4877         * tree-chrec.c (chrec_evaluate): Likewise.
4878         (hide_evolution_in_other_loops_than_loop): Likewise.
4879         (chrec_component_in_loop_num): Likewise.
4880         (reset_evolution_in_loop): Likewise.
4881         (evolution_function_is_invariant_rec_p): Likewise.
4882         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4883         * tree-inline.c (copy_loops): Likewise.
4884         (copy_cfg_body): Likewise.
4885         (tree_function_versioning): Likewise.
4886         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4887         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4888         Likewise.
4889         (add_to_evolution_1): Likewise.
4890         (scev_const_prop): Likewise.
4891         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4892         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4893         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4894         (tree_ssa_lim_initialize): Likewise.
4895         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4896         (verify_loop_closed_ssa): Likewise.
4897         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4898         (tree_ssa_loop_im): Likewise.
4899         (tree_ssa_loop_unswitch): Likewise.
4900         (tree_vectorize): Likewise.
4901         (check_data_deps): Likewise.
4902         (tree_ssa_loop_ivcanon): Likewise.
4903         (tree_ssa_loop_bounds): Likewise.
4904         (tree_complete_unroll): Likewise.
4905         (tree_complete_unroll_inner): Likewise.
4906         (tree_parallelize_loops): Likewise.
4907         (tree_ssa_loop_prefetch): Likewise.
4908         (tree_ssa_loop_ivopts): Likewise.
4909         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4910         * tree-vectorizer.c (vectorize_loops): Likewise.
4911
4912 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4913
4914         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4915         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4916         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4917         with EABI_LINK_SPEC.
4918
4919 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4920
4921         PR target/44578
4922         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4923         alternative.
4924
4925 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4926
4927         PR target/57097
4928         * lra-constraints.c (process_alt_operands): Discourage a bit more
4929         using memory for pseudos.  Print cost dump for alternatives.
4930         Modify cost values for conflicts with early clobbers.
4931         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4932
4933 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4934
4935         PR target/57098
4936         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4937
4938 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4939
4940         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4941         from/to S register.
4942         (movdi_aarch64): Support LDR/STR from/to D register.
4943
4944 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4945
4946         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4947         or higher by default.
4948
4949 2013-04-29  Richard Biener  <rguenther@suse.de>
4950
4951         PR middle-end/57075
4952         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4953         even if not adding abnormal edges for calls that can make
4954         abnormal gotos.
4955
4956 2013-04-29  Richard Biener  <rguenther@suse.de>
4957
4958         PR middle-end/57103
4959         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4960         TREE_BLOCK.
4961         (move_stmt_r): Remove redundant checking.
4962
4963 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4964
4965         PR bootstrap/57077
4966         * basic-block.h (apply_scale): New function.
4967         (apply_probability): Use apply_scale.
4968         * gimple-streamer-in.c (input_bb): Ditto.
4969         * lto-streamer-in.c (input_cfg): Ditto.
4970         * lto-cgraph.c (merge_profile_summaries): Ditto.
4971         * tree-optimize.c (execute_fixup_cfg): Ditto.
4972         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4973         (copy_edges_for_bb): Ditto.
4974         (copy_cfg_body): Ditto.
4975
4976 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4977
4978         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4979         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4980         (tail_merge_optimize): Handle current_loops == NULL.
4981
4982 2013-04-26  Jeff Law  <law@redhat.com>
4983
4984         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4985         (simplify_cond_using_ranges): Generalize code to simplify
4986         COND_EXPRs where one argument is a constant and the other
4987         is an SSA_NAME created by an integral type conversion.
4988
4989 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4990
4991         * config/arm/arm.md (store_minmaxsi): Use only when
4992         optimize_insn_for_size_p.
4993
4994 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4995
4996         PR target/57108
4997         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4998
4999 2013-04-29  Richard Biener  <rguenther@suse.de>
5000
5001         PR middle-end/57089
5002         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5003         loop tree make sure to schedule a fixup for the child as well.
5004         (expand_omp_for_generic): Properly add loops.
5005         (expand_omp_for_static_nochunk): Likewise.
5006         (expand_omp_for_static_chunk): Likewise.
5007         (expand_omp_for): For the degenerate case fixup loops.
5008         (expand_omp_sections): Fix default bb placement in loops.
5009         (expand_omp_atomic_pipeline): Properly add loops.
5010
5011 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5012
5013         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5014
5015 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5016
5017         * tree-ssa-tail-merge.c: Update header comment.
5018
5019 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5020
5021         * config/aarch64/arm_neon.h
5022         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5023         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5024         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5025         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5026         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5027         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5028         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5029         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5030
5031 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5032
5033         * config/aarch64/aarch64-simd.md
5034         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5035         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5036         fix_trunc, fixuns_trunc.
5037         (ftrunc<VDQF:mode>2): New.
5038         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5039         (fix_trunc_optab): New.
5040
5041 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5042
5043         * config/aarch64/aarch64-builtins.c
5044         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5045         iceilf, lround, iroundf.
5046
5047 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5048
5049         PR target/54349
5050         * config/i386/i386.h (enum ix86_tune_indices)
5051         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5052         New, split from X86_TUNE_INTER_UNIT_MOVES.
5053         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5054         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5055         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5056         (TARGET_INTER_UNIT_MOVES): Remove.
5057         * config/i386/i386.c (initial_ix86_tune_features): Update.
5058         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5059         (ix86_expand_convert_uns_didf_sse): Use
5060         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5061         (ix86_expand_vector_init_one_nonzero): Ditto.
5062         (ix86_expand_vector_init_interleave): Ditto.
5063         (inline_secondary_memory_needed): Return true for moves from SSE class
5064         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5065         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5066         * config/i386/constraints.md (Yi, Ym): Depend on
5067         TARGET_INTER_UNIT_MOVES_TO_VEC.
5068         (Yj, Yn): New constraints.
5069         * config/i386/i386.md (*movdi_internal): Change constraints of
5070         operand 1 from Yi to Yj and from Ym to Yn.
5071         (*movsi_internal): Ditto.
5072         (*movdf_internal): Ditto.
5073         (*movsf_internal): Ditto.
5074         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5075         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5076         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5077         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5078         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5079         * config/i386/sse.md (movdi_to_sse): Ditto.
5080         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5081         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5082         TARGET_INTER_UNIT_MOVES.
5083         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5084         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5085         instead of TARGET_INTER_UNIT_MOVES.
5086         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5087         operand 1 from Yi to Yj and from Ym to Yn.
5088
5089 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5090
5091         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5092         (float_truncate_hi_): Likewise.
5093         (float_extend_lo_): Likewise.
5094         (float_truncate_lo_): Likewise.
5095         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5096         (aarch64_float_extend_lo_v2df): Likewise.
5097         (vec_unpacks_hi_v4sf): Likewise.
5098         (aarch64_float_truncate_lo_v2sf): Likewise.
5099         (aarch64_float_truncate_hi_v4sf): Likewise.
5100         (vec_pack_trunc_v2df): Likewise.
5101         (vec_pack_trunc_df): Likewise.
5102
5103 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5104
5105         * config/aarch64/aarch64-builtins.c
5106         (aarch64_fold_builtin): Fold float conversions.
5107         * config/aarch64/aarch64-simd-builtins.def
5108         (floatv2si, floatv4si, floatv2di): New.
5109         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5110         * config/aarch64/aarch64-simd.md
5111         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5112         * config/aarch64/iterators.md (FLOATUORS): New.
5113         (optab): Add float, floatuns.
5114         (su_optab): Likewise.
5115
5116 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5117
5118         * config/aarch64/aarch64-builtins.c
5119         (aarch64_builtin_vectorized_function): Use new names for
5120         fcvt builtins.
5121         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5122         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5123         (fcvtzu): Split as...
5124         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5125         (fcvtas): Split as...
5126         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5127         (fcvtau): Split as...
5128         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5129         (fcvtps): Split as...
5130         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5131         (fcvtpu): Split as...
5132         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5133         (fcvtms): Split as...
5134         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5135         (fcvtmu): Split as...
5136         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5137         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5138         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5139         (lfrintnusf, lfrintnudf): Likewise.
5140         * config/aarch64/aarch64-simd.md
5141         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5142         define_insn.
5143         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5144         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5145         (fcvt_pattern): Likewise.
5146
5147 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5148
5149         * config/aarch64/aarch64-simd.md
5150         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5151         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5152
5153 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5154
5155         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5156         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5157         (vrnd<a,m,n,p>_f32): Implement using builtins.
5158         (vrnd<i,x><q>_f<32, 64>): New.
5159
5160 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5161
5162         * config/aarch64/aarch64-builtins.c
5163         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5164         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5165         (frintz): Rename to...
5166         (btrunc): ...this.
5167         (frintp): Rename to...
5168         (ceil): ...this.
5169         (frintm): Rename to...
5170         (floor): ...this.
5171         (frinti): Rename to...
5172         (nearbyint): ...this.
5173         (frintx): Rename to...
5174         (rint): ...this.
5175         (frinta): Rename to...
5176         (round): ...this.
5177         * config/aarch64/aarch64-simd.md
5178         (aarch64_frint<frint_suffix><mode>): Delete.
5179         (<frint_pattern><mode>2): Convert to insn.
5180         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5181         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5182         (frint_pattern): Likewise.
5183         (frint_suffix): Likewise.
5184
5185 2013-04-29  Richard Biener  <rguenther@suse.de>
5186
5187         PR tree-optimization/57081
5188         * loop-init.c: Include tree-flow.h.
5189         (loop_optimizer_finalize): Free number of iteration estimates.
5190         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5191
5192 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5193
5194         PR tree-optimization/57083
5195         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5196         non-singleton shift count range, zero extend low_bound for uns case.
5197
5198         * config/i386/predicates.md (general_vector_operand): New predicate.
5199         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5200         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5201         if they aren't nonimmediate operands.  If their original values
5202         satisfy const_vector_equal_evenodd_p, don't shift them.
5203         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5204         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5205         if not nonimmediate_operand.
5206         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5207         instead of register_operand.
5208         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5209
5210 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5211
5212         * stor-layout.c (finalize_size_functions): Allocate a structure and
5213         reset cfun before dumping the functions.
5214
5215 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5216
5217         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5218
5219         PR target/56866
5220         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5221         use xop_pmacsdqh if uns_p.
5222         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5223         the immediate rotate count.
5224
5225 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5226
5227         * rtl.h (struct rtx_def): Add comment for field jump.
5228         (LRA_SUBREG_P): New macro.
5229         * recog.c (register_operand): Check LRA_SUBREG_P.
5230         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5231         stack frame.
5232         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5233         (lra_final_code_change): Skip subreg change for operators.
5234         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5235         if there are no operand changes.
5236         * lra-constraints.c (curr_insn_set): New.
5237         (match_reload): Set LRA_SUBREG_P.
5238         (emit_spill_move): Ditto.
5239         (check_and_process_move): Use curr_insn_set. Process only single
5240         set insns.  Don't initialize sec_mem_p and change_p.
5241         (simplify_operand_subreg): Use LRA_SUBREG_P.
5242         (reg_in_class_p): New function.
5243         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5244         of #ifdef.  Add code to remove cycling.
5245         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5246         non-null disp.  Reload inner instead of disp when base and index
5247         are null.  Try to put lo_sum into register.
5248         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5249         (check_and_process_move): Move code for move cost check to
5250         simple_move_p.  Remove equiv_substitution.
5251         (simple_move_p): New function.
5252         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5253         curr_insn_set.  Call check_and_process_move only for single set
5254         insns.  Use the new function.  Move call of check_and_process_move
5255         after operand equiv substitution and address process.
5256
5257 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5258
5259         PR go/57045
5260         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5261         with nonlocal goto receivers or returns twice calls, ignore
5262         unininitialized values from abnormal edges to nl goto receiver
5263         or returns twice call.
5264
5265 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5266
5267         PR tree-optimization/57051
5268         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5269         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5270         bitsize.
5271
5272 2013-04-26  Richard Biener  <rguenther@suse.de>
5273
5274         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5275         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5276         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5277         (fixup_loop_arrays_after_move): New function.
5278         (move_sese_region_to_fn): Properly outline the loop tree parts
5279         of the SESE region.
5280
5281 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5282
5283         * config/i386/i386.md (type, unit): Fix long lines.
5284
5285 2013-04-26  Richard Biener  <rguenther@suse.de>
5286
5287         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5288         (lto-streamer-out.o): Likewise.
5289         * cfgloop.c (init_loops_structure): Export, add struct function
5290         argument and adjust.
5291         (flow_loops_find): Adjust.
5292         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5293         (init_loops_structure): Declare.
5294         * lto-streamer-in.c: Include cfgloop.h.
5295         (input_cfg): Input the loop tree.
5296         * lto-streamer-out.c: Include cfgloop.h.
5297         (output_cfg): Output the loop tree.
5298         (output_struct_function_base): Do not drop PROP_loops.
5299
5300 2013-03-26  Richard Biener  <rguenther@suse.de>
5301
5302         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5303         (pass_build_cfg): Provide PROP_loops.
5304         (move_sese_region_to_fn): Remove loops that are outlined into fn
5305         for now.
5306         * tree-inline.c: Include cfgloop.h.
5307         (initialize_cfun): Do not drop PROP_loops.
5308         (copy_loops): New function.
5309         (copy_cfg_body): Copy loop structure.
5310         (tree_function_versioning): Initialize destination loop tree.
5311         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5312         (pass_parallelize_loops): Do IL verification.
5313         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5314         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5315         the CFG make sure we fixup loops as well.
5316         * tree-ssa-tail-merge.c: Include cfgloop.h.
5317         (replace_block_by): When merging loop latches mark loops for fixup.
5318         * lto-streamer-out.c (output_struct_function_base): Drop
5319         PROP_loops for now.
5320         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5321         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5322         * ipa-split.c: Include cfgloop.h.
5323         (split_function): Add the new return block to the loop tree root.
5324         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5325         whether we have removed the forwarder block.
5326         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5327         * cfgloop.h (place_new_loop): Declare.
5328         * cfgloopmanip.c (place_new_loop): Export.
5329         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5330         (tree-switch-conversion.o): Likewise.
5331         (tree-complex.o): Likewise.
5332         (tree-inline.o): Likewise.
5333         (tree-ssa-tailmerge.o): Likewise.
5334         (ipa-split.o): Likewise.
5335         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5336         (tree-ssa-copy.o): Likewise.
5337         * tree-switch-conversion.c: Include cfgloop.h
5338         (process_switch): If we emit a bit-test cascade, schedule loops
5339         for fixup.
5340         * tree-complex.c: Include cfgloop.h.
5341         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5342         * asan.c: Include cfgloop.h.
5343         (create_cond_insert_point): Properly add new basic-blocks to
5344         loops, schedule loop fixup.
5345         * cfgloop.c (verify_loop_structure): Check that looks are not
5346         marked for fixup.
5347         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5348         to loops.
5349         (expand_omp_for_generic): Likewise.
5350         (expand_omp_sections): Likewise.
5351         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5352         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5353         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5354         is initialized, not when loops are present.
5355         * tree-parloops.c (parallelize_loops): Remove checking here.
5356         * passes.c (init_optimization_passes): Schedule a copy-propagation
5357         pass before complete unrolling of inner loops.
5358
5359 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5360
5361         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5362         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5363         (colorize_init): Add argument to _WIN32 version.
5364         * toplev.c: Include diagnostic-color.h.
5365         (process_options): Default to -fdiagnostics-color=auto if
5366         GCC_COLORS env var is in the environment.
5367         * common.opt (fdiagnostics-color=): Add Var and Init.
5368         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5369         env var is in the environment, the default is auto rather than never.
5370
5371         * diagnostic.h (file_name_as_prefix): Add context argument.
5372         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5373         the string as locus.
5374         * langhooks.c (lhd_print_error_function): Adjust caller.
5375
5376 2013-04-25  Lawrence Crowl  <crowl@google.com>
5377
5378         * var-tracking.c (shared_hash_def::htab):
5379         Change type to hash_table.  Update dependent calls and types.
5380
5381 2013-04-25  Lawrence Crowl  <crowl@google.com>
5382
5383         * Makefile.in: Update as needed below.
5384
5385         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5386         Move declaration to after the type's method definitons.
5387
5388         * attribs.c (htab_t scoped_attributes::attribute_hash):
5389         Change type to hash_table.  Update dependent calls and types.
5390
5391         * bitmap.c (htab_t bitmap_desc_hash):
5392         Change type to hash_table.  Update dependent calls and types.
5393
5394         * cselib.c (htab_t cselib_hash_table):
5395         Change type to hash_table.  Update dependent calls and types.
5396
5397         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5398         (hash_string_slot_node): Move implementation into lto-streamer.h
5399         struct string_slot_hasher.
5400         (eq_string_slot_node): Likewise.
5401
5402         * data-streamer-out.c: Update output_block::string_hash_table
5403         dependent calls and types.
5404
5405         * dwarf2cfi.c (htab_t trace_index):
5406         Change type to hash_table.  Update dependent calls and types.
5407
5408         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5409         Change type to hash_table.  Update dependent calls and types.
5410         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5411         (htab_t optimize_external_refs::map): Likewise.
5412         (htab_t output_comp_unit::extern_map): Likewise.
5413         (htab_t output_comdat_type_unit::extern_map): Likewise.
5414         (htab_t output_macinfo::macinfo_htab): Likewise.
5415         (htab_t optimize_location_lists::htab): Likewise.
5416         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5417
5418         * except.c (htab_t ehspec_hash_type):
5419         Change type to hash_table.  Update dependent calls and types.
5420         (assign_filter_values::ttypes): Likewise.
5421         (assign_filter_values::ehspec): Likewise.
5422         (sjlj_assign_call_site_values::ar_hash): Likewise.
5423         (convert_to_eh_region_ranges::ar_hash): Likewise.
5424
5425         * gcse.c (htab_t pre_ldst_table):
5426         Change type to hash_table.  Update dependent calls and types.
5427
5428         * ggc-common.c (htab_t saving_htab):
5429         Change type to hash_table.  Update dependent calls and types.
5430         (htab_t loc_hash): Likewise.
5431         (htab_t ptr_hash): Likewise.
5432         (call_count): Rename ggc_call_count.
5433         (call_alloc): Rename ggc_call_alloc.
5434         (loc_descriptor): Rename make_loc_descriptor.
5435         (add_statistics): Rename ggc_add_statistics.
5436
5437         * ggc-common.c (saving_htab):
5438         Change type to hash_table.  Update dependent calls and types.
5439
5440         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5441         (push_gimplify_context): Likewise.
5442         (pop_gimplify_context): Likewise.
5443         (struct gimple_temp_hash_elt): Added.
5444         (struct gimplify_hasher): Likewise.
5445         (struct gimplify_ctx.temp_htab):
5446         Change type to hash_table.  Update dependent calls and types.
5447
5448         * gimple-fold.c: Include gimplify-ctx.h.
5449
5450         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5451         Change type to hash_table.  Update dependent calls and types.
5452         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5453         avoid potential global name collision.
5454
5455         * gimplify.c: Include gimplify-ctx.h.
5456         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5457         (htab_t gimplify_ctx::temp_htab):
5458         Update dependent calls and types for new type hash_table.
5459         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5460         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5461
5462         * gimplify-ctx.h: New.
5463         (struct gimple_temp_hash_elt): Move from gimplify.c.
5464         (class gimplify_hasher): New.
5465         (struct gimplify_ctx): Move from gimple.h.
5466         (htab_t gimplify_ctx::temp_htab):
5467         Change type to hash_table.  Update dependent calls and types.
5468
5469         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5470         (htab_t ivs_params::newivs_index):
5471         Change type to hash_table.  Update dependent calls and types.
5472         (htab_t ivs_params::params_index): Likewise.
5473         (htab_t print_generated_program::params_index): Likewise.
5474         (htab_t gloog::newivs_index): Likewise.
5475         (htab_t gloog::params_index): Likewise.
5476
5477         * graphite.c: Include graphite-htab.h.
5478         4htab_t graphite_transform_loops::bb_pbb_mapping):
5479         Change type to hash_table.  Update dependent calls and types.
5480
5481         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5482         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5483         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5484
5485         * graphite-dependences.c: Include graphite-htab.h.
5486         (loop_is_parallel_p): Change hash table type of parameter.
5487
5488         * graphite-htab.h: New.
5489         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5490         (extern find_pbb_via_hash): Move from graphite-poly.h.
5491         (extern loop_is_parallel_p): Move from graphite-poly.h.
5492         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5493
5494         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5495         (extern loop_is_parallel_p): Move to graphite-htab.h.
5496         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5497
5498         * haifa-sched.c (htab_t delay_htab):
5499         Change type to hash_table.  Update dependent calls and types.
5500         (htab_t delay_htab_i2): Likewise.
5501
5502         * ira-color.c (htab_t allocno_hard_regs_htab):
5503         Change type to hash_table.  Update dependent calls and types.
5504
5505         * ira-costs.c (htab_t cost_classes_htab):
5506         Change type to hash_table.  Update dependent calls and types.
5507
5508         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5509         Change type to hash_table.  Update dependent calls and types.
5510
5511         * loop-iv.c (htab_t bivs):
5512         Change type to hash_table.  Update dependent calls and types.
5513
5514         * loop-unroll.c (htab_t opt_info::insns_to_split):
5515         Change type to hash_table.  Update dependent calls and types.
5516         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5517
5518         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5519         (struct string_slot_hasher): New.
5520         (htab_t output_block::string_hash_table):
5521         Change type to hash_table.  Update dependent calls and types.
5522
5523         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5524         (htab_t file_name_hash_table):
5525         Change type to hash_table.  Update dependent calls and types.
5526
5527         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5528         calls and types.
5529
5530         * lto-streamer.c (htab_t tree_htab):
5531         Change type to hash_table.  Update dependent calls and types.
5532
5533         * omp-low.c: Include gimplify-ctx.h.
5534
5535         * passes.c (htab_t name_to_pass_map):
5536         Change type to hash_table.  Update dependent calls and types.
5537         (pass_traverse): Rename to passes_pass_traverse.
5538
5539         * plugin.c (htab_t event_tab):
5540         Change type to hash_table.  Update dependent calls and types.
5541
5542         * postreload-gcse.c (htab_t expr_table):
5543         Change type to hash_table.  Update dependent calls and types.
5544         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5545
5546         * sese.c (debug_rename_map_1): Make extern.
5547         (htab_t copy_bb_and_scalar_dependences::rename_map):
5548         Change type to hash_table.  Update dependent calls and types.
5549
5550         * sese.h (extern debug_rename_map): Move to .c file.
5551
5552         * store-motion.c (htab_t store_motion_mems_table):
5553         Change type to hash_table.  Update dependent calls and types.
5554
5555         * trans-mem.c (htab_t tm_new_mem_hash):
5556         Change type to hash_table.  Update dependent calls and types.
5557
5558         * tree-browser.c (htab_t TB_up_ht):
5559         Change type to hash_table.  Update dependent calls and types.
5560
5561         * tree-cfg.c (htab_t discriminator_per_locus):
5562         Change type to hash_table.  Update dependent calls and types.
5563
5564         * tree-complex.c: Include tree-hasher.h
5565         (htab_t complex_variable_components):
5566         Change type to hash_table.  Update dependent calls and types.
5567
5568         * tree-eh.c (htab_t finally_tree):
5569         Change type to hash_table.  Update dependent calls and types.
5570
5571         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5572         struct int_tree_hasher.
5573         (extern int_tree_map_eq): Likewise.
5574         (uid_decl_map_hash): Removed.
5575         (extern decl_tree_map_eq): Likewise.
5576
5577         * tree-hasher.h: New.
5578         (struct int_tree_hasher): New.
5579         (typedef int_tree_htab_type): New.
5580
5581         * tree-inline.c: Include gimplify-ctx.h.
5582
5583         * tree-mudflap.c: Include gimplify-ctx.h.
5584
5585         * tree-parloops.c: Include tree-hasher.h.
5586         (htab_t eliminate_local_variables_stmt::decl_address):
5587         Change type to hash_table.  Update dependent calls and types.
5588         (htab_t separate_decls_in_region::decl_copies): Likewise.
5589
5590         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5591         Change type to hash_table.  Update dependent calls and types.
5592
5593         * tree-sra.c (candidates):
5594         Change type to hash_table.  Update dependent calls and types.
5595
5596         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5597         in tree-flow.h.
5598         (int_tree_map_hash): Likewise.
5599
5600         * tree-ssa-dom.c (htab_t avail_exprs):
5601         Change type to hash_table.  Update dependent calls and types.
5602
5603         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5604         Change type to hash_table.  Update dependent calls and types.
5605
5606         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5607         Change type to hash_table.  Update dependent calls and types.
5608
5609         * tree-ssa-phiopt.c (seen_ssa_names):
5610         Change type to hash_table.  Update dependent calls and types.
5611
5612         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5613         Change type to hash_table.  Update dependent calls and types.
5614
5615         * tree-ssa-uncprop.c (equiv):
5616         Change type to hash_table.  Update dependent calls and types.
5617
5618 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5619
5620         PR rtl-optimization/57003
5621         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5622         call note_stores with kill_clobbered_value callback again after
5623         killing regs_invalidated_by_call.
5624
5625 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5626
5627         * config/aarch64/aarch64-simd.md
5628         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5629         (aarch64_simd_bsl<mode>): Likewise.
5630         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5631
5632 2013-04-25  Marek Polacek  <polacek@redhat.com>
5633
5634         PR tree-optimization/57066
5635         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5636
5637 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5638
5639         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5640
5641 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5642
5643         * config/aarch64/aarch64-builtins.c
5644         (aarch64_fold_builtin): New.
5645         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5646         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5647         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5648         * config/aarch64/arm_neon.h
5649         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5650
5651 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5652             Tejas Belagod  <tejas.belagod@arm.com>
5653
5654         * config/aarch64/aarch64-builtins.c
5655         (aarch64_gimple_fold_builtin): New.
5656         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5657         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5658         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5659         (addvv4sf): Update.
5660         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5661
5662 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5663
5664         * config/aarch64/aarch64.md
5665         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5666
5667 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5668
5669         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5670         (*ngcsi_uxtw): New pattern.
5671
5672 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5673             Julian Brown  <julian@codesourcery.com>
5674
5675         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5676         (TB_DREG): Add T_V4HF.
5677         (v4hf_UP): New macro.
5678         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5679         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5680         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5681         built-ins.
5682         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5683         (arm_vector_mode_supported_p): Handle V4HF.
5684         (arm_mangle_map): Handle V4HFmode.
5685         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5686         * config/arm/arm_neon_builtins.def: Add entries for
5687         vcvtv4hfv4sf, vcvtv4sfv4hf.
5688         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5689         (neon_vcvtv4hfv4sf): Likewise.
5690         * config/arm/neon-gen.ml: Handle half-precision floating point
5691         features.
5692         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5693         * config/arm/arm_neon.h: Regenerate.
5694         * config/arm/neon.ml (type elts): Add F16.
5695         (type vectype): Add T_float16x4, T_floatHF.
5696         (type vecmode): Add V4HF.
5697         (type features): Add Requires_FP_bit feature.
5698         (elt_width): Handle F16.
5699         (elt_class): Likewise.
5700         (elt_of_class_width): Likewise.
5701         (mode_of_elt): Refactor.
5702         (type_for_elt): Handle F16, fix error messages.
5703         (vectype_size): Handle T_float16x4.
5704         (vcvt_sh): New function.
5705         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5706         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5707         (string_of_mode): Handle V4HF.
5708         * doc/arm-neon-intrinsics.texi: Regenerate.
5709
5710 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5711
5712         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5713         format specifier in 'X' case.
5714
5715 2013-04-25  Alan Modra  <amodra@gmail.com>
5716
5717         PR target/57052
5718         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5719         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5720         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5721         Repeat for many other rotate/shift and mask patterns using subregs.
5722         Name lshiftrt insns.
5723         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5724         on WORDS_BIG_ENDIAN.
5725
5726 2013-04-25  Alan Modra  <amodra@gmail.com>
5727
5728         * config.gcc: Support little-endian powerpc-linux targets.
5729         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5730         (LINK_OS_LINUX_SPEC): Define.
5731         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5732         Preserve MASK_LITTLE_ENDIAN.
5733         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5734         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5735         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5736         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5737         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5738         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5739         Correct fp word order for little-endian.  Don't shift toc entries
5740         smaller than a word for little-endian.
5741         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5742         (bswapdi2 splits): Correct low-part subreg for little-endian.
5743         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5744         low/high where such is correct only for be.
5745         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5746         little-endian for -mcall-aixdesc.
5747
5748 2013-04-25  Alan Modra  <amodra@gmail.com>
5749
5750         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5751         replace_equiv_address_nv.
5752
5753 2013-04-25  Alan Modra  <amodra@gmail.com>
5754
5755         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5756
5757 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5758
5759         Revert:
5760         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5761         * rtl.h (struct rtx_def): ...
5762
5763 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5764
5765         PR rtl-optimizations/57046
5766         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5767         for multi-reg splits.
5768
5769 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5770
5771         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5772
5773 2013-04-24  Sterling Augustine  <saugustine@google.com>
5774
5775         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5776         (comp_dir_string, debug_str_dwo_section): New.
5777         (DEBUG_STR_DWO_SECTION): Rename to ...
5778         (DEBUG_DWO_STR_SECTION): ... this.
5779         (DEBUG_NORM_STR_SECTION): Delete.
5780         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5781         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5782         (find_AT_string): Move most logic to ...
5783         (find_AT_string_in_table): ... here.  New.
5784         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5785         add_skeleton_AT_string.  Delete logic.
5786         (output_skeleton_debug_sections): Remove call to
5787         add_top_level_skeleton_die_attrs.
5788         (add_comp_dir_attribute): Move logic to comp_dir_string.
5789         (dwarf2out_init): Initialize debug_str_dwo_section.
5790         (output_indirect_string): Call find_string_form.
5791         (output_indirect_strings): Rewrite.
5792         (prune_unused_types): Empty skeleton_debug_str_hash.
5793         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5794         (dwarf2out_finish):  Call output_indirect_strings.
5795
5796 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5797
5798         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5799
5800 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5801
5802         * rtl.h (struct rtx_def): Add comment for field jump.
5803         (LRA_SUBREG_P): New macro.
5804         * recog.c (register_operand): Check LRA_SUBREG_P.
5805         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5806         stack frame.
5807         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5808         (lra_final_code_change): Skip subreg change for operators.
5809         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5810         if there are no operand changes.
5811         * lra-constraints.c (curr_insn_set): New.
5812         (match_reload): Set LRA_SUBREG_P.
5813         (emit_spill_move): Ditto.
5814         (check_and_process_move): Use curr_insn_set. Process only single
5815         set insns.  Don't initialize sec_mem_p and change_p.
5816         (simplify_operand_subreg): Use LRA_SUBREG_P.
5817         (reg_in_class_p): New function.
5818         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5819         of #ifdef.  Add code to remove cycling.
5820         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5821         non-null disp.  Reload inner instead of disp when base and index
5822         are null.  Try to put lo_sum into register.
5823         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5824         (check_and_process_move): Move code for move cost check to
5825         simple_move_p.  Remove equiv_substitution.
5826         (simple_move_p): New function.
5827         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5828         curr_insn_set.  Call check_and_process_move only for single set
5829         insns.  Use the new function.  Move call of check_and_process_move
5830         after operand equiv substitution and address process.
5831
5832 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5833
5834         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5835         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5836         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5837
5838 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5839
5840         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5841
5842 2013-04-24  Marek Polacek  <polacek@redhat.com>
5843
5844         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5845         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5846         (select_loops_exit_conditions): Likewise.
5847         (number_of_iterations_for_all_loops): Likewise.
5848         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5849         (scev_analysis): Likewise.
5850
5851 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5852             Chao-ying Fu <fu@mips.com>
5853
5854         * config/mips/micromips.md (jraddiusp): New pattern.
5855         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5856         instruction if possible.
5857
5858 2013-04-24  Alan Modra  <amodra@gmail.com>
5859
5860         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5861
5862 2013-04-24  Julian Brown  <julian@codesourcery.com>
5863             Chung-Lin Tang  <cltang@codesourcery.com>
5864
5865         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5866         dependency behavior in enumeration type DIE generation. Add TODO note
5867         to comments about future DW_FORM_sdata/udata re-work of related code.
5868
5869 2013-04-23  Lawrence Crowl  <crowl@google.com>
5870
5871         * Makefile.in: Update as needed below.
5872
5873         * hash-table.h (class hash_table):
5874         Correct many methods with parameter types compare_type to the correct
5875         value_type.  (Correct code was unlikely to notice the change.)
5876         (hash_table::elements_with_deleted) New.
5877         (class hashtable::iterator): New.
5878         (hashtable::begin()): New.
5879         (hashtable::end()): New.
5880         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5881
5882         * statistics.c (statistics_hashes):
5883         Change type to hash_table.  Update dependent calls and types.
5884
5885         * tree-into-ssa.c (var_infos):
5886         Change type to hash_table.  Update dependent calls and types.
5887
5888         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5889         Change type to hash_table.  Update dependent calls and types.
5890
5891         * tree-ssa-loop-im.c (struct mem_ref.refs):
5892         Change type to hash_table.  Update dependent calls and types.
5893
5894         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5895         Change type to hash_table.  Update dependent calls and types.
5896
5897         * tree-ssa-sccvn.c (vn_tables_s::nary):
5898         Change type to hash_table.  Update dependent calls and types.
5899         (vn_tables_s::phis): Likewise.
5900         (vn_tables_s::references): Likewise.
5901
5902         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5903         (vn_reference_eq): Update parameter and return types.
5904
5905         * tree-ssa-structalias.c (pointer_equiv_class_table):
5906         Change type to hash_table.  Update dependent calls and types.
5907         (location_equiv_class_table): Likewise.
5908
5909         * tree-vect-data-refs.c: Consequential changes for making
5910         peeling a hash_table.
5911
5912         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5913         (destroy_loop_vec_info): Dependent hash_table update.
5914
5915         * tree-vectorizer.h (peeling_htab):
5916         Change type to hash_table.  Update dependent calls and types.
5917
5918 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5919
5920         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5921         to check the register content is equal or not.
5922         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5923         to assign register content record.
5924         * lra-eliminations.c (update_reg_eliminate): Use
5925         lra_update_reg_val_offset to update register content offset.
5926         * lra-int.h (struct lra_reg): Add offset member.
5927         (lra_reg_val_equal_p): New static inline function.
5928         (lra_update_reg_val_offset): New static inline function.
5929         (lra_assign_reg_val): New static inline function.
5930         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5931         to assign register content record.
5932         (initialize_lra_reg_info_element): Initial offset to zero.
5933
5934 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5935
5936         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5937         operands.  Record compression.
5938
5939 2013-04-23  Xinliang David Li  <davidxl@google.com>
5940
5941         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5942
5943 2013-04-23  Richard Biener  <rguenther@suse.de>
5944
5945         PR middle-end/57036
5946         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5947         parameter, only add abnormal goto edges from the copied body
5948         if the call could perform abnormal gotos.
5949         (copy_cfg_body): Adjust.
5950
5951 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5952
5953         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5954
5955 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5956
5957         * coretypes.h (gimple_stmt_iterator): Add struct to make
5958         compatible with C.
5959
5960 2013-04-23  Richard Biener  <rguenther@suse.de>
5961
5962         PR tree-optimization/57026
5963         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5964         from SSA names occuring in abnormal PHI nodes.
5965
5966 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5967
5968         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5969
5970 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5971
5972         * lto/lto.c (print_lto_report_1): Declare early.
5973         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5974
5975 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5976
5977         * common.opt (-flto-report-wpa): Add.
5978         * doc/invoke.texi (-flto-report-wpa): Add.
5979         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5980         (lto_main): dito.
5981
5982 2013-04-22  Xinliang David Li  <davidxl@google.com>
5983
5984         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5985         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5986         * Makefile.in: New dependency
5987
5988             David Daney <ddaney.cavm@gmail.com>
5989
5990         * configure.ac (gcc_cv_as_micromips_support):  Use the
5991         --fatal-warnings option.
5992         * configure: Regenerate.
5993
5994 2013-04-22  Marek Polacek  <polacek@redhat.com>
5995
5996         PR sanitizer/56990
5997         * tsan.c (instrument_expr): Don't instrument expression
5998         in case its size is zero.
5999
6000 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6001
6002         PR target/57032
6003         Revert:
6004         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6005
6006         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6007
6008 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6009
6010         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6011         (gimple_stmt_iterator): New typedef.
6012         * gimple.h (gimple_stmt_iterator): Rename to...
6013         (gimple_stmt_iterator_d): ... This.
6014         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6015         trees be valid for GIMPLE and GENERIC.
6016         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6017         * gimple-fold.c (gimple_fold_call): Call target hook
6018         gimple_fold_builtin.
6019         * hooks.c (hook_bool_gsiptr_false): New.
6020         * hooks.h (hook_bool_gsiptr_false): New.
6021         * target.def (fold_stmt): New.
6022         * doc/tm.texi: Regenerate.
6023
6024 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6025
6026         PR target/57018
6027         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6028         a set sp if no stack realignment.
6029
6030 2013-04-22  Nick Clifton  <nickc@redhat.com>
6031
6032         * config.gcc (tilegx-linux): Extend extra_objs rather than
6033         overwriting it.
6034         (tilepro-linux): Likewise.
6035
6036 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6037
6038         * config/aarch64/aarch64-builtins.c
6039         (CF): Remove.
6040         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6041         (VAR<1-12>): Add MAP parameter.
6042         (BUILTIN_*): Likewise.
6043         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6044         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6045         (aarch64_ushl_n<mode>): Likewise.
6046         (aarch64_sshr_n<mode>): Likewise.
6047         (aarch64_ushr_n<mode>): Likewise.
6048         (aarch64_<maxmin><mode>): Likewise.
6049         (aarch64_sqrt<mode>): Likewise.
6050         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6051         (vshr<q>_n_*): Likewise.
6052
6053 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6054
6055         * config/aarch64/aarch64-builtins.c
6056         (aarch64_simd_builtin_type_mode): Handle SF types.
6057         (sf_UP): Define.
6058         (BUILTIN_GPF): Define.
6059         (aarch64_init_simd_builtins): Handle SF types.
6060         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6061         (frecps): Likewise.
6062         (frecpx): Likewise.
6063         * config/aarch64/aarch64-simd.md
6064         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6065         (aarch64_frecpe<mode>): New.
6066         (aarch64_frecps<mode>): Likewise.
6067         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6068         (v8type): Add frecp<esx>.
6069         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6070         (aarch64_frecps<mode>): Likewise.
6071         * config/aarch64/iterators.md (FRECP): New.
6072         (frecp_suffix): Likewise.
6073         * config/aarch64/arm_neon.h
6074         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6075
6076 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6077
6078         PR target/56995
6079         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6080         (REG_CLASS_NAMES): Idem.
6081         (REG_CLASS_CONTENTS): Idem.
6082         (REGCLASS_HAS_FP_REG): Idem.
6083         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6084         (sh_conditional_register_usage): Idem.
6085
6086 2013-04-21  Jeff Law  <law@redhat.com>
6087
6088         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6089         (ssa_forward_propagate_and_combine): Use it.
6090
6091 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6092
6093         * lra.c: Update the flow chart diagram.
6094
6095 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6096
6097         PR rtl-optimization/56847
6098         * lra-constraints.c (process_alt_operands): Discourage alternative
6099         with non-matche doffsettable memory constraint fro memory with
6100         known offset.
6101
6102 2013-04-19  Richard Biener  <rguenther@suse.de>
6103
6104         PR tree-optimization/56982
6105         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6106         function.
6107         * gimplify.c (gimplify_call_expr): Notice special calls.
6108         (gimplify_modify_expr): Likewise.
6109         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6110         abnormal control flow receivers.
6111         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6112         in the same way as cfun->has_nonlocal_labels.
6113         (gimple_purge_dead_abnormal_call_edges): Likewise.
6114         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6115         receivers start a basic-block.
6116
6117 2013-04-19  Richard Biener  <rguenther@suse.de>
6118
6119         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6120         member ...
6121         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6122         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6123         (SLP_TREE_LOAD_PERMUTATION): Add.
6124         (vect_transform_slp_perm_load): Adjust prototype.
6125         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6126         (vect_free_slp_instance): Likewise.
6127         (vect_create_new_slp_node): Likewise.
6128         (vect_supported_slp_permutation_p): Remove.
6129         (vect_slp_rearrange_stmts): Adjust.
6130         (vect_supported_load_permutation_p): Likewise.  Inline
6131         vect_supported_slp_permutation_p here.
6132         (vect_analyze_slp_instance): Compute load permutations per
6133         slp node instead of per instance.
6134         (vect_get_slp_defs): Adjust.
6135         (vect_transform_slp_perm_load): Likewise.
6136         (vect_schedule_slp_instance): Remove redundant code.
6137         (vect_schedule_slp): Remove hack for PR56270, add it ...
6138         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6139         CSE loads for SLP.  Adjust.
6140
6141 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6142
6143         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6144         spelling in two comments.
6145
6146 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6147
6148         PR target/56797
6149         * config/arm/arm.c (load_multiple_sequence): Require SP
6150         as base register for loads if SP is in the register list.
6151
6152 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6153
6154         PR tree-optimization/56718
6155         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6156         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6157         and made public.  Adjusted all callers.
6158         (ipa_intraprocedural_devirtualization): New function.
6159         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6160         (ipa_intraprocedural_devirtualization): Likewise.
6161         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6162
6163 2013-04-19  Richard Biener  <rguenther@suse.de>
6164
6165         PR tree-optimization/57000
6166         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6167
6168 2013-04-19  Terry Guo  <terry.guo@arm.com>
6169
6170         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6171         Replace with ...
6172         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6173         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6174         (cortex_m4_fmacs): Use new reservations.
6175         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6176
6177 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6178
6179         PR rtl-optimization/56999
6180         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6181         related code.
6182         (lra_coalesce): Remove split_origin_bitmap and related code.
6183         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6184         ranges if necessary.
6185
6186 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6187
6188         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6189         New array.
6190         (ix86_expand_call): Remove clobbered_registers array and use
6191         x86_64_ms_sysv_extra_clobbered_registers instead.
6192         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6193         Declare here.
6194         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6195         predicate.
6196         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6197         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6198         (*call_value_rex64_ms_sysv): Ditto.
6199
6200 2013-04-18  Cary Coutant  <ccoutant@google.com>
6201
6202         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6203         parent instead of die_mark.
6204
6205 2013-04-18  Diego Novillo  <dnovillo@google.com>
6206
6207         * gimple.c (create_gimple_tmp): New.
6208         (get_expr_type): New.
6209         (build_assign): New.
6210         (build_type_cast): New.
6211         * gimple.h (enum ssa_mode): Define.
6212         (gimple_seq_set_location): New.
6213         * asan.c (build_check_stmt): Change some gimple_build_* calls
6214         to use build_assign and build_type_cast.
6215
6216 2013-04-18  Richard Biener  <rguenther@suse.de>
6217
6218         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6219         handle negative step.  Remove redundant checks.
6220         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6221         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6222         for negative step and grouped loads fail to vectorize.
6223
6224 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6225
6226         * emit-rtl.c (reset_insn_used_flags): New function.
6227         (reset_all_used_flags): Use it.
6228         (verify_insn_sharing): New function.
6229         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6230
6231 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6232
6233         PR tree-optimization/56984
6234         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6235         and (x >> M) >= N don't register any assertion if N << M is the
6236         minimum value.
6237
6238 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6239
6240         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6241         do not delete_insn insns that have not yet been emitted, only
6242         unlink them with remove_insn.
6243         * df-scan.c (df_insn_delete): Revert r197492.
6244
6245 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6246
6247         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6248         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6249
6250 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6251
6252         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6253         define_insn_and_split.
6254         (and_scc,ior_scc,negscc): Likewise.
6255         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6256
6257 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6258
6259         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6260         can benefit from using a sequence of LDRD instructions in epilogue
6261         instead of a single LDM instruction.
6262
6263 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6264
6265         PR 45688
6266         * doc/extend.texi: Fix typo.
6267
6268 2013-04-17  Richard Biener  <rguenther@suse.de>
6269
6270         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6271         (vect_build_slp_tree): ... here.
6272         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6273         match.  Remove special-casing of mismatched complex loads.
6274         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6275         re-try the match with swapped commutative operands.
6276         (vect_supported_load_permutation_p): Remove special-casing of
6277         mismatched complex loads.
6278         (vect_analyze_slp_instance): Adjust.
6279
6280 2013-04-17  Richard Biener  <rguenther@suse.de>
6281
6282         PR rtl-optimization/56921
6283         * cfgloop.h (struct loop): Add simple_loop_desc member.
6284         (struct niter_desc): Mark with GTY(()).
6285         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6286         * loop-iv.c (get_simple_loop_desc): Likewise.
6287         (free_simple_loop_desc): Likewise.
6288
6289         Revert
6290         2013-04-16  Richard Biener  <rguenther@suse.de>
6291
6292         PR rtl-optimization/56921
6293         * loop-init.c (pass_rtl_move_loop_invariants): Add
6294         TODO_do_not_ggc_collect to todo_flags_finish.
6295         (pass_rtl_unswitch): Same.
6296         (pass_rtl_unroll_and_peel_loops): Same.
6297         (pass_rtl_doloop): Same.
6298
6299 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6300
6301         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6302         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6303         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6304         references.
6305         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6306         * tree-streamer.c (record_common_node): Adjust reference in comment.
6307
6308 2013-04-17  Terry Guo  <terry.guo@arm.com>
6309
6310         * config/arm/cortex-m4.md: Add a new bypass.
6311
6312 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6313
6314         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6315         New pattern.
6316         (*subs_<optab><mode>_multp2): New pattern.
6317         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6318         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6319
6320 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6321
6322         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6323         (*subs_mul_imm_<mode>): New pattern.
6324
6325 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6326
6327         PR target/56948
6328         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6329         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6330         (vsx_movti_32bit): Change j->wa to O->wa.
6331
6332 2013-04-16  Richard Biener  <rguenther@suse.de>
6333
6334         PR rtl-optimization/56921
6335         * loop-init.c (pass_rtl_move_loop_invariants): Add
6336         TODO_do_not_ggc_collect to todo_flags_finish.
6337         (pass_rtl_unswitch): Same.
6338         (pass_rtl_unroll_and_peel_loops): Same.
6339         (pass_rtl_doloop): Same.
6340
6341 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6342
6343         * config/arm/arm.c (emit_multi_reg_push): New declaration
6344         for an existing function.
6345         (arm_emit_strd_push): New function.
6346         (arm_expand_prologue): Used here.
6347         (arm_emit_ldrd_pop): New function.
6348         (arm_expand_epilogue): Used here.
6349         (arm_get_frame_offsets): Update condition.
6350         (arm_emit_multi_reg_pop): Add a special case for load of a single
6351         register with writeback.
6352
6353 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6354
6355         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6356         description.
6357
6358 2013-04-16  Richard Biener  <rguenther@suse.de>
6359
6360         PR tree-optimization/56756
6361         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6362         (first_mem_ref_loc): New.
6363         (execute_sm): Place the load temporarily before a previous
6364         access instead of in the latch edge to ensure its SSA dependencies
6365         are defined at points dominating the load.
6366
6367 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6368
6369         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6370         correct fix by moving header and footer insn to the footer of
6371         the merged basic block.  Clear BB_END of the merged-away block.
6372
6373         PR middle-end/43631
6374         * emit-rtl.c (make_note_raw): New function.
6375         (link_insn_into_chain): New static inline function.
6376         (add_insn): Use it.
6377         (add_insn_before, add_insn_after): Factor insn chain linking code...
6378         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6379         using link_insn_into_chain.
6380         (note_outside_basic_block_p): New helper function for emit_note_after
6381         and emit_note_before.
6382         (emit_note_after): Use nobb variant of add_insn_after if the note
6383         should not be contained in a basic block.
6384         (emit_note_before): Use nobb variant of add_insn_before if the note
6385         should not be contained in a basic block.
6386         (emit_note_copy): Use make_note_raw.
6387         (emit_note): Likewise.
6388         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6389         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6390         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6391         the moved barrier the tail of the basic block it follows.
6392         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6393
6394 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6395
6396         PR tree-optimization/56962
6397         * gimple-ssa-strength-reduction.c (record_increment): Only set
6398         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6399         either rhs1 or rhs2 is equal to c->base_expr.
6400
6401 2013-04-15  Richard Biener  <rguenther@suse.de>
6402
6403         PR tree-optimization/56933
6404         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6405         member.
6406         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6407         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6408         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6409         dependence check ...
6410         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6411         ... here.
6412         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6413         GROUP_READ_WRITE_DEPENDENCE.
6414
6415 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6416
6417         * emit-rtl.c (reset_all_used_flags): New function.
6418         (verify_rtl_sharing): Call reset_all_used_flags before and after
6419         performing the checks.
6420
6421 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6422
6423         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6424         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6425         * config/arm/constraints.md (De): New constraint.
6426         * config/arm/neon.md (anddi3_neon): Delete.
6427         (neon_vand<mode>): Expand to standard anddi3 pattern.
6428         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6429         Move earlier in the file.
6430         (neon_inv_logic_op2): Likewise.
6431         (arm_anddi_operand_neon): New predicate.
6432
6433 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6434
6435         * configure.ac (gcc_cv_ld_as_needed): Set
6436         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6437         Use -z ignore, -z record on *-*-solaris2*.
6438         (HAVE_LD_AS_NEEDED): Update comment.
6439         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6440         * configure: Regenerate.
6441         * config.in: Regenerate.
6442         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6443         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6444         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6445         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6446         equivalents.  Fix markup.
6447         * doc/tm.texi: Regenerate.
6448
6449 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6450
6451         * config/i386/i386.opt: New option mstack-protector-guard=.
6452         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6453         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6454         TARGET_SSP_TLS_GUARD.
6455         * config/i386/i386.c (ix86_option_override_internal): Set
6456         ix86_stack_protector_guard.
6457         * config/i386/i386.md (stack_protect_set): Enable for
6458         TARGET_SSP_TLS_GUARD only.
6459         (stack_protect_set_<mode>): Ditto.
6460         (stack_protect_test): Ditto.
6461         (stack_protect_test_<mode>): Ditto.
6462         * doc/invoke.texi (i386 Option): Document.
6463
6464 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6465
6466         PR target/56890
6467         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6468         (S_MODES): Set H_MODE bit.
6469         (SF_MODES): Set only S_MODE and SF_MODE bits.
6470         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6471         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6472         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6473         <MODE_FLOAT>: Likewise.
6474
6475 2013-04-15  Joey Ye  <joey.ye@arm.com>
6476
6477         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6478
6479 2013-04-15  Joey Ye  <joey.ye@arm.com>
6480
6481         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6482         for real far jump.
6483         (thumb_far_jump_used_p): Count instruction size and set
6484         far_jump_used.
6485
6486 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6487
6488         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6489         * resource.c (mark_target_live_regs): Reformat conditional block.
6490
6491 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6492
6493         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6494         notes, they are emitted only just before final.
6495         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6496
6497 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6498
6499         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6500         * cfgrtl.c (delete_insn): Call it here instead.
6501         * lra-spills.c (lra_final_code_change): Use delete_insn.
6502         * haifa-sched.c (sched_remove_insn): Likewise.
6503         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6504         returning to the nop pool.
6505         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6506         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6507
6508 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6509
6510         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6511         * doc/tm.texi: Regenerated.
6512
6513 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6514
6515         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6516         QImode checks.
6517
6518 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6519
6520         * df-core.c (df_find_def): Compare register numbers.
6521         (df_find_use): Likewise.
6522
6523 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6524
6525         PR target/56903
6526         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6527         lra_in_progress for return.
6528
6529 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6530
6531         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6532         define_insn into define_insn_and_split and emit movsicc patterns.
6533
6534 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6535
6536         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6537
6538 2013-04-12  Richard Biener  <rguenther@suse.de>
6539
6540         * tree-pass.h (TODO_do_not_ggc_collect): New.
6541         * passes.c (execute_one_ipa_transform_pass): Honor
6542         TODO_do_not_ggc_collect.
6543         (execute_one_pass): Likewise.
6544
6545         Revert
6546         2013-04-10  Richard Biener  <rguenther@suse.de>
6547
6548         * passes.c (init_optimization_passes): Remove reload pass.
6549         * ira.c (do_reload): Merge into ...
6550         (ira): ... this.
6551         (rest_of_handle_reload): Remove.
6552         (pass_reload): Likewise.
6553         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6554         of reload for vzeroupper pass placement.
6555
6556 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6557
6558         PR tree-optimization/56918
6559         PR tree-optimization/56920
6560         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6561         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6562         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6563         use wide_mul_with_sign method.
6564
6565 2013-04-12  Richard Biener  <rguenther@suse.de>
6566
6567         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6568         not be considered a gimple constant.
6569
6570 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6571
6572         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6573         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6574         operations.
6575
6576 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6577             Jakub Jelinek  <jakub@redhat.com>
6578
6579         * opts.c: Include diagnostic-color.h.
6580         (common_handle_option): Handle OPT_fdiagnostics_color_.
6581         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6582         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6583         (diagnostic-color.o): New.
6584         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6585         (diagnostic_color_rule): New enum.
6586         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6587         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6588         the location string.
6589         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6590         either NULL, or color kind.
6591         * diagnostic-color.c: New file.
6592         * diagnostic-color.h: New file.
6593         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6594         arguments.
6595         * doc/invoke.texi (-fdiagnostics-color): Document.
6596         * pretty-print.h (pp_show_color): Define.
6597         (struct pretty_print_info): Add show_color field.
6598         * diagnostic.c: Include diagnostic-color.h.
6599         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6600         macros.  Colorize error:, warning: etc. strings and also the location
6601         string.
6602         (diagnostic_show_locus): Colorize the caret line.
6603         * pretty-print.c: Include diagnostic-color.h.
6604         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6605         inside of %< %> quotes or quoted through q format modifier.
6606
6607 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6608
6609         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6610
6611 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6612
6613         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6614         code in CC_NZ mode.
6615         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6616         pattern.
6617
6618 2013-04-11  Marek Polacek  <polacek@redhat.com>
6619
6620         PR tree-optimization/48184
6621         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6622
6623 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6624
6625         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6626         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6627         (skip_simple_arithmetic): Tidy up.
6628         * tree.h (skip_simple_constant_arithmetic): Declare.
6629
6630 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6631
6632         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6633
6634 2013-04-11  Richard Biener  <rguenther@suse.de>
6635
6636         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6637         generate vector constants.
6638
6639 2013-04-11  Richard Biener  <rguenther@suse.de>
6640
6641         PR tree-optimization/56878
6642         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6643         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6644         New function.
6645         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6646         Prefer to align the DR with the most invariant base address.
6647
6648 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6649
6650         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6651         comment.
6652
6653 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6654
6655         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6656         floating-point vector comparisons against 0.
6657
6658 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6659
6660         PR tree-optimization/56899
6661         * fold-const.c (extract_muldiv_1): Apply distributive law
6662         only if TYPE_OVERFLOW_WRAPS (ctype).
6663
6664 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6665
6666         PR target/56124
6667         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6668         loading has side effect.
6669
6670 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6671
6672         * config/sparc/sparc.c: Include tree-pass.h.
6673         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6674         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6675         head of file.  Change return type.  Split off gate function.
6676         (sparc_gate_work_around_errata): New function.
6677         (pass_work_around_errata): New pass definition.
6678         (insert_pass_work_around_errata) New pass insert definition to
6679         insert pass_work_around_errata just after delayed-branch scheduling.
6680         (sparc_option_override): Insert the pass.
6681         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6682
6683 2013-04-10  David S. Miller  <davem@davemloft.net>
6684
6685         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6686         or -mcpu=hypersparc.
6687
6688         * target.def (cstore_mode): New hook.
6689         * target.h: Include insn-codes.h
6690         * targhooks.c: Likewise.
6691         (default_cstore_mode): New function.
6692         * targhooks.h: Declare it.
6693         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6694         * doc/tm.texi: Rebuild.
6695         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6696         target hook, rather than inspecting the insn_data.
6697         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6698         (TARGET_CSTORE_MODE): Redefine.
6699         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6700         result patterns.
6701         * config/sparc/predicates.md (cstore_result_operand): New special
6702         predicate.
6703         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6704         Use it for operand 0.
6705         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6706         (*snesi_special): Likewise.
6707         (*snesi_zero): Likewise.
6708         (*seqsi_zero): Likewise.
6709         (*sltu_insn): Likewise.
6710         (*sgeu_insn): Likewise.
6711         (*seqdi_special): Make operand 0 and comparison operation be of
6712         DImode.
6713         (*snedi_special): Likewise.
6714         (*snedi_special_vis3): Likewise.
6715         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6716         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6717         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6718         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6719         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6720         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6721         (*sltu_extend_sp64): Likewise.
6722         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6723         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6724         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6725         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6726         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6727
6728 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6729
6730         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6731         (aarch64_start_file): Use the new function.
6732
6733 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6734             Jason Merrill  <jason@redhat.com>
6735
6736         * common.opt: Add -gdwarf.
6737         * opts.c (common_handle_option): Handle it.
6738         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6739
6740 2013-04-10  Richard Biener  <rguenther@suse.de>
6741
6742         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6743         (execute_one_ipa_transform_pass): But unconditionally here.
6744         (execute_one_pass): And here.
6745         (init_optimization_passes): Remove reload pass.
6746         * tree-pass.h (TODO_ggc_collect): Remove.
6747         (pass_reload): Likewise.
6748         * ira.c (do_reload): Merge into ...
6749         (ira): ... this.
6750         (rest_of_handle_reload): Remove.
6751         (pass_reload): Likewise.
6752         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6753         of reload for vzeroupper pass placement.
6754         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6755         and todo_flags_finish of all passes.
6756
6757 2013-04-10  Richard Biener  <rguenther@suse.de>
6758
6759         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6760         first_const_oprnd field, rename first_def_type to first_op_type.
6761         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6762         (vect_get_and_check_slp_defs): Always use the type of the
6763         operand.  Allow mixed vect_external_def, vect_constant_def types.
6764         (vect_get_constant_vectors): Handle mixed vect_external_def,
6765         vect_constant_def types.
6766
6767 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6768
6769         PR tree-optimization/55524
6770         * tree-ssa-math-opts.c
6771         (convert_mult_to_fma): Don't use an fms construct
6772         when we don't have an fms operation, but fnma, and it looks
6773         likely that we'll be able to use the latter.
6774
6775 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6776
6777         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6778         function.
6779         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6780         inline fail caused by overwritable functions.
6781
6782 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6783
6784         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6785         unnecessary bits in the constant power of two case.
6786
6787 2013-04-10  Richard Biener  <rguenther@suse.de>
6788
6789         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6790         broken code swapping operands.
6791         (vect_build_slp_tree): Do not compute load permutations here.
6792         (vect_analyze_slp_instance): Compute load permutations here,
6793         after building the SLP tree.
6794
6795 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6796
6797         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6798         of next/prev_real_insn.
6799
6800 2013-04-09  Jan Hubicka  <jh@suse.cz>
6801
6802         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6803         Drop aliased parameter.
6804         (function_and_variable_visibility): Do not handle alias pairs.
6805         * cgraph.c (varpool_externally_visible_p): Update prototype.
6806         * varpool.c (varpool_add_new_variable): Update.
6807
6808 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6809
6810         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6811
6812 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6813
6814         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6815
6816         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6817
6818 2013-04-09  Marek Polacek  <polacek@redhat.com>
6819
6820         PR tree-optimization/48762
6821         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6822
6823 2013-04-09  Richard Biener  <rguenther@suse.de>
6824
6825         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6826         dealing with cost.
6827         (vect_build_slp_tree): Likewise.
6828         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6829         calculating the cost of a SLP instance.
6830         (vect_analyze_slp_instance): Use it from here, after building
6831         the SLP tree.
6832
6833 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6834
6835         PR middle-end/56883
6836         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6837         expand_omp_for_static_chunk): Use simple_p = true in
6838         force_gimple_operand_gsi calls when assigning to addressable decls.
6839
6840 2013-04-09  Jeff Law  <law@redhat.com>
6841
6842         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6843         when the boolean was created by converting a wider object which
6844         had a boolean range.
6845
6846 2013-04-09  Richard Biener  <rguenther@suse.de>
6847
6848         * tree-vectorizer.h (slp_void_p): Remove.
6849         (slp_tree): Typedef before _slp_tree declaration.
6850         (struct _slp_tree): Use a vector of slp_tree as children.
6851         (vect_get_place_in_interleaving_chain): Remove.
6852         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6853         Move ...
6854         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6855         and make static.
6856         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6857         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6858         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6859         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6860         Use slp_node instead of slp_void_p and adjust.
6861
6862 2013-04-09  Richard Biener  <rguenther@suse.de>
6863
6864         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6865         work that is not necessary.
6866
6867 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6868
6869         PR tree-optimization/56854
6870         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6871         forward into clobber stmts if it would change MEM_REF lhs into
6872         non-MEM_REF.
6873
6874 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6875
6876         * tree.c (type_hash_lookup, type_hash_add): Make static.
6877         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6878
6879 2013-04-09  Richard Biener  <rguenther@suse.de>
6880
6881         * tree.h (unsave_expr_now): Remove.
6882         * tree-inline.c (mark_local_for_remap_r): Remove.
6883         (unsave_expr_1): Likewise.
6884         (unsave_r): Likewise.
6885         (unsave_expr_now): Likewise.
6886         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6887         (propagate_tree_value): Likewise.
6888
6889 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6890
6891         * doc/rtl.texi (sequence): Rewrite documentation to match the
6892         current use of SEQUENCE rtl objects.
6893         * rtl.def (SEQUENCE): Likewise.
6894
6895         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6896         Update documentation.
6897         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6898         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6899
6900         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6901
6902 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6903
6904         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6905         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6906         methods.
6907         (estimate_edge_size_and_time): Add comment to suggest using rounding
6908         methods.
6909         (estimate_node_size_and_time): Ditto.
6910         (remap_edge_change_prob): Use helper rounding divide methods.
6911         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6912         (gimple_mod_pow2_value_transform): Ditto.
6913         (gimple_mod_subtract_transform): Ditto.
6914         (gimple_ic_transform): Ditto.
6915         (gimple_stringops_transform): Ditto.
6916         * stmt.c (conditional_probability): Ditto.
6917         (emit_case_dispatch_table): Ditto.
6918         * lto-cgraph.c (merge_profile_summaries): Ditto.
6919         * tree-optimize.c (execute_fixup_cfg): Ditto.
6920         * cfgcleanup.c (try_forward_edges): Ditto.
6921         * cfgloopmanip.c (scale_loop_profile): Ditto.
6922         (loopify): Ditto.
6923         (duplicate_loop_to_header_edge): Ditto.
6924         (lv_adjust_loop_entry_edge): Ditto.
6925         * tree-vect-loop.c (vect_transform_loop): Ditto.
6926         * profile.c (compute_branch_probabilities): Ditto.
6927         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6928         * lto-streamer-in.c (input_cfg): Ditto.
6929         * gimple-streamer-in.c (input_bb): Ditto.
6930         * ipa-cp.c (update_profiling_info): Ditto.
6931         (update_specialized_profile): Ditto.
6932         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6933         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6934         rounding methods.
6935         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6936         (compute_trg_info): Ditto.
6937         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6938         (purge_dead_edges): Ditto.
6939         * loop-unswitch.c (unswitch_loop): Ditto.
6940         * cgraphclones.c (cgraph_clone_edge): Ditto.
6941         (cgraph_clone_node): Ditto.
6942         * tree-inline.c (copy_bb): Ditto.
6943         (copy_edges_for_bb): Ditto.
6944         (initialize_cfun): Ditto.
6945         (copy_cfg_body): Ditto.
6946         (expand_call_inline): Ditto.
6947
6948 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6949
6950         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6951         TARGET_CYGWIN64 by TARGET_64BIT.
6952
6953 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6954
6955         * config/epiphany/epiphany.md (GPR_1): New constant.
6956         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6957         * config/epiphany/epiphany.c (gen_compare_reg):
6958         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6959         is already in place.
6960         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6961         Don't require being called during rtl expansion; If y operlaps r0,
6962         return 0.
6963         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6964         (epiphany_expand_epilogue): Likewise.
6965
6966         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6967         Don't use CC_FPmode for ORDERED / UNORDERED.
6968         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6969
6970         * config/epiphany/constraints.md (CnL): New constraint.
6971         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6972         * config/epiphany/predicates.md (add_operand): Allow 1024.
6973
6974         * config/epiphany/epiphany.md (logical_op): New code iterator.
6975         (op_mnc): New code attribute.
6976         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6977         (mov_f+1, mov_f+2): New peephole2 patterns.
6978
6979         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6980         (cstoresi4): Also allow re-use of zero result when doing a NE
6981         comparison to a non-zero operand.
6982         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6983
6984         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6985         Use gen_addsi3_i / gen_subsi3_i.
6986
6987 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6988
6989         PR c++/34949
6990         PR c++/50243
6991         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6992         contain anything but clobbers, at most one __builtin_stack_restore,
6993         optionally debug stmts and final resx, and if it has at least one
6994         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6995         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6996         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6997         which isn't defaut definition, remove them.
6998         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6999         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7000         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7001         with MEM_REF LHS with SSA_NAME address.
7002
7003 2013-04-08  Jeff Law  <law@redhat.com>
7004
7005         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7006
7007 2013-04-08  Richard Biener  <rguenther@suse.de>
7008
7009         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7010         extra newline.
7011         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7012         determined vector type.
7013         (vect_analyze_data_refs): Likewise.
7014         (vect_get_new_vect_var): Adjust.
7015         (vect_create_destination_var): Preserve SSA name versions.
7016         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7017         not dump anything here.
7018
7019 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7020
7021         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7022         Add member lr_slot_known.
7023         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7024         if necessary.
7025         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7026         Remove code that sets lr_slot_offset according to what a previous
7027         version of epiphany_emit_save_restore used to do.
7028         (epiphany_emit_save_restore): When doing an lr save or restore,
7029         set/verify lr_slot_known and lr_slot_offset.
7030
7031 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7032
7033         PR target/54338
7034         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7035         in ALL_REGS.
7036
7037 2013-04-08  Richard Biener  <rguenther@suse.de>
7038
7039         * alias.c (find_base_term): Fix thinko in previous change.
7040
7041 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7042
7043         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7044         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7045         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7046         if possible to compute val.
7047         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7048         For QImode integers don't require anything about precision.  Use
7049         const_with_all_bytes_same to find out if the constant doesn't have
7050         repeated bytes in it.
7051
7052 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7053
7054         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7055         within mode size.
7056
7057 2013-04-08  Marek Polacek  <polacek@redhat.com>
7058
7059         PR rtl-optimization/48182
7060         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7061         value to 1.
7062
7063 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7064
7065         PR target/55487
7066         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7067         nuses, make sure we have a label.
7068
7069 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7070
7071         PR target/56843
7072         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7073         (rs6000_emit_swdiv_low_precision): Remove.
7074         (rs6000_emit_swdiv): Rewrite to handle between one and four
7075         iterations of Newton-Raphson generally; modify required number of
7076         iterations for some cases.
7077         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7078
7079 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7080
7081         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7082         set-but-unused variable.
7083
7084         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7085         basic blocks of released function bodies garbage-collectable.
7086
7087         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7088         (struct rtl_opt_pass): Add TODO_df_finish.
7089
7090         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7091
7092 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7093
7094         * config/arm/constraints.md (q): New constraint.
7095         * config/arm/ldrdstrd.md: New file.
7096         * config/arm/arm.md (ldrdstrd.md) New include.
7097         (arm_movdi): Use "q" instead of "r" constraint
7098         for double-word memory access.
7099         (movdf_soft_insn): Likewise.
7100         * config/arm/vfp.md (movdi_vfp): Likewise.
7101         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7102         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7103         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7104         (mem_ok_for_ldrd_strd): Likewise.
7105         (output_move_double): Update assertion.
7106
7107 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7108
7109         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7110
7111 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7112
7113         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7114         define_insn_and_split.
7115         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7116
7117 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7118
7119         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7120         define_insn_and_split.
7121         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7122         (shiftsi3_compare): New pattern.
7123         (rrx): New pattern.
7124         * config/arm/unspecs.md (UNSPEC_RRX): New.
7125
7126 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7127
7128         * config/arm/arm.md (negdi_extendsidi): New pattern.
7129         (negdi_zero_extendsidi): Likewise.
7130
7131 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7132
7133         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7134         define_insn_and_split.
7135         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7136         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7137
7138 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7139
7140         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7141         define_insn_and_split.
7142         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7143         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7144
7145 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7146
7147         * config/arm/arm.md (subsi3_carryin): New pattern.
7148         (subsi3_carryin_const): Likewise.
7149         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7150         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7151
7152 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7153
7154         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7155
7156 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7157
7158         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7159         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7160
7161 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7162
7163         * config/arm/arm.c (arm_expand_builtin): Change fcode
7164         type to unsigned int.
7165
7166 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7167
7168         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7169
7170 2013-04-04  Ian Lance Taylor  <iant@google.com>
7171
7172         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7173         language standard.
7174
7175 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7176
7177         PR middle-end/56729
7178         * df-scan.c (df_insn_delete): Disable failing assert.
7179
7180 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7181
7182         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7183         New function prototype.
7184         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7185         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7186         (arm_builtin_vectorized_function): New function.
7187
7188 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7189
7190         * config/arm/arm_neon_builtins.def: New file.
7191         * config/arm/arm.c (neon_builtin_data): Move contents to
7192         arm_neon_builtins.def.
7193         (enum arm_builtins): Include neon builtin definitions.
7194         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7195         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7196
7197 2013-04-04  Marek Polacek  <polacek@redhat.com>
7198
7199         PR tree-optimization/48186
7200         * predict.c (maybe_hot_frequency_p): Return false if
7201         HOT_BB_FREQUENCY_FRACTION is 0.
7202         (cgraph_maybe_hot_edge_p): Likewise.
7203
7204 2013-04-04  Richard Biener  <rguenther@suse.de>
7205
7206         PR tree-optimization/56826
7207         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7208         more accurately.
7209
7210 2013-04-04  Richard Biener  <rguenther@suse.de>
7211
7212         PR tree-optimization/56213
7213         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7214         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7215
7216 2013-04-04  Richard Biener  <rguenther@suse.de>
7217
7218         PR tree-optimization/56837
7219         * tree-loop-distribution.c (classify_partition): For non-zero
7220         values require that the value has the same precision as its
7221         mode to be useful as memset value.
7222
7223 2013-04-03  Nick Clifton  <nickc@redhat.com>
7224
7225         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7226         (fmssf4): Use fmsf.s on E3V5 architectures.
7227         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7228         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7229
7230 2013-04-03  Jeff Law  <law@redhat.com>
7231
7232         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7233         (lra-eliminations.o): Likewise.
7234
7235 2013-04-03  Teresa Johnson  <tejohnson@google.com>
7236
7237         * gcov-io.c (compute_working_sets): Moved most of body of old
7238         compute_working_sets here from profile.c.
7239         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7240         (gcov_working_set_t): Moved typedef here from basic-block.h
7241         (compute_working_set): Declare.
7242         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7243         (get_working_sets): Renamed from compute_working_set,
7244         replace most of body with call to new compute_working_sets.
7245         (get_exec_counts): Replace call to compute_working_sets
7246         to get_working_sets.
7247         * profile.h (get_working_sets): Renamed from compute_working_set.
7248         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7249         to get_working_sets.
7250         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7251         * gcov-dump.c (dump_working_sets): New function.
7252
7253 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7254
7255         * hwint.c (sext_hwi, zext_hwi): New functions.
7256         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7257         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7258         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7259         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7260         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7261         (sext_hwi, zext_hwi): New functions.
7262
7263 2013-04-03  Jeff Law  <law@redhat.com>
7264
7265         PR tree-optimization/56799
7266         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7267         back test for widening conversion erroneously dropped in prior change.
7268
7269 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7270
7271         PR target/56809
7272         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7273         instead of next_real_insn.
7274
7275 2013-04-03  Marek Polacek  <polacek@redhat.com>
7276
7277         PR sanitizer/55702
7278         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7279
7280 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7281
7282         PR target/56809
7283         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7284         next_real_insn.
7285         (thumb1_output_casesi): Likewise.
7286         (thumb2_output_casesi): Likewise.
7287
7288 2013-04-03  Richard Biener  <rguenther@suse.de>
7289
7290         PR tree-optimization/56817
7291         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7292         Split out ...
7293         (tree_unroll_loops_completely_1): ... new function to manually
7294         walk the loop tree, properly defering outer loops of unrolled
7295         loops to later iterations.
7296
7297 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7298
7299         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7300         (vectorizable_load): Likewise.
7301         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7302         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7303
7304 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7305
7306         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7307         BIT_FIELD_REF.
7308
7309 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7310
7311         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7312
7313 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7314
7315         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7316
7317 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7318
7319         PR tree-optimization/56790
7320         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7321         folding.
7322
7323 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7324
7325         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7326         Handle VEC_MERGE.
7327         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7328         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7329         equal arguments.
7330
7331 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7332
7333         PR c/19449
7334         * tree.h (force_folding_builtin_constant_p): New decl.
7335         * builtins.c (force_folding_builtin_constant_p): New variable.
7336         (fold_builtin_constant_p): Fold immediately also if
7337         force_folding_builtin_constant_p.
7338
7339 2013-04-03  Richard Biener  <rguenther@suse.de>
7340
7341         PR tree-optimization/56812
7342         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7343         DRs of the same interleaving chain are independent.
7344
7345 2013-04-02  Jason Merrill  <jason@redhat.com>
7346
7347         * gdbinit.in (pbb): Use debug fn.
7348
7349 2013-04-02  Lawrence Crowl  <crowl@google.com>
7350
7351         * sese.h (struct ivtype_map_elt_s): Remove unused.
7352         (extern debug_ivtype_map): Remove unused.
7353         (extern eq_ivtype_map_elts): Remove unused.
7354         * sese.c (debug_ivtype_map): Removed unused.
7355         (debug_ivtype_map_1): Removed unused.
7356         (debug_ivtype_elt): Remove unused.
7357         (eq_ivtype_map_elts): Remove unused.
7358
7359
7360 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7361
7362         PR target/52790
7363         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7364         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7365         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7366         function.
7367         (legitimize_pe_coff_symbol): Likewise.
7368         (is_imported_p): New helper-function.
7369         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7370         for Windows x64 targets.
7371         (ix86_expand_prologue): Optimize for pe-coff targets.
7372         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7373         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7374         medium/large code-model.
7375         (legitimize_pic_address): Likewise.
7376         (legitimize_tls_address): Likewise.
7377         (ix86_expand_call): Likewise.
7378         (x86_output_mi_thunk): Likewise.
7379         (get_dllimport_decl): Add new beimport argument.
7380         (construct_plt_address): Don't assert for x64 pe-coff targets.
7381         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7382         targets.
7383         (SYMBOL_FLAG_STUBVAR): New macro.
7384         (SYMBOL_REF_STUBVAR_P): Likewise.
7385         * config/i386/winnt.c (stub_list): New structure.
7386         (stub_head): New local variable.
7387         (i386_pe_record_stub): New function.
7388         (i386_pe_file_end): Emit refptr-stubs.
7389
7390 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7391
7392         PR rtl-optimization/56745
7393         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7394         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7395
7396         PR c++/34949
7397         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7398         and both of them are MEM_REFs, just compare first argument for
7399         equality and attempt to deal even with differing offsets.
7400
7401         PR c++/34949
7402         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7403         of gimple_clobber_p to be MEM_REF.
7404         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7405         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7406         after gimplification.
7407         * asan.c (get_mem_ref_of_assignment): Don't instrument
7408         gimple_clobber_p stmts.
7409         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7410         gimple_clobber_p stmt if they have MEM_REF lhs and
7411         are dead because of another gimple_clobber_p stmt.
7412         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7413         gimple_clobber_p stmts like debug stmts.
7414         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7415         that refer to unused VAR_DECLs or uninitialized values.
7416         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7417         gimple_clobber_p stmts if they refer to removed parameters.
7418         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7419         formatting.
7420
7421 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7422
7423         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7424         using SWI48 mode attribute.
7425
7426 2013-04-02  Wei Mi  <wmi@google.com>
7427
7428         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7429         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7430         *<rotate_insn><mode>3_mask in i386.md.
7431
7432 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7433
7434         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7435
7436 2013-04-02  Richard Biener  <rguenther@suse.de>
7437
7438         PR tree-optimization/56778
7439         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7440         Runtime alias tests are not supported for gather loads.
7441         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7442         stmts referenced from SSA operands before updating SSA form.
7443
7444 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7445             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7446
7447         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7448         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7449         * config/arm/cortex-a53.md: New file.
7450         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7451         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7452         * config/arm/arm.c (arm_issue_rate): Likewise.
7453         * config/arm/arm-tune.md: Regenerate
7454         * config/arm/arm-tables.opt: Regenerate.
7455         * config/arm/arm-cores.def: Add cortex-a53.
7456
7457 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7458
7459         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7460         non-static link.
7461
7462 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7463
7464         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7465         scalar load/store operations using B/H registers.
7466         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7467
7468 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7469
7470         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7471         scalar move.
7472         * config/aarch64/aarch64.c
7473         (aarch64_simd_scalar_immediate_valid_for_move): New.
7474         * config/aarch64/aarch64-protos.h
7475         (aarch64_simd_scalar_immediate_valid_for_move): New.
7476         * config/aarch64/constraints.md (Dh, Dq): New.
7477         * config/aarch64/iterators.md (hq): New.
7478
7479 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7480
7481         * reorg.c (get_branch_condition): Deal with conditional returns.
7482         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7483
7484 2013-04-01  Wei Mi  <wmi@google.com>
7485
7486         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7487         Truncate operand 2 using %b asm operand modifier.
7488         (*<shift_insn><mode>3_mask): Ditto.
7489         (*<rotate_insn><mode>3_mask): Ditto.
7490
7491 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7492
7493         PR middle-end/56798
7494         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7495
7496 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7497
7498         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7499         of next_real_insn.
7500         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7501
7502 2013-03-30  Lawrence Crowl  <crowl@google.com>
7503
7504         * dse.c (clear_alias_sets): Remove never set.
7505         (disqualified_clear_alias_sets): Remove never set.
7506         (clear_alias_mode_pool): Remove never set.
7507         (dse_step0): Remove condition that is never true.
7508         (canon_address): Remove condition that is never true.
7509         (dse_step7): Remove condition that is never true.
7510         (rest_of_handle_dse): Remove condition that is never true.
7511         (rest_of_handle_dse::did_global): Remove never read from above.
7512         (dse_step2_spill): Remove never called from above.
7513         (dse_step5_spill): Remove never called from above.
7514
7515 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7516
7517         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7518         JUMP_TABLE_DATA changes.
7519         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7520         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7521         (Insns) <jump_table_data>: New entry.
7522         * doc/tm.texi: Regenerate.
7523
7524         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7525
7526         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7527         for table jump at the end of a basic block using tablejump_p.
7528         * targhooks.c (default_invalid_within_doloop): Likewise.
7529         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7530         target hook implementation that is identical to the default hook.
7531         (rs6000_invalid_within_doloop): Remove.
7532
7533         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7534         unused variable from tablejump_p call.
7535
7536         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7537         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7538         (INSN_DELETED_P): Likewise.
7539         (emit_jump_table_data): New prototype.
7540         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7541         after 4th as unused.
7542         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7543         * sched-vis.c (print_insn): Likewise.
7544         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7545         insn for compatibility with back ends that use next_active_insn to
7546         identify jump table data.
7547         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7548         (remove_insn): Likewise.
7549         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7550         to be emitted.
7551         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7552         (emit_jump_table_data): New function.
7553
7554         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7555         basic block, a JUMP_TABLE_DATA never is.
7556         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7557         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7558         off from code handling real insns.
7559         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7560         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7561         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7562         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7563         is not a NONDEBUG_INSN_P.
7564         * ira-costs.c (scan_one_insn): Likewise.
7565         * jump.c (mark_all_labels): Likewise.
7566         (mark_jump_label_1): Likewise.
7567         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7568         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7569         a basic block.
7570         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7571         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7572         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7573         JUMP_TABLE_DATA_P insns.
7574         (calculate_elim_costs_all_insns): Likewise.
7575         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7576         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7577         (delete_output_reload): Code style fixups.
7578         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7579         insn flags on this non-insn.
7580         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7581         as scheduling barriers, for pre-change compatibility.
7582         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7583         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7584
7585         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7586         redundant JUMP_TABLE_DATA_P test.
7587         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7588         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7589         (frv_for_each_packet): Likewise.
7590         * config/i386/i386.c (min_insn_size): Likewise.
7591         (ix86_avoid_jump_mispredicts): Likewise.
7592         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7593         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7594         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7595         (mips16_insn_length): Robustify.
7596         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7597         (mips16_split_long_branches): Likewise.
7598         * config/pa/pa.c (pa_combine_instructions): Likewise.
7599         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7600         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7601         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7602         as contributing to pool range lengths.
7603         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7604         Remove redundant JUMP_TABLE_DATA_P test.
7605         (sh_loop_align): Likewise.
7606         (split_branches): Likewise.
7607         (sh_insn_length_adjustment): Likewise.
7608         * config/spu/spu.c (get_branch_target): Likewise.
7609
7610 2013-03-29  Jan Hubicka  <jh@suse.cz>
7611
7612         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7613         gcov streaming; stream hot bb threshold to ltrans.
7614         * predict.c (get_hot_bb_threshold): Break out from ....
7615         (maybe_hot_count_p): ... here.
7616         (set_hot_bb_threshold): New function.
7617         * lto-section-in.c (lto_section_name): Add profile.
7618         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7619         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7620         and data-streamer.h
7621         (histogram_entry): New structure.
7622         (histogram, histogram_pool): New global vars.
7623         (histogram_hash): New structure.
7624         (histogram_hash::hash): New method.
7625         (histogram_hash::equal): Likewise.
7626         (account_time_size): New function.
7627         (cmp_counts): New function.
7628         (dump_histogram): New function.
7629         (ipa_profile_generate_summary): New function.
7630         (ipa_profile_write_summary): New function.
7631         (ipa_profile_read_summary): New function.
7632         (ipa_profile): Decide on threshold.
7633         (pass_ipa_profile): Add ipa_profile_write_summary and
7634         ipa_profile_read_summary.
7635         * Makefile.in (ipa.o): Update dependencies.
7636         * lto-streamer.h (LTO_section_ipa_profile): New section.
7637
7638 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7639
7640         * tree.h (VAR_P): New.
7641
7642 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7643
7644         PR lto/56777
7645         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7646
7647 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7648
7649         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7650         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7651         (control_flow_insn_p): Likewise.
7652         * cfgrtl.c (duplicate_insn_chain): Likewise.
7653         * final.c (get_attr_length_1): Likewise.
7654         (shorten_branches): Likewise.
7655         (final_scan_insn): Likewise.
7656         * function.c (instantiate_virtual_regs): Likewise.
7657         * gcse.c (insert_insn_end_basic_block): Likewise.
7658         * ira-costs.c (scan_one_insn): Likewise.
7659         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7660         * lra.c (check_rtl): Likewise.
7661         * reload1.c (elimination_costs_in_insn): Likewise.
7662         * reorg.c (follow_jumps): Likewise.
7663
7664         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7665         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7666         (thumb_far_jump_used_p): Likewise.
7667         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7668         (workaround_speculation): Likewise.
7669         (add_sched_insns_for_speculation): Likewise.
7670         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7671         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7672         (frv_for_each_packet): Likewise.
7673         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7674         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7675         (final_emit_insn_group_barriers): Likewise.
7676         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7677         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7678         (mips16_insn_length): Likewise.
7679         * config/pa/pa.c (pa_reorg): Likewise.
7680         (pa_combine_instructions): Likewise.
7681         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7682         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7683         (sh_reorg): Likewise.
7684         (split_branches): Likewise.
7685         * config/spu/spu.c (get_branch_target): Likewise.
7686
7687         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7688         JUMP_TABLE_DATA_P.
7689
7690 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7691
7692         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7693         Fix declaration name.
7694
7695 2013-03-28  Lawrence Crowl  <crowl@google.com>
7696
7697         * graphds.h (struct graph.indicies): Remove unused.
7698         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7699         (SCOP_ORIGINAL_PDDRS): Remove unused.
7700         * sese.h (extern insert_loop_close_phis): Removed unused.
7701         (extern insert_guard_phis): Removed unused.
7702         (extern ivtype_map_elt_info): Removed unused.
7703         (new_ivtype_map_elt): Removed unused.
7704         * sese.c (ivtype_map_elt_info): Removed unused.
7705
7706 2013-03-28  Lawrence Crowl  <crowl@google.com>
7707
7708         * Makefile.in: Add several missing include dependences.
7709         (DUMPFILE_H): New.
7710         (test-dump.o): New.  This object is not added to any executable,
7711         but is present for ad-hoc testing.
7712         * bitmap.c
7713         (debug (const bitmap_head_def &)): New.
7714         (debug (const bitmap_head_def *)): New.
7715         * bitmap.h
7716         (extern debug (const bitmap_head_def &)): New.
7717         (extern debug (const bitmap_head_def *)): New.
7718         * cfg.c
7719         (debug (edge_def &)): New.
7720         (debug (edge_def *)): New.
7721         * cfghooks.c
7722         (debug (basic_block_def &)): New.
7723         (debug (basic_block_def *)): New.
7724         * dumpfile.h
7725         (dump_node (const_tree, int, FILE *)): Correct source file.
7726         * dwarf2out.c
7727         (debug (die_struct &)): New.
7728         (debug (die_struct *)): New.
7729         * dwarf2out.h
7730         (extern debug (die_struct &)): New.
7731         (extern debug (die_struct *)): New.
7732         * gimple-pretty-print.c
7733         (debug (gimple_statement_d &)): New.
7734         (debug (gimple_statement_d *)): New.
7735         * gimple-pretty-print.h
7736         (extern debug (gimple_statement_d &)): New.
7737         (extern debug (gimple_statement_d *)): New.
7738         * ira-build.c
7739         (debug (ira_allocno_copy &)): New.
7740         (debug (ira_allocno_copy *)): New.
7741         (debug (ira_allocno &)): New.
7742         (debug (ira_allocno *)): New.
7743         * ira-int.h
7744         (extern debug (ira_allocno_copy &)): New.
7745         (extern debug (ira_allocno_copy *)): New.
7746         (extern debug (ira_allocno &)): New.
7747         (extern debug (ira_allocno *)): New.
7748         * ira-lives.c
7749         (debug (live_range &)): New.
7750         (debug (live_range *)): New.
7751         * lra-int.h
7752         (debug (lra_live_range &)): New.
7753         (debug (lra_live_range *)): New.
7754         * lra-lives.c
7755         (debug (lra_live_range &)): New.
7756         (debug (lra_live_range *)): New.
7757         * omega.c
7758         (debug (omega_pb_d &)): New.
7759         (debug (omega_pb_d *)): New.
7760         * omega.h
7761         (extern debug (omega_pb_d &)): New.
7762         (extern debug (omega_pb_d *)): New.
7763         * print-rtl.c
7764         (debug (const rtx_def &)): New.
7765         (debug (const rtx_def *)): New.
7766         * print-tree.c
7767         (debug_tree (tree): Move within file.
7768         (debug_raw (const tree_node &)): New.
7769         (debug_raw (const tree_node *)): New.
7770         (dump_tree_via_hooks (const tree_node *, int)): New.
7771         (debug (const tree_node &)): New.
7772         (debug (const tree_node *)): New.
7773         (debug_verbose (const tree_node &)): New.
7774         (debug_verbose (const tree_node *)): New.
7775         (debug_head (const tree_node &)): New.
7776         (debug_head (const tree_node *)): New.
7777         (debug_body (const tree_node &)): New.
7778         (debug_body (const tree_node *)): New.
7779         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7780         (debug (vec<tree, va_gc> &)): New.
7781         (debug (vec<tree, va_gc> *)): New.
7782         * rtl.h
7783         (extern debug (const rtx_def &)): New.
7784         (extern debug (const rtx_def *)): New.
7785         * sbitmap.c
7786         (debug_raw (simple_bitmap_def &)): New.
7787         (debug_raw (simple_bitmap_def *)): New.
7788         (debug (simple_bitmap_def &)): New.
7789         (debug (simple_bitmap_def *)): New.
7790         * sbitmap.h
7791         (extern debug (simple_bitmap_def &)): New.
7792         (extern debug (simple_bitmap_def *)): New.
7793         (extern debug_raw (simple_bitmap_def &)): New.
7794         (extern debug_raw (simple_bitmap_def *)): New.
7795         * sel-sched-dump.c
7796         (debug (vinsn_def &)): New.
7797         (debug (vinsn_def *)): New.
7798         (debug_verbose (vinsn_def &)): New.
7799         (debug_verbose (vinsn_def *)): New.
7800         (debug (expr_def &)): New.
7801         (debug (expr_def *)): New.
7802         (debug_verbose (expr_def &)): New.
7803         (debug_verbose (expr_def *)): New.
7804         (debug (vec<rtx> &)): New.
7805         (debug (vec<rtx> *)): New.
7806         * sel-sched-dump.h
7807         (extern debug (vinsn_def &)): New.
7808         (extern debug (vinsn_def *)): New.
7809         (extern debug_verbose (vinsn_def &)): New.
7810         (extern debug_verbose (vinsn_def *)): New.
7811         (extern debug (expr_def &)): New.
7812         (extern debug (expr_def *)): New.
7813         (extern debug_verbose (expr_def &)): New.
7814         (extern debug_verbose (expr_def *)): New.
7815         (extern debug (vec<rtx> &)): New.
7816         (extern debug (vec<rtx> *)): New.
7817         * sel-sched-ir.h
7818         (_list_iter_cond_expr): Make inline instead of static.
7819         * sreal.c
7820         (debug (sreal &)): New.
7821         (debug (sreal *)): New.
7822         * sreal.h
7823         (extern debug (sreal &)): New.
7824         (extern debug (sreal *)): New.
7825         * tree.h
7826         (extern debug_raw (const tree_node &)): New.
7827         (extern debug_raw (const tree_node *)): New.
7828         (extern debug (const tree_node &)): New.
7829         (extern debug (const tree_node *)): New.
7830         (extern debug_verbose (const tree_node &)): New.
7831         (extern debug_verbose (const tree_node *)): New.
7832         (extern debug_head (const tree_node &)): New.
7833         (extern debug_head (const tree_node *)): New.
7834         (extern debug_body (const tree_node &)): New.
7835         (extern debug_body (const tree_node *)): New.
7836         (extern debug (vec<tree, va_gc> &)): New.
7837         (extern debug (vec<tree, va_gc> *)): New.
7838         * tree-cfg.c
7839         (debug (struct loop &)): New.
7840         (debug (struct loop *)): New.
7841         (debug_verbose (struct loop &)): New.
7842         (debug_verbose (struct loop *)): New.
7843         * tree-dump.c: Add header dependence.
7844         * tree-flow.h
7845         (extern debug (struct loop &)): New.
7846         (extern debug (struct loop *)): New.
7847         (extern debug_verbose (struct loop &)): New.
7848         (extern debug_verbose (struct loop *)): New.
7849         * tree-data-ref.c
7850         (debug (data_reference &)): New.
7851         (debug (data_reference *)): New.
7852         (debug (vec<data_reference_p> &)): New.
7853         (debug (vec<data_reference_p> *)): New.
7854         (debug (vec<ddr_p> &)): New.
7855         (debug (vec<ddr_p> *)): New.
7856         * tree-data-ref.h
7857         (extern debug (data_reference &)): New.
7858         (extern debug (data_reference *)): New.
7859         (extern debug (vec<data_reference_p> &)): New.
7860         (extern debug (vec<data_reference_p> *)): New.
7861         (extern debug (vec<ddr_p> &)): New.
7862         (extern debug (vec<ddr_p> *)): New.
7863         * tree-ssa-alias.c
7864         (debug (pt_solution &)): New.
7865         (debug (pt_solution *)): New.
7866         * tree-ssa-alias.h
7867         (extern debug (pt_solution &)): New.
7868         (extern debug (pt_solution *)): New.
7869         * tree-ssa-alias.c
7870         (debug (_var_map &)): New.
7871         (debug (_var_map *)): New.
7872         (debug (tree_live_info_d &)): New.
7873         (debug (tree_live_info_d *)): New.
7874         * tree-ssa-alias.h
7875         (extern debug (_var_map &)): New.
7876         (extern debug (_var_map *)): New.
7877         (extern debug (tree_live_info_d &)): New.
7878         (extern debug (tree_live_info_d *)): New.
7879
7880 2013-03-28  Jan Hubicka  <jh@suse.cz>
7881
7882         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7883
7884 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7885
7886         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7887         record only when desired or required.
7888
7889 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7890
7891         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7892         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7893
7894 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7895
7896         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7897         (*andsi3_compare0_uxtw): New pattern.
7898         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7899         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7900
7901 2013-03-28  Jan Hubicka  <jh@suse.cz>
7902
7903         * data-streamer-in.c (streamer_read_gcov_count): New function.
7904         * gimple-streamer-out.c: Include value-prof.h.
7905         (output_gimple_stmt): Output histogram.
7906         (output_bb): Use streamer_write_gcov_count.
7907         * value-prof.c: Include data-streamer.h
7908         (dump_histogram_value): Add HIST_TYPE_MAX.
7909         (stream_out_histogram_value): New function.
7910         (stream_in_histogram_value): New function.
7911         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7912         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7913         * data-streamer-out.c (streamer_write_gcov_count): New function.
7914         (streamer_write_gcov_count_stream): New function.
7915         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7916         (lto_output_node): Likewise.
7917         (input_node, input_edge): Likewise.
7918         * lto-streamer-out.c (output_cfg): Update streaming.
7919         * lto-streamer-in.c (input_cfg): Likewise.
7920         * data-streamer.h (streamer_write_gcov_count,
7921         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7922         * gimple-streamer-in.c: Include value-prof.h
7923         (input_gimple_stmt): Input histograms.
7924         (input_bb): Update profile streaming.
7925
7926 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7927
7928         * genmodes.c (emit_max_int): New function.
7929         (emit_insn_modes_h): Added call to emit_max_function.
7930         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7931         Added doc.
7932         * machmode.def: Fixed comment.
7933
7934 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7935
7936         * combine.c (try_combine): Removed useless assert.
7937         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7938
7939 2013-03-28  Marek Polacek  <polacek@redhat.com>
7940             Richard Biener  <rguenther@suse.de>
7941
7942         PR tree-optimization/56695
7943         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7944         build signed result of a vector comparison.
7945         * tree-cfg.c (verify_gimple_comparison): Check that a result
7946         of a vector comparison has signed type.
7947
7948 2013-03-28  Richard Biener  <rguenther@suse.de>
7949
7950         PR tree-optimization/37021
7951         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7952         do not restrict gaps between groups.
7953         * tree-vect-stmts.c (vectorizable_load): Properly account for
7954         a gap between groups.
7955
7956 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7957
7958         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7959         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7960         is not enabled.
7961
7962 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7963
7964         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7965         * doc/extend.texi (Named Address Spaces): Ditto.
7966         (Variable Attributes): Ditto.
7967
7968 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7969
7970         * config.build: Add support for cygwin x64 target.
7971         * config.gcc: Likewise.
7972         * config.host: Likewise.
7973         * configure.ac: Likewise
7974         * configure: Regenerated.
7975
7976 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7977
7978         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7979         * config/i386/t-cygwin-w64: New file.
7980         * config/i386/cygwin-w64.h: New file.
7981         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7982         and add support for x64-cygwin target.
7983         (CPP_SPEC): Likewise.
7984         (CXX_WRAP_SPEC_LIST): Undefine before define.
7985         (LIBGCJ_SONAME): Use 15 as version.
7986
7987 2013-03-27  Richard Biener  <rguenther@suse.de>
7988
7989         PR tree-optimization/56716
7990         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7991         dumping for ref nodes.
7992
7993 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7994
7995         PR tree-optimization/55334
7996         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7997         restricted pointers to arrays.
7998
7999 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8000
8001         * Makefile.in (.SUFFIXES): Add .cc.
8002         (.c.o): Apply same recipe for implicit rule .cc.o.
8003
8004 2013-03-27  Richard Biener  <rguenther@suse.de>
8005
8006         PR tree-optimization/37021
8007         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8008         REALPART/IMAGPART_EXPRs around the supported refs.
8009         * tree-ssa-structalias.c (find_func_aliases): Assume that
8010         floating-point values are not used to transfer pointers.
8011
8012 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8013
8014         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8015         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8016         * doc/tm.texi: Regenerate.
8017         * targhooks.h (default_has_ifunc_p): New.
8018         * targhooks.c (default_has_ifunc_p): Ditto.
8019         * config/linux-protos.h: New file.
8020         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8021         this hook for linux which disables support of indirect functions in
8022         android.
8023         * config/linux-android.c: New file.
8024         * config/t-linux-android.c: Ditto.
8025         * config.gcc: Added new object file linux-android.o.
8026         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8027         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8028         * varasm.c (do_assemble_alias): Likewise.
8029         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8030         doesn't support indirect functions.
8031         * configure: Regenerate.
8032
8033 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8034
8035         PR target/56102
8036         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8037         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8038         mult-word mode.
8039
8040 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8041
8042         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8043
8044 2013-03-27  Terry Guo  <terry.guo@arm.com>
8045
8046         * config/arm/arm-cores.def: Added core cortex-r7.
8047         * config/arm/arm-tune.md: Regenerated.
8048         * config/arm/arm-tables.opt: Regenerated.
8049         * doc/invoke.texi: Added entry for core cortex-r7.
8050
8051 2013-03-27  Walter Lee  <walt@tilera.com>
8052
8053         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8054         double-decrement of next_scratch_regno.
8055
8056 2013-03-27  Walter Lee  <walt@tilera.com>
8057
8058         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8059         input operands.
8060         (insn_v1mulus): Ditto.
8061         (insn_v2muls): Ditto.
8062
8063 2013-03-27  Walter Lee  <walt@tilera.com>
8064
8065         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8066         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8067
8068 2013-03-27  Walter Lee  <walt@tilera.com>
8069
8070         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8071         (*sibcall_value): Ditto.
8072
8073 2013-03-27  Walter Lee  <walt@tilera.com>
8074
8075         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8076         (insn_mnz_v8qi): ... this ...
8077         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8078         vector equivalent.
8079         (insn_v<n>mnz): Replaced by ...
8080         (insn_v1mnz): ... this ...
8081         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8082         equivalent.
8083         (insn_mz_<mode>): Replaced by ...
8084         (insn_mz_v8qi): ... this ...
8085         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8086         vector equivalent.
8087         (insn_v<n>mz): Replaced by ...
8088         (insn_v1mz): ... this ...
8089         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8090         equivalent.
8091
8092 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8093
8094         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8095
8096 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8097
8098         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8099         than fprintf with a non-constant, non-format string.
8100
8101 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8102
8103         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8104         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8105         operand 0 predicate.
8106         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8107         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8108         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8109         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8110         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8111         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8112         (mov<mode>_insv_1): Remove expander.  Merge insn with
8113         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8114         Use general_x64nomem_operand as operand 1 predicate.
8115         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8116         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8117         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8118         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8119         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8120         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8121         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8122         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8123         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8124         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8125         (general_x64nomem_operand): Ditto.
8126
8127 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8128
8129         * config/rtems.opt: Add -pthread option.
8130
8131 2013-03-26  Richard Biener  <rguenther@suse.de>
8132
8133         * alias.c (find_base_term): Avoid redundant and not used recursion.
8134         (base_alias_check): Get the initial base term from the caller.
8135         (true_dependence_1): Compute and pass base terms to base_alias_check.
8136         (write_dependence_p): Likewise.
8137         (may_alias_p): Likewise.
8138
8139 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8140
8141         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8142         PC-relative load in SI modes and above only.
8143
8144 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8145
8146         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8147         * config/arm/iwmmxt.md (WCGR0): Update.
8148         (WCGR1, WCGR2, WCGR3): Likewise.
8149
8150 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8151
8152         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8153         Use x64 and nox64 isa attributes.
8154
8155 2013-03-26  Richard Biener  <rguenther@suse.de>
8156
8157         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8158         alignment computations and rely on get_object_alignment_1
8159         for the !TYPE_P case.
8160         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8161
8162 2013-03-26  Walter Lee  <walt@tilera.com>
8163
8164         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8165         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8166
8167 2013-03-25  Jeff Law  <law@redhat.com>
8168
8169         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8170         check for INTEGRAL_TYPE_P that was missing due to checking in
8171         wrong version of prior patch.
8172
8173 2013-03-25  Walter Lee  <walt@tilera.com>
8174
8175         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8176         TILEGX_INSN_SHUFFLEBYTES1.
8177         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8178         shufflebytes1.
8179         (tilegx_builtins): Ditto.
8180         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8181
8182 2013-03-25  Walter Lee  <walt@tilera.com>
8183
8184         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8185         (floatunssisf2): New pattern.
8186         (floatsidf2): New pattern.
8187         (floatunssidf2): New pattern.
8188
8189 2013-03-25  Walter Lee  <walt@tilera.com>
8190
8191         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8192         tests for constraint J, K, N, P.
8193
8194 2013-03-25  Walter Lee  <walt@tilera.com>
8195
8196         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8197         Use indirect/pcrel encoding.
8198         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8199         Ditto.
8200
8201 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8202
8203         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8204         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8205         * config/mips/mips.c (mips_option_override): Set IMADD default.
8206         * config/mips/mips.h (PTF_AVOID_IMADD): New.
8207         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8208         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8209         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8210         * doc/invoke.texi (-mimadd/-mno-imadd): New.
8211
8212 2013-03-25  Jeff Law  <law@redhat.com>
8213
8214         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8215         slightly to avoid creating and folding useless trees.  Simplify
8216         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8217
8218 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8219
8220         * config/i386/i386.md (*zero_extendsidi2): Merge with
8221         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8222         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8223         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8224         targets.  Clarify comment.
8225
8226 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8227
8228         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8229         pass-through jump functions differently.
8230         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8231         up jump functions.
8232
8233 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8234
8235         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8236         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8237         process it.
8238         (ipa_get_indirect_edge_target): New function.
8239         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8240         ipa_get_indirect_edge_target.  Update all callers.
8241         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8242         ipa_get_indirect_edge_target_1 instead of calling
8243         ipa_get_indirect_edge_target.
8244         (create_specialized_node): Pass aggvlas to
8245         ipcp_discover_new_direct_edges.
8246
8247 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8248
8249         * config/arm/arm.md (f_sels, f_seld): New types.
8250         (*cmov<mode>): New pattern.
8251         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8252         predicate.
8253
8254 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8255
8256         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8257         POSIX-printf for mingw-hosted  builds.
8258
8259 2013-03-25  Richard Biener  <rguenther@suse.de>
8260
8261         PR middle-end/56694
8262         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8263         must-not-throw stmt location.
8264
8265 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8266
8267         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8268         Emit load-acquire versions when acq is true.
8269         (arm_emit_store_exclusive): Add rel parameter.
8270         Emit store-release versions when rel is true.
8271         (arm_split_compare_and_swap): Use acquire-release instructions
8272         instead.
8273         of barriers when appropriate.
8274         (arm_split_atomic_op): Likewise.
8275         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8276         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8277         (VUNSPEC_SLX): Likewise.
8278         (VUNSPEC_LDA): Likewise.
8279         (VUNSPEC_STL): Likewise.
8280         * config/arm/sync.md (atomic_load<mode>): New pattern.
8281         (atomic_store<mode>): Likewise.
8282         (arm_load_acquire_exclusive<mode>): Likewise.
8283         (arm_load_acquire_exclusivesi): Likewise.
8284         (arm_load_acquire_exclusivedi): Likewise.
8285         (arm_store_release_exclusive<mode>): Likewise.
8286
8287 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8288
8289         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8290         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8291         * config/mip/predicates.md (lwsp_swsp_operand,
8292         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8293         sb16_operand, db4_operand, db7_operand, ib3_operand,
8294         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8295         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8296         andi16_operand): New predicates.
8297         * config/mips/mips.md (compression): New attribute.
8298         (enabled): New attribute.
8299         (length): Consider compression in computing length.
8300         (shift_compression): New code attribute.
8301         (*add<mode>3): New operands. Record compression.
8302         (sub<mode>3): Likewise.
8303         (one_cmpl<mode>2): Likewise.
8304         (*and<mode>3): Likewise.
8305         (*ior<mode>3): Likewise.
8306         (unnamed pattern for xor): Likewise.
8307         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8308         (*<optab><mode>3): Likewise.
8309         (*mov<mode>_internal: Likewise.
8310         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8311         (mips_unsigned_immediate_p): New.
8312         (umips_lwsp_swsp_address_p): New.
8313         (m16_based_address_p): New.
8314         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8315         (mips_unsigned_immediate_p): New prototype.
8316         (lwsp_swsp_address_p): New prototype.
8317         (m16_based_address_p): New prototype.
8318         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8319         (mips_signed_immediate_p): New function.
8320         (m16_based_address_p): New function.
8321         (lwsp_swsp_address_p): New function.
8322         (mips_print_operand_punctuation): Recognize short delay slot insns
8323         for microMIPS.add<mode>3"
8324
8325 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8326
8327         PR target/56720
8328         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8329         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8330
8331 2013-03-25  Richard Biener  <rguenther@suse.de>
8332
8333         PR tree-optimization/56689
8334         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8335         any edge.
8336
8337 2013-03-25  Richard Biener  <rguenther@suse.de>
8338
8339         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8340         of bitmap.
8341         (memory_references): Likewise.
8342         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8343         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8344         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8345         (gather_mem_refs_in_loops): Fold into ...
8346         (analyze_memory_references): ... this.  Move initialization
8347         to tree_ssa_lim_initialize.
8348         (fill_always_executed_in): Rename to ...
8349         (fill_always_executed_in_1): ... this.
8350         (fill_always_executed_in): Move contains_call computation to
8351         this new function from ...
8352         (tree_ssa_lim_initialize): ... here.
8353         (tree_ssa_lim): Call fill_always_executed_in.
8354
8355 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8356
8357         * postreload.c (reload_combine): Fix code detecting returns.
8358
8359 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8360
8361         * function.c (emit_use_return_register_into_block): On cc0 targets,
8362         do not emit the sequence between cc0 setter and user.
8363
8364 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8365
8366         * config/i386/predicates.md (local_symbolic_operand): Interpret
8367         dll-imported symbols as none-local.
8368
8369 2013-03-25  Richard Biener  <rguenther@suse.de>
8370
8371         * tree-ssa-loop-im.c (struct depend): Remove.
8372         (struct lim_aux_data): Make depends a vec of gimples.
8373         (free_lim_aux_data): Adjust.
8374         (add_dependency): Likewise.
8375         (set_level): Likewise.
8376
8377 2013-03-25  Richard Biener  <rguenther@suse.de>
8378
8379         PR middle-end/56434
8380         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8381         the pointer returned by calls with ECF_MALLOC set.
8382
8383 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8384
8385         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8386
8387 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8388
8389         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8390         using MMXMODE mode iterator.
8391         (*move<mode>_internal): Merge with *movv2sf_internal and
8392         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8393
8394 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8395
8396         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8397         (record_last_mem_set_info): Likewise.
8398
8399         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8400         of XNEWVEC followed by memset.
8401         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8402
8403 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8404
8405         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8406         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8407         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8408         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8409         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8410         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8411         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8412         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8413         BARRIER_P instead of GET_CODE.
8414
8415 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8416
8417         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8418         inaccuracy in the probing code.
8419
8420         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8421         (ctrapdi4): Likewise.
8422
8423 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8424
8425         * calls.c (expand_call): Add missing guard to code handling return
8426         of non-BLKmode structures in MSB.
8427         * function.c (expand_function_end): Likewise.
8428
8429 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8430
8431         * combine.c (try_combine): Adjust comment.  Do not add the set of
8432         insn #0 if the destination indirectly is set or dies in insn #2.
8433         Tidy up code to distribute a new note.
8434
8435 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8436
8437         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8438         also for alternatives 16 and 17.
8439
8440 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8441
8442         * config/i386/sse.md (*mov<mode>_internal): Merge with
8443         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8444         Emit insn template depending on type attribute.  Use
8445         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8446         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8447         attribute calculation.  Remove unit attribute calculation.
8448         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8449         Set prefix_data16 attribute for DImode ssemov types.
8450         Use Ym instead of y for SSE-MMX conversion alternatives.
8451         Reorder operand constraints.
8452
8453 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8454
8455         * df.h (df_insn_delete): Adjust prototype.
8456         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8457         and let it decide whether mark the basic block dirty.
8458         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8459         * df-scan.c (df_insn_info_delete): New helper function, split
8460         off from df_insn_delete.
8461         (df_scan_free_bb_info): Use it.
8462         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8463         Likewise.
8464         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8465         that the insn is actually an insn and it has a non-NULL basic block.
8466         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8467
8468 2013-03-22  Richard Biener  <rguenther@suse.de>
8469
8470         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8471         dep_ref members.
8472         (mem_ref_alloc): Do not allocate them.
8473         (refs_independent_p): Do not query or maintain a cache.
8474
8475 2013-03-22  Richard Biener  <rguenther@suse.de>
8476
8477         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8478         (gather_mem_refs_in_loops): Do not compute it.
8479         (analyze_memory_references): Do not allocate it.
8480         (tree_ssa_lim_finalize): Do not free it.
8481         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8482
8483 2013-03-22  Richard Biener  <rguenther@suse.de>
8484
8485         * is-a.h (as_a): Use gcc_checking_assert.
8486
8487 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8488
8489         * config/aarch64/aarch64.c (aarch64_print_operand): New
8490         format specifier for printing a constant in hex.
8491         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8492         format specifier for printing second operand.
8493
8494 2013-03-22  Richard Biener  <rguenther@suse.de>
8495
8496         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8497         bitmaps.
8498         (gather_mem_refs_in_loops): Perform store accumulation here.
8499         (create_vop_ref_mapping_loop): Remove.
8500         (create_vop_ref_mapping): Likewise.
8501         (analyze_memory_references): Initialize refs_stored_in_loop.
8502         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8503         (record_indep_loop): Remove.
8504         (record_dep_loop): New function.
8505         (ref_indep_loop_p_1): Adjust to only walk over references
8506         in the loop, not its subloops.
8507         (ref_indep_loop_p): Rename to ...
8508         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8509         maintaining a more fine-grained cache.
8510         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8511         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8512
8513 2013-03-22  Richard Biener  <rguenther@suse.de>
8514
8515         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8516         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8517         aggregate mem_ref_loc.
8518         (free_mem_ref_locs): Inline into ...
8519         (memref_free): ... this and adjust.
8520         (mem_ref_alloc): Adjust.
8521         (mem_ref_locs_alloc): Remove.
8522         (record_mem_ref_loc): Adjust.
8523         (get_all_locs_in_loop): Rewrite into ...
8524         (for_all_locs_in_loop): ... this iterator.
8525         (rewrite_mem_ref_loc): New functor.
8526         (rewrite_mem_refs): Use for_all_locs_in_loop.
8527         (sm_set_flag_if_changed): New functor.
8528         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8529         (ref_always_accessed): New functor.
8530         (ref_always_accessed_p): Use for_all_locs_in_loop.
8531
8532 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8533
8534         * tree-pass.h (PROP_gimple_lvec): New.
8535         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8536         (init_optimization_passes): Move pass_lower_vector.
8537         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8538         PROP_gimple_lvec.
8539         (pass_lower_vector): Provide PROP_gimple_lvec.
8540         (pass_lower_vector_ssa): Likewise.
8541         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8542
8543 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8544
8545         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8546
8547 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8548
8549         * config/i386/i386.md (*movdi_internal): Disparage slightly
8550         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8551         conversion alternatives.
8552
8553 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8554
8555         PR middle-end/48087
8556         * diagnostic.def (DK_WERROR): New kind.
8557         * diagnostic.h (werrorcount): Define.
8558         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8559         promoted to DK_ERROR, increment DK_WERROR counter instead of
8560         DK_ERROR counter.
8561         * toplev.c (toplev_main): Call print_ignored_options even if
8562         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8563         even if just werrorcount is non-zero.
8564
8565         PR debug/55608
8566         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8567         on failure.
8568         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8569         (string_cst_pool_decl): New function.
8570         (optimize_one_addr_into_implicit_ptr): New function.
8571         (resolve_addr_in_expr): Optimize DWARF location expression
8572         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8573         which doesn't live in memory, but has DW_AT_location or
8574         DW_AT_const_value, or refers to a string literal, into
8575         DW_OP_GNU_implicit_pointer.
8576         (optimize_location_into_implicit_ptr): New function.
8577         (resolve_addr): If removing DW_AT_location of a variable because
8578         it was DW_OP_addr of address of the variable, but the variable doesn't
8579         live in memory, try to emit const value attribute for the initializer.
8580
8581 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8582
8583         * tree.h (VECTOR_TYPE_P): New macro.
8584         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8585         TYPE_MODE): Use it.
8586         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8587         VEC_COND_EXPR cannot be lvalues.
8588         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8589
8590 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8591
8592         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8593         Restrict the transformation to equal modes.
8594
8595 2013-03-21  Richard Biener  <rguenther@suse.de>
8596
8597         PR tree-optimization/39326
8598         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8599         (MEM_ANALYZABLE): Adjust.
8600         (record_mem_ref_loc): Move bitmap ops ...
8601         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8602         unanalyzable refs, do not record locations for it.
8603         (analyze_memory_references): Allocate ref zero as shared
8604         unanalyzable ref.
8605         (refs_independent_p): Do not test for unanalyzed mems here.
8606         (ref_indep_loop_p_1): Special-case disambiguation against
8607         the unanalyzed ref.
8608         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8609
8610 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8611
8612         * config/arm/arm-protos.h (tune_params): Add
8613         prefer_neon_for_64bits field.
8614         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8615         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8616         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8617         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8618         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8619         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8620         (arm_option_override): Handle -mneon-for-64bits new option.
8621         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8622         (prefer_neon_for_64bits): Declare new variable.
8623         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8624         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8625         (arch_enabled): Handle new arch types. Remove support for onlya8
8626         and nota8.
8627         (one_cmpldi2): Use new arch names.
8628         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8629         * config/arm/arm.opt (mneon-for-64bits): Add option.
8630         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8631         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8632         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8633         of onlya8.
8634         * doc/invoke.texi (-mneon-for-64bits): Document.
8635
8636 2013-03-21  Richard Biener  <rguenther@suse.de>
8637
8638         PR tree-optimization/39326
8639         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8640         (sort_bbs_in_loop_postorder_cmp): New function.
8641         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8642
8643 2013-03-21  Richard Biener  <rguenther@suse.de>
8644
8645         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8646         (vect_insert_into_interleaving_chain): Likewise.
8647         (vect_drs_dependent_in_basic_block): Inline ...
8648         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8649         split out from ...
8650         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8651         (vect_check_interleaving): Simplify.
8652         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8653         (vect_slp_analyze_data_ref_dependences): ... this new function.
8654         (dr_group_sort_cmp): New function.
8655         (vect_analyze_data_ref_accesses): Compute data-reference groups
8656         here instead of in vect_analyze_data_ref_dependence.  Use
8657         a more efficient algorithm.
8658         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8659         vect_slp_analyze_data_ref_dependences.  Call
8660         vect_analyze_data_ref_accesses earlier.
8661         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8662         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8663         (vect_slp_analyze_data_ref_dependences): New prototype.
8664
8665 2013-03-21  Richard Biener  <rguenther@suse.de>
8666
8667         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8668         ref is stored in the loop.
8669         (find_refs_for_sm): Walk only over all stores.
8670         (store_motion_loop): Allocate from lim_bitmap_obstack.
8671         (store_motion): Likewise.
8672
8673 2013-03-21  Richard Biener  <rguenther@suse.de>
8674
8675         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8676         Update virtual SSA form.
8677
8678 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8679
8680         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8681         * configure: Regenerate.
8682         * config.in: Regenerate.
8683         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8684         if !HAVE_LD_EH_FRAME_CIEV3.
8685
8686 2013-03-21  Richard Biener  <rguenther@suse.de>
8687
8688         * tree-cfg.c (verify_expr_no_block): New function.
8689         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8690         nor DECL_VALUE_EXPR have locations with associated blocks.
8691         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8692         (clear_unused_block_pointer): Remove code dealing with
8693         blocks in DECL_DEBUG_EXPR locations.
8694
8695 2013-03-21  Richard Biener  <rguenther@suse.de>
8696
8697         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8698         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8699         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8700         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8701         instead of DECL_DEBUG_EXPR_IS_FROM.
8702         * gimplify.c (gimplify_modify_expr): Likewise.
8703         * tree-cfg.c (verify_expr_location_1): Likewise.
8704         * tree-complex.c (create_one_component_var): Likewise.
8705         * tree-sra.c (create_access_replacement): Likewise.
8706         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8707         (clear_unused_block_pointer): Likewise.
8708         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8709         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8710         * var-tracking.c (var_debug_decl): Likewise.
8711         (track_expr_p): Likewise.
8712         * tree-inline.c (add_local_variables): Likewise.  Set
8713         DECL_HAS_DEBUG_EXPR_P after copying it.
8714         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8715         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8716
8717 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8718
8719         PR bootstrap/56656
8720         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8721         * configure: Regenerate.
8722         * config.in: Regenerate.
8723         * config/i386/i386.md (*movdf_internal): Use
8724         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8725         movd instead of movq mnemonic for interunit moves.
8726         (*movdi_internal): Ditto.
8727
8728 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8729
8730         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8731         (abd<mode>_3): New pattern.
8732         (aba<mode>_3): New pattern.
8733         (fabd<mode>_3): New pattern.
8734
8735 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8736
8737         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8738         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8739         occurrence of REGISTER_PREFIX as its empty string.
8740
8741 2013-03-20  Jeff Law  <law@redhat.com>
8742
8743         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8744         addititional equivalences for equality comparisons between an SSA_NAME
8745         and a constant where the SSA_NAME was set from a widening conversion.
8746
8747 2013-03-20  Walter Lee  <walt@tilera.com>
8748
8749         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8750
8751 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8752
8753         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8754         depending on type attribute.
8755         (*movti_internal): Ditto.
8756         (*movtf_internal): Ditto.
8757         (*movxf_internal): Ditto.
8758         (*movdf_internal): Ditto.
8759         (*movsf_internal): Ditto.
8760
8761 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8762
8763         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8764         maybe_vex for sselog1 and ssemov types.
8765         (*movdi_internal): Reorder operand constraints.
8766         (*movsi_internal): Ditto.  Set prefix attribute to
8767         maybe_vex for sselog1 and ssemov types.
8768         (*movtf_internal): Set prefix attribute to maybe_vex
8769         for sselog1 and ssemov types.
8770         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8771         DImode ssemov types.  Reorder operand constraints.
8772         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8773         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8774         attribute for SImode ssemov types.  Reorder operand constraints.
8775
8776 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8777
8778         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8779         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8780
8781 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8782
8783         * config/rs6000/predicates.md (indexed_address, update_address_mem
8784         update_indexed_address_mem): New predicates.
8785         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8786         attribute for load/store instructions.
8787         * config/rs6000/dfp.md (movsd_store): Likewise.
8788         (movsd_load): Likewise.
8789         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8790         (unnamed HI->DI extend define_insn): Likewise.
8791         (unnamed SI->DI extend define_insn): Likewise.
8792         (unnamed QI->SI extend define_insn): Likewise.
8793         (unnamed QI->HI extend define_insn): Likewise.
8794         (unnamed HI->SI extend define_insn): Likewise.
8795         (unnamed HI->SI extend define_insn): Likewise.
8796         (extendsfdf2_fpr): Likewise.
8797         (movsi_internal1): Likewise.
8798         (movsi_internal1_single): Likewise.
8799         (movhi_internal): Likewise.
8800         (movqi_internal): Likewise.
8801         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8802         attribute for load/store instructions.
8803         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8804         instructions.
8805         (mov<mode>_softfloat): Likewise.
8806         (mov<mode>_hardfloat32): Likewise.
8807         (mov<mode>_hardfloat64): Likewise.
8808         (mov<mode>_softfloat64): Likewise.
8809         (movdi_internal32): Likewise.
8810         (movdi_internal64): Likewise.
8811         (probe_stack_<mode>): Likewise.
8812
8813 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8814
8815         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8816         floating point, and decimal floating point to reload iterator.
8817
8818         * config/rs6000/constraints.md (wl constraint): New constraints to
8819         return FLOAT_REGS if certain options are used to reduce the number
8820         of separate patterns that exist in the file.
8821         (wx constraint): Likewise.
8822         (wz constraint): Likewise.
8823
8824         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8825         -mdebug=reg, print wg, wl, wx, and wz constraints.
8826         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8827         Initialize the reload functions for 64-bit binary/decimal floating
8828         point types.
8829         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8830         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8831         create the buffer on the stack to overcome not having a 32-bit
8832         load and store.
8833         (rs6000_emit_move): Likewise.
8834         (rs6000_secondary_memory_needed_rtx): Likewise.
8835         (rs6000_alloc_sdmode_stack_slot): Likewise.
8836         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8837         via xxlxor, just like DFmode 0.0.
8838
8839         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8840         define as 1 if we are running on a power7 or newer.
8841         (enum r6000_reg_class_enum): Add new constraints.
8842
8843         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8844         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8845         with other moves by using conditional constraits (wg).  Use LFIWZX
8846         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8847         (movsd splitter): Likewise.
8848         (movsd_hardfloat): Likewise.
8849         (movsd_softfloat): Likewise.
8850
8851         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8852         binary and decimal floating point moves.
8853         (fmove_ok): New attributes to combine binary and decimal floating
8854         point moves, and to combine power6x (mfpgpr) moves along normal
8855         floating moves.
8856         (real_value_to_target): Likewise.
8857         (f32_lr): Likewise.
8858         (f32_lm): Likewise.
8859         (f32_li): Likewise.
8860         (f32_sr): Likewise.
8861         (f32_sm): Likewise.
8862         (f32_si): Likewise.
8863         (movsf): Combine binary and decimal floating point moves.  Combine
8864         power6x (mfpgpr) moves with other moves by using conditional
8865         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8866         (mov<mode> for SFmode/SDmode); Likewise.
8867         (SFmode/SDmode splitters): Likewise.
8868         (movsf_hardfloat): Likewise.
8869         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8870         (movsf_softfloat): Likewise.
8871         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8872
8873         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8874         wx and wz constraints.
8875
8876         * config/rs6000/constraints.md (wg constraint): New constraint to
8877         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8878
8879         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8880         constraint.
8881
8882         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8883         -mdebug=reg, print wg, wl, wx, and wz constraints.
8884         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8885         Initialize the reload functions for 64-bit binary/decimal floating
8886         point types.
8887         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8888         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8889         create the buffer on the stack to overcome not having a 32-bit
8890         load and store.
8891         (rs6000_emit_move): Likewise.
8892         (rs6000_secondary_memory_needed_rtx): Likewise.
8893         (rs6000_alloc_sdmode_stack_slot): Likewise.
8894         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8895         via xxlxor, just like DFmode 0.0.
8896
8897         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8898         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8899         with other moves by using conditional constraits (wg).  Use LFIWZX
8900         and STFIWX for loading SDmode on power7.
8901         (movdd splitters): Likewise.
8902         (movdd_hardfloat32): Likewise.
8903         (movdd_softfloat32): Likewise.
8904         (movdd_hardfloat64_mfpgpr): Likewise.
8905         (movdd_hardfloat64): Likewise.
8906         (movdd_softfloat64): Likewise.
8907
8908         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8909         64-bit binary and decimal floating point moves.
8910         (FMOVE64X): Likewise.
8911         (movdf): Combine 64-bit binary and decimal floating point moves.
8912         Combine power6x (mfpgpr) moves with other moves by using
8913         conditional constraits (wg).
8914         (mov<mode> for DFmode/DDmode): Likewise.
8915         (DFmode/DDmode splitters): Likewise.
8916         (movdf_hardfloat32): Likewise.
8917         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8918         (movdf_softfloat32): Likewise.
8919         (movdf_hardfloat64_mfpgpr): Likewise.
8920         (movdf_hardfloat64): Likewise.
8921         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8922         (movdf_softfloat64): Likewise.
8923         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8924         (reload_<mode>_load): Move to later in the file so they aren't in
8925         the middle of the floating point move insns.
8926         (reload_<mode>_store): Likewise.
8927
8928         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8929         constraint.
8930
8931         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8932         constraint if -mdebug=reg.
8933         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8934         Enable using dd reload support if needed.
8935
8936         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8937         binary and decimal floating point moves in rs6000.md.
8938         (movtd_internal): Likewise.
8939
8940         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8941         decimal floating point moves.
8942         (movtf): Likewise.
8943         (movtf_internal): Likewise.
8944         (mov<mode>_internal, TDmode/TFmode): Likewise.
8945         (movtf_softfloat): Likewise.
8946         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8947
8948         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8949         movdi_internal64, using wg constraint for move direct operations.
8950         (movdi_internal64): Likewise.
8951
8952         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8953         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8954         the various virtual registers. Use GPR/FPR first/last values,
8955         instead of hard coding the register numbers.  Print which modes
8956         have reload functions registered.
8957         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8958         settings before/after setting cpu, target and subtarget settings.
8959         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8960         and for secondary reload failures in rs6000_secondary_reload_inner.
8961         (rs6000_secondary_reload_fail): Likewise.
8962         (rs6000_secondary_reload_inner): Likewise.
8963
8964         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8965         macros for first/last GPR and FPR registers.
8966         (LAST_GPR_REGNO): Likewise.
8967         (FIRST_FPR_REGNO): Likewise.
8968         (LAST_FPR_REGNO): Likewise.
8969
8970         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8971         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8972         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8973         (vcond<mode><mode>): Likewise.
8974         (vcondu<mode><mode>): Likewise.
8975         (vector_gtu<mode>): Likewise.
8976         (vector_gte<mode>): Likewise.
8977         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8978         to prevent the compiler from converting DImode operations to TImode.
8979         (ior<mode>3): Likewise.
8980         (and<mode>3): Likewise.
8981         (one_cmpl<mode>2): Likewise.
8982         (nor<mode>3): Likewise.
8983         (andc<mode>3): Likewise.
8984
8985         * config/rs6000/constraints.md (wt constraint): New constraint
8986         that returns VSX_REGS if TImode is allowed in VSX registers.
8987
8988         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8989         constant under VSX.
8990
8991         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8992         similar to TImode, but it is restricted to being in the GPRs.
8993
8994         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8995         TImode to occupy a single VSX register.
8996
8997         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8998         -mvsx-timode for power7/power8.
8999         (power7 cpu): Likewise.
9000         (power8 cpu): Likewise.
9001
9002         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9003         sure that TFmode/TDmode take up two registers if they are ever
9004         allowed in the upper VSX registers.
9005         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9006         registers.
9007         (rs6000_init_hard_regno_mode_ok): Likewise.
9008         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9009         constraint.  Print if LRA is turned on.
9010         (rs6000_option_override_internal): Give an error if -mvsx-timode
9011         and VSX is not enabled.
9012         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9013         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9014         to reg+offset addressing.  Use PTImode when checking offset
9015         addresses for validity.
9016         (reg_offset_addressing_ok_p): Likewise.
9017         (rs6000_legitimate_offset_address_p): Likewise.
9018         (rs6000_legitimize_address): Likewise.
9019         (rs6000_legitimize_reload_address): Likewise.
9020         (rs6000_legitimate_address_p): Likewise.
9021         (rs6000_eliminate_indexed_memrefs): Likewise.
9022         (rs6000_emit_move): Likewise.
9023         (rs6000_secondary_reload): Likewise.
9024         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9025         reloads to fpr registers to continue to use reg+offset addressing,
9026         but 64-bit reloads to altivec registers need reg+reg addressing.
9027         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9028         it.  Treat LO_SUM like a PLUS operation.
9029         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9030         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9031         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9032         registers to share a register with a smaller sized type, since VSX
9033         puts scalars in the upper 64-bits.
9034         (print_operand): Add support for PTImode.
9035         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9036         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9037         registers, but don't have arithmetic support.
9038         (rs6000_memory_move_cost): Add test for VSX.
9039         (rs6000_opt_masks): Add -mvsx-timode.
9040
9041         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9042         for TImode.
9043         (VSs): Likewise.
9044         (VSr): Use wt constraint for TImode.
9045         (VSv): Drop TImode support.
9046         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9047         (vsx_movti_64bit): Likewise.
9048         (vsx_movti_32bit): Likewise.
9049         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9050         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9051         one '?' on the appropriate output constraint.  Do not allow TImode
9052         logical operations on 32-bit systems.
9053         (vsx_ior<mode>3): Likewise.
9054         (vsx_xor<mode>3): Likewise.
9055         (vsx_one_cmpl<mode>2): Likewise.
9056         (vsx_nor<mode>3): Likewise.
9057         (vsx_andc<mode>3): Likewise.
9058         (vsx_concat_<mode>): Likewise.
9059         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9060
9061         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9062         OPTION_MASK_VSX_TIMODE.
9063         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9064         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9065
9066         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9067         (TI2 iterator): New iterator for TImode, PTImode.
9068         (wd mode attribute): Add values for vector types.
9069         (movti_string): Replace TI move operations with operations for TImode
9070         and PTImode.  Add support for TImode being allowed in VSX registers.
9071         (mov<mode>_string, TImode/PTImode): Likewise.
9072         (movti_ppc64): Likewise.
9073         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9074         (TI mode splitters): Likewise.
9075
9076         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9077         constraint.
9078
9079 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9080
9081         PR tree-optimization/56355
9082         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9083         Also handle integers with undefined overflow.
9084
9085 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9086             Maciej W. Rozycki  <macro@codesourcery.com>
9087             Tom de Vries  <tom@codesourcery.com>
9088             Nathan Sidwell <nathan@codesourcery.com>
9089             Iain Sandoe  <iain@codesourcery.com>
9090             Nathan Froyd  <froydnj@codesourcery.com>
9091             Chao-ying Fu <fu@mips.com>
9092
9093         * doc/extend.texi: (micromips, nomicromips, nocompression):
9094         Document new function attributes.
9095         * doc/invoke.texi (minterlink-compressed, mmicromips,
9096         m14k, m14ke, m14kec): Document new options.
9097         (minterlink-mips16): Update documentation.
9098         * doc/md.texi (ZC, ZD): Document new constraints.
9099         * configure.ac (gcc_cv_as_micromips): Check if linker
9100         supports the .set micromips directive.
9101         * configure: Regenerate.
9102         * config.in: Regenerate.
9103         * config/mips/mips-tables.opt: Regenerate.
9104         * config/mips/micromips.md: New file.
9105         * constraints.md (ZC, ZD): New constraints.
9106         * config/mips/predicates.md (movep_src_register): New predicate.
9107         (movep_src_operand): New predicate.
9108         (non_volatile_mem_operand): New predicate.
9109         * config/mips/mips.md (multimem): New type.
9110         (length): Differentiate between 17-bit and 18-bit branch offsets.
9111         (MOVEP1, MOVEP2): New mode iterator.
9112         (mov_<load>l): Use ZC constraint.
9113         (mov_<load>r): Likewise.
9114         (mov_<store>l): Likewise.
9115         (mov_<store>r): Likewise.
9116         (*branch_equality<mode>_inverted): Add microMIPS support.
9117         (*branch_equality<mode>): Likewise.
9118         (*jump_absolute): Likewise.
9119         (indirect_jump_<mode>): Likewise.
9120         (tablejump_<mode>): Likewise.
9121         (<optab>_internal): Likewise.
9122         (sibcall_internal): Likewise.
9123         (sibcall_value_internal): Likewise.
9124         (prefetch): Use constraint ZD.
9125         * config/mips/mips.opt (minterlink-compressed): New option.
9126         (minterlink-mips16): Now an alias for minterlink-compressed.
9127         (mmicromips): New option.
9128         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9129         (compare_and_swap_12): Likewise.
9130         (sync_add<mode>): Likewise.
9131         (sync_<optab>_12): Likewise.
9132         (sync_old_<optab>_12): Likewise.
9133         (sync_new_<optab>_12): Likewise.
9134         (sync_nand_12): Likewise.
9135         (sync_old_nand_12): Likewise.
9136         (sync_new_nand_12): Likewise.
9137         (sync_sub<mode>): Likewise.
9138         (sync_old_add<mode>): Likewise.
9139         (sync_old_sub<mode>): Likewise.
9140         (sync_new_add<mode>): Likewise.
9141         (sync_new_sub<mode>): Likewise.
9142         (sync_<optab><mode>): Likewise.
9143         (sync_old_<optab><mode>): Likewise.
9144         (sync_new_<optab><mode>): Likewise.
9145         (sync_nand<mode>): Likewise.
9146         (sync_old_nand<mode>): Likewise.
9147         (sync_new_nand<mode>): Likewise.
9148         (sync_lock_test_and_set<mode>): Likewise.
9149         (test_and_set_12): Likewise.
9150         (atomic_compare_and_swap<mode>): Likewise.
9151         (atomic_exchange<mode>_llsc): Likewise.
9152         (atomic_fetch_add<mode>_llsc): Likewise.
9153         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9154         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9155         (umips_save_restore_pattern_p): Likewise.
9156         (umips_load_store_pair_p): Likewise.
9157         (umips_output_load_store_pair): Likewise.
9158         (umips_movep_target_p): Likewise.
9159         (umips_12bit_offset_address_p): Likewise.
9160         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9161         (mips_base_mips16): Rename this...
9162         (mips_base_compression_flags): ...to this. Update all uses.
9163         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9164         (mips_mips16_decl_p): Delete.
9165         (mips_nomips16_decl_p): Delete.
9166         (mips_get_compress_on_flags): New function.
9167         (mips_get_compress_off_flags): New function.
9168         (mips_get_compress_mode): New function.
9169         (mips_get_compress_on_name): New function.
9170         (mips_get_compress_off_name): New function.
9171         (mips_insert_attributes): Support multiple compression types.
9172         (mips_merge_decl_attributes): Likewise.
9173         (umips_12bit_offset_address_p): New function.
9174         (mips_start_function_definition): Emit .set micromips directive.
9175         (mips_call_may_need_jalx_p): New function.
9176         (mips_function_ok_for_sibcall): Add microMIPS support.
9177         (mips_print_operand_punctuation): Support short delay slots and
9178         compact jumps.
9179         (umips_swm_mask, umips_swm_encoding): New.
9180         (umips_build_save_restore): New function.
9181         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9182         (was_mips16_p): Remove.
9183         (old_compression_mode): New.
9184         (mips_set_compression_mode): New function.
9185         (mips_set_current_function): Add microMIPS support.
9186         (mips_option_override): Likewise.
9187         (umips_save_restore_pattern_p): New function.
9188         (umips_output_save_restore): New function.
9189         (umips_load_store_pair_p_1): New function.
9190         (umips_load_store_pair_p): New function.
9191         (umips_output_load_store_pair_1): New function.
9192         (umips_output_load_store_pair): New function.
9193         (umips_movep_target_p) New function.
9194         (mips_prepare_pch_save): Add microMIPS support.
9195         * config/mips/mips.h (TARGET_COMPRESSION): New.
9196         (TARGET_CPU_CPP_BUILTINS): Update macro
9197         to use new compression flags and to support microMIPS.
9198         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9199         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9200         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9201         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9202         (ASM_SPEC): Support mmicromips and mno-micromips.
9203         (M16STORE_REG_P): New macro.
9204         (MIPS_CALL): Support TARGET_MICROMIPS.
9205         (MICROMIPS_J): New macro.
9206         (mips_base_mips16): Rename this...
9207         (mips_base_compression_flags): ...to this.
9208         (UMIPS_12BIT_OFFSET_P): New macro.
9209         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9210         (MULTILIB_DIRNAMES): Likewise.
9211 2013-03-20  Richard Biener  <rguenther@suse.de>
9212
9213         PR tree-optimization/56661
9214         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9215         the result does not have to be distinct.
9216
9217 2013-03-20  Richard Biener  <rguenther@suse.de>
9218
9219         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9220         remap_gimple_op_r.
9221
9222 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9223             Steven Bosscher <steven@gcc.gnu.org>
9224
9225         PR rtl-optimization/56605
9226         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9227
9228 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9229
9230         PR bootstrap/56656
9231         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9232         that require movd instead of movq.
9233
9234 2013-03-20  Richard Biener  <rguenther@suse.de>
9235
9236         * tree-ssa-structalias.c (struct variable_info): Add pointer
9237         to the first field of an aggregate with sub-vars.  Make
9238         this and the pointer to the next subfield its ID.
9239         (vi_next): New function.
9240         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9241         storedanything_id, integer_id): Increment by one.
9242         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9243         get_call_clobber_vi): Adjust.
9244         (solution_set_expand): Simplify and speedup.
9245         (solution_set_add): Inline into ...
9246         (set_union_with_increment): ... this.  Adjust accordingly.
9247         (do_sd_constraint): Likewise.
9248         (do_ds_constraint): Likewise.
9249         (do_complex_constraint): Simplify.
9250         (build_pred_graph): Adjust.
9251         (solve_graph): Likewise.  Simplify and speedup.
9252         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9253         get_constraint_for_component_ref, get_constraint_for_1,
9254         first_vi_for_offset, first_or_preceding_vi_for_offset,
9255         create_function_info_for, create_variable_info_for_1,
9256         create_variable_info_for, intra_create_variable_infos): Adjust.
9257         (init_base_vars): Push NULL for ID zero.
9258         (compute_points_to_sets): Adjust.
9259
9260 2013-03-20  Richard Biener  <rguenther@suse.de>
9261
9262         * cfgloop.c (verify_loop_structure): Streamline and avoid
9263         ICEing on corrupt loop tree.
9264         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9265         loop tree.
9266
9267 2013-03-20  Richard Biener  <rguenther@suse.de>
9268
9269         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9270         check whether an SSA update is needed.
9271
9272 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9273
9274         * config/mips/constraints.md (T): Rename to...
9275         (Yf): ...this.
9276         (U): Rename to...
9277         (Yd): ...this.
9278         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9279         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9280
9281 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9282
9283         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9284         (*subsi3_carryin_uxtw): Likewise.
9285
9286 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9287
9288         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9289         (*rorsi3_insn_uxtw): Likewise.
9290
9291 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9292
9293         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9294         (*extrsi5_insn_uxtw): Likewise.
9295
9296 2013-03-19  Richard Biener  <rguenther@suse.de>
9297
9298         PR tree-optimization/56273
9299         * passes.c (init_optimization_passes): Move second VRP after DOM.
9300
9301 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9302
9303         * config/i386/i386.md (*movti_internal): Merge from
9304         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9305         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9306         nox64 isa attributes.
9307
9308 2013-03-18  Richard Biener  <rguenther@suse.de>
9309
9310         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9311         (unite): Likewise.
9312         (merge_node_constraints): Likewise.
9313         (build_succ_graph): Likewise.
9314         (valid_graph_edge): Inline into single caller.
9315         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9316         and cache varinfo.
9317         (scc_visit): Fix formatting and variable use.
9318         (do_sd_constraint): Use gcc_checking_assert.
9319         (do_ds_constraint): Likewise.
9320         (do_complex_constraint): Likewise.
9321         (condense_visit): Likewise.  Cleanup.
9322         (dump_pred_graph): New function.
9323         (perform_var_substitution): Dump the pred-graph before
9324         variable substitution.
9325         (find_equivalent_node): Use gcc_checking_assert.
9326         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9327
9328 2013-03-18  Richard Biener  <rguenther@suse.de>
9329
9330         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9331         Remove cond_expr_stmt_list argument and do not gimplify the
9332         built expression.
9333         (vect_loop_versioning): Adjust.
9334         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9335         Cleanup to use less temporaries.
9336         (vect_create_data_ref_ptr): Cleanup.
9337
9338 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9339
9340         PR tree-optimization/56635
9341         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9342         require types_compatible_p types.
9343
9344 2013-03-18  Nick Clifton  <nickc@redhat.com>
9345
9346         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9347         spurious backslash.
9348
9349         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9350         Add missing line to comment describing function.
9351
9352 2013-03-18  Richard Biener  <rguenther@suse.de>
9353
9354         PR tree-optimization/56210
9355         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9356         Handle string / character search functions.
9357         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9358
9359 2013-03-18  Richard Biener  <rguenther@suse.de>
9360
9361         PR middle-end/56483
9362         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9363         and implement properly.
9364         * gimple.h (gimple_cond_single_var_p): Remove.
9365
9366 2013-03-18  Richard Biener  <rguenther@suse.de>
9367
9368         * tree-data-ref.h (find_data_references_in_loop): Declare.
9369         * tree-data-ref.c (get_references_in_stmt): Use a stack
9370         vector pre-allocated in the callers.
9371         (find_data_references_in_stmt): Adjust.
9372         (graphite_find_data_references_in_stmt): Likewise.
9373         (create_rdg_vertices): Likewise.
9374         (find_data_references_in_loop): Export.
9375         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9376         Compute dependences here...
9377         (vect_analyze_data_refs): ...not here.  When we encounter
9378         a non-vectorizable data reference in basic-block vectorization
9379         truncate the data reference vector.  Do not bother to
9380         fixup data-dependence information for gather loads.
9381         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9382         of data references, as reported.
9383
9384 2013-03-18  Richard Biener  <rguenther@suse.de>
9385
9386         PR tree-optimization/3713
9387         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9388         has_constants and expr.
9389         (stmt_has_constants): Properly valueize SSA names when deciding
9390         whether the stmt has constants.
9391
9392 2013-03-18  Richard Biener  <rguenther@suse.de>
9393
9394         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9395         whole function when there is nothing to do.
9396         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9397         * tree-vectorizer.c (vectorize_loops): Update virtual and
9398         loop-closed SSA once.
9399         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9400
9401 2013-03-18  Richard Biener  <rguenther@suse.de>
9402
9403         PR middle-end/56113
9404         * domwalk.c (bb_postorder): New global static.
9405         (cmp_bb_postorder): New function.
9406         (walk_dominator_tree): Replace scheme imposing an order for
9407         visiting dominator sons by one sorting them at the time they
9408         are pushed on the stack.
9409
9410 2013-03-18  Richard Biener  <rguenther@suse.de>
9411
9412         PR tree-optimization/39326
9413         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9414         (struct mem_ref): Replace mem member with ao_ref typed member.
9415         (MEM_ANALYZABLE): Adjust.
9416         (memref_eq): Likewise.
9417         (mem_ref_alloc): Likewise.
9418         (gather_mem_refs_stmt): Likewise.
9419         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9420         (execute_sm_if_changed_flag_set): Adjust.
9421         (execute_sm): Likewise.
9422         (ref_always_accessed_p): Likewise.
9423         (refs_independent_p): Likewise.
9424         (can_sm_ref_p): Likewise.
9425
9426 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9427
9428         PR c/56566
9429         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9430         return 1 even for !unsignedp.
9431
9432 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9433
9434         * config/i386/i386.md (isa): Add x64 and nox64.
9435         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9436         (*pushtf): Enable *roF alternative for x64 isa only.
9437         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9438         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9439         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9440         (*movtf_internal): Merge from *movtf_internal_rex64 and
9441         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9442         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9443         nox64 isa attributes.
9444         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9445         nox64 isa attributes.
9446         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9447
9448 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9449
9450         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9451
9452 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9453
9454         PR target/56640
9455         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9456         class names.  Remove trailing comma after "ALL_REGS".
9457
9458 2013-03-16  Jan Hubicka  <jh@suse.cz>
9459
9460         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9461         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9462         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9463         of cgraph_get_create_node.
9464         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9465
9466 2013-03-16  Jason Merrill  <jason@redhat.com>
9467
9468         PR debug/49090
9469         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9470         with DW_AT_default_value.
9471
9472 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9473
9474         * BASE-VER: Set to 4.9.0.
9475
9476 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9477
9478         PR target/56619
9479         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9480         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9481         Document _x* TSX intrinsics.
9482
9483 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9484             David Holsgrove  <david.holsgrove@xilinx.com>
9485
9486         * configure.ac: Add MicroBlaze TLS support detection.
9487         * configure: Regenerate.
9488         * config/microblaze/microblaze-protos.h
9489         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9490         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9491         * config/microblaze/microblaze.c (microblaze_address_type): Add
9492         ADDRESS_TLS and tls_reloc address types.
9493         (microblaze_address_info): Add tls_reloc.
9494         (TARGET_HAVE_TLS): Define.
9495         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9496          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9497          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9498         load_tls_operand,  microblaze_call_tls_get_addr,
9499         microblaze_legitimize_tls_address): New functions.
9500         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9501         (get_base_reg): Use microblaze_tls_symbol_p.
9502         (microblaze_classify_address): Handle TLS.
9503         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9504         label_mentioned_p and microblaze_tls_referenced_p.
9505         (microblaze_legitimize_address): Handle TLS.
9506         (microblaze_address_insns): Handle ADDRESS_TLS.
9507         (pic_address_needs_scratch): Handle TLS.
9508         (print_operand_address): Handle TLS.
9509         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9510         (microblaze_expand_move): Handle TLS.
9511         (microblaze_legitimate_constant_p): Check
9512         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9513         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9514         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9515         (PIC_OFFSET_TABLE_REGNUM): Set.
9516         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9517         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9518         (addsi3, movsi_internal2, movdf_internal): Update constraints
9519         * config/microblaze/predicates.md (arith_plus_operand): Define
9520         (move_operand): Redefine as move_src_operand,
9521         check microblaze_tls_referenced_p.
9522
9523 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9524
9525         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9526         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9527
9528 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9529
9530         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9531         CC mode for AND.
9532
9533 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9534
9535         PR tree-optimization/53265
9536         * common.opt (Waggressive-loop-optimizations): New option.
9537         * tree-ssa-loop-niter.c: Include tree-pass.h.
9538         (do_warn_aggressive_loop_optimizations): New function.
9539         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9540         if number_of_latch_executions returned constant.
9541         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9542         early.  If number_of_latch_executions returned constant, set
9543         nb_iterations_upper_bound back to it.
9544         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9545         field.
9546         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9547         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9548
9549         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9550         (MULTILIB_OSDIRNAMES): Set.
9551         * genmultilib: If defaultosdirname doesn't start with :: , set
9552         defaultosdirname2 instead, clear it and emit two . multilib_raw
9553         entries instead of just one.
9554
9555 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9556
9557         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9558         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9559         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9560         (SUBTARGET_OVERRIDE_OPTIONS): New.
9561
9562 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9563
9564         PR target/49880
9565         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9566         (musermode): Convert to Var(TARGET_USERMODE).
9567         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9568         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9569         * config/sh/sh.c (sh_option_override): Use
9570         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9571         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9572         condition.
9573         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9574         TARGET_SH4.
9575         (udivsi3_i4_single, divsi3_i4_single): Use
9576         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9577
9578 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9579
9580         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9581         default setting.
9582
9583 2013-03-13  Richard Biener  <rguenther@suse.de>
9584
9585         PR tree-optimization/56608
9586         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9587         calls when vectorizing basic-blocks.
9588
9589 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9590
9591         PR plugins/45078
9592         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9593         tm_file.
9594
9595 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9596
9597         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9598
9599 2013-03-11  Jan Hubicka  <jh@suse.cz>
9600
9601         PR lto/56557
9602         * lto-streamer-out.c (output_symbol_p): Skip references from
9603         constructors of external variables.
9604
9605 2013-03-11  Jan Hubicka  <jh@suse.cz>
9606
9607         PR middle-end/56571
9608         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9609         from pseudos.
9610         * emit-rtl.c (verify_rtx_sharing): Likewise.
9611         (copy_insn_1): Likewise.
9612         * rtl.c (copy_rtx): Likewise.
9613
9614 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9615
9616         PR target/56591
9617         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9618         output_operand_lossage message.
9619
9620 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9621
9622         PR target/56470
9623         * arm.c (shift_op): Validate RTL pattern on the fly.
9624         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9625         the RTL.
9626
9627 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9628
9629         PR target/56347
9630         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9631         new call patterns that clobber %fr12.
9632         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9633         split and postreload patterns.
9634         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9635         registers %fr12 and %fr12R as call used.
9636
9637 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9638
9639         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9640         (canon_address, record_store, replace_read, check_mem_read_rtx,
9641         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9642         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9643         rest_of_handle_dse): Likewise.
9644
9645 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9646
9647         PR middle-end/56524
9648         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9649         Add base_optabs.
9650         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9651         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9652         (save_optabs_if_changed): Replace with...
9653         (init_tree_optimization_optabs): ...this.
9654         * optabs.c (save_optabs_if_changed): Rename to...
9655         (init_tree_optimization_optabs): ...this.  Take the optimization node
9656         as argument.  Do nothing if the base optabs are already correct.
9657         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9658         to recompute optabs.
9659         * function.h (function): Remove optabs field.
9660         * function.c (invoke_set_current_function_hook): Call
9661         init_tree_optimization_optabs.  Use the result to initialize
9662         this_fn_optabs.
9663
9664 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9665
9666         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9667         if GTMA_HAS_NO_INSTRUMENTATION.
9668         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9669         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9670         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9671         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9672         GTMA_HAS_NO_INSTRUMENTATION.
9673
9674 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9675
9676         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9677         libasan_preinit.o.
9678
9679 2013-03-08  Marek Polacek  <polacek@redhat.com>
9680             Jakub Jelinek  <jakub@redhat.com>
9681
9682         PR tree-optimization/56478
9683         * predict.c (is_comparison_with_loop_invariant_p): Change the
9684         type of loop_step to tree.
9685         (predict_loops): Adjust.
9686         (predict_iv_comparison): Perform the computations on double_ints.
9687
9688 2013-03-08  Richard Biener  <rguenther@suse.de>
9689
9690         PR tree-optimization/56570
9691         * tree-cfg.c (verify_expr_location_1): Verify locations for
9692         DECL_DEBUG_EXPR.
9693         * tree-sra.c (create_access_replacement): Strip locations
9694         from DECL_DEBUG_EXPRs.
9695
9696 2013-03-08  Richard Biener  <rguenther@suse.de>
9697
9698         * tree-inline.c (expand_call_inline): Do not associate
9699         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9700         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9701
9702 2013-03-08  Richard Biener  <rguenther@suse.de>
9703
9704         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9705         or block changes with -Og.  Fix for location / block encoding
9706         changes and PHI arguments with locations.
9707
9708 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9709
9710         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9711         for all counters.
9712         (struct output_info): Likewise.
9713         (register_overhead): Remove bad gcc_assert.
9714         (bitmap_find_bit): If there is only a single bitmap element, do not
9715         count a miss as a search.
9716         (print_statistics): Update for counter type changes.
9717         (dump_bitmap_statistics): Likewise.  Print headers such that they
9718         are properly lined up with the printed counters.
9719
9720 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9721
9722         PR tree-optimization/56559
9723         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9724         check that it has only a single use.
9725
9726 2013-03-07  Richard Biener  <rguenther@suse.de>
9727
9728         * doc/invoke.texi (fwhole-program): Discourage use in combination
9729         with -flto.
9730
9731 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9732
9733         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9734
9735         PR tree-optimization/56539
9736         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9737         instead of GSI_CONTINUE_LINKING as last argument to
9738         force_gimple_operand_gsi.  Adjust function comment.
9739
9740         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9741         aarch64-cores.def.
9742
9743         PR middle-end/56548
9744         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9745         promoted mode, convert the result back to the original mode.
9746
9747 2013-03-06  Richard Biener  <rguenther@suse.de>
9748
9749         PR middle-end/56294
9750         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9751         (insert_updated_phi_nodes_compare_uids): New function.
9752         (update_ssa): Sort symbols_to_rename after UID before
9753         traversing it to insert PHI nodes.
9754
9755 2013-03-06  Richard Biener  <rguenther@suse.de>
9756
9757         PR middle-end/50494
9758         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9759         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9760
9761         Revert
9762         2013-02-13  Richard Biener  <rguenther@suse.de>
9763
9764         PR lto/50494
9765         * varasm.c (output_constant_def_1): Get the decl representing
9766         the constant as argument.
9767         (output_constant_def): Wrap output_constant_def_1.
9768         (make_decl_rtl): Use output_constant_def_1 with the decl
9769         representing the constant.
9770         (build_constant_desc): Optionally re-use a decl already
9771         representing the constant.
9772         (tree_output_constant_def): Adjust.
9773
9774 2013-03-06  Joey Ye  <joey.ye@arm.com>
9775
9776         PR lto/50293
9777         * gcc.c (convert_white_space): New function.
9778         (main): Handles white space in function name.
9779
9780 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9781
9782         PR target/56529
9783         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9784         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9785         to SH_DIV_CALL_TABLE for TARGET_SH2.
9786         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9787         list.
9788         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9789         call-table options.
9790
9791 2013-03-05  Sterling Augustine  <saugustine@google.com>
9792             Cary Coutant  <ccoutant@google.com>
9793
9794         PR debug/55364
9795         * dwarf2out.c (resolve_addr): Don't call
9796         remove_loc_list_addr_table_entries a second time for the same
9797         expression.
9798
9799 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9800
9801         PR debug/56510
9802         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9803         (avoid_complex_debug_insns): New function.
9804         (expand_debug_locations): Call it.
9805
9806         PR rtl-optimization/56484
9807         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9808         lifetimes of hard registers on small register class machines.
9809
9810 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9811
9812         * config/microblaze/microblaze-protos.h: Rename
9813         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9814         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9815         fast_interrupt.
9816         (microblaze_fast_interrupt_function_p): New function.
9817         (microblaze_is_interrupt_handler): Rename to
9818         microblaze_is_interrupt_variant and add fast_interrupt check.
9819         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9820         (save_restore_insns): Likewise.
9821         (compute_frame_size): Likewise.
9822         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9823         (microblaze_globalize_label): Likewise.
9824         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9825         * config/microblaze/microblaze.md: Use wrapper
9826         microblaze_is_interrupt_variant.
9827
9828 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9829
9830         * sdbout.c (sdbout_one_type): Switch to current function's section
9831         supporting cold/hot.
9832
9833 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9834
9835         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9836         -mxl-reorder.
9837
9838 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9839
9840         PR middle-end/56461
9841         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9842         if VALGRIND_GET_VBITS is defined, temporarily make object
9843         memory all defined, and restore previous valgrind addressability
9844         and definability afterwards.  Free this_object at the end.
9845
9846         PR middle-end/56461
9847         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9848         right before calling lra_create_live_ranges, also call it
9849         when clearing live_p.  Only call lra_clear_live_ranges
9850         at the end if live_p.
9851
9852         PR middle-end/56461
9853         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9854
9855 2013-03-05  Richard Biener  <rguenther@suse.de>
9856
9857         PR tree-optimization/56521
9858         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9859         value-id.
9860
9861 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9862
9863         PR c++/55135
9864         * except.h (remove_unreachable_eh_regions): New prototype.
9865         * except.c (remove_eh_handler_splicer): New function, split out
9866         of remove_eh_handler.
9867         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9868         warning about running it on many EH regions one at a time.
9869         (remove_unreachable_eh_regions_worker): New function, walk the
9870         EH tree in depth-first order and remove non-marked regions.
9871         (remove_unreachable_eh_regions): New function.
9872         * tree-eh.c (mark_reachable_handlers): New function, split out
9873         from remove_unreachable_handlers.
9874         (remove_unreachable_handlers): Use mark_reachable_handlers and
9875         remove_unreachable_eh_regions.
9876         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9877         and remove_unreachable_eh_regions.
9878
9879 2013-03-05  Richard Biener  <rguenther@suse.de>
9880
9881         PR middle-end/56525
9882         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9883         not freeing them until the end.
9884
9885 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9886
9887         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9888
9889 2013-03-05  Richard Biener  <rguenther@suse.de>
9890
9891         PR tree-optimization/56270
9892         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9893         of loads after scheduling an SLP instance.
9894
9895 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9896
9897         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9898         tic6x.exp.
9899         (check_gcc_parallelize): Run guality.exp as a separate job from
9900         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9901         struct-layout-1.exp with stackalign.exp.
9902
9903         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9904
9905         PR middle-end/56461
9906         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9907         load_index sbitmap even if some bit in it isn't set.
9908
9909         PR middle-end/56461
9910         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9911         (discover_iteration_bound_by_body_walk): Change queues to
9912         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9913         spelling in comment.  Call safe_push on queues[bound_index] directly.
9914         Release queues[queue_index] in every iteration unconditionally.
9915         Release bounds vector.
9916
9917         PR middle-end/56461
9918         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9919         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9920         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9921         inner_phis vector.
9922
9923 2013-03-05  Richard Biener  <rguenther@suse.de>
9924
9925         PR lto/56515
9926         * tree-inline.c (remap_blocks_to_null): New function.
9927         (expand_call_inline): When expanding a call stmt without
9928         an associated block inline remap all callee blocks to NULL.
9929
9930 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9931
9932         PR rtl-optimization/56494
9933         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9934         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9935         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9936
9937         PR middle-end/56461
9938         * sel-sched-ir.c (free_sched_pools): Release
9939         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9940         if succs_info_pool.max_top isn't -1.
9941
9942         PR bootstrap/56509
9943         * opts.c (opts_obstack, opts_concat): Moved to...
9944         * opts-common.c (opts_obstack, opts_concat): ... here.
9945
9946 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9947
9948         PR middle-end/56461
9949         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9950
9951 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9952
9953         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9954         all appropriate places.
9955
9956 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9957
9958         PR tree-optimization/56424
9959         * ipa-split.c (split_function): Do not set the RSO flag if result is
9960         not by reference and its type is a register type.
9961
9962 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9963
9964         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9965         (microblaze_legitimate_pic_operand): Likewise
9966         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9967         new function microblaze_legitimate_pic_operand
9968         * config/microblaze/microblaze-protos.h
9969         (microblaze_legitimate_pic_operand): Declare.
9970
9971 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9972
9973         * config/microblaze/predicates.md (call_insn_simple_operand):
9974         New predicate for supported rtx code types.
9975         * config/microblaze/microblaze.md (call_internal1): Use
9976         call_insn_simple_operand predicate.
9977
9978 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9979
9980         PR middle-end/56461
9981         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9982         partitions.ordered_remove.
9983
9984         PR middle-end/56461
9985         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9986         vec_oprnds0.create (1) for modifier == NONE.
9987
9988         PR middle-end/56461
9989         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9990         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9991         vec_oprnds1 right before pushing anything to it for
9992         scalar_shift_arg.
9993
9994         PR middle-end/56461
9995         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9996         set nbbs to 0 instead of having separate code path.
9997         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9998         instead of false as last argument if returning NULL.
9999
10000 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10001
10002         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10003         the attribute is now called "target" instead of "option".
10004         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10005         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10006         attribute/pragma name for TARGET_OPTION_VALID_P and
10007         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10008         * doc/tm.texi: Regenerated.
10009
10010 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10011
10012         * config/microblaze/microblaze.c:
10013         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10014         * config/microblaze/microblaze.h: Add -mxl-reorder to
10015         DRIVER_SELF_SPECS.
10016         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10017         instructions emitted if TARGET_REORDER.
10018         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10019         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10020         separately.
10021
10022 2013-03-01  Xinliang David Li  <davidxl@google.com>
10023
10024         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10025         walk length.
10026
10027 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10028
10029         PR middle-end/56461
10030         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10031         vector even when returning true.  Fix up function comment formatting.
10032
10033         PR middle-end/56461
10034         * ira-build.c (ira_loop_nodes_count): New variable.
10035         (create_loop_tree_nodes): Initialize it.
10036         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10037
10038         PR middle-end/56461
10039         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10040         method on dr_chain and result_chain.
10041         * tree-vect-stmts.c (vectorizable_store): Only call
10042         result_chain.create if j == 0.
10043
10044         PR middle-end/56461
10045         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10046         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10047         before overwriting it.
10048
10049 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10050
10051         * doc/extended.texi (C Extensions): Change order in @menu
10052         to match @node.
10053         (Other MIPS Built-in Functions): Move last MIPS entry before
10054         "picoChip Built-in Functions".
10055         (SH Built-in Functions): Move after RX Built-in Functions.
10056         * doc/gcc.texi (Introduction): Change order in @menu
10057         to match @node.
10058         * doc/md.texi (Constraints): Ditto.
10059         * gty.texi (Type Information): Ditto.
10060         (User-provided marking routines for template types): Make
10061         subsection.
10062         * doc/invoke.texi (AArch64 Options): Move before
10063         "Adapteva Epiphany Options".
10064
10065 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10066             Jakub Jelinek  <jakub@redhat.com>
10067
10068         PR sanitizer/56454
10069         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10070         no_address_safety_analysis attribute.
10071         * doc/extend.texi (no_address_safety_attribute): Rename to
10072         no_sanitize_address attribute, mention no_address_safety_analysis
10073         attribute as deprecated alias.
10074
10075 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10076
10077         PR middle-end/56461
10078         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10079         type to vec<vec<tree> > *.
10080         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10081         to be vec<tree> instead of vec<tree> *, set vec_defs
10082         to vNULL and call vec_defs.create (number_of_vects), adjust other
10083         uses of vec_defs.
10084         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10085         vectorizable_condition): Adjust vect_get_slp_defs callers.
10086
10087 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10088
10089         * config/aarch64/aarch64.c
10090         (aarch64_float_const_representable): Remove unused variable.
10091
10092 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10093
10094         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10095
10096 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10097
10098         * config/aarch64/aarch64-builtins.c
10099         (aarch64_init_simd_builtins): Make static.
10100
10101 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10102
10103         * config/aarch64/aarch64.c
10104         (aarch64_simd_make_constant): Make static.
10105
10106 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10107
10108         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10109         with no initialization to the RHS of debug statements.
10110
10111 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10112
10113         PR tree-optimization/56294
10114         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10115         Adjust dumping.
10116         (get_access_replacement): Do not call create_access_replacement.
10117         Assert a replacement exists.
10118         (get_repl_default_def_ssa_name): Create the replacement declaration
10119         itself.
10120
10121 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10122
10123         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10124         final_end_function.
10125
10126 2013-02-28  Marek Polacek  <polacek@redhat.com>
10127
10128         PR rtl-optimization/56466
10129         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10130         if we're changing a loop.
10131         (peel_loops_completely): Likewise.
10132
10133 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10134
10135         PR c++/55813
10136         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10137
10138 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10139
10140         PR target/56445
10141         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10142         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10143         INTX_FTYPE_FX, FX_FTYPE_INTX.
10144         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10145
10146 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10147
10148         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10149         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10150         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10151         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10152         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10153         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10154         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10155         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10156         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10157         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10158         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10159         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10160         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10161         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10162         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10163         (avrxmega6): Increase max flash segments from 5 to 6.
10164         * config/avr/t-multilib: Regenerate.
10165         * config/avr/avr-tables.opt: Regenerate.
10166         * doc/avr-mmcu.texi: Regenerate.
10167
10168 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10169
10170         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10171         (avr_device_to_arch): Rename to avr_device_to_ld.
10172         (avr_device_to_as): New prototype.
10173         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10174         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10175         * config/avr/driver-avr.c (avr_device_to_as): New.
10176         (avr_device_to_arch): Rename to avr_device_to_ld.
10177
10178 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10179
10180         PR middle-end/56461
10181         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10182         method on dr_chain and result_chain.
10183
10184         PR middle-end/56461
10185         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10186         pointer_set_destroy on not_executed_last_iteration.
10187
10188         PR middle-end/56461
10189         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10190
10191         PR middle-end/56461
10192         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10193         FOR_EACH_DEFINED_FUNCTION when freeing state.
10194
10195         PR middle-end/56461
10196         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10197         pool_free.
10198         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10199         overwriting it.
10200
10201         PR middle-end/56461
10202         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10203         known_aggs[i].items and release known_aggs vector.
10204
10205         PR middle-end/56461
10206         * ipa-reference.c (propagate): Free node_info even for alias nodes.
10207
10208 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10209
10210         * config/microblaze/microblaze.c (microblaze_emit_compare):
10211         Use xor for EQ/NE comparisions.
10212         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10213         (cbranchsf4): Adjust operator to comparison_operator.
10214
10215 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10216
10217         PR middle-end/56461
10218         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10219         vector.
10220         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10221         vec_safe_push, always update *slot.
10222         (redirect_edge_var_map_clear): Use vec_free.
10223         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10224         (free_var_map_entry): Use vec_free.
10225         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10226         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10227
10228 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10229
10230         PR middle-end/45472
10231         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10232         when the may_trap_p bit of the exprs being merged differs.
10233         Reorder tests for speculativeness in the logical and operator.
10234
10235 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10236
10237         * incpath.c (add_standard_paths): Use reconcat instead of concat
10238         where appropriate and avoid leaking memory.
10239
10240         * opts.h: Include obstack.h.
10241         (opts_concat): New prototype.
10242         (opts_obstack): New declaration.
10243         * opts.c (opts_concat): New function.
10244         (opts_obstack): New variable.
10245         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10246         (finish_options): Use opts_concat instead of concat
10247         and XOBNEWVEC instead of XNEWVEC.
10248         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10249         generate_option): Likewise.
10250         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10251         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10252
10253         PR target/56455
10254         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10255         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10256
10257 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10258
10259         PR middle-end/56461
10260         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10261
10262 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10263
10264         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10265         (arm_block_move_unaligned_straight): Likewise.
10266         (arm_adjust_block_mem): Likewise.
10267
10268 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10269
10270         PR target/48901
10271         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10272         temp, cond and label.
10273         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10274
10275         PR target/52500
10276         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10277         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10278
10279         PR target/52501
10280         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10281         of prologue/epilogue functions.
10282
10283         PR target/52550
10284         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10285         Remove unused variable cfa_offset.
10286         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10287
10288         PR target/54639
10289         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10290         type promotion to unsigned.
10291
10292         PR target/54640
10293         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10294         for HOST_WIDE_INT of 32 bit / same size as int.
10295         (arm_block_move_unaligned_straight): Likewise.
10296         (arm_adjust_block_mem): Likewise.
10297
10298         PR target/54662
10299         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10300         ALL_CFLAGS.
10301
10302 2013-02-26  Marek Polacek  <polacek@redhat.com>
10303
10304         PR tree-optimization/56426
10305         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10306
10307 2013-02-26  Richard Biener  <rguenther@suse.de>
10308
10309         PR target/56444
10310         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10311         unused variable loops.
10312
10313 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10314
10315         PR tree-optimization/56448
10316         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10317         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10318         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10319         later operands of the references, or even first operand for
10320         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10321
10322         PR tree-optimization/56443
10323         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10324         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10325         to type_for_mode langhook.
10326
10327 2013-02-25  Matt Turner  <mattst88@gmail.com>
10328
10329         * doc/invoke.texi: Document r4700.
10330
10331 2013-02-25  Richard Biener  <rguenther@suse.de>
10332
10333         PR tree-optimization/56175
10334         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10335         split out from ...
10336         (simplify_bitwise_binary): ... here.  Also guard the conversion
10337         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10338
10339 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10340
10341         Revert:
10342         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10343             Maciej W. Rozycki  <macro@codesourcery.com>
10344             Tom de Vries  <tom@codesourcery.com>
10345             Nathan Sidwell  <nathan@codesourcery.com>
10346             Iain Sandoe  <iain@codesourcery.com>
10347             Nathan Froyd  <froydnj@codesourcery.com>
10348             Chao-ying Fu  <fu@mips.com>
10349
10350         * doc/extend.texi: (micromips, nomicromips, nocompression):
10351         Document new function attributes.
10352         * doc/invoke.texi (minterlink-compressed, mmicromips,
10353         m14k, m14ke, m14kec): Document new options.
10354         (minterlink-mips16): Update documentation.
10355         * doc/md.texi (ZC, ZD): Document new constraints.
10356         * configure.ac (gcc_cv_as_micromips): Check if linker
10357         supports the .set micromips directive.
10358         * configure: Regenerate.
10359         * config.in: Regenerate.
10360         * config/mips/mips-tables.opt: Regenerate.
10361         * config/mips/micromips.md: New file.
10362         * constraints.md (ZC, AD): New constraints.
10363         * config/mips/predicates.md (movep_src_register): New predicate.
10364         (movep_src_operand): New predicate.
10365         (non_volatile_mem_operand): New predicate.
10366         * config/mips/mips.md (multimem): New type.
10367         (length): Differentiate between 17-bit and 18-bit branch offsets.
10368         (MOVEP1, MOVEP2): New mode iterator.
10369         (mov_<load>l): Use ZC constraint.
10370         (mov_<load>r): Likewise.
10371         (mov_<store>l): Likewise.
10372         (mov_<store>r): Likewise.
10373         (*branch_equality<mode>_inverted): Add microMIPS support.
10374         (*branch_equality<mode>): Likewise.
10375         (*jump_absolute): Likewise.
10376         (indirect_jump_<mode>): Likewise.
10377         (tablejump_<mode>): Likewise.
10378         (<optab>_internal): Likewise.
10379         (sibcall_internal): Likewise.
10380         (sibcall_value_internal): Likewise.
10381         (prefetch): Use constraint ZD.
10382         * config/mips/mips.opt (minterlink-compressed): New option.
10383         (minterlink-mips16): Now an alias for minterlink-compressed.
10384         (mmicromips): New option.
10385         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10386         (compare_and_swap_12): Likewise.
10387         (sync_add<mode>): Likewise.
10388         (sync_<optab>_12): Likewise.
10389         (sync_old_<optab>_12): Likewise.
10390         (sync_new_<optab>_12): Likewise.
10391         (sync_nand_12): Likewise.
10392         (sync_old_nand_12): Likewise.
10393         (sync_new_nand_12): Likewise.
10394         (sync_sub<mode>): Likewise.
10395         (sync_old_add<mode>): Likewise.
10396         (sync_old_sub<mode>): Likewise.
10397         (sync_new_add<mode>): Likewise.
10398         (sync_new_sub<mode>): Likewise.
10399         (sync_<optab><mode>): Likewise.
10400         (sync_old_<optab><mode>): Likewise.
10401         (sync_new_<optab><mode>): Likewise.
10402         (sync_nand<mode>): Likewise.
10403         (sync_old_nand<mode>): Likewise.
10404         (sync_new_nand<mode>): Likewise.
10405         (sync_lock_test_and_set<mode>): Likewise.
10406         (test_and_set_12): Likewise.
10407         (atomic_compare_and_swap<mode>): Likewise.
10408         (atomic_exchange<mode>_llsc): Likewise.
10409         (atomic_fetch_add<mode>_llsc): Likewise.
10410         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10411         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10412         (umips_save_restore_pattern_p): Likewise.
10413         (umips_load_store_pair_p): Likewise.
10414         (umips_output_load_store_pair): Likewise.
10415         (umips_movep_target_p): Likewise.
10416         (umips_12bit_offset_address_p): Likewise.
10417         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10418         (mips_base_mips16): Rename this...
10419         (mips_base_compression_flags): ...to this. Update all uses.
10420         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10421         (mips_mips16_decl_p): Delete.
10422         (mips_nomips16_decl_p): Delete.
10423         (mips_get_compress_on_flags): New function.
10424         (mips_get_compress_off_flags): New function.
10425         (mips_get_compress_mode): New function.
10426         (mips_get_compress_on_name): New function.
10427         (mips_get_compress_off_name): New function.
10428         (mips_insert_attributes): Support multiple compression types.
10429         (mips_merge_decl_attributes): Likewise.
10430         (umips_12bit_offset_address_p): New function.
10431         (mips_start_function_definition): Emit .set micromips directive.
10432         (mips_call_may_need_jalx_p): New function.
10433         (mips_function_ok_for_sibcall): Add microMIPS support.
10434         (mips_print_operand_punctuation): Support short delay slots and
10435         compact jumps.
10436         (umips_swm_mask, umips_swm_encoding): New.
10437         (umips_build_save_restore): New function.
10438         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10439         (was_mips16_p): Remove.
10440         (old_compression_mode): New.
10441         (mips_set_compression_mode): New function.
10442         (mips_set_current_function): Add microMIPS support.
10443         (mips_option_override): Likewise.
10444         (umips_save_restore_pattern_p): New function.
10445         (umips_output_save_restore): New function.
10446         (umips_load_store_pair_p_1): New function.
10447         (umips_load_store_pair_p): New function.
10448         (umips_output_load_store_pair_1): New function.
10449         (umips_output_load_store_pair): New function.
10450         (umips_movep_target_p) New function.
10451         (mips_prepare_pch_save): Add microMIPS support.
10452         * config/mips/mips.h (TARGET_COMPRESSION): New.
10453         (TARGET_CPU_CPP_BUILTINS): Update macro
10454         to use new compression flags and to support microMIPS.
10455         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10456         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10457         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10458         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10459         (ASM_SPEC): Support mmicromips and mno-micromips.
10460         (M16STORE_REG_P): New macro.
10461         (MIPS_CALL): Support TARGET_MICROMIPS.
10462         (MICROMIPS_J): New macro.
10463         (mips_base_mips16): Rename this...
10464         (mips_base_compression_flags): ...to this.
10465         (UMIPS_12BIT_OFFSET_P): New macro.
10466         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10467         (MULTILIB_DIRNAMES): Likewise.
10468
10469 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10470
10471         PR rtl-optimization/56131
10472         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10473         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10474         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10475
10476 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10477
10478         * doc/invoke.texi (-fsanitize=): Move from optimization
10479         to debugging options.
10480
10481 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10482
10483         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10484
10485 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10486             Alexander Monakov  <amonakov@ispras.ru>
10487
10488         PR middle-end/56077
10489         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10490         flush pending lists also on non-jumps.  Adjust comment.
10491
10492 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10493             Maciej W. Rozycki  <macro@codesourcery.com>
10494             Tom de Vries  <tom@codesourcery.com>
10495             Nathan Sidwell  <nathan@codesourcery.com>
10496             Iain Sandoe  <iain@codesourcery.com>
10497             Nathan Froyd  <froydnj@codesourcery.com>
10498             Chao-ying Fu  <fu@mips.com>
10499
10500         * doc/extend.texi: (micromips, nomicromips, nocompression):
10501         Document new function attributes.
10502         * doc/invoke.texi (minterlink-compressed, mmicromips,
10503         m14k, m14ke, m14kec): Document new options.
10504         (minterlink-mips16): Update documentation.
10505         * doc/md.texi (ZC, ZD): Document new constraints.
10506         * configure.ac (gcc_cv_as_micromips): Check if linker
10507         supports the .set micromips directive.
10508         * configure: Regenerate.
10509         * config.in: Regenerate.
10510         * config/mips/mips-tables.opt: Regenerate.
10511         * config/mips/micromips.md: New file.
10512         * constraints.md (ZC, AD): New constraints.
10513         * config/mips/predicates.md (movep_src_register): New predicate.
10514         (movep_src_operand): New predicate.
10515         (non_volatile_mem_operand): New predicate.
10516         * config/mips/mips.md (multimem): New type.
10517         (length): Differentiate between 17-bit and 18-bit branch offsets.
10518         (MOVEP1, MOVEP2): New mode iterator.
10519         (mov_<load>l): Use ZC constraint.
10520         (mov_<load>r): Likewise.
10521         (mov_<store>l): Likewise.
10522         (mov_<store>r): Likewise.
10523         (*branch_equality<mode>_inverted): Add microMIPS support.
10524         (*branch_equality<mode>): Likewise.
10525         (*jump_absolute): Likewise.
10526         (indirect_jump_<mode>): Likewise.
10527         (tablejump_<mode>): Likewise.
10528         (<optab>_internal): Likewise.
10529         (sibcall_internal): Likewise.
10530         (sibcall_value_internal): Likewise.
10531         (prefetch): Use constraint ZD.
10532         * config/mips/mips.opt (minterlink-compressed): New option.
10533         (minterlink-mips16): Now an alias for minterlink-compressed.
10534         (mmicromips): New option.
10535         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10536         (compare_and_swap_12): Likewise.
10537         (sync_add<mode>): Likewise.
10538         (sync_<optab>_12): Likewise.
10539         (sync_old_<optab>_12): Likewise.
10540         (sync_new_<optab>_12): Likewise.
10541         (sync_nand_12): Likewise.
10542         (sync_old_nand_12): Likewise.
10543         (sync_new_nand_12): Likewise.
10544         (sync_sub<mode>): Likewise.
10545         (sync_old_add<mode>): Likewise.
10546         (sync_old_sub<mode>): Likewise.
10547         (sync_new_add<mode>): Likewise.
10548         (sync_new_sub<mode>): Likewise.
10549         (sync_<optab><mode>): Likewise.
10550         (sync_old_<optab><mode>): Likewise.
10551         (sync_new_<optab><mode>): Likewise.
10552         (sync_nand<mode>): Likewise.
10553         (sync_old_nand<mode>): Likewise.
10554         (sync_new_nand<mode>): Likewise.
10555         (sync_lock_test_and_set<mode>): Likewise.
10556         (test_and_set_12): Likewise.
10557         (atomic_compare_and_swap<mode>): Likewise.
10558         (atomic_exchange<mode>_llsc): Likewise.
10559         (atomic_fetch_add<mode>_llsc): Likewise.
10560         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10561         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10562         (umips_save_restore_pattern_p): Likewise.
10563         (umips_load_store_pair_p): Likewise.
10564         (umips_output_load_store_pair): Likewise.
10565         (umips_movep_target_p): Likewise.
10566         (umips_12bit_offset_address_p): Likewise.
10567         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10568         (mips_base_mips16): Rename this...
10569         (mips_base_compression_flags): ...to this. Update all uses.
10570         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10571         (mips_mips16_decl_p): Delete.
10572         (mips_nomips16_decl_p): Delete.
10573         (mips_get_compress_on_flags): New function.
10574         (mips_get_compress_off_flags): New function.
10575         (mips_get_compress_mode): New function.
10576         (mips_get_compress_on_name): New function.
10577         (mips_get_compress_off_name): New function.
10578         (mips_insert_attributes): Support multiple compression types.
10579         (mips_merge_decl_attributes): Likewise.
10580         (umips_12bit_offset_address_p): New function.
10581         (mips_start_function_definition): Emit .set micromips directive.
10582         (mips_call_may_need_jalx_p): New function.
10583         (mips_function_ok_for_sibcall): Add microMIPS support.
10584         (mips_print_operand_punctuation): Support short delay slots and
10585         compact jumps.
10586         (umips_swm_mask, umips_swm_encoding): New.
10587         (umips_build_save_restore): New function.
10588         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10589         (was_mips16_p): Remove.
10590         (old_compression_mode): New.
10591         (mips_set_compression_mode): New function.
10592         (mips_set_current_function): Add microMIPS support.
10593         (mips_option_override): Likewise.
10594         (umips_save_restore_pattern_p): New function.
10595         (umips_output_save_restore): New function.
10596         (umips_load_store_pair_p_1): New function.
10597         (umips_load_store_pair_p): New function.
10598         (umips_output_load_store_pair_1): New function.
10599         (umips_output_load_store_pair): New function.
10600         (umips_movep_target_p) New function.
10601         (mips_prepare_pch_save): Add microMIPS support.
10602         * config/mips/mips.h (TARGET_COMPRESSION): New.
10603         (TARGET_CPU_CPP_BUILTINS): Update macro
10604         to use new compression flags and to support microMIPS.
10605         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10606         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10607         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10608         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10609         (ASM_SPEC): Support mmicromips and mno-micromips.
10610         (M16STORE_REG_P): New macro.
10611         (MIPS_CALL): Support TARGET_MICROMIPS.
10612         (MICROMIPS_J): New macro.
10613         (mips_base_mips16): Rename this...
10614         (mips_base_compression_flags): ...to this.
10615         (UMIPS_12BIT_OFFSET_P): New macro.
10616         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10617         (MULTILIB_DIRNAMES): Likewise.
10618
10619 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10620
10621         PR target/52555
10622         * target-globals.c (save_target_globals): For init_reg_sets and
10623         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10624
10625 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10626
10627         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10628         * config/aarch64/t-aarch64
10629         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10630
10631 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10632
10633         PR inline-asm/56148
10634         * lra-constraints.c (process_alt_operands): Reload operand
10635         conflicting with earlier clobber only if no more other conflicting
10636         operands.
10637
10638 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10639
10640         PR sanitizer/56393
10641         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10642         if not linking a shared library.
10643
10644 2013-02-22  Seth LaForge  <sethml@google.com>
10645
10646         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10647
10648 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10649
10650         * config/arm/arm.md (split for extendsidi): Update condition.
10651         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10652         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10653         (qhs_zextenddi_cstr): Likewise.
10654
10655 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10656
10657         PR middle-end/56420
10658         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10659         avoid signed wrapping.
10660         (expand_mult): Handle properly multiplication by
10661         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10662         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10663         in the compiler if coeff is HOST_WIDE_INT_MIN.
10664         (expand_divmod): Don't make ext_op1 static, change it's type to
10665         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10666
10667         PR rtl-optimization/50339
10668         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10669         field.
10670         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10671         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10672         into splitting_ashiftrt field.
10673         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10674         ASHIFTRT.
10675         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10676         choices.
10677
10678 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10679
10680         PR middle-end/56108
10681         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10682         are sure to go irrevocable.
10683
10684 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10685
10686         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10687         scalars are valid operands.
10688
10689 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10690
10691         PR tree-optimization/56310
10692         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10693         only matching indices and non-negative final offsets.
10694         (intersect_aggregates_with_edge): Pass src_idx to
10695         agg_replacements_to_vector.  Pass src_idx insstead of index to
10696         intersect_with_agg_replacements.
10697
10698 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10699
10700         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10701         instead of hard-wired defaults.
10702
10703 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10704
10705         * doc/invoke.texi (MIPS Options): Update documentation of the
10706         floating-point multiply-accumulate instruction restrictions.
10707
10708 2013-02-21  Kostya Serebryany  <kcc@google.com>
10709
10710         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10711         asan_shadow_offset on x86_64 linux.
10712
10713 2013-02-21  Richard Biener  <rguenther@suse.de>
10714
10715         PR tree-optimization/56415
10716         Revert
10717         2013-02-11  Richard Biener  <rguenther@suse.de>
10718
10719         PR tree-optimization/56273
10720         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10721         first VRP run.
10722
10723 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10724
10725         PR bootstrap/56258
10726         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10727         instead of @itemx.
10728
10729         PR inline-asm/56405
10730         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10731         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10732
10733 2013-02-20  Jan Hubicka  <jh@suse.cz>
10734
10735         PR tree-optimization/56265
10736         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10737         when target is referenced for first time.
10738
10739 2013-02-20  Richard Biener  <rguenther@suse.de>
10740
10741         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10742         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10743         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10744         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10745         not return anything.
10746         (rename_ssa_copies): Do not remove unused locals.
10747         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10748         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10749         * passes.c (execute_function_todo): Do not schedule unused locals
10750         removal if cleanup_tree_cfg did something.
10751         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10752         about the number of removed locals.
10753
10754 2013-02-20  Richard Biener  <rguenther@suse.de>
10755
10756         PR tree-optimization/56398
10757         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10758
10759 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10760
10761         PR tree-optimization/55334
10762         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10763         restricted pointers to arrays.
10764
10765 2013-02-20  Richard Biener  <rguenther@suse.de>
10766             Jakub Jelinek  <jakub@redhat.com>
10767
10768         PR tree-optimization/56396
10769         * tree-ssa-ccp.c (n_const_val): New static variable.
10770         (get_value): Return NULL for SSA names we don't have a lattice
10771         entry for.
10772         (ccp_initialize): Initialize n_const_val.
10773         * tree-ssa-copy.c (n_copy_of): New static variable.
10774         (init_copy_prop): Initialize n_copy_of.
10775         (get_value): Return NULL_TREE for SSA names we don't have a
10776         lattice entry for.
10777
10778 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10779
10780         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10781
10782 2013-02-20  Richard Biener  <rguenther@suse.de>
10783
10784         * genpreds.c (write_lookup_constraint): Do not compare first
10785         letter of the constraint again.
10786
10787 2013-02-20  Richard Biener  <rguenther@suse.de>
10788
10789         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10790         and ceil_log2.
10791         (get_use_iv_cost): Terminate hashtable walk when coming across
10792         an empty entry.
10793
10794 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10795
10796         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10797         reassociation for avx2 targets.
10798
10799 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10800
10801         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10802         Add version check for v8.10.a to enable microblaze_has_clz
10803         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10804         version and TARGET_PATTERN_COMPARE check
10805         * config/microblaze/microblaze.md: New clzsi2 instruction
10806
10807 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10808
10809         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10810         function before branching.
10811
10812 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10813
10814         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10815         DUMP_INSN_RTX_UID.
10816         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10817
10818 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10819
10820         PR middle-end/55889
10821         * sel-sched.c: Include ira.h.
10822         (implicit_clobber_conflict_p): New function.
10823         (moveup_expr): Use it.
10824         * Makefile.in (sel-sched.o): Depend on ira.h.
10825
10826 2013-02-19  Richard Biener  <rguenther@suse.de>
10827
10828         PR tree-optimization/56384
10829         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10830         (vn_hash_type): Split out from ...
10831         (vn_hash_constant_with_type): ... here.
10832         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10833         (vn_phi_eq): Compare types from vn_phi_s structure.
10834         (vn_phi_lookup): Populate vn_phi_s type.
10835         (vn_phi_insert): Likewise.
10836
10837 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10838
10839         PR tree-optimization/56350
10840         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10841         if haven't found reduction or nested cycle operand, rather than
10842         asserting we must find it.
10843
10844         PR tree-optimization/56381
10845         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10846         to fold_build3.
10847
10848 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10849             Jakub Jelinek  <jakub@redhat.com>
10850
10851         PR target/52555
10852         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10853         (swap_optab_enable): Same.
10854         (init_all_optabs): Use argument instead of global.
10855         * tree.h (struct tree_optimization_option): New field target_optabs.
10856         * expr.h (init_all_optabs): Add argument to prototype.
10857         (TREE_OPTIMIZATION_OPTABS): New.
10858         (save_optabs_if_changed): Protoize.
10859         * optabs.h: Declare this_fn_optabs.
10860         * optabs.c (save_optabs_if_changed): New.
10861         Declare this_fn_optabs.
10862         (init_optabs): Add argument to init_all_optabs() call.
10863         * function.c (invoke_set_current_function_hook): Handle per
10864         function optabs.
10865         * function.h (struct function): New field optabs.
10866         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10867         optimization_current_node has changed.
10868         * target-globals.h (save_target_globals_default_opts): Protoize.
10869         * target-globals.c (save_target_globals_default_opts): New.
10870
10871 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10872
10873         PR target/56347
10874         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10875         registers %fr12 and %fr12R as call used.
10876
10877         PR target/56214
10878         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10879         and HImode, require all displacements to be an integer multiple of
10880         their mode size.
10881         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10882         only allow QImode and HImode when reload is in progress and strict is
10883         true.  Likewise for symbolic addresses.  Use base14_operand to check
10884         displacements in REG+BASE addresses.
10885
10886 2013-02-18  Richard Biener  <rguenther@suse.de>
10887
10888         PR tree-optimization/56366
10889         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10890         handle sign-conversion of outer-loop initial induction value.
10891
10892 2013-02-18  Richard Biener  <rguenther@suse.de>
10893
10894         PR middle-end/56349
10895         * cfghooks.c (merge_blocks): If we merge a latch into another
10896         block adjust references to it.
10897         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10898         (verify_loop_structure): Verify that a recorded latch is in fact
10899         a latch.
10900
10901 2013-02-18  Richard Biener  <rguenther@suse.de>
10902
10903         PR tree-optimization/56321
10904         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10905         order SSA name release and virtual operand unlinking.
10906
10907 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10908
10909         * config/microblaze/microblaze.md (save_stack_block): Define.
10910         (restore_stack_block): Likewise.
10911
10912 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10913
10914         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10915         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10916         * config/microblaze/microblaze.c (microblaze_option_override):
10917         Bail out early for PIC modes when target does not support PIC.
10918
10919 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10920
10921         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10922         Replace with a microblaze version.
10923         (microblaze_trampoline_init): Adapt for microblaze.
10924         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10925         microblaze.
10926
10927 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10928             Dodji Seketeli  <dodji@redhat.com>
10929
10930         PR asan/56330
10931         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10932         (instrument_mem_region_access): Do not forget to always put
10933         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10934         0) statement, even for cases where either 'base' or 'base + len'
10935         are not instrumented -- because they have been previously
10936         instrumented.  Simplify the logic by putting all the statements
10937         instrument 'base + len' inside a sequence, and then insert that
10938         sequence right before the current insertion point.  Then, to
10939         instrument 'base + len', just get an iterator on that statement.
10940         And do not forget to update the pointer to iterator the function
10941         received as argument.
10942
10943 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10944
10945         PR rtl-optimization/56348
10946         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10947
10948 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10949
10950         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10951         (clean_graph_dump_file): Pass base to start_graph_dump.
10952
10953 2013-02-14  Richard Henderson  <rth@redhat.com>
10954
10955         PR target/55941
10956         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10957
10958 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10959
10960         * collect2-aix.h: Define F_LOADONLY.
10961
10962 2013-02-14  Richard Biener  <rguenther@suse.de>
10963
10964         PR lto/50494
10965         * varasm.c (output_constant_def_1): Get the decl representing
10966         the constant as argument.
10967         (output_constant_def): Wrap output_constant_def_1.
10968         (make_decl_rtl): Use output_constant_def_1 with the decl
10969         representing the constant.
10970         (build_constant_desc): Optionally re-use a decl already
10971         representing the constant.
10972         (tree_output_constant_def): Adjust.
10973
10974 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10975
10976         Fix an asan crash
10977         * asan.c (instrument_builtin_call):  Really put the length of the
10978         second source argument into src1_len.
10979
10980 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10981
10982         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10983         argument.  If it is false, don't create edge from then_bb to
10984         fallthru_bb.
10985         (insert_if_then_before_iter): Pass true to it.
10986         (build_check_stmt): Pass false to it.
10987         (transform_statements): Flush hash table only on extended basic
10988         block boundaries, rather than at the beginning of every bb.
10989         Don't flush hash table on nonfreeing_call_p calls.
10990         * tree-flow.h (nonfreeing_call_p): New prototype.
10991         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10992
10993 2013-02-13  David S. Miller  <davem@davemloft.net>
10994
10995         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10996
10997 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10998
10999         PR target/56184
11000         * ira.c (max_regno_before_ira): Move from ...
11001         (ira): ... here.
11002         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11003         vec_safe_length.
11004
11005 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11006
11007         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11008
11009 2013-02-13  Richard Biener  <rguenther@suse.de>
11010
11011         PR lto/56295
11012         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11013         globals in MEM_REFs.
11014
11015 2013-02-13  Richard Biener  <rguenther@suse.de>
11016
11017         * loop-init.c (loop_optimizer_init): Clear loop state when
11018         re-initializing preserved loops.
11019         * loop-unswitch.c (unswitch_single_loop): Return whether
11020         we unswitched the loop.  Do not verify loop state here.
11021         (unswitch_loops): When we unswitched a loop discover new loops.
11022
11023 2013-02-13  Kostya Serebryany  <kcc@google.com>
11024
11025         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11026         on x86_64 linux.
11027         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11028
11029 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11030
11031         Avoid instrumenting duplicated memory access in the same basic block
11032         * Makefile.in (asan.o): Add new dependency on hash-table.h
11033         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11034         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11035         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11036         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11037         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11038         (get_mem_ref_of_assignment): New functions.
11039         (get_mem_refs_of_builtin_call): Extract from
11040         instrument_builtin_call and tweak a little bit to make it fit with
11041         the new signature.
11042         (instrument_builtin_call): Use the new
11043         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11044         of is_gimple_builtin_call.
11045         (instrument_derefs, instrument_mem_region_access): Insert the
11046         instrumented memory reference into the hash table.
11047         (maybe_instrument_assignment): Renamed instrument_assignment into
11048         this, and change it to advance the iterator when instrumentation
11049         actually happened and return true in that case.  This makes it
11050         homogeneous with maybe_instrument_assignment, and thus give a
11051         chance to callers to be more 'regular'.
11052         (transform_statements): Clear the memory reference hash table
11053         whenever we enter a new BB, when we cross a function call, or when
11054         we are done transforming statements.  Use
11055         maybe_instrument_assignment instead of instrumentation.  No more
11056         need to special case maybe_instrument_assignment and advance the
11057         iterator after calling it; it's now handled just like
11058         maybe_instrument_call.  Update comment.
11059
11060 2013-02-13  Richard Biener  <rguenther@suse.de>
11061
11062         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11063         Fix loop discovery code.
11064
11065 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11066
11067         PR inline-asm/56148
11068         * lra-constraints.c (process_alt_operands): Match early clobber
11069         operand with itself.  Check conflicts with earlyclobber only if
11070         the operand is not reloaded.  Prefer to reload conflicting operand
11071         if earlyclobber and matching operands are the same.
11072
11073 2013-02-12  Richard Biener  <rguenther@suse.de>
11074
11075         PR lto/56297
11076         * lto-streamer-out.c (write_symbol): Do not output symbols
11077         for hard register variables.
11078
11079 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11080
11081         PR target/54222
11082         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11083         (umulsidi3_insn, mulsidi3_insn): New insns.
11084
11085 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11086
11087         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11088         (struct tune_params): Add vec_costs field.
11089         * config/arm/arm.c (arm_builtin_vectorization_cost)
11090         (arm_add_stmt_cost): New functions.
11091         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11092         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11093         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11094         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11095         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11096         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11097         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11098
11099 2013-02-12  Richard Biener  <rguenther@suse.de>
11100
11101         PR lto/56295
11102         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11103         decls again if possible.
11104
11105 2013-02-12  Richard Biener  <rguenther@suse.de>
11106
11107         PR middle-end/56288
11108         * tree-ssa.c (verify_ssa_name): Fix check, move
11109         SSA_NAME_IN_FREE_LIST check up.
11110
11111 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11112             Steven Bosscher   <steven@gcc.gnu.org>
11113
11114         PR rtl-optimization/56151
11115         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11116         equal to op0 or op1, and last_insn pattern is CODE operation
11117         with MEM dest and one of the operands matches that MEM.
11118
11119 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11120
11121         * doc/extend.texi: Document Function Multiversioning and "default"
11122         parameter string to target attribute.
11123         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11124         target attribute parameter is "default".
11125         (ix86_compare_version_priority): Remove checks for target attribute.
11126         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11127         Remove check for target attribute equal to NULL. Add assert.
11128         (ix86_generate_version_dispatcher_body): Change error to sorry.
11129
11130 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11131             Jack Howarth  <howarth@bromo.med.uc.edu>
11132             Patrick Marlier  <patrick.marlier@gmail.com>
11133
11134         PR libitm/55693
11135         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11136         define ENDFILE_SPEC as TM_DESTRUCTOR.
11137         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11138
11139 2013-02-11  Alexander Potapenko  <glider@google.com>
11140             Jack Howarth  <howarth@bromo.med.uc.edu>
11141             Jakub Jelinek  <jakub@redhat.com>
11142
11143         PR sanitizer/55617
11144         * config/darwin.c (cdtor_record): Rename ctor_record.
11145         (sort_cdtor_records): Rename sort_ctor_records.
11146         (finalize_dtors): New routine to sort destructors by
11147         priority before use in assemble_integer.
11148         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11149
11150 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11151
11152         PR rtl-optimization/56275
11153         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11154         offset is non-negative and less than cmode size before
11155         calling simplify_subreg.
11156
11157 2013-02-11  Richard Biener  <rguenther@suse.de>
11158
11159         PR tree-optimization/56264
11160         * cfgloop.h (fix_loop_structure): Adjust prototype.
11161         * loop-init.c (fix_loop_structure): Return the number of
11162         newly discovered loops.
11163         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11164         are discovered, do a full loop-closed SSA rewrite.
11165
11166 2013-02-11  Richard Biener  <rguenther@suse.de>
11167
11168         PR tree-optimization/56273
11169         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11170         first VRP run.
11171         (check_array_ref): Fix missing newline in dumps.
11172         (search_for_addr_array): Likewise.
11173
11174 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11175
11176         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11177
11178 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11179
11180         PR target/56256
11181         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11182
11183 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11184
11185         PR rtl-optimization/56246
11186         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11187         reload pseudo.
11188         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11189         constraints are satisfied.
11190
11191 2013-02-08  Jeff Law  <law@redhat.com>
11192
11193         PR debug/53948
11194         * emit-rtl.c (reg_is_parm_p): New function.
11195         * regs.h (reg_is_parm_p): New prototype.
11196         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11197         callee-clobbered registers.
11198
11199 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11200
11201         PR target/56043
11202         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11203         If there is no implicit builtin declaration, just return NULL.
11204
11205 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11206
11207         * config/i386/sse.md (FMAMODEM): New mode iterator.
11208         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11209         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11210
11211 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11212
11213         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11214         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11215         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11216
11217 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11218
11219         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11220         (microblaze*-*-elf): Likewise.
11221         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11222         LINK_SPEC.
11223         * config/microblaze/microblaze-c.c: Add builtin defines for
11224         _LITTLE_ENDIAN and _BIG_ENDIAN.
11225         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11226         add to TARGET_DEFAULT flags.
11227         Expand ASM_SPEC and LINK_SPEC.
11228         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11229         * config/microblaze/microblaze.md: Update extendsidi2 and
11230         movdi_internal instructions to use low-order / high-order reg
11231         print_operands.
11232         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11233         options and inversemask / mask of LITTLE_ENDIAN.
11234         * config/microblaze/t-microblaze: Expand multilib options to
11235         include mlittle-endian (le) and update exceptions patterns.
11236
11237 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11238
11239         PR rtl-optimization/56195
11240         * lra-constraints.c (get_reload_reg): Don't reuse regs
11241         if they have smaller mode than requested, if they have
11242         wider mode than requested, try to return a SUBREG.
11243
11244         PR tree-optimization/56250
11245         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11246         if type is unsigned and code isn't MULT_EXPR.
11247
11248 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11249
11250         PR tree-optimization/56064
11251         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11252         bits according to mode.
11253         * fixed-value.h (fixed_from_double_int)
11254         (const_fixed_from_double_int): Adjust comments.
11255
11256 2013-02-08  Richard Biener  <rguenther@suse.de>
11257
11258         PR lto/56231
11259         * lto-streamer.h (struct data_in): Remove current_file, current_line
11260         and current_col members.
11261         * lto-streamer-out.c (lto_output_location): Stream changed bits
11262         en-block for efficiency.
11263         * lto-streamer-in.c (clear_line_info): Remove.
11264         (lto_input_location): Cache current file, line and column
11265         globally via local statics.  Read changed bits en-block.
11266         (input_function): Do not call clear_line_info.
11267         (lto_read_body): Likewise.
11268         (lto_input_toplevel_asms): Likewise.
11269
11270 2013-02-08  Michael Matz  <matz@suse.de>
11271
11272         PR tree-optimization/52448
11273         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11274         (nt_call_phase): New static.
11275         (add_or_mark_expr): Only mark accesses with newer phase than any
11276         call seen.
11277         (nonfreeing_call_p): New.
11278         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11279         (nt_fini_block): Keep blocks marked as visited.
11280         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11281
11282 2013-02-08  Richard Biener  <rguenther@suse.de>
11283
11284         * ira.c (ira): Free broken dominator information.
11285
11286 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11287
11288         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11289
11290 2013-02-08  Marek Polacek  <polacek@redhat.com>
11291
11292         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11293
11294 2013-02-08  Richard Biener  <rguenther@suse.de>
11295
11296         PR middle-end/56181
11297         * cfgloop.h (flow_loops_find): Adjust.
11298         (bb_loop_header_p): Declare.
11299         * cfgloop.c (bb_loop_header_p): New function split out from ...
11300         (flow_loops_find): ... here.  Adjust function signature,
11301         support incremental loop structure update.
11302         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11303         * cfgloopmanip.c (fix_loop_structure): Move ...
11304         * loop-init.c (fix_loop_structure): ... here.
11305         (apply_loop_flags): Split out from ...
11306         (loop_optimizer_init): ... here.
11307         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11308         in incremental mode, only remove dead loops here.
11309
11310 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11311
11312         PR target/54222
11313         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11314         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11315         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11316         (*round<mode>3.libgcc): New insns for fixed-modes.
11317         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11318         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11319         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11320         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11321         implementations.  Define to __builtin_avr_absFX,
11322         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11323         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11324         __builtin_avr_countlsFX, respectively.
11325         * config/avr/avr-c.c (target.h): Include it.
11326         (enum avr_builtin_id): New enum.
11327         (avr_resolve_overloaded_builtin): New static function.
11328         (avr_register_target_pragmas): Use it to set
11329         targetm.resolve_overloaded_builtin.
11330         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11331         tree nodes used by DEF_BUILTIN.
11332         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11333         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11334         <AVR_BUILTIN_xxBITS>: Same.
11335
11336 2013-02-08  Richard Biener  <rguenther@suse.de>
11337
11338         * cfgloop.c (verify_loop_structure): Properly handle
11339         a loop exiting to another loop header.
11340         * ira-int.h (ira_loops): Remove.
11341         * ira.c (ira_loops): Remove.
11342         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11343         (do_reload): Use loop_optimizer_finalize.
11344         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11345         number_of_loops to access the loop tree.
11346         (more_one_region_p): Likewise.
11347         (finish_loop_tree_nodes): Likewise.
11348         (rebuild_regno_allocno_maps): Likewise.
11349         (mark_loops_for_removal): Likewise.
11350         (mark_all_loops_for_removal): Likewise.
11351         (remove_unnecessary_regions): Likewise.
11352         (ira_build): Likewise.
11353         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11354
11355 2013-02-08  Richard Biener  <rguenther@suse.de>
11356
11357         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11358         * ipa-pure-const.c (analyze_function): Avoid calling
11359         mark_irreducible_loops twice.
11360         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11361
11362 2013-02-07  David S. Miller  <davem@davemloft.net>
11363
11364         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11365         on 'reg'.
11366         * var-tracking.c (vt_add_function_parameter): Test the presence of
11367         HAVE_window_save properly and do not remap argument registers when
11368         we have a leaf function.
11369
11370 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11371
11372         PR bootstrap/56227
11373         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11374         instead of "ll".
11375         * config/i386/i386.c (ix86_print_operand): Ditto.
11376
11377 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11378
11379         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11380
11381 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11382
11383         PR rtl-optimization/56225
11384         * lra-constraints.c (process_alt_operands): Check that reload hard
11385         reg can hold value for strict_low_part.
11386
11387 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11388
11389         PR debug/56154
11390         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11391         dwarf2out_end_function.
11392         (in_first_function_p, maybe_at_text_label_p,
11393         first_loclabel_num_not_at_text_label): New variables.
11394         (dwarf2out_var_location): In the first function find out
11395         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11396         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11397         functions.
11398
11399 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11400
11401         PR rtl-optimization/56178
11402         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11403         SUBREG of a register.  Tidy up related block of code.
11404         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11405         note if the source is a register or a SUBREG of a register.
11406
11407 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11408
11409         PR target/56228
11410         * config/rs6000/rs6000.md (ptrm): New mode attr.
11411         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11412         call_value_indirect_aix<pttrsize>,
11413         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11414         m in constraints.
11415
11416 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11417
11418         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11419         if -bnortl. Convert to strcmp and strncmp.
11420
11421 2013-02-07  Alan Modra  <amodra@gmail.com>
11422
11423         PR target/54009
11424         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11425         addresses won't wrap when offsetting.
11426         (rs6000_secondary_reload): Provide secondary reloads needed for
11427         wrapping LO_SUM addresses.
11428
11429 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11430
11431         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11432         MACH, just __MACH__.
11433
11434 2013-02-06  Richard Biener  <rguenther@suse.de>
11435
11436         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11437         instead of calling fix_loop_structure.
11438
11439 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11440
11441         PR middle-end/56217
11442         * omp-low.c (use_pointer_for_field): Return false if
11443         lower_send_shared_vars doesn't generate any copy-out code.
11444
11445 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11446
11447         PR rtl-optimization/56131
11448         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11449         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11450         of the label is NULL.  Add comment.
11451
11452 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11453
11454         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11455
11456         PR sanitizer/55374
11457         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11458         (STATIC_LIBTSAN_LIBS): Likewise.
11459         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11460         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11461         is defined, don't add anything else beyond that.
11462         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11463         (LINK_COMMAND_SPEC): Use them.
11464
11465         PR tree-optimization/56205
11466         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11467         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11468         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11469
11470 2013-02-05  Richard Biener  <rguenther@suse.de>
11471
11472         PR tree-optimization/53342
11473         PR tree-optimization/53185
11474         * tree-vectorizer.h (vect_check_strided_load): Remove.
11475         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11476         not disallow peeling for vectorized strided loads.
11477         (vect_check_strided_load): Make static and simplify.
11478         (vect_analyze_data_refs): Adjust.
11479         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11480         correctly when vectorizing strided loads.
11481
11482 2013-02-05  Richard Biener  <rguenther@suse.de>
11483
11484         * doc/install.texi: Refer to ISL, not PPL.
11485
11486 2013-02-05  Jan Hubicka  <jh@suse.cz>
11487
11488         PR tree-optimization/55789
11489         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11490
11491 2013-02-05  Jan Hubicka  <jh@suse.cz>
11492
11493         PR tree-optimization/55789
11494         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11495         the dead call anyway.
11496
11497 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11498
11499         PR sanitizer/55374
11500         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11501
11502 2013-02-04  Alexander Potapenko  <glider@google.com>
11503             Jack Howarth  <howarth@bromo.med.uc.edu>
11504             Jakub Jelinek  <jakub@redhat.com>
11505
11506         PR sanitizer/55617
11507         * config/darwin.c (sort_ctor_records): Stabilized qsort
11508         on constructor priority by using original position.
11509         (finalize_ctors): New routine to sort constructors by
11510         priority before use in assemble_integer.
11511         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11512
11513 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11514
11515         PR libstdc++/54314
11516         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11517         about visibility on artificial decls.
11518         * config/sol2.c (solaris_assemble_visibility): Likewise.
11519
11520 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11521
11522         PR target/56186
11523         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11524         argument and improve checking of return-argument types for 16-byte
11525         modes.
11526         (ix86_function_value_1): Add additional valtype argument on call
11527         of function_value_64.
11528         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11529         handling infunction_value_64 function.
11530
11531 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11532
11533         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11534
11535 2013-02-04  Richard Biener  <rguenther@suse.de>
11536
11537         PR tree-optimization/56188
11538         * tree-ssa-structalias.c (label_visit): Consider case with
11539         initially non-empty points-to set.
11540         (perform_var_substitution): Dump node mapping and clean up.
11541
11542 2013-02-04  Richard Guenther  <rguenther@suse.de>
11543
11544         PR lto/56168
11545         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11546         node prevail as last resort.
11547         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11548         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11549
11550 2013-02-04  Richard Biener  <rguenther@suse.de>
11551
11552         PR tree-optimization/56113
11553         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11554         Merge into ...
11555         (equiv_class_lookup_or_add): ... this.
11556         (label_visit): Adjust and fix error in previous patch.
11557         (perform_var_substitution): Adjust.
11558
11559 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11560
11561         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11562         * config/sh/sh4-300.md: Likewise.
11563         * config/sh/sh4a.md: Likewise.
11564         * config/sh/constraints.md: Likewise.
11565         * config/sh/sh.md: Likewise.
11566         * config/sh/netbsd-elf.h: Likewise.
11567         * config/sh/predicates.md: Likewise.
11568         * config/sh/sh-protos.h: Likewise.
11569         * config/sh/ushmedia.h: Likewise.
11570         * config/sh/linux.h: Likewise.
11571         * config/sh/sh.c: Likewise.
11572         * config/sh/superh.h: Likewise.
11573         * config/sh/elf.h: Likewise.
11574         * config/sh/sh4.md: Likewise.
11575         * config/sh/sh.h: Likewise.
11576
11577 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11578
11579         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11580         constraint to match_test floating_point_store_memory_operand().
11581         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11582         (base14_operand): New.
11583         (floating_point_store_memory_operand): New.
11584         (integer_store_memory_operand): Revise to use base14_operand and
11585         reg_plus_base_memory_operand.
11586         (move_dest_operand): Allow symbolic_memory_operands.
11587         (symbolic_memory_operand): Check for LO_SOM.
11588         (symbolic_operand): Change default case to break.
11589         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11590         CONST_DOUBLE values to be reloaded by putting them into memory when
11591         the destination is a floating point register.
11592         (movdf): Remove code to handle CONST_DOUBLE.
11593         (movsf): Likewise.
11594         (reload_indf_r1): New.
11595         (reload_insf_r1): New.
11596         Consistently use "Q" and "T" constraints with integer and floating
11597         point move instructions, respectively.
11598         (movdi): Remove FAIL.
11599         Change predicate for source operand unamed DImode move from
11600         general_operand to move_src_operand.
11601         (umulsidi3): Change predicate for destination operand to
11602         register_operand.
11603         Likewise for similar unamed patterns.
11604         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11605         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11606         (hppa_legitimize_address): Simplify mask calculation.
11607         (pa_emit_move_sequence): Revised handling of secondary reloads from
11608         REG+D addresses for floating point loads and stores.  Directly handle
11609         loading CONST0_RTX (mode) to a floating point register.
11610         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11611         to floating point registers.  Don't restrict secondary reloads to
11612         floating point registers to integer modes.  Revise some comments and
11613         cleanup some code.
11614         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11615         (pa_legitimate_address_p): New.
11616         (pa_legitimize_reload_address): New.
11617         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11618         (STRICT_REG_OK_FOR_BASE_P): New.
11619         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11620         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11621
11622 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11623             Andrew Dixie  <andrewd@gentrack.com>
11624
11625         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11626         flag set.
11627
11628 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11629
11630         * expmed.c (extract_bit_field_1): Pass the full width of the
11631         structure to get_best_reg_extraction_insn.
11632
11633 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11634
11635         PR target/54601
11636         * configure.ac (use_cxa_atexit): Add AIX.
11637         * configure: Regenerate.
11638
11639         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11640
11641 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11642
11643         PR debug/54793
11644         * final.c (need_profile_function): New variable.
11645         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11646         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11647         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11648         notes, targetm.asm_out.function_prologue doesn't emit anything,
11649         HAVE_prologue and profiler should be emitted before prologue,
11650         set need_profile_function instead of emitting it.
11651         (final_scan_insn): If need_profile_function, emit
11652         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11653         NOTE_INSN_FUNCTION_BEG note.
11654
11655 2013-02-01  Richard Henderson  <rth@redhat.com>
11656
11657         * config/rs6000/rs6000.md (smulditi3): New.
11658         (umulditi3): New.
11659
11660         * config/alpha/alpha.md (umulditi3): New.
11661
11662 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11663
11664         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11665         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11666
11667 2013-02-01  Richard Biener  <rguenther@suse.de>
11668
11669         PR tree-optimization/56113
11670         * tree-ssa-structalias.c (label_visit): Reduce work for
11671         single-predecessor nodes.
11672
11673 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11674
11675         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11676         range isn't testing for zero.
11677
11678 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11679
11680         PR middle-end/56113
11681         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11682
11683 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11684             Nick Clifton  <nickc@redhat.com>
11685
11686         * config/v850/constraints.md (Q): Define as a memory constraint.
11687         * config/v850/predicates.md (label_ref_operand): New predicate.
11688         (e3v5_shift_operand): New predicate.
11689         (ior_operator): New predicate.
11690         * config/v850/t-v850: Add e3v5 multilib.
11691         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11692         (v850_gen_movdi): Prototype.
11693         * config/v850/v850.c: Add support for e3v5 architecture.
11694         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11695         TARGET_V850E_UP.
11696         (construct_save_jarl): Add e3v5 long JARL support.
11697         (v850_adjust_insn_length): New function.  Adjust length of call
11698         insns when using e3v5 instructions.
11699         (v850_gen_movdi): New function: Generate instructions to move a
11700         DImode value.
11701         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11702         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11703         (TARGET_USE_FPU): Enable for e3v5.
11704         (CONST_OK_FOR_W): New macro.
11705         (ADJUST_INSN_LENGTH): Define.
11706         * config/v850/v850.md (UNSPEC_LOOP): Define.
11707         (attr cpu): Add v850e3v5.
11708         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11709         (movdi): New pattern.
11710         (movdi_internal): New pattern.
11711         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11712         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11713         (cstoresf4): Likewise.
11714         (cstoredf4): Likewise.
11715         (insv): New pattern.
11716         (rotlso3_a): New pattern.
11717         (rotlsi3_b): New pattern
11718         (rotlsi3_v850e3v5): New pattern.
11719         (doloop_begin): New pattern.
11720         (fix_loop_counter): New pattern.
11721         (doloop_end): New pattern.
11722         (branch_normal): Add e3v5 long branch support.
11723         (branch_invert): Likewise.
11724         (branch_z_normal): Likewise.
11725         (branch_z_invert): Likewise.
11726         (branch_nz_normal): Likewise.
11727         (branch_nz_invert): Likewise.
11728         (call_internal_short): Add e3v5 register-indirect JARL support.
11729         (call_internal_long): Likewise.
11730         (call_value_internal_short): Likewise.
11731         (call_value_internal_long): Likewise.
11732         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11733         (mloop): New option.
11734         * config.gcc: Add support for configuring v840e3v5 target.
11735         * doc/invoke.texi: Document new v850 specific command line options.
11736
11737 2013-01-31  Paul Koning  <ni1d@arrl.net>
11738
11739         PR debug/55059
11740         PR debug/54508
11741         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11742         children if parent is a class.
11743         (prune_unused_types_prune): Don't add DW_AT_declaration.
11744
11745 2013-01-31  Richard Biener  <rguenther@suse.de>
11746
11747         PR tree-optimization/56157
11748         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11749         match up operand with SLP child.
11750
11751 2013-01-31  Jason Merrill  <jason@redhat.com>
11752
11753         PR debug/54410
11754         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11755         parameters the first time.
11756         (gen_scheduled_generic_parms_dies): Check completeness here.
11757
11758 2013-01-31  Richard Biener  <rguenther@suse.de>
11759
11760         PR middle-end/53073
11761         * common.opt (faggressive-loop-optimizations): New flag,
11762         enabled by default.
11763         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11764         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11765         infer_loop_bounds_from_undefined by it.
11766
11767 2013-01-31  Richard Biener  <rguenther@suse.de>
11768
11769         PR tree-optimization/56150
11770         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11771         visit virtual operands.
11772         (find_uses_to_rename_bb): Likewise.
11773
11774 2013-01-31  Richard Biener  <rguenther@suse.de>
11775
11776         PR tree-optimization/56150
11777         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11778         mixed store non-store stmts.
11779
11780 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11781
11782         PR sanitizer/55374
11783         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11784         LIBASAN_EARLY_SPEC is defined.
11785         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11786         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11787         before %o.
11788         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11789
11790         PR c++/55742
11791         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11792         invalid args instead of ICEing on it.
11793         (ix86_valid_target_attribute_tree): Return error_mark_node if
11794         ix86_valid_target_attribute_inner_p failed.
11795         (ix86_valid_target_attribute_p): Return false only if
11796         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11797         target("default") attribute.
11798         (sorted_attr_string): Change argument from const char * to tree,
11799         merge in all target attribute arguments rather than just one.
11800         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11801         instead of free.  Avoid using strcat.
11802         (ix86_mangle_function_version_assembler_name): Mangle
11803         target("default") as if no target attribute is present.  Adjust
11804         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11805         instead of xmalloc and XDELETEVEC instead of free.
11806         (ix86_function_versions): Don't return true if one of the decls
11807         doesn't have target attribute.  If they don't and one of the decls
11808         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11809         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11810         (ix86_supports_function_versions): Remove.
11811         (make_name): Fix up formatting.
11812         (make_dispatcher_decl): Remove resolver_name and its initialization.
11813         Avoid leaking memory.
11814         (is_function_default_version): Return true if there is
11815         target("default") attribute rather than no target attribute at all.
11816         (make_resolver_func): Avoid leaking memory.
11817         (ix86_generate_version_dispatcher_body): Likewise.
11818         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11819         * target.def (supports_function_versions): Remove.
11820         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11821         * doc/tm.texi: Regenerated.
11822
11823 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11824
11825         PR rtl-optimization/56144
11826         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11827         for values with side effects.
11828
11829 2013-01-30  Richard Biener  <rguenther@suse.de>
11830
11831         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11832         (sparseset_pop): Likewise.
11833         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11834         to be able to use quick_push in the worker loop.
11835
11836 2013-01-30  Marek Polacek  <polacek@redhat.com>
11837
11838         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11839
11840 2013-01-30  Richard Biener  <rguenther@suse.de>
11841
11842         PR lto/56147
11843         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11844
11845 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11846
11847         PR tree-optimization/56064
11848         * fixed-value.c (fixed_from_double_int): New function.
11849         * fixed-value.h (fixed_from_double_int): New prototype.
11850         (const_fixed_from_double_int): New static inline function.
11851         * fold-const.c (native_interpret_fixed): New static function.
11852         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11853         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11854         (native_encode_fixed): New static function.
11855         (native_encode_expr) <FIXED_CST>: Use it.
11856         (native_interpret_int): Move double_int worker code to...
11857         * double-int.c (double_int::from_buffer): ...this new static method.
11858         * double-int.h (double_int::from_buffer): Prototype it.
11859
11860 2013-01-30  Richard Biener  <rguenther@suse.de>
11861
11862         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11863         New pointer-map and obstack.
11864         (init_alias_vars): Allocate pointer-map and obstack.
11865         (delete_points_to_sets): Free them.
11866         (find_what_var_points_to): Cache result.
11867         (find_what_p_points_to): Adjust for changed interface of
11868         find_what_var_points_to.
11869         (compute_points_to_sets): Likewise.
11870         (ipa_pta_execute): Likewise.
11871
11872 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11873
11874         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11875         * configure: Regenerate.
11876         * config.in: Regenerate.
11877         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11878         #nobits/#progbits if supported.
11879
11880 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11881
11882         PR target/56121
11883         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11884         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11885         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11886
11887 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11888
11889         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11890         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11891
11892 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11893
11894         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11895         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11896
11897 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11898
11899         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11900         declaration.
11901         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11902         * config/arm/cortex-a7.md: New bypasses using
11903         arm_mac_accumulator_is_result.
11904
11905 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11906
11907         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11908         (cortex_a7_neon_mla): Likewise.
11909         (cortex_a7_fpfmad): New reservation.
11910         (cortex_a7_fpmacs): Use ffmas and update required units.
11911         (cortex_a7_fpmuld): Update required units and latency.
11912         (cortex_a7_fpmacd): Likewise.
11913         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11914         (cortex_a7_neon). Likewise.
11915         (bypass) Update participating units.
11916
11917 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11918
11919         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11920         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11921         from fmac to ffma.
11922         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11923         (vfp_fmul): Use ffmad.
11924         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11925         (cortex_r4_fmacd): Use ffmad.
11926         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11927         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11928         (cortex_a9_fmacd): Use ffmad.
11929         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11930         (cortex_a8_vfp_macd): Use ffmad.
11931         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11932         (cortex_a5_fpmacd): Use ffmad.
11933         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11934         (cortex_a15_vfp_macd): Use ffmad.
11935         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11936
11937 2013-01-29  Jason Merrill  <jason@redhat.com>
11938
11939         PR libstdc++/54314
11940         * varasm.c (default_assemble_visibility): Don't warn about
11941         visibility on artificial decls.
11942
11943 2013-01-29  Richard Biener  <rguenther@suse.de>
11944
11945         PR tree-optimization/56113
11946         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11947         the bitmap leader.
11948         (label_visit): Free duplicate bitmaps and record the leader instead.
11949         (perform_var_substitution): Adjust.
11950
11951 2013-01-29  Richard Biener  <rguenther@suse.de>
11952
11953         PR tree-optimization/55270
11954         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11955         the CFG, schedule loops for fixup.
11956
11957 2013-01-29  Nick Clifton  <nickc@redhat.com>
11958
11959         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11960         SP_REG.
11961
11962 2013-01-28  Leif Ekblad  <leif@rdos.net>
11963
11964         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11965         * config/i386/i386.h (TARGET_RDOS): New macro.
11966         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11967         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11968         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11969         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11970         DEFAULT_LARGE_SECTION_THRESHOLD.
11971         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11972         * config/i386/rdos.h: New file.
11973         * config/i386/rdos64.h: New file.
11974
11975 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11976
11977         PR other/54814
11978         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11979         TEST_HARD_REG_BIT.
11980
11981 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11982
11983         PR rtl-optimization/56117
11984         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11985         call cselib_lookup_from_insn on the MEM before calling
11986         add_insn_mem_dependence.
11987
11988 2013-01-28  Richard Biener  <rguenther@suse.de>
11989
11990         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11991         to a stmt that didn't have one.
11992         (copy_phis_for_bb): Likewise for PHI arguments.
11993         (copy_debug_stmt): Likewise for debug stmts.
11994
11995 2013-01-28  Richard Biener  <rguenther@suse.de>
11996
11997         PR tree-optimization/56034
11998         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11999         (partition_builtin_p): Adjust.
12000         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12001         it is the last partition.
12002         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12003         up the vertex for the definition.
12004         (classify_partition): Classify whether a partition is a
12005         PKIND_REDUCTION, thus has uses outside of the loop.
12006         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12007         Merge all PKIND_REDUCTION partitions into the last partition.
12008         (tree_loop_distribution): Seed partitions from reductions as well.
12009
12010 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12011
12012         PR tree-optimization/56125
12013         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12014         pow(x,c) into sqrt(x) * powi(x, n/2) or
12015         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12016         optimizing for size.
12017         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12018         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12019         integer.
12020
12021         PR tree-optimization/56094
12022         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12023         to UNKNOWN_LOCATION while gimplifying expr.
12024
12025 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12026
12027         PR target/56114
12028         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12029         operand 0 in movabs insn template for -masm=intel asm alternative.
12030         (*movabs<mode>_2): Ditto for operand 1.
12031
12032 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12033
12034         PR target/54663
12035         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12036         of microblaze-c.o
12037
12038 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12039
12040         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12041         tm_file.
12042
12043 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12044
12045         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12046         Undef to avoid warning.
12047
12048 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12049
12050         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12051         * configure: Regenerate.
12052
12053 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12054
12055         PR tree-optimization/56098
12056         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12057         for stmts with volatile ops.
12058         (cond_store_replacement): Don't optimize if assign has volatile ops.
12059         (cond_if_else_store_replacement_1): Don't optimize if either
12060         then_assign or else_assign have volatile ops.
12061         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12062         volatile ops.
12063
12064 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12065
12066         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12067
12068 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12069
12070         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12071         missing ':' in asm example.
12072
12073 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12074
12075         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12076         entries into lane and laneq entries.
12077         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12078         Remove AdvSIMD scalar modes.
12079         (aarch64_sq<r>dmulh_laneq<mode>): New.
12080         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12081         modes.
12082         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12083         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12084         * config/aarch64/iterators.md (VCOND): New.
12085         (VCONQ): New.
12086
12087 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12088
12089         PR target/54222
12090         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12091         Add NULL LIBNAME argument to existing definitions.
12092         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12093         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12094         * config/avr/avr.c (DEF_BUILTIN): Same.
12095         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12096         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12097         implementation is available (DECL_ASSEMBLER_NAME is set).
12098         (avr_fold_absfx): New static function.
12099         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12100         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12101         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12102         AVR_BUILTIN_ABSLLK.
12103         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12104         (abshk, absk, abslk, absllk): Provide as static inline functions.
12105
12106 2013-01-25  Marek Polacek  <polacek@redhat.com>
12107
12108         PR tree-optimization/56035
12109         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12110
12111 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12112
12113         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12114         (*movtf_internal_rex64): Add (!o,C) alternative
12115         (*movxf_internal_rex64): Ditto.
12116         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12117
12118 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12119
12120         * doc/invoke.texi: fix typo.
12121         * doc/objc.texi: fix typo.
12122
12123 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12124
12125         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12126         for the first two alternatives.
12127
12128 2013-01-24  Diego Novillo  <dnovillo@google.com>
12129
12130         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12131         (ggc-zone.o): Remove.
12132         * configure.ac: Remove option --with-gc.
12133         * configure: Re-generate.
12134         * doc/install.texi: Remove documentation for --with-gc.
12135         * gengtype.c (write_enum_defn): Remove.  Update all users.
12136         (write_Types_process_field): Remove generation of gt_e_* argument.
12137         (output_type_enum): Remove.  Update all users.
12138         (write_enum_defn): Remove.  Update all users.
12139         (enum alloc_zone): Remove.  Update all users.
12140         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12141         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12142         Update all callers.
12143         (struct ptr_data): Remove field TYPE.  Update all users.
12144         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12145         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12146         Update all users.
12147         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12148         (struct alloc_zone): Remove.
12149         (ggc_internal_alloc_zone_stat): Remove.
12150         (ggc_internal_cleared_alloc_zone_stat): Remove.
12151         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12152         (ggc_pch_count_object): Remove last argument.  Update all users.
12153         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12154         (struct alloc_zone): Remove.
12155         * ggc-zone.c: Remove.
12156         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12157         (struct alloc_zone): Remove.
12158         (ggc_alloc_typed_stat): Remove.
12159         (ggc_alloc_typed): Remove.
12160         (ggc_splay_alloc): Remove first argument.
12161         (rtl_zone): Remove.  Update all users.
12162         (tree_zone): Remove.  Update all users.
12163         (tree_id_zone): Remove.  Update all users.
12164         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12165         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12166         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12167         * tree-ssanames.c: Remove references to zone allocator in comments.
12168
12169 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12170
12171         * config/avr/avr.c (avr_out_fract): Make register numbers that
12172         might be outside of source operand signed.
12173
12174 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12175
12176         * config/i386/constraints.md (Yf): New constraint.
12177         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12178         of f constraint to conditionaly disable x87 register preferences.
12179         (*movdf_internal): Ditto.
12180         (*movsf_internal): Ditto.
12181
12182 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12183
12184         PR inline-asm/55934
12185         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12186         that have operands with impossible constraints.
12187         Add a FIXME for a speed-up opportunity.
12188         * lra-constraints.c (process_alt_operands): Verify that a class
12189         selected from constraints on asms is valid for the operand mode.
12190         (curr_insn_transform): Remove incorrect comment.
12191
12192 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12193
12194         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12195         TOC operand is a valid symbol ref in the constant pool.
12196
12197 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12198
12199         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12200
12201 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12202
12203         PR target/54222
12204         * config/avr/stdfix.h: New file.
12205         * t-avr (stdfix-gcc.h): New rule to build it.
12206         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12207
12208 2013-01-23  Kostya Serebryany  <kcc@google.com>
12209
12210         * config/darwin.h: remove dependency on
12211         CoreFoundation (asan on Mac OS).
12212
12213 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12214
12215         PR target/49069
12216         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12217         instead of cmpdi_operand for first comparison operand.
12218         Don't assert that comparison operands aren't both constants.
12219
12220 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12221
12222         * doc/install.texi (Downloading the Source): Update references to
12223         downloading separate components.
12224
12225 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12226
12227         * doc/extend.texi (__int128): Improve grammar.
12228
12229 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12230
12231         PR target/56028
12232         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12233         alternative to (o,r).
12234         (*movdi_internal_rex64): Remove (!o,n) alternative.
12235         (DImode immediate->memory splitter): Remove.
12236         (DImode immediate->memory peephole2): Remove.
12237         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12238         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12239         alternative to (!o,*r).
12240         (*movtf_internal_sse): New pattern.
12241         (*movxf_internal_rex64): New pattern.
12242         (*movxf_internal): Disable for TARGET_64BIT.
12243         (*movdf_internal_rex64): Remove (!o,F) alternative.
12244
12245 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12246
12247         PR middle-end/56074
12248         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12249         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12250         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12251         stmt locations where LOCATION_LOCUS of the stmt location is
12252         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12253
12254         PR target/55686
12255         * config/i386/i386.md (UNSPEC_STOS): New.
12256         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12257         *strsetqi_1): Add UNSPEC_STOS.
12258
12259 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12260
12261         PR c++/56067
12262         * doc/invoke.texi: Remove left over -Wsynth example.
12263
12264 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12265
12266         PR tree-optimization/56051
12267         * fold-const.c (fold_binary_loc): Don't fold
12268         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12269         a narrowing conversion, or widening conversion from signed
12270         to unsigned.
12271
12272 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12273
12274         PR rtl-optimization/56023
12275         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12276         dependent on debug instruction.
12277
12278 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12279
12280         PR middle-end/56022
12281         * function.c (allocate_struct_function): Call
12282         invoke_set_current_function_hook earlier.
12283
12284 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12285
12286         * reload1.c (init_reload): Only initialize reload_obstack
12287         during the first call.
12288
12289 2013-01-21  Marek Polacek  <polacek@redhat.com>
12290
12291         * cfgloop.c (verify_loop_structure): Fix up grammar.
12292
12293 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12294
12295         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12296         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12297
12298 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12299
12300         PR target/56058
12301         * config/arm/marvell-pj4.md: Update copyright year.
12302         Fix up use of alu to alu_reg and simple_alu_imm.
12303
12304 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12305
12306         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12307
12308 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12309
12310         PR target/55433
12311         * lra-constraints.c (curr_insn_transform): Don't reuse original
12312         insn for secondary memory move when memory mode should be different.
12313
12314 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12315
12316         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12317         atomic_storedi_1): New patterns.
12318
12319 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12320
12321         btver2 pipeline descriptions.
12322         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12323         descriptions.
12324         * config/i386/i386.md (btver2_decode): New type attributes.
12325         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12326         type attributes.
12327         * config/i386/btver2.md: New file describing btver2 pipelines.
12328
12329 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12330
12331         PR tree-optimization/52631
12332         * tree-ssa-sccvn (visit_use): Before looking up the original
12333         statement, try looking up the simplified expression.
12334
12335 2013-01-19  Anthony Green  <green@moxielogic.com>
12336
12337         * config/moxie/moxie.c (moxie_expand_prologue): Set
12338         current_function_static_stack_size.
12339
12340 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12341
12342         PR tree-optimization/56029
12343         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12344         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12345
12346 2013-01-18  Sharad Singhai  <singhai@google.com>
12347
12348         PR tree-optimization/55995
12349         * dumpfile.c (dump_loc): Print location only if available.
12350         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12351
12352 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12353
12354         PR target/55433
12355         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12356         secondary memory move.
12357         (inherit_reload_reg): Use rclass instead of cl for
12358         check_secondary_memory_needed_p.
12359
12360 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12361
12362         PR middle-end/56015
12363         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12364         the case where writing real complex part of target modifies op1.
12365
12366 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12367
12368         * config/aarch64/aarch64-simd.md
12369         (aarch64_vcond_internal<mode>): Handle unordered cases.
12370         * config/aarch64/iterators.md (v_cmp_result): New.
12371
12372 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12373             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12374
12375         * config/arm/marvell-pj4.md: New file.
12376         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12377         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12378         (generic_vfp): Likewise.
12379         * config/arm/arm-cores.def: Add marvell-pj4.
12380         * config/arm/arm-tune.md: Regenerate.
12381         * config/arm/arm-tables.opt: Regenerate.
12382         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12383         * doc/invoke.texi: Document marvell-pj4.
12384
12385 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12386
12387         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12388
12389 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12390
12391         PR debug/54114
12392         PR debug/54402
12393         PR debug/49888
12394         * var-tracking.c (negative_power_of_two_p): New.
12395         (global_get_addr_cache, local_get_addr_cache): New.
12396         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12397         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12398         heading comment.
12399         (vt_stack_offset_p): Remove.
12400         (vt_canon_true_dep): Always canonicalize loc's address.
12401         (clobber_overlapping_mems): Make sure we have a MEM.
12402         (local_get_addr_clear_given_value): New.
12403         (val_reset): Clear local cached entries.
12404         (compute_bb_dataflow): Create and release the local cache.
12405         Disable duplicate MEMs clobbering.
12406         (emit_notes_in_bb): Clobber MEMs likewise.
12407         (vt_emit_notes): Create and release the local cache.
12408         (vt_initialize, vt_finalize): Create and release the global
12409         cache, respectively.
12410         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12411
12412 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12413
12414         PR libmudflap/53359
12415         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12416         not found in the symtab.
12417
12418 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12419
12420         PR debug/56006
12421         PR rtl-optimization/55547
12422         PR rtl-optimization/53827
12423         PR debug/53671
12424         PR debug/49888
12425         * alias.c (offset_overlap_p): New, factored out of...
12426         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12427         the conservative special case for symbolic constants.  Don't
12428         adjust zero sizes on alignment.
12429
12430 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12431
12432         PR rtl-optimization/52573
12433         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12434         REG_UNUSED for the same register.
12435
12436 2013-01-17  Richard Biener  <rguenther@suse.de>
12437             Marek Polacek  <polacek@redhat.com>
12438
12439         PR rtl-optimization/55833
12440         * loop-unswitch.c (unswitch_loops): Move loop verification...
12441         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12442         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12443         Set it to true when we're removing a loop from hierarchy tree in
12444         an irreducible region.
12445         (fix_bb_placements): Adjust caller.
12446         (fix_loop_placements): Likewise.
12447
12448 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12449
12450         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12451         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12452         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12453         Remove ID.  Adjust comments.
12454         * config/avr/avr-c.c (avr_builtin_name): Remove.
12455         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12456         * config/avr/avr.c (avr_tolower): New static function.
12457         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12458         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12459         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12460         default expansion.
12461
12462 2013-01-17  Jan Hubicka  <jh@suse.cz>
12463
12464         PR tree-optimization/55273
12465         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12466
12467 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12468
12469         PR target/55981
12470         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12471         store through atomic_store<mode>_1.
12472         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12473
12474 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12475
12476         PR tree-optimizations/55264
12477         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12478         for virtual methods.
12479         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12480         virtual methods before inlining is over.
12481         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12482         virtual functions.
12483         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12484         non-virtual.
12485
12486 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12487
12488         PR rtl-optimization/56005
12489         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12490         pending reads for prefetch.
12491
12492 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12493
12494         * config/aarch64/aarch64.md
12495         (*cstoresi_neg_uxtw): New pattern.
12496         (*cmovsi_insn_uxtw): New pattern.
12497         (*<optab>si3_uxtw): New pattern.
12498         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12499         (*<optab>si3_insn_uxtw): New pattern.
12500         (*bswapsi2_uxtw): New pattern.
12501
12502 2013-01-16  Richard Biener  <rguenther@suse.de>
12503
12504         * tree-inline.c (tree_function_versioning): Remove set but
12505         never used variable.
12506
12507 2013-01-16  Richard Biener  <rguenther@suse.de>
12508
12509         PR tree-optimization/55964
12510         * tree-flow.h (rename_variables_in_loop): Remove.
12511         (rename_variables_in_bb): Likewise.
12512         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12513         (copy_loop_before): Adjust and delete update-ssa status.
12514         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12515         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12516         (rename_variables_in_loop): Remove.
12517         (slpeel_update_phis_for_duplicate_loop): Likewise.
12518         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12519         use available cfg machinery instead of duplicating it.
12520         Update PHI nodes and perform poor-mans SSA update here.
12521         (slpeel_tree_peel_loop_to_edge): Adjust.
12522
12523 2013-01-16  Richard Biener  <rguenther@suse.de>
12524
12525         PR tree-optimization/54767
12526         PR tree-optimization/53465
12527         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12528         (vrp_visit_phi_node): For PHI arguments coming via backedges
12529         drop all symbolical range information.
12530         (execute_vrp): Compute backedges.
12531
12532 2013-01-16  Richard Biener  <rguenther@suse.de>
12533
12534         * doc/install.texi: Update CLooG and ISL requirements to
12535         0.18.0 and 0.11.1.
12536
12537 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12538
12539         PR target/55301
12540         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12541         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12542         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12543
12544 2013-01-16  DJ Delorie  <dj@redhat.com>
12545
12546         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12547         (UNSPECV_SP_SWITCH_E): New.
12548         (sp_switch_1): Change to an unspec.
12549         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12550         replace $r15.
12551
12552 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12553
12554         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12555         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12556         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12557         (expand_mem_thread_fence): Ditto.
12558         (expand_mem_signal_fence): Ditto.
12559         (expand_atomic_load): Ditto.
12560         (expand_atomic_store): Ditto.
12561
12562 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12563
12564         PR rtl-optimization/55547
12565         PR rtl-optimization/53827
12566         PR debug/53671
12567         PR debug/49888
12568         * alias.c (memrefs_conflict_p): Set sizes to negative after
12569         AND adjustments.
12570
12571 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12572
12573         PR target/55940
12574         * function.c (thread_prologue_and_epilogue_insns): Always
12575         add crtl->drap_reg to set_up_by_prologue.set, even if
12576         stack_realign_drap is false.
12577
12578 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12579
12580         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12581         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12582         *call): Fix indention.
12583
12584 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12585
12586         PR target/55876
12587         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12588         Update comment.
12589
12590 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12591
12592         PR rtl-optimization/55153
12593         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12594
12595 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12596
12597         PR tree-optimization/55920
12598         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12599         accesses as grp_to_be_debug_replaced.
12600
12601 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12602
12603         PR tree-optimization/55920
12604         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12605         there is non-useless type conversion needed from debug rhs to lhs,
12606         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12607
12608 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12609             Mikael Pettersson  <mikpe@it.uu.se>
12610
12611         PR target/43961
12612         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12613         Thumb.
12614         (ASM_OUTPUT_CASE_LABEL): Remove.
12615         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12616         * final.c (shorten_branches): Update alignment of labels before
12617         jump tables if CASE_VECTOR_SHORTEN_MODE.
12618
12619 2013-01-15  Richard Biener  <rguenther@suse.de>
12620
12621         PR bootstrap/55961
12622         * system.h: Do not include gmp.h for building host tools.
12623
12624 2013-01-15  Richard Biener  <rguenther@suse.de>
12625
12626         PR middle-end/55882
12627         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12628         account for bitpos when computing alignment.
12629
12630 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12631
12632         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12633         (ix86_target_macros_internal): Likewise.
12634
12635         * config/i386/i386.c (m_CORE2I7): Removed.
12636         (m_CORE_HASWELL): New macro.
12637         (m_CORE_ALL): Likewise.
12638         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12639         (initial_ix86_arch_features): Likewise.
12640         (processor_target_table): Initializations for Core avx2.
12641         (cpu_names): New names "core-avx2".
12642         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12643         PROCESSOR_CORE_HASWELL.
12644         (ix86_issue_rate): New case.
12645         (ia32_multipass_dfa_lookahead): Likewise.
12646         (ix86_sched_init_global): Likewise.
12647
12648         * config/i386/i386.h (TARGET_HASWELL): New macro.
12649         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12650         (processor_type): New PROCESSOR_HASWELL.
12651
12652 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12653
12654         PR tree-optimization/55955
12655         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12656         *SHIFT_EXPR and *ROTATE_EXPR codes.
12657
12658         PR tree-optimization/48766
12659         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12660         -ftrapv disable -fwrapv.
12661
12662 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12663
12664         PR target/55974
12665         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12666         etc. to 1 and not to __flash.
12667         Use LL suffix for __INT24_MAX__ with -mint8.
12668         Use ULL suffix for __UINT24_MAX__ with -mint8.
12669
12670 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12671
12672         * config/avr/avr-arch.h
12673         (struct base_arch_s): Use typedef avr_arch_t instead.
12674         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12675         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12676         * config/avr/avr.c: Same.
12677         * config/avr/avr-devices.c: Same.
12678         * config/avr/driver-avr.c: Same.
12679         * config/avr/gen-avr-mmcu-texi.c: Same.
12680         * config/avr/avr-mcus.def: Adjust comment.
12681
12682 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12683
12684         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12685         * config/aarch64/iterators.md (VALLDI): New.
12686
12687 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12688             Andi Kleen  <ak@linux.intel.com>
12689
12690         PR target/55948
12691         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12692         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12693         memmodel flag.
12694
12695 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12696
12697         * config/avr/avr-stdint.h: Remove trailing blanks.
12698         * config/avr/avr-log.h: Same.
12699         * config/avr/avr-arch.h: Same.
12700         * config/avr/avr-devices.c: Same.
12701         * config/avr/avr-dimode.md: Same.
12702         * config/avr/predicates.md: Same.
12703         * config/avr/avr-c.c: Same.  And fix typo.
12704
12705         * config/avr/avr-protos.h: Same.  And:
12706         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12707         (init_cumulative_args): Rename to avr_init_cumulative_args.
12708         (expand_prologue): Rename to avr_expand_prologue.
12709         (expand_epilogue): Rename to avr_expand_epilogue.
12710         (adjust_insn_length): Rename to avr_adjust_insn_length.
12711         (notice_update_cc): Rename to avr_notice_update_cc.
12712         (final_prescan_insn): Rename to avr_final_prescan_insn.
12713         * config/avr/avr.c: Same.
12714         * config/avr/avr.h: Same.
12715         * config/avr/avr.md: Remove trailing blanks.
12716         (prologue): Use avr_expand_prologue.
12717         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12718
12719 2013-01-14  Richard Biener  <rguenther@suse.de>
12720
12721         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12722         verify_location, collect_subblocks): New functions.
12723         (verify_gimple_in_cfg): Verify that locations only reference
12724         BLOCKs in the functions BLOCK tree.
12725
12726 2013-01-14  Richard Biener  <rguenther@suse.de>
12727
12728         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12729         PHI argument.
12730         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12731         unshare reference.
12732         (insert_out_of_ssa_copy_on_edge): Likewise.
12733         (rewrite_close_phi_out_of_ssa): Likewise.
12734         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12735         debug expressions.
12736         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12737         propagated constants.
12738         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12739         can not be shared.
12740
12741 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12742
12743         * config/avr/avr-modes.def: Add GPL copyright notice.
12744
12745 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12746
12747         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12748         MEMMODEL_MASK to determine memory model.
12749         (atomic_store<mode>): Ditto from operands[2].
12750         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12751
12752 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12753
12754         PR fortran/55935
12755         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12756         (fold_gimple_assign): Don't call unshare_expr here.
12757         (fold_ctor_reference): Call unshare_expr.
12758
12759 2013-01-13  Terry Guo  <terry.guo@arm.com>
12760
12761         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12762         * doc/fragments.texi: Document MULTILIB_REUSE.
12763         * gcc.c (multilib_reuse): New internal spec.
12764         (set_multilib_dir): Also search multilib from multilib_reuse.
12765         * genmultilib (tmpmultilib3): Refactor code.
12766         (tmpmultilib4): Ditto.
12767         (multilib_reuse): New multilib argument.
12768
12769 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12770
12771         * Makefile.in: Update copyright.
12772
12773 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12774
12775         PR middle-end/55890
12776         * calls.c (expand_call): Check if arg_nr is valid.
12777
12778 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12779
12780         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12781         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12782         documentation.  Add missing '__' in front of
12783         __builtin_ia32_packssdw256.
12784
12785 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12786
12787         PR target/55719
12788         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12789         NO_REGS for larl operands.
12790         (s390_reload_larl_operand): Use s390_load_address instead of
12791         emit_move_insn.
12792
12793 2013-01-11  Richard Biener  <rguenther@suse.de>
12794
12795         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12796         (verify_node_sharing): ... here.
12797         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12798
12799 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12800
12801         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12802         Substitute TREECHECKING.
12803         * configure: Regenerate.
12804         * Makefile.in (TREECHECKING): New.
12805
12806 2013-01-11  Richard Guenther  <rguenther@suse.de>
12807
12808         PR tree-optimization/44061
12809         * tree-vrp.c (extract_range_basic): Compute zero as
12810         value-range for __builtin_constant_p of function parameters.
12811
12812 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12813
12814         Update copyright years.
12815
12816 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12817
12818         PR rtl-optimization/55672
12819         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12820         const to be eliminable.
12821
12822 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12823
12824         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12825         * configure: Regenerate.
12826
12827 2013-01-10  Richard Biener  <rguenther@suse.de>
12828
12829         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12830
12831 2013-01-10  Richard Biener  <rguenther@suse.de>
12832
12833         PR bootstrap/55792
12834         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12835         locations for virtual PHI arguments.
12836         (rewrite_update_phi_arguments): Likewise.
12837
12838 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12839
12840         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12841         on to assembler.
12842
12843 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12844
12845         PR tree-optimization/55921
12846         * tree-complex.c (expand_complex_asm): New function.
12847         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12848
12849 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12850
12851         PR target/55718
12852         * config/s390/s390.c (s390_symref_operand_p)
12853         (s390_loadrelative_operand_p): Merge the two functions.
12854         (s390_check_qrst_address, print_operand_address): Add parameters
12855         to s390_loadrelative_operand_p invokation.
12856         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12857         (s390_reload_larl_operand, s390_secondary_reload): Use
12858         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12859         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12860
12861 2013-01-09  Mike Stump  <mikestump@comcast.net>
12862
12863         * dse.c (record_store): Remove unnecessary assert.
12864
12865 2013-01-09  Jan Hubicka  <jh@suse.cz>
12866
12867         PR tree-optimization/55569
12868         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12869         * cfgloop.h (scale_loop_profile): Likewise.
12870
12871 2013-01-09  Jan Hubicka  <jh@suse.cz>
12872
12873         PR lto/45375
12874         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12875         functions.
12876         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12877
12878 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12879
12880         PR middle-end/55114
12881         * expr.h (maybe_emit_group_store): Declare.
12882         * expr.c (maybe_emit_group_store): New function.
12883         * builtins.c (expand_builtin_int_roundingfn): Call it.
12884         (expand_builtin_int_roundingfn_2): Likewise.
12885
12886 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12887
12888         PR rtl-optimization/55829
12889         * lra-constraints.c (match_reload): Add code for absent output.
12890         (curr_insn_transform): Add code for reloads of matched inputs
12891         without output.
12892
12893 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12894
12895         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12896         attribute of movddup insn to DF.
12897         (*vec_interleave_lowv2df): Ditto.
12898         (vec_dupv2df): Ditto.
12899
12900 2013-01-09  Jan Hubicka  <jh@suse.cz>
12901
12902         PR tree-optimiation/55875
12903         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12904         EVERY_ITERATION parameter.
12905         (number_of_iterations_exit): Check if exit is executed every iteration.
12906         (idx_infer_loop_bounds): Similarly here.
12907         (n_of_executions_at_most): Simplify
12908         to only test for cases where statement is dominated by the
12909         particular bound; handle correctly the "postdominance" test.
12910         (scev_probably_wraps_p): Use max loop iterations info
12911         as a global bound first.
12912
12913 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12914             Nick Clifton  <nickc@redhat.com>
12915
12916         * config/v850/v850.md (cbranchsf4): New pattern.
12917         (cstoresf4): New pattern.
12918         (cbranchdf4): New pattern.
12919         (cstoredf4): New pattern.
12920         (movsicc): Disallow floating point comparisons.
12921         (cmpsf_le_insn): Fix order of operators.
12922         (cmpsf_lt_insn): Likewise.
12923         (cmpsf_eq_insn): Likewise.
12924         (cmpdf_le_insn): Likewise.
12925         (cmpdf_lt_insn): Likewise.
12926         (cmpdf_eq_insn): Likewise.
12927         (cmpsf_ge_insn): Use LE comparison.
12928         (cmpdf_ge_insn): Likewise.
12929         (cmpsf_gt_insn): Use LT comparison.
12930         (cmpdf_gt_insn): Likewise.
12931         (cmpsf_ne_insn): Delete pattern.
12932         (cmpdf_ne_insn): Delete pattern.
12933         * config/v850/v850.c (v850_gen_float_compare): Use
12934         gen_cmpdf_eq_insn for NE comparison.
12935         (v850_float_z_comparison_operator)
12936         (v850_float_nz_comparison_operator): Move from here ...
12937         * config/v850/predicates.md: ... to here.  Move GT and GE
12938         comparisons into v850_float_z_comparison_operator.
12939         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12940         Delete prototype.
12941         (v850_float_nz_comparison_operator): Likewise.
12942
12943 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12944
12945         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12946         with calls to gen_insvsi/gen_insvdi.
12947
12948 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12949
12950         * config/i386/i386.c (initial_ix86_tune_features): Set up
12951         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12952
12953 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12954             Jakub Jelinek  <jakub@redhat.com>
12955
12956         PR tree-optimization/48189
12957         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12958         If nitercst is 0, don't predict the exit edge.
12959
12960 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12961
12962         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12963         in asm_fprintf with reg_names.
12964         (aarch64_print_operand_address): Likewise.
12965         (aarch64_return_addr): Likewise.
12966         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12967
12968 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12969
12970         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12971         (INT_U6_BITS): Likewise.
12972         * config/pa/predicates.md (uint6_operand): New predicate.
12973         (shift5_operand, shift6_operand): Likewise.
12974         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12975         arith32_operand.
12976         (lshrdi3): Use shift6_operand.
12977         (shrpsi4, shrpdi4): New insn patterns.
12978         (extzv): Delete expander.
12979         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12980         predicates in unamed zero extract patterns.  Tighten common constraint.
12981         (extv): Delete expander.
12982         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12983         predicates in unamed sign extract patterns.  Tighten common constraint.
12984         (insv): Delete expander.
12985         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12986         predicates in unamed insert patterns.  Tighten common constraint.
12987         Change uint32_operand predicate to uint6_operand predicate in unamed
12988         DImode pattern to insert constant values of type 1...1xxxx.
12989
12990 2013-01-04  Jan Hubicka  <jh@suse.cz>
12991
12992         PR tree-optimization/55823
12993         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12994         issue.
12995
12996 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12997             Uros Bizjak  <ubizjak@gmail.com>
12998
12999         PR rtl-optimization/55845
13000         * df-problems.c (can_move_insns_across): Stop scanning at
13001         volatile_insn_p source instruction or give up if
13002         across_from .. across_to range contains any volatile_insn_p
13003         instructions.
13004
13005 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13006
13007         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13008         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13009         Declare.
13010         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13011         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13012
13013 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13014
13015         PR fortran/55341
13016         * asan.c (asan_clear_shadow): New function.
13017         (asan_emit_stack_protection): Use it.
13018
13019 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13020
13021         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13022         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13023         with tab instead of space.
13024
13025 2013-01-08  Nick Clifton  <nickc@redhat.com>
13026
13027         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13028         register bank 0 at the start of an interrupt handler.
13029         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13030         MDBH registers.
13031
13032 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13033
13034         * config/aarch64/aarch64-simd.md
13035         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13036         (aarch64_simd_bsl): Likewise.
13037         (aarch64_vcond_internal<mode>): Likewise.
13038         (vcond<mode><mode>): Likewise.
13039         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13040         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13041
13042 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13043
13044         * config/aarch64/aarch64-builtins.c
13045         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13046
13047 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13048
13049         PR debug/55579
13050         * tree-sra.c (analyze_access_subtree): Return true also after
13051         potentially creating a debug-only replacement.
13052
13053 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13054
13055         PR middle-end/55890
13056         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13057
13058         PR tree-optimization/54120
13059         * tree-vrp.c (range_fits_type_p): Don't allow
13060         src_precision < precision from signed vr to unsigned_p
13061         if vr->min or vr->max is negative.
13062         (simplify_float_conversion_using_ranges): Test can_float_p
13063         against CODE_FOR_nothing.
13064
13065 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13066             Richard Biener  <rguenther@suse.de>
13067
13068         PR middle-end/55851
13069         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13070         types instead of just INTEGER_TYPE types.
13071
13072 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13073
13074         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13075         TF_SIZE): Define.
13076
13077 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13078
13079         PR target/42661
13080         * config/mips/mips.opt: Change mad to mmad to match documentation.
13081
13082 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13083
13084         PR target/55897
13085         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13086         .progmemx.data now.
13087
13088 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13089
13090         PR target/55897
13091         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13092         (avr_addrspace_t): Add .section_name field.
13093         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13094         array size.
13095         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13096         NULL entry.  Put __memx into .progmemx.data.
13097         (progmem_section_prefix): Remove.
13098         (avr_asm_init_sections): No need to initialize progmem_section.
13099         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13100         section name prefix.
13101         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13102         retrieve the progmem section.
13103         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13104         boundary to run over avr_addrspace[].
13105         (avr_register_target_pragmas): Ditto.
13106
13107 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13108
13109         * varasm.c (output_constant_def_contents): For asan_protect_global
13110         protected strings, adjust DECL_ALIGN if needed, before testing for
13111         anchored symbols.
13112         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13113         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13114         normal decls.
13115         (output_object_block): For asan protected decls, emit asan padding
13116         after their contents.
13117         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13118         (asan_finish_file): Test it here instead.
13119
13120 2013-01-07  Nick Clifton  <nickc@redhat.com>
13121             Matthias Klose  <doko@debian.org>
13122             Doug Kwan  <dougkwan@google.com>
13123             H.J. Lu  <hongjiu.lu@intel.com>
13124
13125         PR driver/55470
13126         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13127
13128         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13129
13130         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13131
13132         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13133
13134         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13135
13136 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13137
13138         PR target/54461
13139         * doc/install.texi (Cross-Compiler-Specific Options): Document
13140         --with-avrlibc.
13141
13142 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13143
13144         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13145         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13146         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13147         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13148         vqmovun_high_s64): Fix source operand number and update copyright.
13149
13150 2013-01-07  Richard Biener  <rguenther@suse.de>
13151
13152         PR middle-end/55890
13153         * gimple.h (gimple_call_builtin_p): New overload.
13154         * gimple.c (validate_call): New function.
13155         (gimple_call_builtin_p): Likewise.
13156         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13157         Use gimple_call_builtin_p.
13158         (find_func_clobbers): Likewise.
13159         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13160         (strlen_optimize_stmt): Likewise.
13161
13162 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13163
13164         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13165         (vld1q_dup_*): Likewise.
13166         (vld1_*): Likewise.
13167         (vld1q_*): Likewise.
13168         (vld1_lane_*): Likewise.
13169         (vld1q_lane_*): Likewise.
13170
13171 2013-01-07  Richard Biener  <rguenther@suse.de>
13172
13173         * lto-streamer.h (LTO_minor_version): Bump to 2.
13174
13175 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13176
13177         * config/aarch64/aarch64-protos.h
13178         (aarch64_const_double_zero_rtx_p): Rename to...
13179         (aarch64_float_const_zero_rtx_p): ...this.
13180         (aarch64_float_const_representable_p): New.
13181         (aarch64_output_simd_mov_immediate): Likewise.
13182         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13183         move immediate case.
13184         * config/aarch64/aarch64.c
13185         (aarch64_const_double_zero_rtx_p): Rename to...
13186         (aarch64_float_const_zero_rtx_p): ...this.
13187         (aarch64_print_operand): Allow printing of new constants.
13188         (aarch64_valid_floating_const): New.
13189         (aarch64_legitimate_constant_p): Check for valid floating-point
13190         constants.
13191         (aarch64_simd_valid_immediate): Likewise.
13192         (aarch64_vect_float_const_representable_p): New.
13193         (aarch64_float_const_representable_p): Likewise.
13194         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13195         (aarch64_output_simd_mov_immediate): New.
13196         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13197         (*movdf_aarch64): Likewise.
13198         * config/aarch64/constraints.md (Ufc): New.
13199         (Y): call aarch64_float_const_zero_rtx.
13200         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13201
13202 2013-01-07  Richard Biener  <rguenther@suse.de>
13203
13204         PR tree-optimization/55888
13205         PR tree-optimization/55862
13206         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13207         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13208         not if it is contained therein.
13209
13210 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13211
13212         * config/avr/t-avr: Typo.
13213
13214 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13215
13216         PR55243
13217         * config/avr/t-avr: Don't automatically rebuild
13218         $(srcdir)/config/avr/t-multilib
13219         $(srcdir)/config/avr/avr-tables.opt
13220         $(srcdir)/doc/avr-mmcu.texi
13221         (avr-mcus): New phony target to build them on request.
13222         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13223         * avr/avr-mcus.def: Adjust comments.
13224
13225 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13226
13227         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13228
13229 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13230
13231         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13232
13233 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13234
13235         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13236
13237 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13238
13239         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13240         to generate profiling.
13241         * config/rs6000/aix64.h (LIB_SPEC): Same.
13242
13243 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13244
13245         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13246         New function.
13247         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13248
13249 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13250
13251         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13252         unconditionally.
13253         (ix86_expand_move): Ditto.
13254         (ix86_zero_extend_to_Pmode): Ditto.
13255         (ix86_expand_call): Ditto.
13256         (ix86_expand_special_args_builtin): Ditto.
13257         (ix86_expand_builtin): Ditto.
13258
13259 2013-01-04  Richard Biener  <rguenther@suse.de>
13260
13261         PR tree-optimization/55862
13262         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13263         translating them through PHI nodes.
13264
13265 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13266
13267         PR tree-optimization/55755
13268         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13269         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13270
13271 2013-01-04  Marek Polacek  <polacek@redhat.com>
13272
13273         PR middle-end/55859
13274         * opts.c (default_options_optimization): Clarify error message.
13275
13276 2013-01-04  Richard Biener  <rguenther@suse.de>
13277
13278         PR middle-end/55863
13279         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13280         reassociation.
13281
13282 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13283
13284         PR target/53789
13285         * config/pa/pa.md (movsi): Revert previous change.
13286         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13287         references.
13288
13289 2013-01-03  Richard Henderson  <rth@redhat.com>
13290
13291         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13292         after eliminating TLS symbols.
13293
13294 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13295
13296         PR bootstrap/50167
13297         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13298         * graphite-poly.c (debug_gmp_value): Likewise.
13299
13300 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13301
13302         PR target/55712
13303         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13304         selected code model, define __code_mode_small__, __code_model_medium__,
13305         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13306         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13307         xchg temporary register with %k.  Declare temporary register as
13308         early clobbered.
13309         [__x86_64__]: For medium and large code models, preserve %rbx register.
13310
13311 2013-01-03  Richard Biener  <rguenther@suse.de>
13312
13313         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13314         (dump_subscript): Adjust.
13315         (finalize_ddr_dependent): Do not dump redundant info.
13316         (analyze_siv_subscript): Adjust.
13317         (subscript_dependence_tester): Likewise.
13318         (compute_affine_dependence): Likewise.
13319
13320 2013-01-03  Richard Biener  <rguenther@suse.de>
13321
13322         Revert
13323         2013-01-03  Richard Biener  <rguenther@suse.de>
13324
13325         PR tree-optimization/55857
13326         * tree-vect-stmts.c (vectorizable_load): Do not setup
13327         re-alignment for invariant loads.
13328
13329         2013-01-02  Richard Biener  <rguenther@suse.de>
13330
13331         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13332         invariant load do not generate a vector load from the scalar location.
13333
13334 2013-01-03  Richard Biener  <rguenther@suse.de>
13335
13336         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13337         for not vectorizing.
13338         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13339         not build INDIRECT_REFs, call get_name once only.
13340         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13341         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13342
13343 2013-01-03  Richard Biener  <rguenther@suse.de>
13344
13345         PR tree-optimization/55857
13346         * tree-vect-stmts.c (vectorizable_load): Do not setup
13347         re-alignment for invariant loads.
13348
13349 2013-01-03  Richard Biener  <rguenther@suse.de>
13350
13351         PR lto/55848
13352         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13353         prefer a built-in decl.
13354
13355 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13356
13357         * gcc.c (process_command): Update copyright notice dates.
13358         * gcov.c (print_version): Likewise.
13359         * gcov-dump.c (print_version): Likewise.
13360
13361         PR rtl-optimization/55838
13362         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13363         iv0.step, iv1.step and step.
13364
13365 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13366             Marc Glisse  <marc.glisse@inria.fr>
13367
13368         PR tree-optimization/55832
13369         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13370         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13371         integer_{one,zero}_node.
13372
13373 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13374
13375         PR debug/54402
13376         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13377         * var-tracking.c (reverse_op): Don't add reverse ops to
13378         VALUEs that have already
13379         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13380
13381 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13382
13383         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13384
13385 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13386
13387         * dumpfile.c (dump_loc): Print filename with location.
13388         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13389         new location_t parameter to emit complete unroll message with
13390         new dump framework.
13391         (canonicalize_loop_induction_variables): Compute loops location
13392         and pass to try_unroll_loop_completely.
13393         * loop-unroll.c (report_unroll_peel): New function.
13394         (peel_loops_completely): Use new dump format with location
13395         for main dumpfile message, and invoke report_unroll_peel on success.
13396         (decide_unrolling_and_peeling): Ditto.
13397         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13398         by report_unroll_peel.
13399         (decide_peel_completely): Ditto.
13400         (decide_unroll_constant_iterations): Ditto.
13401         (decide_unroll_runtime_iterations): Ditto.
13402         (decide_peel_simple): Ditto.
13403         (decide_unroll_stupid): Ditto.
13404         * cfgloop.c (get_loop_location): New function.
13405         * cfgloop.h (get_loop_location): Declare.
13406
13407 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13408
13409         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13410         NULL.
13411
13412 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13413
13414         PR middle-end/55198
13415         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13416         BLKmode objects when EXPAND_MEMORY is specified.
13417
13418 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13419
13420         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13421         in loop predicate.
13422         (fold_builtin_cpu): Do not share cpu model decls across statements.
13423
13424 2013-01-02  Jason Merrill  <jason@redhat.com>
13425
13426         PR c++/55804
13427         * tree.c (build_array_type_1): Revert earlier change.
13428
13429 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13430
13431         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13432         "cortex-a57".
13433         * config/aarch64/aarch64-tune.md: Re-generate.
13434
13435 2013-01-02  Richard Biener  <rguenther@suse.de>
13436
13437         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13438         invariant load do not generate a vector load from the scalar location.
13439
13440 2013-01-02  Richard Biener  <rguenther@suse.de>
13441
13442         PR bootstrap/55784
13443         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13444         * configure: Regenerate.
13445
13446 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13447
13448         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13449         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13450         (expand_builtin_int_roundingfn_2): Keep the original target around
13451         for the fallback case.
13452
13453 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13454
13455         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13456         to be clear for sign changes.
13457
13458 2013-01-01  Jan Hubicka  <jh@suse.cz>
13459
13460         * ipa-inline-analysis.c: Fix formatting.
13461
13462 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13463
13464         PR tree-optimization/55831
13465         * tree-vect-loop.c (get_initial_def_for_induction): Use
13466         gsi_after_labels instead of gsi_start_bb.
13467 \f
13468 Copyright (C) 2013 Free Software Foundation, Inc.
13469
13470 Copying and distribution of this file, with or without modification,
13471 are permitted in any medium without royalty provided the copyright
13472 notice and this notice are preserved.