2013-06-20 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobcaf85d197560931ba86b6a7b17a4f4ff8f218a19
1 2013-06-20  Richard Biener  <rguenther@suse.de>
3         * data-streamer-in.c (streamer_read_uhwi): Optimize single
4         byte case, inline streamer_read_uchar and defer section
5         overrun check.
7 2013-06-20  Richard Biener  <rguenther@suse.de>
9         PR tree-optimization/57584
10         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
11         SSA names into the expanded expression that take part in
12         abnormal coalescing.
14 2013-06-19    <singhai@google.com>
16         * gcov.c (print_usage): Handle new option.
17         (process_args): Ditto.
18         (get_gcov_intermediate_filename): New function.
19         (output_intermediate_file): New function.
20         (output_gcov_file): New function
21         (generate_results): Handle new option.
22         (release_function): Relase demangled name.
23         (read_graph_file): Handle demangled name.
24         (output_lines): Ditto.
25         * doc/gcov.texi: Document gcov intermediate format.
27 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
29         PR bootstrap/57604
30         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
31         (lra_emit_add): Use the functions.  Add comment about Y as an
32         address segment.
34 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
36         PR driver/57652
37         * collect2.c (collect_atexit): New.
38         (collect_exit): Delete.
39         (main): Register collect_atexit with atexit.
40         (collect_wait): Change collect_exit to exit.
41         (do_wait): Same.
42         * collect2.h (collect_exit): Delete.
43         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
45 2013-06-19  Wei Mi  <wmi@google.com>
47         PR rtl-optimization/57518
48         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
49         if regno is used in paradoxical subreg.
50         (update_equiv_regs): Check pdx_subregs[regno] before
51         set a reg to be equivalent with a mem.
53 2013-06-19  Matthias Klose  <doko@ubuntu.com>
55         PR driver/57651
56         * file-find.h (find_a_file): Add a mode parameter.
57         * file-find.c (find_a_file): Likewise.
58         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
59         with X_OK for the executables.
60         * collect2.c (main): Call find_a_file with X_OK.
62 2013-06-19  Steve Ellcey  <sellcey@mips.com>
64         PR target/56942
65         * config/mips/mips.md (casesi_internal_mips16_<mode>):
66         Use NEXT_INSN instead of next_real_insn.
68 2013-06-19  Jan Hubicka  <jh@suse.cz>
70         * cgraph.h (const_value_known_p): Replace by ...
71         (ctor_for_folding): .. this one.
72         * cgraphunit.c (process_function_and_variable_attributes): Use it.
73         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
74         * expr.c (expand_expr_real_1): Likewise.
75         (string_constant): Likewise.
76         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
77         * ipa.c (process_references): Likewise.
78         (symtab_remove_unreachable_nodes): Likewise.
79         * ipa-inline-analysis.c (param_change_prob): Likewise.
80         * gimple-fold.c (canonicalize_constructor_val): Likewise.
81         (get_base_constructor): Likwise.
82         * varpool.c (varpool_remove_node): Likewise.
83         (varpool_remove_initializer): LIkewise.
84         (dump_varpool_node): LIkwise.
85         (const_value_known_p): Rewrite to ...
86         (ctor_for_folding): ... this one.
88 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
90         PR driver/57651
91         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
92         PERSONALITY in $PATH derived prefixes.
94 2013-06-19  Jeff Law  <law@redhat.com>
96         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
97         in comment.
99         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
100         (simplify_bitwise_binary): Use it to simpify certain binary ops on
101         booleans.
103 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
105         * config/arm/vfp.md: Move VFP instruction classification documentation
106         to ...
107         * config/arm/arm.md: ... here.  Update instruction classification
108         documentation.
110 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
112         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
113         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
114         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
116 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
118         PR target/57609
119         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
120         with NEXT_INSN.  Use tablejump_p to check for jump table data
121         insns.
123 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
125         PR c++/56544
126         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
127         that now in C++ the value is correct per the C++ standards.
129 2013-06-19  Richard Biener  <rguenther@suse.de>
131         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
132         for global context.
134 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
136         Revert:
137         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
139         PR target/57609
140         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
141         with next_active_insn.
143 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
145         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
146         functions are inlined during failures to flag an error.
147         * tree-inline.c (expand_call_inline): Allow the error to be flagged
148         in early inline pass.
150 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
152         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
153         in comments.
155 2013-06-18  Julian Brown  <julian@codesourcery.com>
157         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
158         Permit virtual register pre-reload if !strict.
159         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
160         change.
161         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
162         prototype.
163         * config/arm/neon.md (movmisalign<mode>): Use
164         neon_perm_struct_or_reg_operand instead of
165         neon_struct_or_register_operand.
166         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
167         neon_permissive_struct_operand instead of neon_struct_operand.
168         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
169         neon_vector_mem_operand.
170         * config/arm/predicates.md (neon_struct_operand): Adjust call to
171         neon_vector_mem_operand.
172         (neon_permissive_struct_operand): New.
173         (neon_struct_or_register_operand): Rename to...
174         (neon_perm_struct_or_reg_operand): This. Adjust call to
175         neon_vector_mem_operand.
177 2013-06-18  Richard Biener  <rguenther@suse.de>
179         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
180         * lto-streamer.h: Include pointer-set.h.
181         (struct lto_decl_slot): Remove.
182         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
183         Remove next_index entry.
184         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
185         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
186         (lto_init_tree_ref_encoder): Adjust.
187         (lto_destroy_tree_ref_encoder): Likewise.
188         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
189         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
190         (lto_output_decl_index): Adjust.
191         (lto_new_out_decl_state): Likewise.
192         (lto_record_function_out_decl_state): Likewise.
193         * lto-streamer-out.c (copy_function): Likewise.
195 2013-06-18  Richard Biener  <rguenther@suse.de>
197         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
198         * cgraphunit.c: Include cfgloop.h.
199         (init_lowered_empty_function): Initialize the loop tree.
200         (assemble_thunk): Insert new BBs into loops.
202 2013-06-18  Richard Biener  <rguenther@suse.de>
204         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
205         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
206         the map from cache entry to cache index optional.
207         (streamer_tree_cache_replace_tree): Adjust accordingly.
208         (streamer_tree_cache_append): Likewise.
209         (streamer_tree_cache_delete): Likewise.
210         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
211         streamer cache map from cache entry to cache index.
212         * lto-streamer-out.c (create_output_block): Adjust.
214 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
216         * config/arm/arm.md (attribute "insn"): Move multiplication and
217         division attributes to...
218         (attribute "type"): ... here.  Remove mult.
219         (attribute "mul32"): New attribute.
220         (attribute "mul64"): Add umaal.
221         (*arm_mulsi3): Update attributes.
222         (*arm_mulsi3_v6): Likewise.
223         (*thumb_mulsi3): Likewise.
224         (*thumb_mulsi3_v6): Likewise.
225         (*mulsi3_compare0): Likewise.
226         (*mulsi3_compare0_v6): Likewise.
227         (*mulsi_compare0_scratch): Likewise.
228         (*mulsi_compare0_scratch_v6): Likewise.
229         (*mulsi3addsi): Likewise.
230         (*mulsi3addsi_v6): Likewise.
231         (*mulsi3addsi_compare0): Likewise.
232         (*mulsi3addsi_compare0_v6): Likewise.
233         (*mulsi3addsi_compare0_scratch): Likewise.
234         (*mulsi3addsi_compare0_scratch_v6): Likewise.
235         (*mulsi3subsi): Likewise.
236         (*mulsidi3adddi): Likewise.
237         (*mulsi3addsi_v6): Likewise.
238         (*mulsidi3adddi_v6): Likewise.
239         (*mulsidi3_nov6): Likewise.
240         (*mulsidi3_v6): Likewise.
241         (*umulsidi3_nov6): Likewise.
242         (*umulsidi3_v6): Likewise.
243         (*umulsidi3adddi): Likewise.
244         (*umulsidi3adddi_v6): Likewise.
245         (*smulsi3_highpart_nov6): Likewise.
246         (*smulsi3_highpart_v6): Likewise.
247         (*umulsi3_highpart_nov6): Likewise.
248         (*umulsi3_highpart_v6): Likewise.
249         (mulhisi3): Likewise.
250         (*mulhisi3tb): Likewise.
251         (*mulhisi3bt): Likewise.
252         (*mulhisi3tt): Likewise.
253         (maddhisi4): Likewise.
254         (*maddhisi4tb): Likewise.
255         (*maddhisi4tt): Likewise.
256         (maddhidi4): Likewise.
257         (*maddhidi4tb): Likewise.
258         (*maddhidi4tt): Likewise.
259         (divsi3): Likewise.
260         (udivsi3): Likewise.
261         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
262         (thumb2_mulsi_short_compare0): Likewise.
263         (thumb2_mulsi_short_compare0_scratch): Likewise.
264         * config/arm/arm1020e.md (1020mult1): Update attribute change.
265         (1020mult2): Likewise.
266         (1020mult3): Likewise.
267         (1020mult4): Likewise.
268         (1020mult5): Likewise.
269         (1020mult6): Likewise.
270         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
271         change.
272         (cortex_a15_mult64): Likewise.
273         (cortex_a15_sdiv): Likewise.
274         (cortex_a15_udiv): Likewise.
275         * config/arm/arm1026ejs.md (mult1): Update attribute change.
276         (mult2): Likewise.
277         (mult3): Likewise.
278         (mult4): Likewise.
279         (mult5): Likewise.
280         (mult6): Likewise.
281         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
282         (pj4_ir_div): Likewise.
283         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
284         (11_mult2): Likewise.
285         (11_mult3): Likewise.
286         (11_mult4): Likewise.
287         (11_mult5): Likewise.
288         (11_mult6): Likewise.
289         (11_mult7): Likewise.
290         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
291         (cortex_a8_mla): Likewise.
292         (cortex_a8_mull): Likewise.
293         (cortex_a8_smulwy): Likewise.
294         (cortex_a8_smlald): Likewise.
295         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
296         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
297         (cortex_r4_mul_3): Likewise.
298         (cortex_r4_mla_4): Likewise.
299         (cortex_r4_mla_3): Likewise.
300         (cortex_r4_smlald): Likewise.
301         (cortex_r4_mull): Likewise.
302         (cortex_r4_sdiv): Likewise.
303         (cortex_r4_udiv): Likewise.
304         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
305         (cortex_a7_idiv): Likewise.
306         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
307         (9_mult2): Likewise.
308         (9_mult3): Likewise.
309         (9_mult4): Likewise.
310         (9_mult5): Likewise.
311         (9_mult6): Likewise.
312         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
313         (cortex_a53_sdiv): Likewise.
314         (cortex_a53_udiv): Likewise.
315         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
316         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
317         (mp626_mult2): Likewise.
318         (mp626_mult3): Likewise.
319         (mp626_mult4): Likewise.
320         * config/arm/fa526.md (526_mult1): Update attribute change.
321         (526_mult2): Likewise.
322         * config/arm/arm-generic.md (mult): Update attribute change.
323         (mult_ldsched_strongarm): Likewise.
324         (mult_ldsched): Likewise.
325         (multi_cycle): Likewise.
326         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
327         * config/arm/fa606te.md (606te_mult1): Update attribute change.
328         (606te_mult2): Likewise.
329         (606te_mult3): Likewise.
330         (606te_mult4): Likewise.
331         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
332         (cortex_a9_mac16): Likewise.
333         (cortex_a9_multiply): Likewise.
334         (cortex_a9_mac): Likewise.
335         (cortex_a9_multiply_long): Likewise.
336         * config/arm/fa626te.md (626te_mult1): Update attribute change.
337         (626te_mult2): Likewise.
338         (626te_mult3): Likewise.
339         (626te_mult4): Likewise.
341 2013-06-18  Richard Biener  <rguenther@suse.de>
343         PR lto/57334
344         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
346 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
348         PR target/57609
349         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
350         with next_active_insn.
352 2013-06-18  Alan Modra  <amodra@gmail.com>
354         * config/rs6000/rs6000.h (enum data_align): New.
355         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
356         (DATA_ABI_ALIGNMENT): Define.
357         (CONSTANT_ALIGNMENT): Correct comment.
358         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
359         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
361 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
363         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
364         ATTRIBUTE_UNUSED marking.
366 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
368         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
369         alternative and update.
370         (aarch64_dup_lanedi): Delete.
371         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
372         * config/aarch64/aarch64-simd-builtins.def: Update.
374 2013-06-17  Richard Biener  <rguenther@suse.de>
376         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
377         (lto_input_scc): Declare.
378         (lto_input_tree_1): Likewise.
379         (struct lto_stats_d): Add num_tree_bodies_output and
380         num_pickle_refs_output.
381         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
382         (lto_read_tree_1): Split out from ...
383         (lto_read_tree): ... this.
384         (lto_input_scc): New function.
385         (lto_input_tree_1): Split out from ...
386         (lto_input_tree): ... this.  Handle LTO_tree_scc.
387         (lto_data_in_create): Create the streamer cache without hashes.
388         * lto-streamer-out.c (create_output_block): Create the streamer
389         cache with hashes when not doing WPA.
390         (lto_write_tree_1): Split out from ...
391         (lto_write_tree): ... this.
392         (get_symbol_initial_value): New function.
393         (lto_output_tree_1): Split out from ...
394         (lto_output_tree): ... this.  Write trees as series of SCCs
395         using a DFS walk via DFS_write_tree.
396         (struct sccs, struct scc_entry): New types.
397         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
398         (DFS_write_tree_body): New function.
399         (DFS_write_tree): Likewise.
400         (hash_tree): Likewise.
401         (scc_entry_compare): Likewise.
402         (hash_scc): Likewise.
403         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
404         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
405         TREE_CHAIN as regular reference.
406         (streamer_read_integer_cst): Remove.
407         (streamer_get_pickled_tree): Adjust.
408         * tree-streamer-out.c (streamer_write_chain): Disable streaming
409         of DECL_EXTERNALs in BLOCK_VARS for now.
410         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
411         reference.
412         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
413         Add hash value argument and record that if hashes are recorded
414         in the cache.
415         (streamer_tree_cache_insert_1): Adjust.
416         (streamer_tree_cache_insert): Likewise.
417         (streamer_tree_cache_insert_at): Rename to ...
418         (streamer_tree_cache_replace_tree): ... this and adjust.
419         (streamer_tree_cache_append): Adjust.
420         (record_common_node): Likewise.
421         (streamer_tree_cache_create): Add argument whether to
422         record hash values together with trees.
423         (streamer_tree_cache_delete): Adjust.
424         * tree-streamer.h (struct streamer_tree_cache_d): Add
425         vector of hashes.
426         (streamer_read_integer_cst): Remove.
427         (streamer_tree_cache_insert): Adjust.
428         (streamer_tree_cache_append): Likewise.
429         (streamer_tree_cache_insert_at): Rename to ...
430         (streamer_tree_cache_replace_tree): ... this and adjust.
431         (streamer_tree_cache_create): Add argument whether to record hashes.
432         (streamer_tree_cache_get): Rename to ...
433         (streamer_tree_cache_get_tree): ... this.
434         (streamer_tree_cache_get_hash): New function.
435         * tree.c (cache_integer_cst): New function.
436         * tree.h (cache_integer_cst): Declare.
437         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
438         * lto-symtab.c (lto_varpool_replace_node): Only release
439         DECL_INITIAL of non-prevailing decls.
440         * varpool.c (varpool_remove_initializer): Do not release
441         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
443 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
445         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
446         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
447         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
448         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
449         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
450         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
451         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
452         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
453         instead of TARGET_64BIT.
454         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
455         Require ISA_HAS_<D>DIV.
457 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
459         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
460         (mips*-*-linux*): Move default with_llsc setting to where other
461         defaults are set.
462         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
463         with_arch block.
464         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
465         Likewise.  Remove default with_tune setting.  Move default float
466         setting to its own block.  Handle with_llsc in the same block as above.
468 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
470         PR rtl-optimization/57425
471         PR rtl-optimization/57569
472         * alias.c (write_dependence_p): Add new parameters mem_mode,
473         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
474         Changed all callers.
475         (canon_anti_dependence): New function.
476         * cse.c (check_dependence): Use canon_anti_dependence.
477         * cselib.c (cselib_invalidate_mem): Likewise.
478         * rtl.h (canon_anti_dependence): Declare.
480 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
482         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
483         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
484         ".set mips3" for 64-bit targets.
486 2013-06-15  Dehao Chen  <dehao@google.com>
488         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
489         * gimple-low.c (gimple_check_call_matching_types): Likewise.
490         (gimple_check_call_args): Likewise.
491         * value-prof.c (check_ic_target): Likewise.
492         * ipa-inline.c (early_inliner): Likewise.
493         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
494         * cgraph.c (cgraph_create_edge_1): Likewise.
495         (cgraph_make_edge_direct): Likewise.
497 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
499         PR target/57615
500         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
501         rs6000_output_move_128bit to handle emitting quad memory
502         operations.  Set attribute length to 8 bytes.
504 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
506         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
507         New pattern.
508         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
509         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
510         (aarch64_<su>mlsl<mode>): Likewise.
512 2013-06-14  Mike Stump  <mikestump@comcast.net>
514         * Makefile.in (TARGET_H): Add insn-codes.h.
516 2013-06-14  Alan Modra  <amodra@gmail.com>
518         PR middle-end/57134
519         PR middle-end/57586
520         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
521         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
522         bitfield expansion when EXPAND_MEMORY.
523         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
525 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
527         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
528         test for clearing quad memory on 32-bit later.
530 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
532         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
533         (fold_negate_expr): Likewise.
534         (fold_real_zero_addition_p): Handle vectors.
535         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
537 2013-06-14  Alan Modra  <amodra@gmail.com>
539         * varasm.c (force_const_mem): Revert 2013-06-07 change.
541 2013-06-13  Jan Hubicka  <jh@suse.cz>
543         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
544         Local comdats are not externally visible.
545         * symtab.c (dump_symtab_base): Dump externally visible.
546         (verify_symtab_base): Verify back links in the symtab hash.
548 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
550         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
551         CONVERT_EXPR as equal nodes.
553 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
555         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
557 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
559         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
560         Generalize to complex and vector.
561         * tree.c (build_all_ones_cst): New function.
562         * tree.h (build_all_ones_cst): Declare it.
564 2013-06-13  Alan Modra  <amodra@gmail.com>
566         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
567         * config/rs6000/rs6000.md (signbittf2): New insn.
568         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
569         (abstf2_internal, cmptf_internal2): Likewise.
570         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
572 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
573             Pat Haugen <pthaugen@us.ibm.com>
574             Peter Bergner <bergner@vnet.ibm.com>
576         * config/rs6000/rs6000.c (emit_load_locked): Add support for
577         power8 byte, half-word, and quad-word atomic instructions.
578         (emit_store_conditional): Likewise.
579         (rs6000_expand_atomic_compare_and_swap): Likewise.
580         (rs6000_expand_atomic_op): Likewise.
582         * config/rs6000/sync.md (larx): Add new modes for power8.
583         (stcx): Likewise.
584         (AINT): New mode iterator to include TImode as well as normal
585         integer modes on power8.
586         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
587         that VSX registers are not considered.  Use AINT mode iterator
588         instead of INT1 to allow inclusion of quad word atomic operations
589         on power8.
590         (load_locked<mode>): Likewise.
591         (store_conditional<mode>): Likewise.
592         (atomic_compare_and_swap<mode>): Likewise.
593         (atomic_exchange<mode>): Likewise.
594         (atomic_nand<mode>): Likewise.
595         (atomic_fetch_<fetchop_name><mode>): Likewise.
596         (atomic_nand_fetch<mode>): Likewise.
597         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
598         each type.
599         (ATOMIC): On power8, add QImode, HImode modes.
600         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
601         modes that promote to SImode.
602         (load_lockedti): Convert TImode arguments to PTImode, so that we
603         get a guaranteed even/odd register pair.
604         (load_lockedpti): Likewise.
605         (store_conditionalti): Likewise.
606         (store_conditionalpti): Likewise.
608         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
609         atomic load/store instructions.
610         (HSI): Likewise.
612 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
614         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
615         loads.
616         (insn_count): New attribute, with most cases extracted from...
617         (length): ...here.  Redefine most cases in terms of insn_count.
618         (single_insn): Delete.
619         (can_delay): Use insn_count to check for single instructions.
620         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
621         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
622         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
623         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
624         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
625         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
626         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
627         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
628         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
629         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
630         rather than "length".
631         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
632         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
633         Use "insn_count" rather than "length".
634         * config/mips/mips-dsp.md
635         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
636         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
637         length attributes.
639 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
641         PR tree-optimization/57361
642         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
644 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
646         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
647         to split.
648         (aarch64_simd_combine<mode>): New instruction expansion.
649         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
650         function prototype.
651         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
652         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
654 2013-06-12  Jan Hubicka  <jh@suse.cz>
656         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
657         decl has when in streaming stage.
658         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
659         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
661 2013-06-12  Roland Stigge <stigge@antcom.de>
663         PR target/57578
664         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
666 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
668         PR tree-optimization/57537
669         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
670         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
672 2013-06-12  Richard Biener  <rguenther@suse.de>
674         * data-streamer.h (streamer_write_char_stream): CSE
675         obs->current_pointer.
676         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
677         streamer_write_char_stream manually and optimize the resulting loop.
678         (streamer_write_hwi_stream): Likewise.
680 2013-06-12  Jan Hubicka  <jh@suse.cz>
682         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
683         * cgraph.h (varpool_create_empty_node): Declare.
684         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
685         duplicated nodes.
686         * symtab.c (symtab_unregister_node): Be lax about missin entries
687         in node hash.
688         (symtab_get_node): Update comment.
689         * varpool.c (varpool_create_empty_node): Break out from ...
690         (varpool_node_for_decl): ... here.
691         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
693 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
695         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
696         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
697         part.  Use straight-line flow at the end.
698         <COMPONENT_REF>: Remove superfluous else.
699         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
701 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
703         PR target/56564
704         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
705         target hook even for !TREE_PUBLIC decls.  If no resolution info
706         is available, return false for common and external decls.
708 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
710         * config/rl78/constraints.md (U): New constraint.
711         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
712         valloc attribute.
714 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
716         PR target/57589
717         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
718         to allow returning address to AT_PLATFORM name.
720 2013-06-11  Jan Hubicka  <jh@suse.cz>
722         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
723         * cgraph.h (symtab_node_base): Add weakref flag.
724         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
725         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
726         (output_weakrefs): Use weakref flag.
727         * fold-const.c (simple_operand_p): Handle WEAK.
728         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
729         * ipa.c (varpool_externally_visible_p): Drop weakref.
730         (function_and_variable_visibility): Update comment; fix weakref
731         sanity checks; do not clear DECL_WEAK on them.
732         * lto-cgraph.c (lto_output_node): update.
733         (lto_output_varpool_node): Update.
734         (input_overwrite_node): Update.
735         (input_node): Update.
736         (input_varpool_node): Update.
737         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
738         (lto_symtab_merge_symbols): Add sanity check.
739         (lto_symtab_prevailing_decl): Do not special case weakrefs.
740         * passes.c (rest_of_decl_compilation): Set static flag, too.
741         * symtab.c (dump_symtab_base): Dump weakref.
742         (verify_symtab_base): Sanity check weakrefs.
743         (symtab_make_decl_local): Remove duplicated code.
744         (symtab_alias_ultimate_target): Simplify.
745         * varpool.c (varpool_create_variable_alias): Set weakref flag.
747 2013-06-11  DJ Delorie  <dj@redhat.com>
749         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
750         (rl78_unwind_word_mode): New.
752 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
754         * final.c (debug_prefix_maps): Make static.
756 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
758         * function.c (initial_trampoline): Remove stray copy.
760 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
762         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
764 2013-06-11  Martin Jambor  <mjambor@suse.cz>
766         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
767         within bounds at the beginning of the function.
769 2013-06-11  Alan Modra  <amodra@gmail.com>
771         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
772         reporting.
773         (get_named_section): Don't NULL !DECL_P decl.
775 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
777         * doc/invoke.texi (core-avx2): Document.
778         (slm): Likewise.
779         (atom): Updated with MOVBE.
781 2013-06-11  Richard Biener  <rguenther@suse.de>
783         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
785 2013-06-11  Anton Blanchard  <anton@samba.org>
787         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
788         correct shift value in little-endian mode.
790 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
792         PR target/56564
793         * varasm.c (get_variable_align): Move #endif to the right place.
795 2013-06-10  Cary Coutant  <ccoutant@google.com>
797         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
798         for hash so that hash table traversal order is deterministic.
800 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
801             Pat Haugen <pthaugen@us.ibm.com>
802             Peter Bergner <bergner@vnet.ibm.com>
804         * config/rs6000/vector.md (GPR move splitter): Do not split moves
805         of vectors in GPRS if they are direct moves or quad word load or
806         store moves.
808         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
809         declaration.
810         (direct_move_p): Likewise.
811         (quad_load_store_p): Likewise.
813         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
814         classes into bins based on the physical register type.
815         (reg_class_to_reg_type): Likewise.
816         (IS_STD_REG_TYPE): Likewise.
817         (IS_FP_VECT_REG_TYPE): Likewise.
818         (reload_fpr_gpr): Arrays to determine what insn to use if we can
819         use direct move instructions.
820         (reload_gpr_vsx): Likewise.
821         (reload_vsx_gpr): Likewise.
822         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
823         information that is a simplification of register classes.  Also
824         precalculate direct move reload helpers.
825         (direct_move_p): New function to return true if the operation can
826         be done as a direct move instruciton.
827         (quad_load_store_p): New function to return true if the operation
828         is a quad memory operation.
829         (rs6000_legitimize_address): If quad memory, only allow register
830         indirect for TImode addresses.
831         (rs6000_legitimate_address_p): Likewise.
832         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
833         (rs6000_reload_register_type): Likewise.
834         (register_to_reg_type): Return register type.
835         (rs6000_secondary_reload_simple_move): New helper function for
836         secondary reload and secondary memory needed to identify anything
837         that is a simple move, and does not need reloading.
838         (rs6000_secondary_reload_direct_move): New helper function for
839         secondary reload to identify cases that can be done with several
840         instructions via the direct move instructions.
841         (rs6000_secondary_reload_move): New helper function for secondary
842         reload to identify moves between register types that can be done.
843         (rs6000_secondary_reload): Add support for quad memory operations
844         and for direct move.
845         (rs6000_secondary_memory_needed): Likewise.
846         (rs6000_debug_secondary_memory_needed): Change argument names.
847         (rs6000_output_move_128bit): New function to return the move to
848         use for 128-bit moves, including knowing about the various
849         limitations of quad memory operations.
851         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
852         memory operations.  call rs6000_output_move_128bit for the actual
853         instruciton(s) to generate.
854         (vsx_movti_64bit): Likewise.
856         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
857         (UNSPEC_P8V_MTVSRWZ): Likewise.
858         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
859         (UNSPEC_P8V_MTVSRD): Likewise.
860         (UNSPEC_P8V_XXPERMDI): Likewise.
861         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
862         (UNSPEC_FUSION_GPR): Likewise.
863         (FMOVE128_GPR): New iterator for direct move.
864         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
865         (f32_sv): Likewise.
866         (f32_dm): Likewise.
867         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
868         loads and direct move instructions.
869         (zero_extendsidi2_lfiwzx): Likewise.
870         (extendsidi2_lfiwax): Likewise.
871         (extendsidi2_nocell): Likewise.
872         (floatsi<mode>2_lfiwax): Likewise.
873         (lfiwax): Likewise.
874         (floatunssi<mode>2_lfiwzx): Likewise.
875         (lfiwzx): Likewise.
876         (fix_trunc<mode>_stfiwx): Likewise.
877         (fixuns_trunc<mode>_stfiwx): Likewise.
878         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
879         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
880         (parity<mode>2_cmpb): Set length/type attr.
881         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
882         for 'mr.' to fast_compare.
883         (bpermd_<mode>): Change type attr to popcnt.
884         (p8_fmrgow_<mode>): New insns for power8 direct move support.
885         (p8_mtvsrwz_1): Likewise.
886         (p8_mtvsrwz_2): Likewise.
887         (reload_fpr_from_gpr<mode>): Likewise.
888         (p8_mtvsrd_1): Likewise.
889         (p8_mtvsrd_2): Likewise.
890         (p8_xxpermdi_<mode>): Likewise.
891         (reload_vsx_from_gpr<mode>): Likewise.
892         (reload_vsx_from_gprsf): Likewise.
893         (p8_mfvsrd_3_<mode>): LIkewise.
894         (reload_gpr_from_vsx<mode>): Likewise.
895         (reload_gpr_from_vsxsf): Likewise.
896         (p8_mfvsrd_4_disf): Likewise.
897         (multi-word GPR splits): Do not split direct moves or quad memory
898         operations.
900 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
902         * tree-into-ssa.c (interesting_blocks): Make static.
904 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
906         PR target/56564
907         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
908         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
909         Use DATA_ABI_ALIGNMENT for that case instead if defined.
910         (get_variable_align): New function.
911         (get_variable_section, emit_bss, emit_common,
912         assemble_variable_contents, place_block_symbol): Use
913         get_variable_align instead of DECL_ALIGN.
914         (assemble_noswitch_variable): Add align argument, use it
915         instead of DECL_ALIGN.
916         (assemble_variable): Adjust caller.  Use get_variable_align
917         instead of DECL_ALIGN.
918         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
919         caller.
920         (DATA_ABI_ALIGNMENT): Define.
921         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
922         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
923         opt is false, only return the psABI mandated alignment increase.
924         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
925         (DATA_ABI_ALIGNMENT): ... this.
926         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
927         (DATA_ABI_ALIGNMENT): ... this.
928         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
929         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
930         (DATA_ABI_ALIGNMENT): ... this.
931         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
932         * doc/tm.texi: Regenerated.
934 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
936         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
937         cmp_code to construct REG_EQUAL note.
939 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
941         PR target/57568
942         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
943         that operands[2] doesn't overlap with operands[0].
945 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
946             Jan Hubicka  <jh@suse.cz>
948         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
949         hack to mark symbols as used.
951 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
953         PR rtl-optimization/57559
954         * lra-constraints.c (process_alt_operands): Don't discourage
955         memory with known offset for offsetable memory constraint.
956         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
958 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
960         * varasm.c (struct oc_local_state): Reorder fields.
961         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
962         and adjust accordingly.
963         (output_constructor): Reorder initialization code and adjust call to
964         output_constructor_bitfield.
966 2013-06-07  Jan Hubicka  <jh@suse.cz>
968         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
970 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
972         * tree-object-size.c (unknown): Make const.
974 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
976         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
977         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
978         for last alternative in the cpu_facility attribute.
980 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
982         PR target/56315
983         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
984         (xordi3): Change operand 2 constraint to arm_xordi_operand.
985         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
986         * config/arm/constraints.md (Dg): New constraint.
987         * config/arm/neon.md (xordi3_neon): Remove.
988         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
989         * config/arm/predicates.md (arm_xordi_operand): New predicate.
991 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
993         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
994         Clean up alternatives.
996 2013-06-07  Alan Modra  <amodra@gmail.com>
998         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
999         va_list_gpr_size.
1001 2013-06-07  Alan Modra  <amodra@gmail.com>
1003         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1005 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1007         * config/arm/constraints.md (Df): New constraint.
1008         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1009         Correct length attribute for last two alternatives.
1011 2013-06-07  Alan Modra  <amodra@gmail.com>
1013         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1014         override user -mfp-in-toc.
1015         (offsettable_ok_by_alignment): Consider just the current access
1016         rather than the whole object, unless BLKmode.  Handle
1017         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1018         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1019         for -mcmodel=medium.
1020         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1021         override user -mfp-in-toc or -msum-in-toc.  Default to
1022         -mno-fp-in-toc for -mcmodel=medium.
1024 2013-06-06  DJ Delorie  <dj@redhat.com>
1026         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1027         TARGET_VALID_POINTER_MODE.
1029 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1030             Pat Haugen <pthaugen@us.ibm.com>
1031             Peter Bergner <bergner@vnet.ibm.com>
1033         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1034         Document new power8 builtins.
1036         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1037         condition code register, to allow 128-bit logical operations to be
1038         done in the VSX or GPR registers.
1039         (nor<mode>3): Use the canonical form for nor.
1040         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1041         vclz*, and vpopcnt* vector instructions.
1042         (nand<mode>3): Likewise.
1043         (orc<mode>3): Likewise.
1044         (clz<mode>2): LIkewise.
1045         (popcount<mode>2): Likewise.
1047         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1048         that only the GPRs are recognized.
1050         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1051         support for new power8 builtins.
1053         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1054         builtin functions.
1055         (xscvdpspn): Likewise.
1056         (vclz): Likewise.
1057         (vclzb): Likewise.
1058         (vclzh): Likewise.
1059         (vclzw): Likewise.
1060         (vclzd): Likewise.
1061         (vpopcnt): Likewise.
1062         (vpopcntb): Likewise.
1063         (vpopcnth): Likewise.
1064         (vpopcntw): Likewise.
1065         (vpopcntd): Likewise.
1066         (vgbbd): Likewise.
1067         (vmrgew): Likewise.
1068         (vmrgow): Likewise.
1069         (eqv): Likewise.
1070         (eqv_v16qi3): Likewise.
1071         (eqv_v8hi3): Likewise.
1072         (eqv_v4si3): Likewise.
1073         (eqv_v2di3): Likewise.
1074         (eqv_v4sf3): Likewise.
1075         (eqv_v2df3): Likewise.
1076         (nand): Likewise.
1077         (nand_v16qi3): Likewise.
1078         (nand_v8hi3): Likewise.
1079         (nand_v4si3): Likewise.
1080         (nand_v2di3): Likewise.
1081         (nand_v4sf3): Likewise.
1082         (nand_v2df3): Likewise.
1083         (orc): Likewise.
1084         (orc_v16qi3): Likewise.
1085         (orc_v8hi3): Likewise.
1086         (orc_v4si3): Likewise.
1087         (orc_v2di3): Likewise.
1088         (orc_v4sf3): Likewise.
1089         (orc_v2df3): Likewise.
1091         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1092         allow power8 quad mode in 64-bit.
1093         (rs6000_builtin_vectorized_function): Add support to vectorize
1094         ISA 2.07 count leading zeros, population count builtins.
1095         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1096         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1097         (builtin_function_type): Add vgbbd builtin function which takes an
1098         unsigned argument.
1099         (altivec_expand_vec_perm_const): Add support for new power8 merge
1100         instructions.
1102         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1103         that does not include TImdoe for use with 32-bit.
1104         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1105         instructions.
1106         (UNSPEC_VSX_CVDPSPN): Likewise.
1107         (vsx_xscvdpspn): Likewise.
1108         (vsx_xscvspdpn): Likewise.
1109         (vsx_xscvdpspn_scalar): Likewise.
1110         (vsx_xscvspdpn_directmove): Likewise.
1111         (vsx_and<mode>3): Split logical operations into 32-bit and
1112         64-bit. Add support to do logical operations on TImode as well as
1113         VSX vector types.  Allow logical operations to be done in either
1114         VSX registers or in general purpose registers in 64-bit mode.  Add
1115         splitters if GPRs were used. For AND, add clobber of CCmode to
1116         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1117         encoding.
1118         (vsx_and<mode>3_32bit): Likewise.
1119         (vsx_and<mode>3_64bit): Likewise.
1120         (vsx_ior<mode>3): Likewise.
1121         (vsx_ior<mode>3_32bit): Likewise.
1122         (vsx_ior<mode>3_64bit): Likewise.
1123         (vsx_xor<mode>3): Likewise.
1124         (vsx_xor<mode>3_32bit): Likewise.
1125         (vsx_xor<mode>3_64bit): Likewise.
1126         (vsx_one_cmpl<mode>2): Likewise.
1127         (vsx_one_cmpl<mode>2_32bit): Likewise.
1128         (vsx_one_cmpl<mode>2_64bit): Likewise.
1129         (vsx_nor<mode>3): Likewise.
1130         (vsx_nor<mode>3_32bit): Likewise.
1131         (vsx_nor<mode>3_64bit): Likewise.
1132         (vsx_andc<mode>3): Likewise.
1133         (vsx_andc<mode>3_32bit): Likewise.
1134         (vsx_andc<mode>3_64bit): Likewise.
1135         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1136         and xxlorc instructions.
1137         (vsx_eqv<mode>3_64bit): Likewise.
1138         (vsx_nand<mode>3_32bit): Likewise.
1139         (vsx_nand<mode>3_64bit): Likewise.
1140         (vsx_orc<mode>3_32bit): Likewise.
1141         (vsx_orc<mode>3_64bit): Likewise.
1143         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1145         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1146         instruction.
1147         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1148         (p8_vmrgow): Likewise.
1149         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1150         GPRs to be split under VSX.
1151         (p8v_clz<mode>2): Add power8 count leading zero support.
1152         (p8v_popcount<mode>2): Add power8 population count support.
1153         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1154         support.
1156         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1157         instruction.
1159         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1160         builtin functions.
1161         (vec_nand): Likewise.
1162         (vec_vclz): Likewise.
1163         (vec_vclzb): Likewise.
1164         (vec_vclzd): Likewise.
1165         (vec_vclzh): Likewise.
1166         (vec_vclzw): Likewise.
1167         (vec_vgbbd): Likewise.
1168         (vec_vmrgew): Likewise.
1169         (vec_vmrgow): Likewise.
1170         (vec_vpopcnt): Likewise.
1171         (vec_vpopcntb): Likewise.
1172         (vec_vpopcntd): Likewise.
1173         (vec_vpopcnth): Likewise.
1174         (vec_vpopcntw): Likewise.
1176 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1178         PR rtl-optimization/57468
1179         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1180         spilled pseudos.
1182 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1184         PR rtl-optimization/57459
1185         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1186         type when setting live regs.
1188 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1190         * config/s390/s390.opt (mlra): New option.
1191         * config/s390/s390.c (s390_decompose_address): Check displacement
1192         for all registers for LRA.
1193         (s390_secondary_reload): Don't used secondary reloads for LRA.
1194         (s390_lra_p): New function.
1195         (TARGET_LRA_P): Define.
1196         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1197         of attribute cpu_facility to zarch for the last alternative.
1198         (*cmpmem_short): Ditto.
1200 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1202         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1203         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1204         (arm_expand_prologue): Likewise.
1206 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1208         PR c++/53743
1209         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1210         as this is now done by redirect_edge_and_branch_force.
1211         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1212         barriers, and fix interaction with splitting.
1213         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1214         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1215         reflect changes made in the routine.
1216         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1217         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1218         since this is called in cfglayout mode, and replace partition fixup
1219         with assert as that is now done by force_nonfallthru_and_redirect.
1220         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1221         already be marked with region crossing note.
1222         (insert_section_boundary_note): Make non-static, gate on flag
1223         has_bb_partition, rewrite to also check for multiple partitions.
1224         (rest_of_handle_reorder_blocks): Remove call to
1225         insert_section_boundary_note, now done later during free_cfg.
1226         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1227         * bb-reorder.h (insert_section_boundary_note): Declare.
1228         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1229         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1230         invoke insert_section_boundary_note.
1231         (try_redirect_by_replacing_jump): Remove unnecessary
1232         check for region crossing note.
1233         (fixup_partition_crossing): New function.
1234         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1235         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1236         in non-cfglayout mode.
1237         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1238         remove old code that tried to do this. Emit barrier correctly
1239         when we are in cfglayout mode.
1240         (last_bb_in_partition): New function.
1241         (rtl_split_edge): Correctly fixup partition boundaries.
1242         (commit_one_edge_insertion): Remove old code that tried to
1243         fixup region crossing edge since this is now handled in
1244         split_block, and set up insertion point correctly since
1245         block may now end in a jump.
1246         (verify_hot_cold_block_grouping): Guard against checking when not in
1247         linearized RTL mode.
1248         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1249         notes.
1250         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1251         rtl_verify_flow_info, so not called in cfglayout mode.
1252         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1253         (fixup_reorder_chain): Remove old code that attempted to fixup region
1254         crossing note as this is now handled in force_nonfallthru_and_redirect.
1255         (duplicate_insn_chain): Don't duplicate switch section notes.
1256         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1257         note.
1258         * basic-block.h (emit_barrier_after_bb): Declare.
1260 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1262         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1263         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1264         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1266 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1268         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1269         where appropriate.
1270         * config/arm/ldmstm.md: Regenerate.
1272 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1274         * config/arm/sync.md (atomic_loaddi_1):
1275         Disable predication for arm_restrict_it.
1276         (arm_load_exclusive<mode>): Likewise.
1277         (arm_load_exclusivesi): Likewise.
1278         (arm_load_exclusivedi): Likewise.
1279         (arm_load_acquire_exclusive<mode>): Likewise.
1280         (arm_load_acquire_exclusivesi): Likewise.
1281         (arm_load_acquire_exclusivedi): Likewise.
1282         (arm_store_exclusive<mode>): Likewise.
1283         (arm_store_exclusive<mode>): Likewise.
1284         (arm_store_release_exclusivedi): Likewise.
1285         (arm_store_release_exclusive<mode>): Likewise.
1287 2013-06-06  Richard Biener  <rguenther@suse.de>
1289         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1290         after LTO_null.
1291         (lto_tag_is_tree_code_p): Adjust.
1292         (lto_tag_is_gimple_code_p): Likewise.
1293         (lto_gimple_code_to_tag): Likewise.
1294         (lto_tag_to_gimple_code): Likewise.
1295         (lto_tree_code_to_tag): Likewise.
1296         (lto_tag_to_tree_code): Likewise.
1297         * data-streamer.h (streamer_write_hwi_in_range): Use
1298         uhwi streaming to stream the normalized range.
1299         (streamer_read_hwi_in_range): Likewise.
1301 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1303         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1304         (predicable_short_it): Likewise.
1305         (predicated): Likewise.
1306         (enabled): Handle above.
1307         (define_cond_exec): Set predicated attribute to yes.
1309 2013-06-05  Mike Stump  <mikestump@comcast.net>
1311         * gdbinit.in (__FUNCTION__): Add.
1313 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1315         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1316         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1318 2013-06-05  Jan Hubicka  <jh@suse.cz>
1320         * varasm.c (mark_decl_referenced): Revert the removal until targets
1321         are fixed.
1323 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1325         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1326         instead of mark_decl_referenced.
1328 2013-06-05  Jan Hubicka  <jh@suse.cz>
1330         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1331         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1332         and symtab_used_from_object_file_p.
1333         (cgraph_make_node_local_1): Clear forced_by_abi.
1334         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1335         * cgraph.h (symtab_node_base): Add forced_by_abi.
1336         (decide_is_variable_needed): Remove.
1337         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1338         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1339         (decide_is_symbol_needed): ... this one; handle symbols in general;
1340         always analyze virtuals; honnor forced_by_abi.
1341         (cgraph_finalize_function): Update.
1342         (varpool_finalize_decl): Update.
1343         (symbol_defined_and_needed): Remove.
1344         (analyze_functions): Update.
1345         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1346         output_refs, input_overwrite_node): Handle forced_by_abi.
1347         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1348         (address_taken_from_non_vtable_p): ... this one.
1349         (comdat_can_be_unshared_p_1): New function.
1350         (cgraph_comdat_can_be_unshared_p): Rename to ...
1351         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1352         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1353         (function_and_variable_visibility): Clear forced_by_abi as needed.
1354         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1355         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1356         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1357         * varpool.c (decide_is_variable_needed): Remove.
1359 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1361         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1362         (arm_option_override): Override arm_restrict_it where appropriate.
1363         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1364         * config/arm/arm.opt (mrestrict-it): New command-line option.
1365         * doc/invoke.texi: Document -mrestrict-it.
1367 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1369         * tsan.c (tsan_atomic_table): Make const.
1371 2013-06-05  Richard Biener  <rguenther@suse.de>
1373         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1374         index associated with the tree we are supposed to replace.
1375         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1376         TREE_ASM_WRITTEN as zero for everything but SSA names.
1378 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1380         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1382 2013-06-04  Jan Hubicka  <jh@suse.cz>
1384         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1385         (input_node, input_varpool_node): Handle correctly external same
1386         body aliases.
1387         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1388         nodes at ltrans stage.
1390 2013-06-04  Jan Hubicka  <jh@suse.cz>
1392         * ipa-inline.c (update_caller_keys): Fix availability test.
1393         (update_callee_keys): Likewise.
1394         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1395         to follow ELF standard.
1397 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1399         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1400         (mips64r5900el-*-elf*): New configurations.
1401         * config/mips/mips-cpus.def (r5900): New processor.
1402         * config/mips/mips-tables.opt: Regenerate.
1403         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1404         (mips_issue_rate): Handle PROCESSOR_R5900.
1405         (mips_reorg_process_insns): Force reorder mode for the R5900.
1406         * config/mips/mips.h (TARGET_MIPS5900): Define.
1407         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1408         TARGET_MIPS5900.
1409         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1410         TARGET_MIPS5900.
1411         * config/mips/mips.md (processor): Add r5900.
1412         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1414 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1416         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1417         into function to generate MOVI instruction.
1418         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1419         (aarch64_preferred_simd_mode): Turn into wrapper.
1420         (aarch64_output_scalar_simd_mov_immediate): New function.
1421         * config/aarch64/aarch64-protos.h: Add prototype for above.
1423 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1425         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1426         element_char member.
1427         (sizetochar): Return signed char.
1428         (aarch64_simd_valid_immediate): Remove elchar and other
1429         unnecessary variables.
1430         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1431         Calculate element_char as required.
1432         * config/aarch64/aarch64-protos.h: Update and move prototype
1433         for aarch64_output_simd_mov_immediate.
1434         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1435         Update arguments.
1437 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1439         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1440         information completed by aarch64_simd_valid_immediate.
1441         (aarch64_legitimate_constant_p): Update arguments.
1442         (aarch64_simd_valid_immediate): Work with struct rather than many
1443         pointers.
1444         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1445         (aarch64_simd_make_constant): Update arguments.
1446         (aarch64_output_simd_mov_immediate): Work with struct rather than
1447         many pointers.  Output immediate directly rather than as operand.
1448         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1449         Update prototype.
1450         * config/aarch64/constraints.md (Dn): Update arguments.
1452 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1454         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1455         longer static.
1456         (aarch64_simd_immediate_valid_for_move): Remove.
1457         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1458         (aarch64_simd_make_constant): Update call.
1459         (aarch64_output_simd_mov_immediate): Update call.
1460         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1461         Add prototype.
1462         * config/aarch64/constraints.md (Dn): Update call.
1464 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1466         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1467         return type to bool for prototype.
1468         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1469         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1470         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1472 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1474         * config/mips/mips.opt (meva): New.
1475         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1476         (ASM_SPEC): Handle -meva.
1477         * doc/invoke.texi (meva):  Document.
1479 2013-06-04  Alan Modra  <amodra@gmail.com>
1481         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1482         constant output.
1484 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1486         * rtl.def: Add extra fourth optional field to define_cond_exec.
1487         * gensupport.c (process_one_cond_exec): Process attributes from
1488         define_cond_exec.
1489         * doc/md.texi: Document fourth field in define_cond_exec.
1491 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1493         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1494         out the processing order as in store_bit_field_1.
1496 2013-06-04  Jan Hubicka  <jh@suse.cz>
1498         PR middle-end/57500
1499         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1500         non-VAR_DECL node if it does not exist yet.
1502 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1504         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1505         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1506         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1507         target_cpu_default setting.
1509 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1511         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1512         default to -fopt-info=optimized instead of all.
1513         * doc/invoke.texi: Ditto.
1514         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1515         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1516         (execute_vect_slp): Emit BB vectorization success under
1517         MSG_OPTIMIZED_LOCATIONS.
1518         * tree-vect-slp.c (vect_slp_transform_bb): Change
1519         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1520         * tree-vect-loop.c (vect_transform_loop): Ditto.
1522 2013-06-03  Jason Merrill  <jason@redhat.com>
1524         PR c++/57415
1525         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1526         Use TARGET_EXPR for C++.
1528 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1530         PR rtl-optimization/57268
1531         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1532         if DEBUG_INSN_P (insn).
1534         Reapply
1535         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1537         PR rtl-optimization/57268
1538         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1539         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1541 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1543         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1544         (ix86_avoid_lea_for_addr): Likewise.
1545         (exact_dependency_1): Likewise.
1546         (ix86_adjust_cost): Likewise.
1547         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1548         removed.
1549         (do_reorder_for_imul): Fix typo, formatting and
1550         !reload_completed check removed.
1551         (ix86_sched_reorder): Fix typo and formatting.
1552         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1553         list.
1555 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1557         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1559 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1561         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1562         <STRING_CST>: Likewise.
1563         <VECTOR_CST>: Likewise.
1565 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1566             Mikael Morin  <mikael@gcc.gnu.org>
1568         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1569         * config.in: Regenerated.
1570         * configure: Regenerated.
1572 2013-06-01  Jan Hubicka  <jh@suse.cz>
1574         PR middle-end/57366
1575         * cgraphunit.c (compile): When weakref is not supported,
1576         set up transparent aliases before final output pass.
1577         * varasm.c (assemble_alias): Do not try to do it here.
1579 2013-06-01  Jan Hubicka  <jh@suse.cz>
1581         PR middle-end/57467
1582         * passes.c (for_per_function): Skip unanalyzed functions.
1584 2013-06-01  Jan Hubicka  <jh@suse.cz>
1586         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1587         (lto_symtab_merge_symbols_1): ... this one.
1588         (lto_symtab_merge_cgraph_nodes): Rename to ...
1589         (lto_symtab_merge_symbols): ... this one; simplify.
1590         * cgraph.c (same_body_aliases_done): Rename to ...
1591         (cpp_implicit_aliases_done): ... this one.
1592         (cgraph_create_function_alias): Update.
1593         (cgraph_same_body_alias): Update.
1594         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1595         (verify_edge_corresponds_to_fndecl): Simplify.
1596         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1597         (cgraph_node): Remove same_body_alias.
1598         (varpool_node): Remove alias_of and extra_name_alias.
1599         (same_body_aliases_done): Rename to ..
1600         (cpp_implicit_aliases_done): ... this one.
1601         (symtab_alias_ultimate_target): Add default parameter.
1602         (symtab_resolve_alias): New function.
1603         (fixup_same_cpp_alias_visibility): Declare.
1604         (cgraph_function_node): Add default parameter.
1605         (cgraph_node_asm_name): Likewise.
1606         (cgraph_function_or_thunk_node): Add default parameter; do
1607         not ICE when it is NULL.
1608         (varpool_variable_node): Likewise.
1609         * tree-emutls.c (create_emultls_var): Update.
1610         (ipa_lower_emutls): Update.
1611         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1612         (cgraph_reset_node): Reset alias info.
1613         (cgraph_finalize_function): Update.
1614         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1615         (analyze_function): Simplify.
1616         (cgraph_process_same_body_aliases): Simplify.
1617         (analyze_functions): Fixup same body aliases.
1618         (handle_alias_pairs): Simplify.
1619         (assemble_thunk): Update.
1620         (assemble_thunks_and_aliases): Update.
1621         (output_weakrefs): Rewrite.
1622         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1623         (lto_output_varpool_node): Likewise.
1624         (compute_ltrans_boundary): Remve assert.
1625         (get_alias_symbol): New functoin.
1626         (input_node): Rewrite alias handling.
1627         (input_varpool_node): Likewise.
1628         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1629         * ipa.c (process_references): Handle weakrefs correctly.
1630         (symtab_remove_unreachable_nodes): Likewise.
1631         * trans-mem.c (get_cg_data): Update.
1632         (ipa_tm_create_version_alias): Update.
1633         (ipa_tm_execute): Update.
1634         * symtab.c (dump_symtab_base): Dump aliases.
1635         (verify_symtab_base): Verify aliases.
1636         (symtab_node_availability): New function.
1637         (symtab_alias_ultimate_target): Simplify.
1638         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1639         handle all the fixup cases.
1640         (symtab_resolve_alias): New function.
1641         * passes.c (ipa_write_summaries): Handle weakrefs.
1642         * varpool.c (varpool_analyze_node): Simplify.
1643         (assemble_aliases): Update.
1644         (varpool_create_variable_alias): Simplify.
1645         (varpool_extra_name_alias): Simplify.
1646         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1647         (lto_symtab_merge_symbols): ... this one.
1649 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1651         Revert
1652         PR rtl-optimization/57268
1653         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1654         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1656 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1658         Partially reverted:
1659         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1661         PR middle-end/57073
1662         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1663         further up.
1665 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1667         PR rtl-optimization/57268
1668         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1669         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1671 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1673         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1674         unordered comparison operators when -fno-trapping-math is in effect
1675         on the e500.
1676         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1677         and implement unordered comparison operators properly on the e500.
1679 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1681         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1682         for constant scalar integers.
1683         (simplify_relational_operation_1): Likewise.
1685 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1687         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1688         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1689         Fix comment.
1691 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1692             Igor Zamyatin  <igor.zamyatin@intel.com>
1694         Silvermont (SLM) architecture performance tuning.
1695         * config/i386/i386.h (enum ix86_tune_indices): Add
1696         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1697         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1699         * config/i386/i386.c (initial_ix86_tune_features)
1700         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1701         (ix86_lea_outperforms): Handle Silvermont tuning.
1702         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1703         call.
1704         (ix86_use_lea_for_mov): Likewise.
1705         (ix86_avoid_lea_for_addr): Likewise.
1706         (ix86_lea_for_add_ok): Likewise.
1707         (exact_dependency_1): New function.
1708         (exact_store_load_dependency): Likewise.
1709         (ix86_adjust_cost): Handle Silvermont tuning.
1710         (do_reoder_for_imul): Likewise.
1711         (swap_top_of_ready_list): New function.
1712         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1714         * config/i386/i386.md (peepholes that split memory operand in fp
1715         converts): New.
1717 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1719         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1720         Remove un-necessary braces.
1722 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1724         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1725         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1727 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1729         PR middle-end/57073
1730         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1732 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1734         PR target/56315
1735         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1736         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1737         * config/arm/neon.md (iordi3_neon): Remove.
1738         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1739         * config/arm/predicates.md (imm_for_neon_logic_operand):
1740         Move to earlier in the file.
1741         (neon_logic_op2): Likewise.
1742         (arm_iordi_operand_neon): New predicate.
1744 2013-05-31  Richard Biener  <rguenther@suse.de>
1746         PR tree-optimization/57478
1747         PR tree-optimization/57453
1748         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1749         are life as well.
1751 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1753         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1754         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1756 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1757             Thomas Koenig  <tkoenig@gcc.gnu.org>
1759         PR middle-end/57073
1760         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1761         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1763 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1765         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1767 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1769         * target.def (register_usage_leveling_p): New hook.
1770         * targhooks.c (default_register_usage_leveling_p): New.
1771         * targhooks.h (default_register_usage_leveling_p): New prototype.
1772         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1773         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1774         * doc/tm.texi: Update.
1775         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1777 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1779         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1780         (*insv_reg<mode>): New define_insn.
1782 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1784         PR rtl-optimization/57439
1785         * postreload.c (move2add_valid_value_p): Check that we have
1786         a zero subreg_regno_offset when accessing the register in
1787         the requested mode.
1789 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1790             Igor Zamyatin  <igor.zamyatin@intel.com>
1792         Silvermont (SLM) architecture pipeline model, tuning and
1793         insn selection.
1794         * config.gcc: Add slm config options and target.
1796         * config/i386/slm.md: New.
1798         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1800         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
1801         PROCESSOR_SLM.
1802         (ix86_target_macros_internal): Likewise.
1804         * gcc/config/i386/i386.c (slm_cost): New cost.
1805         (m_SLM): New macro flag.
1806         (initial_ix86_tune_features): Set m_SLM.
1807         (x86_accumulate_outgoing_args): Likewise.
1808         (x86_arch_always_fancy_math_387): Likewise.
1809         (processor_target_table): Add slm cost.
1810         (cpu_names): Add slm cpu name.
1811         (x86_option_override_internal): Set SLM ISA.
1812         (ix86_issue_rate): New case PROCESSOR_SLM.
1813         (ia32_multipass_dfa_lookahead): Likewise.
1814         (fold_builtin_cpu): Add slm.
1816         * config/i386/i386.h (TARGET_SLM): New target macro.
1817         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1818         (processor_type): Add PROCESSOR_SLM.
1820         * config/i386/i386.md (cpu): Add new value "slm".
1821         (slm.md): Include slm.md.
1823 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
1824             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1826         * config/arm/arm-protos.h: Add and update function protos.
1827         * config/arm/arm.c (use_simple_return_p): New added.
1828         (thumb2_expand_return): Check simple_return flag.
1829         * config/arm/arm.md: Add simple_return and conditional simple_return.
1830         * config/arm/iterators.md: Add iterator for return and simple_return.
1832 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1834         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1835         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1836         (arm_emit_vfp_multi_reg_pop): Likewise.
1837         (thumb2_emit_ldrd_pop): Likewise.
1838         (arm_expand_epilogue): Add misc REG_CFA notes.
1839         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1841 2013-05-29  Lawrence Crowl  <crowl@google.com>
1843         * config/arm/t-arm: Update for below.
1845         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1846         Change type to hash_table.  Update dependent calls and types.
1848         * config/i386/t-cygming: Update for below.
1850         * config/i386/t-interix: Update for below.
1852         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1853         Change type to hash_table.  Update dependent calls and types.
1854         (i386_find_on_wrapper_list::wrappers): Likewise.
1856         * config/ia64/t-ia64: Update for below.
1858         * config/ia64/ia64.c (bundle_state_table):
1859         Change type to hash_table.  Update dependent calls and types.
1861         * config/mips/mips.c (mips_reorg_process_insns::htab):
1862         Change type to hash_table.  Update dependent calls and types.
1864         * config/sol2.c (solaris_comdat_htab):
1865         Change type to hash_table.  Update dependent calls and types.
1867         * config/t-sol2: Update for above.
1869 2013-05-29  Teresa Johnson  <tejohnson@google.com>
1871         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1872         functions are not yet marked as defined.
1874 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1875             Pat Haugen <pthaugen@us.ibm.com>
1876             Peter Bergner <bergner@vnet.ibm.com>
1878         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1879         instructions.
1880         (VEC_A): Likewise.
1881         (VEC_C): Likewise.
1882         (vrotl<mode>3): Likewise.
1883         (vashl<mode>3): Likewise.
1884         (vlshr<mode>3): Likewise.
1885         (vashr<mode>3): Likewise.
1887         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1888         support for power8 V2DI builtins.
1890         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1891         power8 V2DI builtins.
1892         (vupkhsw): Likewise.
1893         (vupklsw): Likewise.
1894         (vaddudm): Likewise.
1895         (vminsd): Likewise.
1896         (vmaxsd): Likewise.
1897         (vminud): Likewise.
1898         (vmaxud): Likewise.
1899         (vpkudum): Likewise.
1900         (vpksdss): Likewise.
1901         (vpkudus): Likewise.
1902         (vpksdus): Likewise.
1903         (vrld): Likewise.
1904         (vsld): Likewise.
1905         (vsrd): Likewise.
1906         (vsrad): Likewise.
1907         (vsubudm): Likewise.
1908         (vcmpequd): Likewise.
1909         (vcmpgtsd): Likewise.
1910         (vcmpgtud): Likewise.
1911         (vcmpequd_p): Likewise.
1912         (vcmpgtsd_p): Likewise.
1913         (vcmpgtud_p): Likewise.
1914         (vupkhsw): Likewise.
1915         (vupklsw): Likewise.
1916         (vaddudm): Likewise.
1917         (vmaxsd): Likewise.
1918         (vmaxud): Likewise.
1919         (vminsd): Likewise.
1920         (vminud): Likewise.
1921         (vpksdss): Likewise.
1922         (vpksdus): Likewise.
1923         (vpkudum): Likewise.
1924         (vpkudus): Likewise.
1925         (vrld): Likewise.
1926         (vsld): Likewise.
1927         (vsrad): Likewise.
1928         (vsrd): Likewise.
1929         (vsubudm): Likewise.
1931         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1932         support for power8 V2DI instructions.
1934         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1935         power8 V2DI instructions.  Combine pack and unpack insns to use an
1936         iterator for each mode.  Check whether a particular mode supports
1937         Altivec instructions instead of just checking TARGET_ALTIVEC.
1938         (UNSPEC_VPKUWUM): Likewise.
1939         (UNSPEC_VPKSHSS): Likewise.
1940         (UNSPEC_VPKSWSS): Likewise.
1941         (UNSPEC_VPKUHUS): Likewise.
1942         (UNSPEC_VPKSHUS): Likewise.
1943         (UNSPEC_VPKUWUS): Likewise.
1944         (UNSPEC_VPKSWUS): Likewise.
1945         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1946         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1947         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1948         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1949         (UNSPEC_VUPKHSB): Likewise.
1950         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1951         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1952         (UNSPEC_VUPKHSH): Likewise.
1953         (UNSPEC_VUPKLSB): Likewise.
1954         (UNSPEC_VUPKLSH): Likewise.
1955         (VI2): Likewise.
1956         (VI_char): Likewise.
1957         (VI_scalar): Likewise.
1958         (VI_unit): Likewise.
1959         (VP): Likewise.
1960         (VP_small): Likewise.
1961         (VP_small_lc): Likewise.
1962         (VU_char): Likewise.
1963         (add<mode>3): Likewise.
1964         (altivec_vaddcuw): Likewise.
1965         (altivec_vaddu<VI_char>s): Likewise.
1966         (altivec_vadds<VI_char>s): Likewise.
1967         (sub<mode>3): Likewise.
1968         (altivec_vsubcuw): Likewise.
1969         (altivec_vsubu<VI_char>s): Likewise.
1970         (altivec_vsubs<VI_char>s): Likewise.
1971         (altivec_vavgs<VI_char>): Likewise.
1972         (altivec_vcmpbfp): Likewise.
1973         (altivec_eq<mode>): Likewise.
1974         (altivec_gt<mode>): Likewise.
1975         (altivec_gtu<mode>): Likewise.
1976         (umax<mode>3): Likewise.
1977         (smax<mode>3): Likewise.
1978         (umin<mode>3): Likewise.
1979         (smin<mode>3): Likewise.
1980         (altivec_vpkuhum): Likewise.
1981         (altivec_vpkuwum): Likewise.
1982         (altivec_vpkshss): Likewise.
1983         (altivec_vpkswss): Likewise.
1984         (altivec_vpkuhus): Likewise.
1985         (altivec_vpkshus): Likewise.
1986         (altivec_vpkuwus): Likewise.
1987         (altivec_vpkswus): Likewise.
1988         (altivec_vpks<VI_char>ss): Likewise.
1989         (altivec_vpks<VI_char>us): Likewise.
1990         (altivec_vpku<VI_char>us): Likewise.
1991         (altivec_vpku<VI_char>um): Likewise.
1992         (altivec_vrl<VI_char>): Likewise.
1993         (altivec_vsl<VI_char>): Likewise.
1994         (altivec_vsr<VI_char>): Likewise.
1995         (altivec_vsra<VI_char>): Likewise.
1996         (altivec_vsldoi_<mode>): Likewise.
1997         (altivec_vupkhsb): Likewise.
1998         (altivec_vupkhs<VU_char>): Likewise.
1999         (altivec_vupkls<VU_char>): Likewise.
2000         (altivec_vupkhsh): Likewise.
2001         (altivec_vupklsb): Likewise.
2002         (altivec_vupklsh): Likewise.
2003         (altivec_vcmpequ<VI_char>_p): Likewise.
2004         (altivec_vcmpgts<VI_char>_p): Likewise.
2005         (altivec_vcmpgtu<VI_char>_p): Likewise.
2006         (abs<mode>2): Likewise.
2007         (vec_unpacks_hi_v16qi): Likewise.
2008         (vec_unpacks_hi_v8hi): Likewise.
2009         (vec_unpacks_lo_v16qi): Likewise.
2010         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2011         (vec_unpacks_lo_v8hi): Likewise.
2012         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2013         (vec_pack_trunc_v8h): Likewise.
2014         (vec_pack_trunc_v4si): Likewise.
2015         (vec_pack_trunc_<mode>): Likewise.
2017         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2018         V2DI builtins.
2019         (vec_vmaxsd): Likewise.
2020         (vec_vmaxud): Likewise.
2021         (vec_vminsd): Likewise.
2022         (vec_vminud): Likewise.
2023         (vec_vpksdss): Likewise.
2024         (vec_vpksdus): Likewise.
2025         (vec_vpkudum): Likewise.
2026         (vec_vpkudus): Likewise.
2027         (vec_vrld): Likewise.
2028         (vec_vsld): Likewise.
2029         (vec_vsrad): Likewise.
2030         (vec_vsrd): Likewise.
2031         (vec_vsubudm): Likewise.
2032         (vec_vupkhsw): Likewise.
2033         (vec_vupklsw): Likewise.
2035 2013-05-29  Jan Hubicka  <jh@suse.cz>
2037         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2038         flags; reorder rest of fields in more consistent way.
2039         (varpool_node): Remove analyzed, finalized and alias.
2040         (cgraph_ndoe): Likewise.
2041         (symtab_alias_ultimate_target): New function.
2042         (cgraph_function_node): Move offline.
2043         (cgraph_reset_node): Declare.
2044         (cgraph_comdat_can_be_unshared_p): Remove.
2045         (varpool_remove_initializer): Declare.
2046         (varpool_first_defined_variable, varpool_next_defined_variable
2047         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2048         (cgraph_function_with_gimple_body_p): Update.
2049         (varpool_all_refs_explicit_p): Update.
2050         (symtab_alias_target): New function.
2051         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2052         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2053         (cgraph_function_or_thunk_node): Simplify using
2054         symtab_alias_ultimate_target.
2055         (varpool_variable_node): Likewise.
2056         * cgraph.c (cgraph_create_function_alias): Update.
2057         (cgraph_add_thunk): Update.
2058         (cgraph_remove_node): Update.
2059         (dump_cgraph_node): Do not dump removed flags.
2060         (cgraph_function_body_availability): Update.
2061         (cgraph_propagate_frequency): Update.
2062         (verify_cgraph_node): Check sanity of local flag.
2063         (cgraph_function_node): Move here from cgraph.h; revamp for
2064         cgraph_function_or_thunk_node.
2065         * lto-symtab.c (lto_varpool_replace_node): Update.
2066         (lto_symtab_resolve_can_prevail_p): Update.
2067         (lto_symtab_merge_cgraph_nodes): Update.
2068         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2069         propagate_constants_accross_call, devirtualization_time_bonus,
2070         ipcp_propagate_stage): Update.
2071         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2072         * ipa-inline-transform.c (clone_inlined_nodes,
2073         preserve_function_body_p): Update.
2074         * ipa-reference.c (propagate): Update.
2075         (write_node_summary_p): Update.
2076         * toplev.c (wrapup_global_declaration_2): Update.
2077         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2078         (analyze_function) ... this one.
2079         (cgraph_process_new_functions): Update.
2080         (cgraph_reset_node): Export.
2081         (cgraph_finalize_function): Update.
2082         (cgraph_add_new_function): Update.
2083         (process_function_and_variable_attributes): Update.
2084         (varpool_finalize_decl): Update.
2085         (symbol_finalized): Remove.
2086         (symbol_finalized_and_needed): Rename to ...
2087         (symbol_defined_and_needed): ... update.
2088         (cgraph_analyze_functions): Update.
2089         (handle_alias_pairs): Update.
2090         (mark_functions_to_output): Update.
2091         (assemble_thunk): Update.
2092         (output_in_order): Update.
2093         (output_weakrefs): Update.
2094         (finalize_compilation_unit): Update.
2095         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2096         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2097         input_node, input_varpool_node): Update.
2098         * dbxout.c (dbxout_expand_expr): Update.
2099         * cgraphclones.c (cgraph_clone_node): Update.
2100         (cgraph_copy_node_for_versioning): Update.
2101         (cgraph_materialize_clone): Update.
2102         (cgraph_materialize_all_clones): Update.
2103         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2104         propagate_pure_const, propagate_nothrow): Update.
2105         * lto-streamer-out.c (lto_output, write_symbol): Update.
2106         * ipa-utils.c (ipa_reverse_postorder): Update.
2107         * ipa-inline.c (can_inline_edge_p): Update.
2108         (update_caller_keys, ipa_inline): Update.
2109         * dwarf2out.c (reference_to_unused,
2110         premark_types_used_by_global_vars_helper): Update.
2111         * tree-eh.c (tree_could_trap_p): Update.
2112         * ipa-split.c (consider_split, execute_split_functions): Update.
2113         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2114         has_addr_references_p): Update; move ahead in file for better
2115         readability.
2116         (process_references): Simplify.
2117         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2118         bodies are removed.
2119         (cgraph_comdat_can_be_unshared_p): Make static.
2120         (cgraph_externally_visible_p): Update.
2121         (varpool_externally_visible_p): Update.
2122         (function_and_variable_visibility): Update.
2123         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2124         ipa_tm_mark_force_output_node): Update.
2125         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2126         estimate_edge_devirt_benefit, inline_generate_summary,
2127         inline_write_summary): Update.
2128         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2129         * ipa-prop.c (ipa_compute_jump_functions): Update.
2130         (ipa_print_node_params, ipa_prop_read_section,
2131         ipa_update_after_lto_read, read_replacements_section): Update.
2132         * varasm.c (mark_decl_referenced): Update.
2133         (assemble_alias, dump_tm_clone_pairs): Update.
2134         * tree-inline.c (copy_bb): Update.
2135         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2136         Update.
2137         * symtab.c (dump_symtab_base): Print new flags.
2138         (verify_symtab_base): Verify new flags.
2139         (symtab_alias_ultimate_target): New function.
2140         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2141         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2142         Update.
2143         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2144         Update.
2145         * i386.c (ix86_get_function_versions_dispatcher,
2146         ix86_generate_version_dispatcher_body): Update.
2147         (fold_builtin_cpu): Use varpool_add_new_variable.
2148         * varpool.c (varpool_remove_initializer): Break out from ...
2149         (varpool_remove_node): ... this one.
2150         (dump_varpool_node, varpool_node_for_asm,
2151         cgraph_variable_initializer_availability, varpool_analyze_node,
2152         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2153         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2154         Update.
2156 2013-05-29  Jan Hubicka  <jh@suse.cz>
2158         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2160 2013-05-29  Easwaran Raman  <eraman@google.com>
2162         PR tree-optimization/57442
2163         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2164         when control exits the main loop.
2166 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2168         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2169         and RX600.
2170         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2171         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2172         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2173         option.
2175 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2177         PR tree-optimization/57441
2178         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2179         Don't limit size of incr_vec to number of candidates.
2181 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2183         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2184         and mips16 directories.
2185         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2186         (MULTILIB_DIRNAMES): Ditto.
2187         (MULTILIB_EXCEPTIONS): Add new exceptions.
2188         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2189         (MULTILIB_DIRNAMES): Ditto.
2190         (MULTILIB_EXCEPTIONS): Add new exceptions.
2192 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2193             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2195         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2196         SYMBOL_TINY_ABSOLUTE.
2197         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2198         SYMBOL_TINY_ABSOLUTE.
2199         (aarch64_expand_mov_immediate): Likewise.
2200         (aarch64_classify_symbol): Likewise.
2201         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2202         Permit SYMBOL_TINY_ABSOLUTE.
2203         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2205 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2206             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2208         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2209         Refactor if/switch.  Replace gcc_assert with if.
2211 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2213         * config/i386/i386.c (initial_ix86_tune_features): Enable
2214         FP Reassociation for AMD bdver1 and bdver2.
2216 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2218         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2219         and IMAGPART_EXPR do not occur within other handled_components.
2221 2013-05-29  Richard Biener  <rguenther@suse.de>
2223         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2224         access on whether the use is in the BB we currently try to
2225         vectorize.
2226         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2227         vectorize to vect_bb_slp_scalar_cost.
2229 2013-05-29  Richard Biener  <rguenther@suse.de>
2231         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2232         computing scalar cost offsetted by stmts that are kept live
2233         by scalar uses.
2234         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2235         for computation of scalar cost.
2237 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2239         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2241 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2243         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2244         array notation built-in reduction functions.
2245         * doc/passes.texi (Passes): Added documentation about changes done
2246         for Cilk Plus.
2247         * doc/invoke.texi (C Dialect Options): Added documentation about
2248         the -fcilkplus flag.
2249         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2250         (BUILTINS_DEF): Depend on cilkplus.def.
2251         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2252         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2253         * cilkplus.def: New file.
2255 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2257         PR rtl-optimization/57439
2258         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2260 2013-05-28  Easwaran Raman  <eraman@google.com>
2262         PR tree-optimization/57337
2263         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2264         (find_insert_point): Correctly identify the insertion point
2265         when two statements with the same UID is compared.
2267 2013-05-28  Richard Biener  <rguenther@suse.de>
2269         PR tree-optimization/56787
2270         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2271         from the list of data references.
2272         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2273         clobbers.
2274         (vect_analyze_loop_operations): Likewise.
2275         (vect_transform_loop): Remove clobbers.
2277 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2279         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2280         and REALPART_EXPRs have scalar type.
2282 2013-05-28  Richard Biener  <rguenther@suse.de>
2284         PR tree-optimization/57411
2285         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2286         virtual operands.
2287         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2288         virtual operand propagation.
2290 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2292         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2293         destination register for bmasksi_vis.
2294         (vector_init_bshuffle): Likewise.
2295         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2297 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2299         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2300         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2301         mode if the instruction isn't available in the original mode.
2302         * config/sparc/sparc.opt (mfix-ut699): New option.
2303         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2304         (divdf3): Turn into expander.
2305         (divdf3_nofix): New insn.
2306         (divdf3_fix): Likewise.
2307         (divsf3): Disable if -mfix-ut699.
2308         (sqrtdf2): Turn into expander.
2309         (sqrtdf2_nofix): New insn.
2310         (sqrtdf2_fix): Likewise.
2311         (sqrtsf2): Disable if -mfix-ut699.
2313 2013-05-27  Richard Biener  <rguenther@suse.de>
2315         PR middle-end/57412
2316         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2317         block for the new loop.
2319 2013-05-27  Richard Biener  <rguenther@suse.de>
2321         PR tree-optimization/57343
2322         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2323         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2324         (number_of_iterations_cond): Do not build the folded tree.
2326 2013-05-27  Richard Biener  <rguenther@suse.de>
2328         Revert
2329         PR middle-end/57381
2330         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2331         OEP_CONSTANT_ADDRESS_OF retained.
2333         PR tree-optimization/57417
2334         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2335         for unchanged base.
2336         (set_ssa_val_to): Compare addresses using
2337         get_addr_base_and_unit_offset.
2339 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2341         PR rtl-optimization/56833
2342         * postreload.c (move2add_record_mode): New function.
2343         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2344         (move2add_use_add2_insn): Use move2add_record_sym_value.
2345         (move2add_use_add3_insn): Likewise.
2346         (reload_cse_move2add): Use move2add_valid_value_p and
2347         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2348         affected regs by setting reg_mode to VOIDmode.
2349         (move2add_note_store): Don't pretend the inside of a SUBREG is
2350         the actual destination.  Invalidate single/leading registers by
2351         setting reg_mode to VOIDmode.
2352         Use move2add_record_sym_value, move2add_valid_value_p and
2353         move2add_record_mode.
2355 2013-05-27  Richard Biener  <rguenther@suse.de>
2357         PR tree-optimization/57396
2358         * tree-affine.c (double_int_constant_multiple_p): Properly
2359         return false for val == 0 and div != 0.
2361 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2363         * config/mips/mips.h: Use #elif in preprocessor conditions.
2365 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2367         PR target/53916
2368         * config/mips/constraints.md (kl): New constraint.
2369         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2370         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2371         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2372         from LO for MIPS16.
2373         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2375 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2377         PR target/55777
2378         * config/mips/mips.c (mips_can_inline_p): New function.
2379         (TARGET_CAN_INLINE_P): Define.
2381 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2383         * sched-int.h (ds_t, dw_t): Make unsigned int.
2384         Fix documentation that describes how all the ds_t bits are used.
2385         Reserve the last bit for delayed-branch scheduling.
2386         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2387         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2388         (gen_dep_weak_1): Remove prototype.
2389         * sched-deps.c (get_dep_weak_1): Make static.
2390         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2391         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2392         * doc/tm.texi: Regenerate.
2393         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2395 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2397         PR debug/56950
2398         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2400 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2401             Sandra Loosemore  <sandra@codesourcery.com>
2403         * config.gcc (powerpc-*): Allow native for with-cpu.
2405 2013-05-24  Jeff Law  <law@redhat.com>
2407         PR tree-optimization/57124
2408         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2409         conversion feeding a condition if the range has an overflow
2410         if -fstrict-overflow.  Add warnings for when we do make the
2411         transformation.
2413 2013-05-24  Dehao Chen  <dehao@google.com>
2415         * tree-cfg.c (locus_discrim_map): Fix the typo.
2416         (locus_discrim_hasher): Likewise.
2417         (locus_discrim_hasher::hash): Likewise.
2418         (locus_discrim_hasher::equal): Likewise.
2420 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2422         PR tree-optimization/57294
2423         * cgraph.h (ipa_record_stmt_references): Declare.
2424         * cgraphbuild.c (ipa_record_stmt_references): New function.
2425         (build_cgraph_edges): Use ipa_record_stmt_references.
2426         (rebuild_cgraph_edges): Likewise.
2427         (cgraph_rebuild_references): Likewise.
2428         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2429         associated with the old statement and build references from the
2430         newly built statements.
2431         * ipa-ref.c (ipa_remove_stmt_references): New function.
2432         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2434 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2436         * lra-constraints.c (emit_spill_move): Use smaller mode for
2437         mem-mem moves.
2438         (check_and_process_move): Consider mem-reg moves for secondary
2439         too.
2440         (curr_insn_transform): Don't lose insns emitted before for
2441         secondary memory moves.
2442         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2443         reg set up in the current insn.
2445 2013-05-24  Dehao Chen  <dehao@google.com>
2447         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2448         hash function.
2449         (locus_descrim_hasher::equal): Likewise.
2450         (build_gimple_cfg): New discriminator assignment algorithm.
2451         (make_edges): Likewise.
2452         (next_discriminator_for_locus): Likewise.
2453         (same_line_p): Likewise.
2454         (assign_discriminators): Likewise.
2455         (make_cond_expr_edges): Likewise.
2456         (make_gimple_switch_edges): Likewise.
2457         (make_goto_expr_edges): Likewise.
2458         (make_gimple_asm_edges): Likewise.
2460 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2462         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2463         X format specifier to only display bottom 16 bits.
2464         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2465         immediate to match for operand 2, since it will be masked.
2467 2013-05-24  Richard Biener  <rguenther@suse.de>
2469         PR tree-optimization/57287
2470         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2471         all SSA names that occur in abnormal PHIs.
2473 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2475         PR tree-ssa/57385
2476         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2477         that index is not negative.
2479 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2481         PR rtl-optimization/55177
2482         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2483         (simplify_byte_swapping_operation): New.
2484         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2485         (simplify_relational_operation_1): Deal with BSWAP.
2487 2013-05-23  Richard Henderson  <rth@redhat.com>
2489         PR target/56742
2490         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2491         (ix86_reorg): Call it.
2493 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2495         PR target/57379
2496         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2497         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2498         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2500 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2502         PR debug/57351
2503         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2505 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2506             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2508         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2509         * config/aarch64/constraints.md (Usa): Remove.
2510         * doc/md.texi (AArch64 Usa): Remove.
2512 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2513             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2515         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2516         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2517         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2518         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2520 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2522         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2523         instruction (AdvSIMD).
2524         * config/aarch64/aarch64-builtins.c
2525         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2526         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2528 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2530         PR middle-end/57347
2531         * tree.h (contains_bitfld_component_ref_p): Declare.
2532         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2533         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2534         caller.
2535         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2536         not access a bit-field.  Assert all final offsets are byte-aligned.
2538 2013-05-23  Richard Biener  <rguenther@suse.de>
2540         PR tree-optimization/57380
2541         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2542         least one invariant or re-used load.
2543         * passes.c (init_optimization_passes): Move pass_phiprop before
2544         pass_forwprop.
2546 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2548         * config/aarch64/aarch64-simd.md
2549         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2551 2013-05-23  Richard Biener  <rguenther@suse.de>
2553         PR middle-end/57381
2554         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2555         OEP_CONSTANT_ADDRESS_OF retained.
2557 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2559         PR middle-end/57344
2560         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2561         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2563 2013-05-23  Richard Biener  <rguenther@suse.de>
2565         PR rtl-optimization/57341
2566         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2567         instead of true_dependence.
2569 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2571         * bb-reorder.c (branch_threshold): Make const.
2572         (exec_threshold): Ditto.
2574 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2575             Pat Haugen <pthaugen@us.ibm.com>
2576             Peter Bergner <bergner@vnet.ibm.com>
2578         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2579         documentation for the power8 crypto builtins.
2581         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2583         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2584         macros for defining power8 builtin functions.
2585         (BU_P8V_AV_2): Likewise.
2586         (BU_P8V_AV_P): Likewise.
2587         (BU_P8V_VSX_1): Likewise.
2588         (BU_P8V_OVERLOAD_1): Likewise.
2589         (BU_P8V_OVERLOAD_2): Likewise.
2590         (BU_CRYPTO_1): Likewise.
2591         (BU_CRYPTO_2): Likewise.
2592         (BU_CRYPTO_3): Likewise.
2593         (BU_CRYPTO_OVERLOAD_1): Likewise.
2594         (BU_CRYPTO_OVERLOAD_2): Likewise.
2595         (XSCVSPDP): Fix typo, point to the correct instruction.
2596         (VCIPHER): Add power8 crypto builtins.
2597         (VCIPHERLAST): Likewise.
2598         (VNCIPHER): Likewise.
2599         (VNCIPHERLAST): Likewise.
2600         (VPMSUMB): Likewise.
2601         (VPMSUMH): Likewise.
2602         (VPMSUMW): Likewise.
2603         (VPERMXOR_V2DI): Likewise.
2604         (VPERMXOR_V4SI: Likewise.
2605         (VPERMXOR_V8HI: Likewise.
2606         (VPERMXOR_V16QI: Likewise.
2607         (VSHASIGMAW): Likewise.
2608         (VSHASIGMAD): Likewise.
2609         (VPMSUM): Likewise.
2610         (VPERMXOR): Likewise.
2611         (VSHASIGMA): Likewise.
2613         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2614         __CRYPTO__ if the crypto instructions are available.
2615         (altivec_overloaded_builtins): Add support for overloaded power8
2616         builtins.
2618         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2619         support for power8 crypto builtins.
2620         (builtin_function_type): Likewise.
2621         (altivec_init_builtins): Add support for builtins that take vector
2622         long long (V2DI) arguments.
2624         * config/rs6000/crypto.md: New file, define power8 crypto
2625         instructions.
2627 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2628             Pat Haugen <pthaugen@us.ibm.com>
2629             Peter Bergner <bergner@vnet.ibm.com>
2631         * doc/invoke.texi (Option Summary): Add power8 options.
2632         (RS/6000 and PowerPC Options): Likewise.
2634         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2635         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2636         wm, wn, wr documentation.
2638         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2639         registers if direct move instructions are enabled.
2640         (wn): New constraint for no registers.
2641         (wq): New constraint for quad word even GPR registers.
2642         (wr): New constraint if 64-bit instructions are enabled.
2643         (wv): New constraint if power8 vector instructions are enabled.
2644         (wQ): New constraint for quad word memory locations.
2646         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2647         constraint for 0..15 for crypto instructions.
2648         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2649         as GPR and floating point registers.
2650         (int_reg_operand): New predicate to match only GPR registers.
2651         (base_reg_operand): New predicate to match base registers.
2652         (quad_int_reg_operand): New predicate to match even GPR registers
2653         for quad memory operations.
2654         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2655         operations in both GPR and VSX registers.
2656         (quad_memory_operand): New predicate for quad memory operations.
2657         (reg_or_indexed_operand): New predicate for direct move support.
2659         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2660         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2661         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2662         (POWERPC_MASKS): Add power8 options.
2663         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2664         various options.
2666         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2667         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2669         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2670         (-mpower8-fusion): New power8 options.
2671         (-mpower8-fusion-sign): Likewise.
2672         (-mpower8-vector): Likewise.
2673         (-mcrypto): Likewise.
2674         (-mdirect-move): Likewise.
2675         (-mquad-memory): Likewise.
2677         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2678         power8.
2679         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2680         registers.
2681         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2682         (rs6000_debug_vector_unit): Add p8_vector.
2683         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2684         definitions.  Also print fusion state.
2685         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2686         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2687         (rs6000_option_override_internal): Add support for power8.
2688         (rs6000_common_init_builtins): Add debugging for skipped builtins
2689         if -mdebug=builtin.
2690         (rs6000_adjust_cost): Add power8 support.
2691         (rs6000_issue_rate): Likewise.
2692         (insn_must_be_first_in_group): Likewise.
2693         (insn_must_be_last_in_group): Likewise.
2694         (force_new_group): Likewise.
2695         (rs6000_register_move_cost): Likewise.
2696         (rs6000_opt_masks): Likewise.
2698         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2699         power8 capable assembler, default to power7 options.
2700         (TARGET_DIRECT_MOVE): Likewise.
2701         (TARGET_CRYPTO): Likewise.
2702         (TARGET_P8_VECTOR): Likewise.
2703         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2704         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2705         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2706         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2707         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2708         (TARGET_XSCVDPSPN): Likewise.
2709         (TARGET_XSCVSPDPN): Likewsie.
2710         (TARGET_SYNC_HI_QI): Likewise.
2711         (TARGET_SYNC_TI): Likewise.
2712         (MASK_CRYPTO): Likewise.
2713         (MASK_DIRECT_MOVE): Likewise.
2714         (MASK_P8_FUSION): Likewise.
2715         (MASK_P8_VECTOR): Likewise.
2716         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2717         temporary used by some of the direct move instructions to get two FP
2718         temporary registers does not force creation of a stack frame.
2719         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2720         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2721         that any VSX registers are tieable, even if they are also an
2722         Altivec vector mode.
2723         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2724         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2725         (RS6000_BTM_CRYPTO): Likewise.
2726         (RS6000_BTM_COMMON): Likewise.
2728         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2729         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2730         (enum rs6000_vector): Add power8 vector support.
2732 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2734         PR target/19599
2735         PR target/57340
2736         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2737         (any_sibcall_could_use_r3): this and handle indirect calls.
2738         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2740 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2742         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2744 2013-05-22  Richard Biener  <rguenther@suse.de>
2746         PR middle-end/57349
2747         * profile.c (branch_prob): Do not split blocks that are
2748         abnormally receiving from ECF_RETURNS_TWICE functions.
2750 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2752         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2753         address mode.  Move pointer mode initialization to the same place.
2755 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2757         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2758         while it has any effect.
2760 2013-05-21  Easwaran Raman  <eraman@google.com>
2762         PR tree-optimization/57322
2763         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2764         UID of the statement added to the BB to be 1.
2766 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2768         PR tree-optimization/57331
2769         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2770         of conversion from pointer type to integral type with integer.
2772 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2774         PR lto/57289
2775         * ipa-prop.c (ipa_read_node_info): Process param_used and
2776         controlled_uses in the same order as when writing.
2778 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2780         PR plugins/56754
2781         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2783 2013-05-21  Richard Biener  <rguenther@suse.de>
2785         PR tree-optimization/57318
2786         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2787         estimate stmts with side-effects as likely eliminated.
2789 2013-05-21  Richard Biener  <rguenther@suse.de>
2791         PR tree-optimization/57330
2792         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2793         preserve the call stmts fntype.
2795 2013-05-21  Richard Biener  <rguenther@suse.de>
2797         PR tree-optimization/57303
2798         * tree-ssa-sink.c (statement_sink_location): Improve killing
2799         stmt detection and properly handle self-assignments.
2801 2013-05-21  Christian Bruel  <christian.bruel@st.com>
2803         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2804         spanning registers. LEAF_REG_REMAP is supported only for contiguous
2805         registers. Set register size out of the PARALLEL loop.
2807 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
2809         PR target/56547
2810         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2811         (*fmasf4, *fmasf4_media): New insns.
2813 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2815         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2816         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2817         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2818         (mips_idiv_insns): Update the comments to say that the returned
2819         instruction counts are in units of BASE_INSN_LENGTH.
2820         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2821         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
2822         using 2 rather than 4 as the length of indirect MIPS16 and
2823         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
2824         length of a NOP.  Don't divide MIPS16 lengths by 2.
2825         (mips16_split_long_branches): Assume a branch is long if the
2826         length is greater than 4 rather than 8.
2827         * config/mips/mips.md (length): Give MIPS16 lengths directly,
2828         rather than multiplying them by 2.  Multiply instruction counts
2829         by BASE_INSN_LENGTH rather than 4.
2830         (*jump_mips16, tls_get_tp_mips16_<mode>)
2831         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2833 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2835         * config/mips/mips.md (extended_mips16): Remove branch case.
2836         (length): Remove duplicated extended_mips16 test.
2838 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2840         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2842 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
2844         * recog.h (Recog_data): Rename to...
2845         (recog_data_d): ...this.
2846         (recog_data): Update accordingly.
2847         * recog.c (recog_data): Likewise.
2848         * reload.c (save_recog_data): Likewise.
2849         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2850         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2852 2013-05-17  Julian Brown  <julian@codesourcery.com>
2854         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2855         found in a REG_EQUAL note, invalidate it.
2857 2013-05-17   Easwaran Raman  <eraman@google.com>
2859         * tree-ssa-reassoc.c (find_insert_point): New function.
2860         (insert_stmt_after): Likewise.
2861         (get_def_stmt): Likewise.
2862         (ensure_ops_are_available): Likewise.
2863         (not_dominated_by): Likewise.
2864         (rewrite_expr_tree): Do not move statements beyond what is
2865         necessary. Remove call to swap_ops_for_binary_stmt...
2866         (reassociate_bb): ... and move it here.
2867         (build_and_add_sum): Assign UIDs for new statements.
2868         (linearize_expr): Likewise.
2869         (do_reassoc): Renumber gimple statement UIDs.
2871 2013-05-17  Jan Hubicka  <jh@suse.cz>
2873         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2874         weakrefs.
2875         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2876         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2877         weakrefs.
2878         (output_weakrefs): Update.
2880 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
2881             Martin Jambor  <mjambor@suse.cz>
2883         PR middle-end/57276
2884         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2885         value that corresponds to the given aggval is found in values vector.
2887 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
2889         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2890         sse, sse2, sse3, ssse3 and sse4a flags to options.
2892 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
2894         * gengtype-state.c: (s_expr_writer): New class, to handle
2895         prettifying of output layout of s-expressions.
2896         (state_writer): New class, to write out gtype.state.
2897         (state_written_type_count): Move this variable into member data of
2898         state_writer.
2899         (s_expr_writer::s_expr_writer): New code: constructor for new class
2900         (state_writer::state_writer(): ditto
2901         (s_expr_writer::write_new_line): New function
2902         (s_expr_writer::write_any_indent): ditto
2903         (s_expr_writer::begin_s_expr): ditto
2904         (s_expr_writer::end_s_expr): ditto
2905         (write_state_fileloc): convert to method of state_writer...
2906         (state_writer:: write_state_fileloc): ...and use methods of
2907         s_expr_writer to write indentation into the gtype.state output file
2908         to visually represent the hierarchical structure of the list
2909         structures
2910         (write_state_fields): ditto, renaming to...
2911         (state_writer::write_state_fields)
2912         (write_state_a_string): ditto, renaming to...
2913         (state_writer::write_state_a_string)
2914         (write_state_string_option): ditto, renaming to...
2915         (state_writer::write_state_string_option)
2916         (write_state_type_option): ditto, renaming to...
2917         (state_writer::write_state_type_option)
2918         (write_state_nested_option): ditto, renaming to...
2919         (state_writer::write_state_nested_option)
2920         (write_state_option): ditto, renaming to...
2921         (state_writer::write_state_option)
2922         (write_state_options): ditto, renaming to...
2923         (state_writer::write_state_options)
2924         (write_state_lang_bitmap): ditto, renaming to...
2925         (state_writer::write_state_lang_bitmap)
2926         (write_state_version): ditto, renaming to...
2927         (state_writer::write_state_version)
2928         (write_state_scalar_type): ditto, renaming to...
2929         (state_writer::write_state_scalar_type)
2930         (write_state_string_type): ditto, renaming to...
2931         (state_writer::write_state_string_type)
2932         (write_state_undefined_type): ditto, renaming to...
2933         (state_writer::write_state_undefined_type)
2934         (write_state_struct_union_type): ditto, renaming to...
2935         (state_writer::write_state_struct_union_type)
2936         (write_state_struct_type): ditto, renaming to...
2937         (state_writer::write_state_struct_type)
2938         (write_state_user_struct_type): ditto, renaming to...
2939         (state_writer::write_state_user_struct_type)
2940         (write_state_lang_struct_type): ditto, renaming to...
2941         (state_writer::write_state_lang_struct_type)
2942         (write_state_param_struct_type): ditto, renaming to...
2943         (state_writer::write_state_param_struct_type)
2944         (write_state_pointer_type): ditto, renaming to...
2945         (state_writer::write_state_pointer_type)
2946         (write_state_array_type): ditto, renaming to...
2947         (state_writer::write_state_array_type)
2948         (write_state_gc_used): ditto, renaming to...
2949         (state_writer::write_state_gc_used)
2950         (write_state_common_type_content): ditto, renaming to...
2951         (state_writer::write_state_common_type_content)
2952         (write_state_type): ditto, renaming to...
2953         (state_writer::write_state_type)
2954         (write_state_pair_list): ditto, renaming to...
2955         (state_writer::write_state_pair_list)
2956         (write_state_pair): ditto, renaming to...
2957         (state_writer::write_state_pair)
2958         (write_state_typedefs): ditto, renaming to...
2959         (state_writer::write_state_typedefs)
2960         (write_state_structures): ditto, renaming to...
2961         (state_writer::write_state_structures)
2962         (write_state_param_structs): ditto, renaming to...
2963         (state_writer::write_state_param_structs)
2964         (write_state_variables): ditto, renaming to...
2965         (state_writer::write_state_variables)
2966         (write_state_srcdir): ditto, renaming to...
2967         (state_writer::write_state_srcdir)
2968         (write_state_files_list): ditto, renaming to...
2969         (state_writer::write_state_files_list)
2970         (write_state_languages): ditto, renaming to...
2971         (state_writer::write_state_languages)
2972         (write_state): create a state_writer instance and use it when
2973         writing out the state file
2975 2013-05-17  Mike Stump  <mikestump@comcast.net>
2977         PR rtl-optimization/57304
2978         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2979         accessing DF_REF_REAL_LOC.
2981 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2983         PR rtl-optimization/57281
2984         PR rtl-optimization/57300
2985         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2986         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2987         what the other splitter did if the registers are dead.
2989 2013-05-17  Richard Biener  <rguenther@suse.de>
2991         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2992         MEM_REF offsets.
2994 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2996         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2997         linking.
2999 2013-05-17  Marek Polacek  <polacek@redhat.com>
3001         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3002         length when doing non-zero store of storing '\0' to '\0'.
3004 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3006         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3007         vect_external_def oprnd1 with loop_vinfo, try to emit
3008         optional cast, negation and and stmts on the loop preheader
3009         edge instead of into the pattern def seq.
3011         PR tree-optimization/57051
3012         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3013         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3015 2013-05-16  Nick Clifton  <nickc@redhat.com>
3017         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3018         (rl78_is_naked_func): New function.
3019         (rl78_expand_prologue): Skip prologue generation for naked functions.
3020         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3021         * doc/extend.texi (naked): Add RL78 to the list of processors
3022         that supports this attribute.
3024 2013-05-16  Jeff Law  <law@redhat.com>
3026         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3028 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3030         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3031         cache parameters using detect_caches_amd also for CYRIX,
3032         NSC and TM2 signatures.
3034 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3035             Dzianis Kahanovich  <mahatma@eu.by>
3037         PR target/45359
3038         PR target/46396
3039         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3040         VIA/Centaur processors and determine their cache parameters
3041         using detect_caches_amd.
3043 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3045         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3046         (rtl_verify_edges): New function.
3047         (rtl_verify_bb_insns): Ditto.
3048         (rtl_verify_bb_pointers): Ditto.
3049         (rtl_verify_bb_insn_chain): Ditto.
3050         (rtl_verify_fallthru): Ditto.
3051         (rtl_verify_bb_layout): Ditto.
3052         (rtl_verify_flow_info_1): Outline checks into new functions.
3053         (rtl_verify_flow_info): Ditto.
3055 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3057         * cfghooks.c (copy_bbs): Add update_dominance argument.
3058         * cfghooks.h (copy_bbs): Update prototype.
3059         * tree-cfg.c (gimple_duplicate_sese_region):
3060         Add update_dominance argument.
3061         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3062         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3063         gimple_duplicate_sese_region call.
3064         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3065         Update copy_bbs call.
3066         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3067         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3069 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3071         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3072         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3073         vect_recog_rotate_pattern.
3074         (vect_recog_rotate_pattern): New function.
3076 2013-05-16  Jason Merrill  <jason@redhat.com>
3078         * Makefile.in (LLINKER): New variable.
3079         (mostlyclean): Remove link mutex.
3080         * configure.ac: Handle --enable-link-mutex.
3081         * lock-and-run.sh: New script.
3083 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3085         PR target/19599
3086         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3087         for NULL decl.
3089 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3091         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3093 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3095         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3096         * config/arm/arm.c (next_consecutive_mem): New function.
3097         (gen_movmem_ldrd_strd): Likewise.
3098         * config/arm/arm.md (movmemqi): Update condition and code.
3099         (unaligned_loaddi, unaligned_storedi): New patterns.
3101 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3103         * config.gcc: Obsolete *-*-solaris2.9*.
3104         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3106 2013-05-16  Richard Biener  <rguenther@suse.de>
3108         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3109         earlier, after GRAPHITE transforms and IV canonicalization.
3111 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3113         * omp-low.c (extract_omp_for_data): For collapsed loops,
3114         if at least one of the loops is known at compile time to
3115         iterate zero times, set count to 0.
3116         (expand_omp_regimplify_p): New function.
3117         (expand_omp_for_generic): For collapsed loops, if at least
3118         one of the loops isn't known to iterate at least once,
3119         add runtime check with setting count to 0.
3120         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3121         For unsigned types if it isn't known at compile time that
3122         the loop will iterate at least once, add runtime check to bypass
3123         the whole loop if initial condition isn't true.
3125 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3127         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3129 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3131         PR middle-end/57286
3132         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3133         transformations to avoid an infinite loop.
3135 2013-05-16  Marek Polacek  <polacek@redhat.com>
3137         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3139 2013-05-15  Leif Ekblad  <leif@rdos.net>
3141         * config/i386/i386.c (ix86_decompose_address): Use
3142         DEFAULT_TLS_SEG_REG to access TLS segment register.
3143         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3144         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3145         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3147 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3149         PR target/57260
3150         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3151         sibling calls to functions that would normally be lazily bound,
3152         unless $gp is call-clobbered.
3154 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3156         * config/i386/i386.c (ix86_option_override_internal): Update
3157         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3158         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3159         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3160         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3161         of TARGET_3DNOW.
3162         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3164 2013-05-15  Andreas Schwab  <schwab@suse.de>
3166         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3167         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3168         third operand.
3170 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3172         * loop-unroll.c (report_unroll_peel): Check decision before
3173         emitting unroll/peel message.
3175 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3177         * function.h (has_bb_partition): New rtl_data flag.
3178         (bb_reorder_complete): Ditto.
3179         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3180         instead of flag_reorder_blocks_and_partition.
3181         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3182         with some enhancements.
3183         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3184         * bb-reorder.c (connect_traces): Check for has_bb_partition
3185         instead of flag_reorder_blocks_and_partition.
3186         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3187         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3188         verify_hot_cold_block_grouping.
3189         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3191 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3193         PR target/19599
3194         * config/arm/predicates.md (call_insn_operand): New predicate.
3195         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3196         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3197         if insn is not a tail call.
3198         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3199         registers.
3200         * config/arm/arm.h (enum reg_class): New caller save register class.
3201         (REG_CLASS_NAMES): Likewise.
3202         (REG_CLASS_CONTENTS): Likewise.
3203         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3204         without decls.
3206 2013-05-15  Richard Biener  <rguenther@suse.de>
3208         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3209         of MSG_OPTIMIZED_LOCATIONS.
3210         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3211         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3212         message.
3213         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3214         of MSG_OPTIMIZED_LOCATIONS.
3215         (execute_vect_slp): Likewise.
3216         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3217         (vect_create_cond_for_alias_checks): Likewise.
3218         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3219         (vect_recog_widen_mult_pattern): Likewise.
3220         (vect_recog_widen_sum_pattern): Likewise.
3221         (vect_recog_over_widening_pattern): Likewise.
3222         (vect_recog_widen_shift_pattern): Likewise.
3223         (vect_recog_vector_vector_shift_pattern): Likewise.
3224         (vect_recog_divmod_pattern): Likewise.
3225         (vect_recog_mixed_size_cond_pattern): Likewise.
3226         (vect_recog_bool_pattern): Likewise.
3227         (vect_pattern_recog_1): Likewise.
3229 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3231         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3232         non-functions to builtin_unreachable.
3233         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3234         correct when new direct edges were discovered.
3236 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3238         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3239         header, print symbol order instead of node uid, print more information
3240         about indirect edge targets.
3241         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3242         uids.
3243         (ipa_make_edge_direct_to_target): Likewise.
3244         (remove_described_reference): Likewise.
3245         (propagate_controlled_uses): Likewise.
3246         (ipa_print_node_params): Also print symbol order.
3247         (ipcp_transform_function): Print symbol order instead of node uids.
3248         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3249         (cgraph_get_create_real_symbol_node): Likewise.
3250         * ipa-cp.c (print_lattice): Likewise.
3251         (print_all_lattices): Likewise.
3252         (determine_versionability): Likewise.
3253         (initialize_node_lattices): Likewise.
3254         (estimate_local_effects): Likewise.
3255         (update_profiling_info): Likewise.
3256         (create_specialized_node): Likewise.
3257         (perhaps_add_new_callers): Likewise.
3258         (decide_about_value): Likewise.
3259         (decide_whether_version_node): Likewise.
3260         (identify_dead_nodes): Likewise.
3261         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3262         (dump_inline_summary): Likewise.
3263         (estimate_node_size_and_time): Likewise.
3264         (inline_analyze_function): Likewise.
3265         * ipa-inline.c (report_inline_failed_reason): Likewise.
3266         (want_early_inline_function_p): Likewise.
3267         (edge_badness): Likewise.
3268         (update_edge_key): Likewise.
3269         (inline_small_functions): Likewise.  Add dumping of order to two other
3270         dumps.
3271         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3272         instead of node uids.
3273         (propagate_pure_const): Likewise.
3274         (propagate_pure_const): Likewise.
3275         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3276         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3277         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3278         of node uids.
3279         * tree-pretty-print.c (dump_function_header): Likewise.
3280         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3281         Print symbol order instead of node uids.
3283 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3285         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3286         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3288 2013-05-15  Richard Biener  <rguenther@suse.de>
3290         PR tree-optimization/57275
3291         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3292         return value for fail to do runtime alias checks for gather loads.
3294 2013-05-15  Jan Hubicka  <jh@suse.cz>
3296         PR lto/57038
3297         PR lto/47375
3298         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3299         weakrefs are not external.
3300         (lto_symtab_merge_decls): Fix thinko when dealing with
3301         non-lto_symtab decls.
3302         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3303         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3304         * varpool.c (dump_varpool_node): Dump more flags.
3306 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3308         * config/i386/i386.c (processor_alias_table): Add instruction
3309         FSGSBASE for AMD bdver3 architecture.
3311 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3313         * tree.c (warn_deprecated_use): Print file:line using locus color.
3314         * diagnostic.c (diagnostic_report_current_module): Print file:line
3315         and file:line:column using locus color.
3317 2013-05-14  Mike Stump  <mikestump@comcast.net>
3319         * gdbinit.in: Add __null.
3321 2013-05-14  Mike Stump  <mikestump@comcast.net>
3323         * recog.h: Rename struct recog_data to Recog_data.
3324         * recog.c: Likewise.
3325         * reload.c (can_reload_into): Likewise.
3326         * config/picochip/picochip.c: Likewise.
3328 2013-05-14  Mike Stump  <mikestump@comcast.net>
3330         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3332 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3334         * resource.h (struct resources): Remove unch_memory member.
3335         (CLEAR_RESOURCE): Don't clear unch_memory.
3336         * resource.c (mark_referenced_resources): Don't set it.
3337         (mark_set_resources): Likewise.
3338         (mark_target_live_regs): Don't clear it.
3339         (init_resource_info): Likewise.
3340         * reorg.c (resource_conflicts_p): Don't compare it.
3341         (redundant_insn): Don't set it.
3343         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3344         Remove prototypes.
3345         * emit-rtl.c (next_label): Remove unused function.
3346         (skip_consecutive_labels, link_cc0_insns): Move to ...
3347         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3348         only place where these functions are used, and make them static.
3350 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3352         * fold-const.c (fold_negate_expr): Handle vectors.
3353         (fold_truth_not_expr): Make it static.
3354         (fold_invert_truthvalue): New static function.
3355         (invert_truthvalue_loc): Handle vectors. Do not call
3356         fold_truth_not_expr directly.
3357         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3358         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3359         (fold_comparison): Handle vector constants.
3360         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3361         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3362         * tree.h (fold_truth_not_expr): Remove declaration.
3364 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3366         * config/aarch64/aarch64-simd.md
3367         (aarch64_vcond_internal<mode>): Rename to...
3368         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3369         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3370         float modes. Clarify all iterator modes.
3371         (vcond<mode><mode>): Use new name for vcond expanders.
3372         (vcond<v_cmp_result><mode>): Likewise.
3373         (vcondu<mode><mode>: Likewise.
3374         * config/aarch64/iterators.md (VDQF_COND): New.
3376 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3378         PR bootstrap/57266
3379         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3380         variable for the shift amount. Check that we shift by non-negative
3381         amounts.
3383 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3385         PR target/42017
3386         * config/arm/arm.h (EPILOGUE_USES): Only return true
3387         for LR_REGNUM after epilogue_completed.
3389 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3391         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3392         is error_mark_node.
3394 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3396         PR target/57261
3397         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3398         and Solaris 11+/x86 with gld.
3399         * configure: Regenerate.
3401 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3403         * expmed.c (expand_shift_1): Canonicalize rotates by
3404         constant bitsize / 2 to bitsize - 1.
3405         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3406         case ROTATERT>: Likewise.
3408         Revert:
3409         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3411         * config/i386/i386.md (rotateinv): New code attr.
3412         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3413         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3414         roll $31, %eax, etc.
3416 2013-05-14  Richard Biener  <rguenther@suse.de>
3418         PR middle-end/57235
3419         * tree-eh.c (sink_clobbers): Give up for successors with
3420         multiple predecessors and no virtual uses.
3422 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3424         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3425         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3427 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3429         PR middle-end/57251
3430         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3431         the case when both op0 and op1 have VOIDmode.
3433 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3435         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3436         in multiply-accumulate mode.
3438 2013-05-13  Guozhi Wei  <carrot@google.com>
3440         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3442 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3444         PR target/56975
3445         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3446         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3447         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3448         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3449         (ix86_expand_prologue): Likewise.
3450         (ix86_expand_split_stack_prologue): Likewise.
3451         (legitimate_pic_address_disp_p): Likewise.
3452         (legitimize_pic_address): Likewise.
3453         (legitimize_tls_address): Likewise.
3454         (legitimize_pe_coff_symbol): Likewise.
3455         (output_pic_addr_const): Likewise.
3456         (construct_plt_address): Likewise.
3457         (ix86_expand_call): Likewise.
3458         (x86_output_mi_thunk): Likewise.
3459         (x86_function_profiler): Likewise.
3461 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3463         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3464         similar switch cases.
3465         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3466         (aarch64_simd_mov_to_<mode>low): Delete.
3467         (aarch64_simd_mov_to_<mode>high): Delete.
3468         (move_lo_quad_<mode>): Add w<-r alternative.
3469         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3470         (aarch64_simd_mov_from_*): Update type attribute.
3471         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3472         statement.
3474 2013-05-13  Jan Hubicka  <jh@suse.cz>
3476         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3477         * config/i386/i386.c (ix86_compute_frame_layout,
3478         ix86_expand_epilogue, emit_i387_cw_initialization,
3479         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3480         ix86_local_alignment): Fix use of size/speed predicates.
3482 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3484         PR tree-optimization/45216
3485         PR tree-optimization/57157
3486         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3487         the (-Y) & (B - 1) variant if OP is |.
3488         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3489         return shifted.  Use (-op1) & (prec - 1) as other_amount
3490         instead of prec - op1.
3492 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3494         PR middle-end/42371
3495         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3496         (ipa_constant_data): New type.
3497         (ipa_jump_func): Use ipa_constant_data to hold information about
3498         constant jump functions.
3499         (ipa_get_jf_constant): Adjust to jump function type changes.
3500         (ipa_get_jf_constant_rdesc): New function.
3501         (ipa_param_descriptor): New field controlled_uses.
3502         (ipa_get_controlled_uses): New function.
3503         (ipa_set_controlled_uses): Likewise.
3504         * ipa-ref.h (ipa_find_reference): Declare.
3505         * ipa-prop.c (ipa_cst_ref_desc): New type.
3506         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3507         changes.
3508         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3509         New parameter cs.  Adjust all callers.
3510         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3511         (remove_described_reference): New function.
3512         (jfunc_rdesc_usable): Likewise.
3513         (try_make_edge_direct_simple_call): Decrement controlled use count,
3514         attempt to remove reference if it hits zero.
3515         (combine_controlled_uses_counters): New function.
3516         (propagate_controlled_uses): Likewise.
3517         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3518         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3519         (ipa_print_node_params): Print described use counter.
3520         (ipa_write_jump_function): Adjust to jump function type changes.
3521         (ipa_read_jump_function): New parameter CS, pass it to
3522         ipa_set_jf_constant.  Adjust caller.
3523         (ipa_write_node_info): Stream controlled use count
3524         (ipa_read_node_info): Likewise.
3525         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3526         asserting.
3527         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3528         count.  Remove cloning-added reference if it reaches zero.
3529         * ipa-ref.c (ipa_find_reference): New function.
3531 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3533         * config/i386/i386.c (processor_target_table): Modified default
3534         alignment values for AMD BD and BT architectures.
3536 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3538         * tree-vect-generic.c (uniform_vector_p): Move ...
3539         * tree.c (uniform_vector_p): ... here.
3540         * tree.h (uniform_vector_p): Declare it.
3541         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3542         into a scalar.
3544 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3546         PR tree-optimization/57230
3547         * tree-ssa-strlen.c (handle_char_store): Record length for
3548         array store from STRING_CST.
3550         PR tree-optimization/57230
3551         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3552         check.
3554 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3556         * config/epiphany/epiphany.c (epiphany_init): Check size of
3557         NUM_MODES_FOR_MODE_SWITCHING.
3558         (epiphany_expand_prologue):
3559         Remove CONFIG_REGNUM initial value handling code.
3560         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3561         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3562         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3563         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3564         Don't return 1 for FP_MODE_NONE.
3565         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3566         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3567         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3568         * config/epiphany/epiphany.md (save_config): New pattern.
3570 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3572         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3574 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3576         * config/i386/i386.md (memory): Handle sseishft1.
3577         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3578         (*vec_extractv2di_1): Ditto.
3580 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3582         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3583         saved registers.
3585 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3587         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3588         Add mthumb/march=armv7-a multilib.
3589         Add mthumb/march=armv7-r multilib.
3590         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3592 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3594         * config/v850/t-rtems: Add more multilibs.
3596 2013-05-10  Richard Biener  <rguenther@suse.de>
3598         PR tree-optimization/57214
3599         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3600         not propagate from SSA names that occur in abnormal PHI nodes.
3602 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3604         * stor-layout.c (element_precision): New function.
3605         * machmode.h (element_precision): Declare it.
3606         * tree.c (build_minus_one_cst): New function.
3607         (element_precision): Likewise.
3608         * tree.h (build_minus_one_cst): Declare new function.
3609         (element_precision): Likewise.
3610         * fold-const.c (operand_equal_p): Use element_precision.
3611         (fold_binary_loc): Handle vector types.
3612         * convert.c (convert_to_integer): Use element_precision.
3613         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3614         separately.
3616 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3618         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3619         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3620         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3621         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3622         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3623         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3624         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3625         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3626         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3627         (Uuw8): New constraints.
3628         (Usb4): Move into alphabetical order.
3629         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3630         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3631         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3632         previously unnamed patterns.
3633         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3634         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3635         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3636         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3637         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3638         of specific lengths.
3640 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3642         * config/i386/i386.md (rotateinv): New code attr.
3643         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3644         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3645         roll $31, %eax, etc.
3647         PR tree-optimization/45216
3648         PR tree-optimization/57157
3649         * tree-ssa-forwprop.c (simplify_rotate): New function.
3650         (ssa_forward_propagate_and_combine): Call it.
3652 2013-05-10  Richard Biener  <rguenther@suse.de>
3654         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3655         disable peeling when we version for aliasing.
3656         (vector_alignment_reachable_p): Honor explicit user alignment.
3657         (vect_supportable_dr_alignment): Likewise.
3658         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3659         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3660         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3661         then peeling to arrange for the cost-model check to come first.
3663 2013-05-10  Alan Modra  <amodra@gmail.com>
3665         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3666         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3667         * configure: Regenerate.
3669 2013-05-10  Alan Modra  <amodra@gmail.com>
3671         PR target/55033
3672         * varasm.c (default_elf_select_section): Move !DECL_P check..
3673         (get_named_section): ..to here before calling get_section_name.
3674         Adjust assertion.
3675         (default_section_type_flags): Add DECL_P check.
3676         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3677         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3679 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3681         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3682         When using gen_stack_adjust_str with a register offset, add a
3683         REG_FRAME_RELATED_EXPR note.
3685 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3687         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3688         (*vec_extractv4si_zext_mem): Ditto.
3689         (*vec_extractv2di): Add 0->x and x->x alternatives.
3690         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3691         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3693 2013-05-09  Jason Merrill  <jason@redhat.com>
3695         N3639 C++1y VLA support
3696         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3697         DECL_VALUE_EXPR.
3699         * tree.c (build_constructor_va): New.
3700         * tree.h: Declare it.
3702 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3704         PR lto/57084
3705         * gimple-fold.c (canonicalize_constructor_val): Call
3706         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3708 2013-05-09  Jan Hubicka  <jh@suse.cz>
3709             Richard Biener  <rguenther@suse.de>
3711         PR lto/54095
3712         * symtab.c (symtab_make_decl_local): Do not add private names.
3714 2013-05-09  Jan Hubicka  <jh@suse.cz>
3716         PR lto/54095
3717         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3718         (unlink_from_assembler_name_hash): Likewise.
3719         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3720         symtab_unregister_node, symtab_initialize_asm_name_hash,
3721         change_decl_assembler_name): Update.
3723 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3725         * config/aarch64/aarch64.md: New movtf split.
3726         (*movtf_aarch64): Update.
3727         (aarch64_movdi_tilow): Handle TF modes and rename to
3728         aarch64_movdi_<mode>low.
3729         (aarch64_movdi_tihigh): Handle TF modes and rename to
3730         aarch64_movdi_<mode>high
3731         (aarch64_movtihigh_di): Handle TF modes and rename to
3732         aarch64_mov<mode>high_di
3733         (aarch64_movtilow_di): Handle TF modes and rename to
3734         aarch64_mov<mode>low_di
3735         (aarch64_movtilow_tilow): Remove spurious whitespace.
3736         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3737         splits.
3738         (aarch64_print_operand): Update.
3740 2013-05-09  Alan Modra  <amodra@gmail.com>
3742         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3743         powerpc64le.
3744         * configure: Regenerate.
3746 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3748         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3749         splitter preparation statements.
3750         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3751         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3752         adjust_address_nv.
3754 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3756         * gimple-ssa-strength-reduction.c (count_candidates): Change
3757         return value to int.
3758         (analyze_candidates_and_replace): Change type of length to int.
3760 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3762         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3763         (*vec_extract<mode>): Use VI12_128 mode iterator.
3764         (*vec_extract<mode>_mem): Ditto.
3765         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3766         attribute.
3768 2013-05-08  Diego Novillo  <dnovillo@google.com>
3770         PR bootstrap/54659
3772         Revert:
3773         2012-08-17  Diego Novillo  <dnovillo@google.com>
3775         PR bootstrap/54281
3776         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3777         * config.in: Regenerate.
3778         * configure: Regenerate.
3779         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3781 2013-05-08  Jan Hubicka  <jh@suse.cz>
3783         PR lto/54095
3784         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3785         * cgraph.h (symtab_node_base): Add unique_name.
3786         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3787         input_overwrite_node, input_varpool_node): Stream unique_name.
3788         * cgraphclones.c (cgraph_create_virtual_clone,
3789         cgraph_function_versioning): Set unique_name.
3790         * ipa.c (function_and_variable_visibility): Set unique_name.
3792 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3794         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3795         (alloc_cand_and_find_basis): Restrict conditional candidate
3796         processing to CAND_MULTs.
3798 2013-05-08  Jan Hubicka  <jh@suse.cz>
3800         PR lto/54095
3801         lto-symtab.c (lto_symtab_symbol_p): New function.
3802         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3803         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3804         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3805         Skip static symbols.
3807 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
3809         PR tree-optimization/57200
3810         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3811         Only call inform if the preceding warning_at returns true.
3813 2013-05-07  Han Shen  <shenhan@google.com>
3815         * cfgexpand.c (record_or_union_type_has_array_p): New function.
3816         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3817         * common.opt (fstack-protector-strong): New option.
3818         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3819         * doc/invoke.texi (Optimization Options): Document
3820         "-fstack-protector-strong".
3821         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3823 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3825         * config/mips/mips.c (mips_machine_reorg2): Return 0.
3827 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
3829         * ira.c (update_equiv_regs): Add insn having equiv memory even if
3830         it is not lhs of the insn.
3831         (setup_reg_equiv): Remove insn having equiv memory which it is not
3832         lhs of the insn.
3833         * lra-constraints.c (process_address): Try to improve generation
3834         code for address base + disp.
3835         (lra_constraints): Make correct the code for checking insn setting
3836         up backward equivalence.  Remove insn only if it is in the init
3837         insn list.
3838         * lra-eliminations.c (update_reg_eliminate): Change return value.
3839         (lra_eliminate): Use the result.
3841 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
3843         * config/i386/sse.md (ssescalarnummask): New mode attribute.
3844         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3845         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3846         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3847         register target operands.
3848         (*vec_extractv8hi_sse2): New pattern.
3849         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3850         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3851         (*vec_extract<mode>_mem): New insn and split pattern.
3853 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
3855         * config/arm/arm.c (arm_asan_shadow_offset): New function.
3856         (TARGET_ASAN_SHADOW_OFFSET): Define.
3857         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3858         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3860 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3862         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3863         (incr_vec_index): Return -1 if increment not found.
3864         (create_add_on_incoming_edge): Assert if increment not found.
3865         (record_increment): Limit number of increments recorded.
3866         (all_phi_incrs_profitable): Return false if an increment not found.
3867         (replace_profitable_candidates): Don't process increments that were
3868         not recorded.
3869         (analyze_candidates_and_replace): Limit size of incr_vec.
3871 2013-05-07  Richard Biener  <rguenther@suse.de>
3873         * calls.c (special_function_p): setjmp-like functions are leaf.
3874         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3875         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3877 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
3879         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3880         (aarch64_simd_mov<mode>): New expander.
3881         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3882         (aarch64_simd_mov_to_<mode>high): Likewise.
3883         (aarch64_simd_mov_from_<mode>low): Likewise.
3884         (aarch64_simd_mov_from_<mode>high): Likewise.
3885         (aarch64_dup_lane<mode>): Update.
3886         (aarch64_dup_lanedi): New instruction pattern.
3887         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3888         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3890 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3892         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3893         (replace_mult_candidate): Remove unnecessary argument; remove
3894         unnecessary parameter from call to introduce_cast_before_cand.
3895         (replace_unconditional_candidate): Remove unnecessary parameter
3896         from call to replace_mult_candidate.
3897         (replace_conditional_candidate): Likewise.
3898         (insert_initializers): Use make_temp_ssa_name.
3899         (introduce_cast_before_cand): Remove unnecessary argument; use
3900         make_temp_ssa_name.
3901         (replace_one_candidate): Remove unnecessary argument; remove
3902         unnecessary parameter from calls to introduce_cast_before_cand.
3903         (replace_profitable_candidates): Remove unnecessary parameters
3904         from calls to replace_one_candidate.
3906 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3908         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3909         phi def as possibly hiding a basis for a CAND_ADD whose operands
3910         have been commuted in the analysis.
3911         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3913 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3915         * config/aarch64/aarch64.md
3916         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3917         shift value between 0-4.
3919 2013-05-07  Richard Biener  <rguenther@suse.de>
3921         * double-int.h (rshift): New overload.
3922         * double-int.c (rshift): New function.
3923         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3924         (create_reference_ops_from_ref): Remove.
3925         (vn_reference_insert): Use shared ops for constructing the
3926         reference and copy it.
3928 2013-05-07  Richard Biener  <rguenther@suse.de>
3930         PR middle-end/57190
3931         * tree-eh.c (sink_clobbers): Properly propagate
3932         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3934 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
3936         PR tree-optimization/57149
3937         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3938         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3939         collect_phi_def_edges, execute_late_warn_uninitialized): Use
3940         uninit_undefined_value_p instead of ssa_undefined_value_p.
3942         PR debug/57184
3943         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3944         for modifier == EXPAND_INITIALIZER.
3946 2013-05-07  Anton Blanchard  <anton@samba.org>
3948         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3949         for powerpc64 little endian.
3950         * configure: Regenerate.
3952 2013-05-06  Graham Stott  <grahams@btinternet.com>
3954         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3955         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3956         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3957         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3959 2013-05-06  Graham Stott  <grahams@btinternet.com>
3961         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3962         codes which allow non-lvalues.
3964 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
3966         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3967         components are all 1s.
3968         (integer_minus_onep): New function.
3969         * tree.h (integer_minus_onep): Declare it.
3970         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3971         integer_minus_onep instead of integer_all_onesp.
3973 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3975         PR target/52933
3976         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3977         variations of these patterns.
3979 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3981         * config/i386/i386.md (isa): Add x64_sse4 member.
3982         (enabled): Handle x64_sse4.
3983         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3984         instruction for 64bit SSE4_1 targets.  Update insn attributes.
3985         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3986         instruction for SSE4_1 targets.  Update insn attributes.
3987         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3988         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3989         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3990         const_1 selector.
3991         (*vec_extractv4si): Rename from *sse4_1_pextrd.
3992         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3993         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3995 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3997         PR target/57108
3998         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4000 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4002         * final.c (do_assembler_dialects): Don't handle curly braces and
4003         vertical bar escaped by % as dialect delimiters.
4004         (output_asm_insn): Print curly braces and vertical bar if escaped
4005         by % and ASSEMBLER_DIALECT defined.
4006         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4007         * doc/tm.texi: Regenerated.
4009 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4011         * config/mips/mips.c: Include tree-pass.h.
4012         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4013         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4014         (pass_mips_machine_reorg2): New machine specific pass.
4015         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4016         (mips_option_override): Register the new pass.
4017         * rtl.h (cleanup_barriers): Remove prototype.
4018         (dbr_schedule): Likewise.
4019         * jump.c (cleanup_barriers): Make static.
4020         * reorg.c (dbr_schedule): Likewise.
4022 2013-05-06  Richard Biener  <rguenther@suse.de>
4024         PR tree-optimization/57185
4025         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4026         SSA names properly.
4028 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4030         PR target/57106
4031         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4032         between "first_arg" and "insn", not "last" and "insn".
4034 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4036         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4037         (find_candidates_in_block): Re-enable slsr_process_phi.
4038         (create_phi_basis): Fix double counting of candidate adjustment.
4040 2013-05-06  Richard Biener  <rguenther@suse.de>
4042         PR middle-end/57147
4043         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4044         the edge is also fallthru, preserve it and just clear the
4045         abnormal flag.
4046         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4047         also complex, preserve that and just clear the fallthru flag.
4048         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4049         update virtual operands.
4051 2013-05-06  Alan Modra  <amodra@gmail.com>
4053         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4054         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4055         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4056         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4057         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4058         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4060 2013-05-06  Alan Modra  <amodra@gmail.com>
4062         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4063         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4064         (DEFAULT_ASM_ENDIAN): Define.
4065         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4066         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4067         Update -K PIC clause from sysv4.h.
4068         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4069         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4071 2013-05-06  Alan Modra  <amodra@gmail.com>
4073         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4074         twice for little-endian.
4075         (ashrdi3_no_power, ashrdi3): Support little-endian.
4077 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4079         PR target/55303
4080         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4081         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4082         related expanders.
4083         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4084         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4085         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4086         New predicates.
4088 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4089             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4091         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4092         * config/pa/pa.opt: Make mbig-switch a no-op.
4093         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4094         (CASE_VECTOR_MODE): Always return SImode.
4095         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4096         for the !TARGET_BIG_SWITCH case.
4097         * config/pa/pa-linux.h: Likewise.
4098         * config/pa/pa-openbsd.h: Likewise.
4099         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4100         * config/pa/pa.md (short_jump): Remove define_insn.
4101         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4102         (casesi0): Remove define_insn.
4103         (type): Remove btable_branch.
4104         (pa_combine_type): Likewise.
4105         (in_nullified_branch_delay): Likewise.
4106         (in_call_delay): Likewise.
4107         (define_delay): Likewise.
4108         (define_insn_reservation "Z3"): Likewise.
4109         (define_insn_reservation "Z4"): Likewise.
4110         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4111         (pa_adjust_insn_length): Remove adjustment for btable branches.
4112         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4113         and mno-big-switch
4115 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4117         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4118         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4119         Add m->r,x alternatives.
4120         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4121         splitters using SWI48x mode iterator.
4122         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4123         TARGET_64BIT.  Add m->x alternative.
4124         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4125         Add o->x alternative.  Enable for TARGET_SSE.
4126         (sse_storeq): Remove expander.
4127         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4128         with memory input operand.
4129         (*vec_extractv2di_1 splitter): New.
4130         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4131         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4133 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4135         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4136         (INT_LOWPART): Delete.
4137         (extract_MB): Adjust.
4138         (extract_ME): Adjust.
4139         (print_operand): Adjust.
4141 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4143         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4144         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4145         (reg_or_logical_cint_operand, easy_fp_constant,
4146         logical_const_operand): Delete "CONST_DOUBLE" case.
4147         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4148         "HOST_BITS_PER_WIDE_INT == 64" test.
4149         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4150         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4151         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4152         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4153         test.
4154         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4155         CONST_DOUBLE DImode/VOIDmode case.
4156         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4157         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4158         CONST_DOUBLE VOIDmode case.
4159         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4160         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4161         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4162         Delete CONST_DOUBLE case.
4163         (splitters for mov FMOVE64 const_double): Delete
4164         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4165         "HOST_BITS_PER_WIDE_INT >= 64" test.
4166         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4167         case.
4168         (mov DI const_double): Delete.
4170 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4172         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4173         on op shows all bits zero in mode of a lowpart subreg, return zero.
4175 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4177         PR target/57150
4178         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4179         to save TFmode registers and DImode to save TImode registers for
4180         caller save operations.
4181         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4182         mark being partially clobbered since they only use the first
4183         double word.
4185         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4186         and TDmode only use the upper 64-bits of each VSX register.
4188 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4190         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4191         (find_candidates_in_block): Disable slsr_process_phi.
4193 2013-05-03  Guozhi Wei  <carrot@google.com>
4195         * coverage.c (coverage_obj_init): Move the construction of gcov
4196         constructor to ...
4197         (build_init_ctor): ... here.
4199 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4201         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4202         (slsr_cand_d): Redefine def_phi.
4203         (stride_status, phi_adjust_status, count_phis_status): New enums.
4204         (find_phi_def): New.
4205         (find_basis_for_base_expr): New.
4206         (find_basis_for_candidate): Handle hidden bases.
4207         (alloc_cand_and_find_basis): Handle phi candidates.
4208         (slsr_process_phi): New.
4209         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4210         (create_mul_imm_cand): Likewise.
4211         (create_add_ssa_cand): Exclude phi base candidates.
4212         (create_add_imm_cand): Likewise.
4213         (slsr_process_cast): Likewise.
4214         (slsr_process_copy): Likewise.
4215         (find_candidates_in_block): Handle phi candidates.
4216         (dump_candidate): Likewise.
4217         (unconditional_cands): Delete.
4218         (unconditional_cands_with_known_stride_p): Delete.
4219         (phi_dependent_cand_p): New.
4220         (cand_increment): Handle phi-dependent candidates.
4221         (replace_dependent): Delete.
4222         (replace_mult_candidate): New.
4223         (replace_unconditional_candidate): New.
4224         (incr_vec_index): Move to avoid forward reference.
4225         (create_add_on_incoming_edge): New.
4226         (create_phi_basis): New.
4227         (replace_dependents): Delete.
4228         (replace_conditional_candidate): New.
4229         (phi_add_costs): New.
4230         (replace_uncond_cands_and_profitable_phis): New.
4231         (record_increment): Handle phi adjustments.
4232         (record_phi_increments): New.
4233         (record_increments): Handle phi adjustments.
4234         (phi_incr_cost): New.
4235         (lowest_cost_path): Handle phis.
4236         (total_savings): Likewise.
4237         (analyze_increments): Likewise.
4238         (ncd_with_phi): New.
4239         (ncd_of_cand_and_phis): New.
4240         (nearest_common_dominator_for_cands): Handle phi increments.
4241         (all_phi_incrs_profitable): New.
4242         (replace_profitable_candidates): Handle phi-dependent candidates.
4243         (analyze_candidates_and_replace): Likewise.
4245 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4247         PR bootstrap/57154
4248         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4249         do not exceed REG_BR_PROB_BASE.
4251 2013-05-03  Jeff Law  <law@redhat.com>
4253         PR tree-optimization/57144
4254         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4255         operand of the condition will bit into the new type when eliminating
4256         a cast feeding a condition.
4258 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4260         PR rtl-optimization/57130
4261         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4262         of COMPARE as in_code to the recursive call if needed.
4264 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4266         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4267         (enabled): Handle new members.
4268         * config/i386/sse.md (*vec_concatv2si): Merge from
4269         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4270         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4272 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4274         PR tree-optimization/57027
4275         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4276         for fnms opportunity, check we got the prerequisite kind
4277         of tree / gimple before using accessor functions.
4279 2013-05-03  Richard Biener  <rguenther@suse.de>
4281         * double-int.h (lshift): New overload without precision
4282         and arith argument.
4283         (operator *=, operator +=, operator -=): Move ...
4284         * double-int.c (operator *=, operator +=, operator -=): ... here
4285         and implement more efficiently.
4286         (mul_double_with_sign): Remove.
4287         (lshift_double): Adjust to take unsinged shift argument, push
4288         dispatching code to callers.
4289         (mul_double_wide_with_sign): Add early out for callers that
4290         are not interested in high parts or overflow.
4291         (lshift): New function.
4292         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4293         dispatch code here.
4294         (lrotate, rrotate): Use logical shifts.
4295         * expr.c (get_inner_reference): Use lshift.
4296         * fixed-value.c (do_fixed_divide): Likewise.
4297         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4298         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4299         (indirect_refs_may_alias_p): Likewise.
4300         (stmt_kills_ref_p_1): Likewise.
4302 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4304         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4306 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4308         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4309         scalar form of FABD instruction.
4311 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4313         * lra-constraints.c (process_alt_operands): Add checking alt
4314         number to choose the best alternative.
4316 2013-05-02  Richard Biener  <rguenther@suse.de>
4318         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4319         bitmap and its handling.
4320         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4322 2013-05-02  Richard Biener  <rguenther@suse.de>
4324         PR middle-end/57140
4325         * tree-inline.c (copy_loops): Properly handle removed loops.
4326         (copy_cfg_body): Mark destination loops for fixup if source
4327         loops needed fixup.
4329 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4331         PR target/56732
4332         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4333         generating simple_return for naked functions.
4335 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4337         PR middle-end/56988
4338         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4339         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4340         flags match.
4341         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4342         ipa_agg_replacement_value structures.
4343         (known_aggs_to_agg_replacement_list): Likewise.
4344         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4345         (read_agg_replacement_chain): Likewise.
4346         (ipcp_transform_function): Also check that by_ref flags match.
4348 2013-05-02  Richard Biener  <rguenther@suse.de>
4350         * graphds.h (struct graph): Add obstack member.
4351         * graphds.c (new_graph): Initialize obstack and allocate
4352         vertices from it.
4353         (add_edge): Allocate edge from the obstack.
4354         (free_graph): Free the obstack instead of all edges and vertices.
4356 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4358         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4359         divides.
4360         * cfg.c (update_bb_profile_for_threading): Ditto.
4361         * tree-inline.c (copy_bb): Ditto.
4362         (copy_edges_for_bb): Ditto.
4363         (initialize_cfun): Ditto.
4364         (copy_cfg_body): Ditto.
4365         (expand_call_inline): Ditto.
4366         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4367         (estimate_node_size_and_time): Ditto.
4368         (inline_merge_summary): Ditto.
4369         * cgraphclones.c (cgraph_clone_edge): Ditto.
4370         (cgraph_clone_node): Ditto.
4371         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4372         (compute_trg_info): Ditto.
4374 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4376         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4377         S reg when fp attribute set.
4378         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4380 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4382         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4383         New pattern.
4384         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4385         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4386         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4388 2013-05-02  Richard Biener  <rguenther@suse.de>
4390         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4391         (struct instantiate_cache_entry): New type.
4392         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4393         (struct instantiate_cache_type): New type.
4394         (set_instantiated_value, get_instantiated_value): Remove.
4395         (get_instantiated_value_entry): New function.
4396         (instantiate_scev_name): Use the new cache and adjust.
4397         (instantiate_scev_poly): Adjust.
4398         (instantiate_scev_binary): Likewise.
4399         (instantiate_array_ref): Likewise.
4400         (instantiate_scev_convert): Likewise.
4401         (instantiate_scev_not): Likewise.
4402         (instantiate_scev_3): Likewise.
4403         (instantiate_scev_2): Likewise.
4404         (instantiate_scev_r): Likewise.
4405         (instantiate_scev): Likewise.
4406         (resolve_mixers): Likewise.
4408 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4410         PR target/57091
4411         * lra-constraints.c (best_small_class_operands_num): Remove.
4412         (process_alt_operands): Remove small_class_operands_num.  Take
4413         small classes operands into losers and only if the operand is not
4414         matched.  Modify debugging output.
4415         (curr_insn_transform): Remove best_small_class_operands_num.
4416         Print insn name.
4418 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4420         * config/aarch64/aarch64-builtins.c
4421         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4422         * config/aarch64/aarch64-simd-builtins.def
4423         (reduc_splus_): Add new modes.
4424         (reduc_uplus_): New.
4425         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4426         (reduc_uplus_v4sf): Likewise.
4427         (reduc_splus_v4sf): Likewise.
4428         (aarch64_addv<mode>): Likewise.
4429         (reduc_uplus_<mode>): Likewise.
4430         (reduc_splus_<mode>): Likewise.
4431         (aarch64_addvv2di): Likewise.
4432         (reduc_uplus_v2di): Likewise.
4433         (reduc_splus_v2di): Likewise.
4434         (aarch64_addvv2si): Likewise.
4435         (reduc_uplus_v2si): Likewise.
4436         (reduc_splus_v2si): Likewise.
4437         (reduc_<sur>plus_<mode>): New.
4438         (reduc_<sur>plus_v2di): Likewise.
4439         (reduc_<sur>plus_v2si): Likewise.
4440         (reduc_<sur>plus_v4sf): Likewise.
4441         (aarch64_addpv4sf): Likewise.
4442         * config/aarch64/arm_neon.h
4443         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4444         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4445         add UNSPEC_SADDV, UNSPEC_UADDV.
4446         (SUADDV): New.
4447         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4449 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4451         * config/aarch64/arm_neon.h
4452         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4454 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4456         * config/aarch64/aarch64-builtins
4457         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4459 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4461         * config/aarch64/aarch64-simd-builtins.def
4462         (reduc_smax_): New.
4463         (reduc_smin_): Likewise.
4464         (reduc_umax_): Likewise.
4465         (reduc_umin_): Likewise.
4466         (reduc_smax_nan_): Likewise.
4467         (reduc_smin_nan_): Likewise.
4468         (fmax): Remove.
4469         (fmin): Likewise.
4470         (smax): Update for V2SF, V4SF and V2DF modes.
4471         (smin): Likewise.
4472         (smax_nan): New.
4473         (smin_nan): Likewise.
4474         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4475         (<su><maxmin><mode>3): ...This, refactor.
4476         (s<maxmin><mode>3): New.
4477         (<maxmin_uns><mode>3): Likewise.
4478         (reduc_<maxmin_uns>_<mode>): Refactor.
4479         (reduc_<maxmin_uns>_v4sf): Likewise.
4480         (reduc_<maxmin_uns>_v2si): Likewise.
4481         (aarch64_<fmaxmin><mode>: Remove.
4482         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4483         new builtin names.
4484         (vmin<q>_f<32,64>): Likewise.
4485         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4486         (FMAXMIN): New.
4487         (su): Add mappings for smax, smin, umax, umin.
4488         (maxmin): New.
4489         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4490         (FMAXMIN): Rename as...
4491         (FMAXMIN_UNS): ...This.
4492         (maxminv): Remove.
4493         (fmaxminv): Likewise.
4494         (fmaxmin): Likewise.
4495         (maxmin_uns): New.
4496         (maxmin_uns_op): Likewise.
4498 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4500         * config/aarch64/arm_neon.h
4501         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4502         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4503         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4505 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4507         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4508         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4510 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4512         * config/aarch64/aarch64-simd.md
4513         (vcond<mode>_internal): Handle special cases for constant masks.
4514         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4515         (vcondu<mode><mode>): Likewise.
4516         (vcond<v_cmp_result><mode>): New.
4518 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4520         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4521         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4522         * config/aarch64/aarch64-simd-builtins.def
4523         (cmeq): Update to BUILTIN_VALLDI.
4524         (cmgt): Likewise.
4525         (cmge): Likewise.
4526         (cmle): Likewise.
4527         (cmlt): Likewise.
4528         * config/aarch64/arm_neon.h
4529         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4530         to builtins or C as appropriate.
4532 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4534         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4535         (cmgeu): ...This.
4536         (cmhi): Rename to...
4537         (cmgtu): ...This.
4538         * config/aarch64/aarch64-simd.md
4539         (simd_mode): Add SF.
4540         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4541         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4542         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4543         (cstore<mode>_neg): ...This.
4544         * config/aarch64/iterators.md
4545         (VALLF): new.
4546         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4547         (COMPARISONS): New.
4548         (UCOMPARISONS): Likewise.
4549         (optab): Add missing comparisons.
4550         (n_optab): New.
4551         (cmp_1): Likewise.
4552         (cmp_2): Likewise.
4553         (CMP): Likewise.
4554         (cmp): Remove.
4555         (VCMP_S): Likewise.
4556         (VCMP_U): Likewise.
4557         (V_cmp_result): Add DF, SF modes.
4558         (v_cmp_result): Likewise.
4559         (v): Likewise.
4560         (vmtype): Likewise.
4561         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4563 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4565         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4566         define_insn to define_insn_and_split.
4567         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4568         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4569         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4570         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4571         (thumb2_negscc): Likewise.
4573 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4575         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4577 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4579         * config/arm/thumb2.md: Remove trailing whitespaces.
4581 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4583         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4584         Use gen_int_mode rather than GEN_INT.
4586 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4588         * value-prof.c (stream_in_histogram_value): Remove the strayed
4589         debug_gimple_stmt.
4591 2013-04-30  Richard Biener  <rguenther@suse.de>
4593         PR middle-end/57122
4594         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4596 2013-04-30  Richard Biener  <rguenther@suse.de>
4598         PR middle-end/57107
4599         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4601 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4603         PR rtl-optimization/56957
4604         PR rtl-optimization/57105
4605         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4606         variable.  Use just INSN_UID for determining whether an insn
4607         should be only disconnected from the insn stream.
4608         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4610 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4612         PR tree-optimization/57104
4613         * tsan.c (instrument_expr): Don't instrument accesses to
4614         DECL_HARD_REGISTER VAR_DECLs.
4616 2013-04-30  Richard Biener  <rguenther@suse.de>
4618         * function.h (loops_for_fn): New inline function.
4619         (set_loops_for_fn): Likewise.
4620         * cfgloop.h (place_new_loop): Add struct function parameter.
4621         (get_loop): Likewise.
4622         (get_loops): Likewise.
4623         (number_of_loops): Likewise.
4624         (fel_next): Adjust.
4625         (fel_init): Likewise.
4626         * cfg.c (get_loop_copy): Adjust.
4627         * cfgloop.c (flow_loops_dump): Likewise.
4628         (record_loop_exits): Likewise.
4629         (verify_loop_structure): Likewise.
4630         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4631         (estimate_reg_pressure_cost): Likewise.
4632         (mark_loop_exit_edges): Likewise.
4633         * cfgloopmanip.c (place_new_loop): Likewise.
4634         (add_loop): Likewise.
4635         (duplicate_loop): Likewise.
4636         * graph.c (draw_cfg_nodes): Likewise.
4637         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4638         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4639         (extract_affine_chrec): Likewise.
4640         (build_scop_iteration_domain): Likewise.
4641         * graphite.c (graphite_initialize): Likewise.
4642         * ira-build.c (create_loop_tree_nodes): Likewise.
4643         (more_one_region_p): Likewise.
4644         (rebuild_regno_allocno_maps): Likewise.
4645         (mark_loops_for_removal): Likewise.
4646         (mark_all_loops_for_removal): Likewise.
4647         (remove_unnecessary_regions): Likewise.
4648         (ira_build): Likewise.
4649         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4650         * loop-init.c (fix_loop_structure): Likewise.
4651         (gate_rtl_move_loop_invariants): Likewise.
4652         (gate_rtl_unswitch): Likewise.
4653         (gate_rtl_unroll_and_peel_loops): Likewise.
4654         (rtl_doloop): Likewise.
4655         * lto-streamer-in.c (input_cfg): Likewise.
4656         * lto-streamer-out.c (output_cfg): Likewise.
4657         * modulo-sched.c (sms_schedule): Likewise.
4658         * predict.c (tree_estimate_probability): Likewise.
4659         (tree_estimate_probability_driver): Likewise.
4660         (estimate_loops): Likewise.
4661         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4662         (move_sese_region_to_fn): Likewise.
4663         (debug_loop_num): Likewise.
4664         * tree-chrec.c (chrec_evaluate): Likewise.
4665         (hide_evolution_in_other_loops_than_loop): Likewise.
4666         (chrec_component_in_loop_num): Likewise.
4667         (reset_evolution_in_loop): Likewise.
4668         (evolution_function_is_invariant_rec_p): Likewise.
4669         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4670         * tree-inline.c (copy_loops): Likewise.
4671         (copy_cfg_body): Likewise.
4672         (tree_function_versioning): Likewise.
4673         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4674         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4675         Likewise.
4676         (add_to_evolution_1): Likewise.
4677         (scev_const_prop): Likewise.
4678         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4679         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4680         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4681         (tree_ssa_lim_initialize): Likewise.
4682         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4683         (verify_loop_closed_ssa): Likewise.
4684         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4685         (tree_ssa_loop_im): Likewise.
4686         (tree_ssa_loop_unswitch): Likewise.
4687         (tree_vectorize): Likewise.
4688         (check_data_deps): Likewise.
4689         (tree_ssa_loop_ivcanon): Likewise.
4690         (tree_ssa_loop_bounds): Likewise.
4691         (tree_complete_unroll): Likewise.
4692         (tree_complete_unroll_inner): Likewise.
4693         (tree_parallelize_loops): Likewise.
4694         (tree_ssa_loop_prefetch): Likewise.
4695         (tree_ssa_loop_ivopts): Likewise.
4696         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4697         * tree-vectorizer.c (vectorize_loops): Likewise.
4699 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4701         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4702         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4703         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4704         with EABI_LINK_SPEC.
4706 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4708         PR target/44578
4709         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4710         alternative.
4712 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4714         PR target/57097
4715         * lra-constraints.c (process_alt_operands): Discourage a bit more
4716         using memory for pseudos.  Print cost dump for alternatives.
4717         Modify cost values for conflicts with early clobbers.
4718         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4720 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4722         PR target/57098
4723         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4725 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4727         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4728         from/to S register.
4729         (movdi_aarch64): Support LDR/STR from/to D register.
4731 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4733         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4734         or higher by default.
4736 2013-04-29  Richard Biener  <rguenther@suse.de>
4738         PR middle-end/57075
4739         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4740         even if not adding abnormal edges for calls that can make
4741         abnormal gotos.
4743 2013-04-29  Richard Biener  <rguenther@suse.de>
4745         PR middle-end/57103
4746         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4747         TREE_BLOCK.
4748         (move_stmt_r): Remove redundant checking.
4750 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4752         PR bootstrap/57077
4753         * basic-block.h (apply_scale): New function.
4754         (apply_probability): Use apply_scale.
4755         * gimple-streamer-in.c (input_bb): Ditto.
4756         * lto-streamer-in.c (input_cfg): Ditto.
4757         * lto-cgraph.c (merge_profile_summaries): Ditto.
4758         * tree-optimize.c (execute_fixup_cfg): Ditto.
4759         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4760         (copy_edges_for_bb): Ditto.
4761         (copy_cfg_body): Ditto.
4763 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4765         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4766         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4767         (tail_merge_optimize): Handle current_loops == NULL.
4769 2013-04-26  Jeff Law  <law@redhat.com>
4771         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4772         (simplify_cond_using_ranges): Generalize code to simplify
4773         COND_EXPRs where one argument is a constant and the other
4774         is an SSA_NAME created by an integral type conversion.
4776 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4778         * config/arm/arm.md (store_minmaxsi): Use only when
4779         optimize_insn_for_size_p.
4781 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4783         PR target/57108
4784         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4786 2013-04-29  Richard Biener  <rguenther@suse.de>
4788         PR middle-end/57089
4789         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4790         loop tree make sure to schedule a fixup for the child as well.
4791         (expand_omp_for_generic): Properly add loops.
4792         (expand_omp_for_static_nochunk): Likewise.
4793         (expand_omp_for_static_chunk): Likewise.
4794         (expand_omp_for): For the degenerate case fixup loops.
4795         (expand_omp_sections): Fix default bb placement in loops.
4796         (expand_omp_atomic_pipeline): Properly add loops.
4798 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4800         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4802 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4804         * tree-ssa-tail-merge.c: Update header comment.
4806 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4808         * config/aarch64/arm_neon.h
4809         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4810         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4811         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4812         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4813         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4814         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4815         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4816         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4818 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4820         * config/aarch64/aarch64-simd.md
4821         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4822         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4823         fix_trunc, fixuns_trunc.
4824         (ftrunc<VDQF:mode>2): New.
4825         * config/aarch64/iterators.md (optab): Add fix, fixuns.
4826         (fix_trunc_optab): New.
4828 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4830         * config/aarch64/aarch64-builtins.c
4831         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4832         iceilf, lround, iroundf.
4834 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4836         PR target/54349
4837         * config/i386/i386.h (enum ix86_tune_indices)
4838         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4839         New, split from X86_TUNE_INTER_UNIT_MOVES.
4840         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4841         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4842         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4843         (TARGET_INTER_UNIT_MOVES): Remove.
4844         * config/i386/i386.c (initial_ix86_tune_features): Update.
4845         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4846         (ix86_expand_convert_uns_didf_sse): Use
4847         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4848         (ix86_expand_vector_init_one_nonzero): Ditto.
4849         (ix86_expand_vector_init_interleave): Ditto.
4850         (inline_secondary_memory_needed): Return true for moves from SSE class
4851         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4852         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4853         * config/i386/constraints.md (Yi, Ym): Depend on
4854         TARGET_INTER_UNIT_MOVES_TO_VEC.
4855         (Yj, Yn): New constraints.
4856         * config/i386/i386.md (*movdi_internal): Change constraints of
4857         operand 1 from Yi to Yj and from Ym to Yn.
4858         (*movsi_internal): Ditto.
4859         (*movdf_internal): Ditto.
4860         (*movsf_internal): Ditto.
4861         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4862         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4863         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4864         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4865         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4866         * config/i386/sse.md (movdi_to_sse): Ditto.
4867         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4868         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4869         TARGET_INTER_UNIT_MOVES.
4870         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4871         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4872         instead of TARGET_INTER_UNIT_MOVES.
4873         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4874         operand 1 from Yi to Yj and from Ym to Yn.
4876 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4878         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4879         (float_truncate_hi_): Likewise.
4880         (float_extend_lo_): Likewise.
4881         (float_truncate_lo_): Likewise.
4882         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4883         (aarch64_float_extend_lo_v2df): Likewise.
4884         (vec_unpacks_hi_v4sf): Likewise.
4885         (aarch64_float_truncate_lo_v2sf): Likewise.
4886         (aarch64_float_truncate_hi_v4sf): Likewise.
4887         (vec_pack_trunc_v2df): Likewise.
4888         (vec_pack_trunc_df): Likewise.
4890 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4892         * config/aarch64/aarch64-builtins.c
4893         (aarch64_fold_builtin): Fold float conversions.
4894         * config/aarch64/aarch64-simd-builtins.def
4895         (floatv2si, floatv4si, floatv2di): New.
4896         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4897         * config/aarch64/aarch64-simd.md
4898         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4899         * config/aarch64/iterators.md (FLOATUORS): New.
4900         (optab): Add float, floatuns.
4901         (su_optab): Likewise.
4903 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4905         * config/aarch64/aarch64-builtins.c
4906         (aarch64_builtin_vectorized_function): Use new names for
4907         fcvt builtins.
4908         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4909         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4910         (fcvtzu): Split as...
4911         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4912         (fcvtas): Split as...
4913         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4914         (fcvtau): Split as...
4915         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4916         (fcvtps): Split as...
4917         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4918         (fcvtpu): Split as...
4919         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4920         (fcvtms): Split as...
4921         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4922         (fcvtmu): Split as...
4923         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4924         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4925         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4926         (lfrintnusf, lfrintnudf): Likewise.
4927         * config/aarch64/aarch64-simd.md
4928         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4929         define_insn.
4930         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4931         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4932         (fcvt_pattern): Likewise.
4934 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4936         * config/aarch64/aarch64-simd.md
4937         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4938         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4940 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4942         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4943         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4944         (vrnd<a,m,n,p>_f32): Implement using builtins.
4945         (vrnd<i,x><q>_f<32, 64>): New.
4947 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4949         * config/aarch64/aarch64-builtins.c
4950         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4951         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4952         (frintz): Rename to...
4953         (btrunc): ...this.
4954         (frintp): Rename to...
4955         (ceil): ...this.
4956         (frintm): Rename to...
4957         (floor): ...this.
4958         (frinti): Rename to...
4959         (nearbyint): ...this.
4960         (frintx): Rename to...
4961         (rint): ...this.
4962         (frinta): Rename to...
4963         (round): ...this.
4964         * config/aarch64/aarch64-simd.md
4965         (aarch64_frint<frint_suffix><mode>): Delete.
4966         (<frint_pattern><mode>2): Convert to insn.
4967         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4968         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4969         (frint_pattern): Likewise.
4970         (frint_suffix): Likewise.
4972 2013-04-29  Richard Biener  <rguenther@suse.de>
4974         PR tree-optimization/57081
4975         * loop-init.c: Include tree-flow.h.
4976         (loop_optimizer_finalize): Free number of iteration estimates.
4977         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4979 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
4981         PR tree-optimization/57083
4982         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4983         non-singleton shift count range, zero extend low_bound for uns case.
4985         * config/i386/predicates.md (general_vector_operand): New predicate.
4986         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4987         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4988         if they aren't nonimmediate operands.  If their original values
4989         satisfy const_vector_equal_evenodd_p, don't shift them.
4990         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4991         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
4992         if not nonimmediate_operand.
4993         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4994         instead of register_operand.
4995         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4997 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4999         * stor-layout.c (finalize_size_functions): Allocate a structure and
5000         reset cfun before dumping the functions.
5002 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5004         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5006         PR target/56866
5007         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5008         use xop_pmacsdqh if uns_p.
5009         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5010         the immediate rotate count.
5012 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5014         * rtl.h (struct rtx_def): Add comment for field jump.
5015         (LRA_SUBREG_P): New macro.
5016         * recog.c (register_operand): Check LRA_SUBREG_P.
5017         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5018         stack frame.
5019         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5020         (lra_final_code_change): Skip subreg change for operators.
5021         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5022         if there are no operand changes.
5023         * lra-constraints.c (curr_insn_set): New.
5024         (match_reload): Set LRA_SUBREG_P.
5025         (emit_spill_move): Ditto.
5026         (check_and_process_move): Use curr_insn_set. Process only single
5027         set insns.  Don't initialize sec_mem_p and change_p.
5028         (simplify_operand_subreg): Use LRA_SUBREG_P.
5029         (reg_in_class_p): New function.
5030         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5031         of #ifdef.  Add code to remove cycling.
5032         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5033         non-null disp.  Reload inner instead of disp when base and index
5034         are null.  Try to put lo_sum into register.
5035         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5036         (check_and_process_move): Move code for move cost check to
5037         simple_move_p.  Remove equiv_substitution.
5038         (simple_move_p): New function.
5039         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5040         curr_insn_set.  Call check_and_process_move only for single set
5041         insns.  Use the new function.  Move call of check_and_process_move
5042         after operand equiv substitution and address process.
5044 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5046         PR go/57045
5047         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5048         with nonlocal goto receivers or returns twice calls, ignore
5049         unininitialized values from abnormal edges to nl goto receiver
5050         or returns twice call.
5052 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5054         PR tree-optimization/57051
5055         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5056         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5057         bitsize.
5059 2013-04-26  Richard Biener  <rguenther@suse.de>
5061         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5062         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5063         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5064         (fixup_loop_arrays_after_move): New function.
5065         (move_sese_region_to_fn): Properly outline the loop tree parts
5066         of the SESE region.
5068 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5070         * config/i386/i386.md (type, unit): Fix long lines.
5072 2013-04-26  Richard Biener  <rguenther@suse.de>
5074         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5075         (lto-streamer-out.o): Likewise.
5076         * cfgloop.c (init_loops_structure): Export, add struct function
5077         argument and adjust.
5078         (flow_loops_find): Adjust.
5079         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5080         (init_loops_structure): Declare.
5081         * lto-streamer-in.c: Include cfgloop.h.
5082         (input_cfg): Input the loop tree.
5083         * lto-streamer-out.c: Include cfgloop.h.
5084         (output_cfg): Output the loop tree.
5085         (output_struct_function_base): Do not drop PROP_loops.
5087 2013-03-26  Richard Biener  <rguenther@suse.de>
5089         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5090         (pass_build_cfg): Provide PROP_loops.
5091         (move_sese_region_to_fn): Remove loops that are outlined into fn
5092         for now.
5093         * tree-inline.c: Include cfgloop.h.
5094         (initialize_cfun): Do not drop PROP_loops.
5095         (copy_loops): New function.
5096         (copy_cfg_body): Copy loop structure.
5097         (tree_function_versioning): Initialize destination loop tree.
5098         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5099         (pass_parallelize_loops): Do IL verification.
5100         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5101         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5102         the CFG make sure we fixup loops as well.
5103         * tree-ssa-tail-merge.c: Include cfgloop.h.
5104         (replace_block_by): When merging loop latches mark loops for fixup.
5105         * lto-streamer-out.c (output_struct_function_base): Drop
5106         PROP_loops for now.
5107         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5108         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5109         * ipa-split.c: Include cfgloop.h.
5110         (split_function): Add the new return block to the loop tree root.
5111         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5112         whether we have removed the forwarder block.
5113         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5114         * cfgloop.h (place_new_loop): Declare.
5115         * cfgloopmanip.c (place_new_loop): Export.
5116         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5117         (tree-switch-conversion.o): Likewise.
5118         (tree-complex.o): Likewise.
5119         (tree-inline.o): Likewise.
5120         (tree-ssa-tailmerge.o): Likewise.
5121         (ipa-split.o): Likewise.
5122         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5123         (tree-ssa-copy.o): Likewise.
5124         * tree-switch-conversion.c: Include cfgloop.h
5125         (process_switch): If we emit a bit-test cascade, schedule loops
5126         for fixup.
5127         * tree-complex.c: Include cfgloop.h.
5128         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5129         * asan.c: Include cfgloop.h.
5130         (create_cond_insert_point): Properly add new basic-blocks to
5131         loops, schedule loop fixup.
5132         * cfgloop.c (verify_loop_structure): Check that looks are not
5133         marked for fixup.
5134         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5135         to loops.
5136         (expand_omp_for_generic): Likewise.
5137         (expand_omp_sections): Likewise.
5138         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5139         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5140         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5141         is initialized, not when loops are present.
5142         * tree-parloops.c (parallelize_loops): Remove checking here.
5143         * passes.c (init_optimization_passes): Schedule a copy-propagation
5144         pass before complete unrolling of inner loops.
5146 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5148         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5149         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5150         (colorize_init): Add argument to _WIN32 version.
5151         * toplev.c: Include diagnostic-color.h.
5152         (process_options): Default to -fdiagnostics-color=auto if
5153         GCC_COLORS env var is in the environment.
5154         * common.opt (fdiagnostics-color=): Add Var and Init.
5155         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5156         env var is in the environment, the default is auto rather than never.
5158         * diagnostic.h (file_name_as_prefix): Add context argument.
5159         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5160         the string as locus.
5161         * langhooks.c (lhd_print_error_function): Adjust caller.
5163 2013-04-25  Lawrence Crowl  <crowl@google.com>
5165         * var-tracking.c (shared_hash_def::htab):
5166         Change type to hash_table.  Update dependent calls and types.
5168 2013-04-25  Lawrence Crowl  <crowl@google.com>
5170         * Makefile.in: Update as needed below.
5172         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5173         Move declaration to after the type's method definitons.
5175         * attribs.c (htab_t scoped_attributes::attribute_hash):
5176         Change type to hash_table.  Update dependent calls and types.
5178         * bitmap.c (htab_t bitmap_desc_hash):
5179         Change type to hash_table.  Update dependent calls and types.
5181         * cselib.c (htab_t cselib_hash_table):
5182         Change type to hash_table.  Update dependent calls and types.
5184         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5185         (hash_string_slot_node): Move implementation into lto-streamer.h
5186         struct string_slot_hasher.
5187         (eq_string_slot_node): Likewise.
5189         * data-streamer-out.c: Update output_block::string_hash_table
5190         dependent calls and types.
5192         * dwarf2cfi.c (htab_t trace_index):
5193         Change type to hash_table.  Update dependent calls and types.
5195         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5196         Change type to hash_table.  Update dependent calls and types.
5197         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5198         (htab_t optimize_external_refs::map): Likewise.
5199         (htab_t output_comp_unit::extern_map): Likewise.
5200         (htab_t output_comdat_type_unit::extern_map): Likewise.
5201         (htab_t output_macinfo::macinfo_htab): Likewise.
5202         (htab_t optimize_location_lists::htab): Likewise.
5203         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5205         * except.c (htab_t ehspec_hash_type):
5206         Change type to hash_table.  Update dependent calls and types.
5207         (assign_filter_values::ttypes): Likewise.
5208         (assign_filter_values::ehspec): Likewise.
5209         (sjlj_assign_call_site_values::ar_hash): Likewise.
5210         (convert_to_eh_region_ranges::ar_hash): Likewise.
5212         * gcse.c (htab_t pre_ldst_table):
5213         Change type to hash_table.  Update dependent calls and types.
5215         * ggc-common.c (htab_t saving_htab):
5216         Change type to hash_table.  Update dependent calls and types.
5217         (htab_t loc_hash): Likewise.
5218         (htab_t ptr_hash): Likewise.
5219         (call_count): Rename ggc_call_count.
5220         (call_alloc): Rename ggc_call_alloc.
5221         (loc_descriptor): Rename make_loc_descriptor.
5222         (add_statistics): Rename ggc_add_statistics.
5224         * ggc-common.c (saving_htab):
5225         Change type to hash_table.  Update dependent calls and types.
5227         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5228         (push_gimplify_context): Likewise.
5229         (pop_gimplify_context): Likewise.
5230         (struct gimple_temp_hash_elt): Added.
5231         (struct gimplify_hasher): Likewise.
5232         (struct gimplify_ctx.temp_htab):
5233         Change type to hash_table.  Update dependent calls and types.
5235         * gimple-fold.c: Include gimplify-ctx.h.
5237         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5238         Change type to hash_table.  Update dependent calls and types.
5239         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5240         avoid potential global name collision.
5242         * gimplify.c: Include gimplify-ctx.h.
5243         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5244         (htab_t gimplify_ctx::temp_htab):
5245         Update dependent calls and types for new type hash_table.
5246         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5247         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5249         * gimplify-ctx.h: New.
5250         (struct gimple_temp_hash_elt): Move from gimplify.c.
5251         (class gimplify_hasher): New.
5252         (struct gimplify_ctx): Move from gimple.h.
5253         (htab_t gimplify_ctx::temp_htab):
5254         Change type to hash_table.  Update dependent calls and types.
5256         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5257         (htab_t ivs_params::newivs_index):
5258         Change type to hash_table.  Update dependent calls and types.
5259         (htab_t ivs_params::params_index): Likewise.
5260         (htab_t print_generated_program::params_index): Likewise.
5261         (htab_t gloog::newivs_index): Likewise.
5262         (htab_t gloog::params_index): Likewise.
5264         * graphite.c: Include graphite-htab.h.
5265         4htab_t graphite_transform_loops::bb_pbb_mapping):
5266         Change type to hash_table.  Update dependent calls and types.
5268         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5269         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5270         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5272         * graphite-dependences.c: Include graphite-htab.h.
5273         (loop_is_parallel_p): Change hash table type of parameter.
5275         * graphite-htab.h: New.
5276         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5277         (extern find_pbb_via_hash): Move from graphite-poly.h.
5278         (extern loop_is_parallel_p): Move from graphite-poly.h.
5279         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5281         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5282         (extern loop_is_parallel_p): Move to graphite-htab.h.
5283         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5285         * haifa-sched.c (htab_t delay_htab):
5286         Change type to hash_table.  Update dependent calls and types.
5287         (htab_t delay_htab_i2): Likewise.
5289         * ira-color.c (htab_t allocno_hard_regs_htab):
5290         Change type to hash_table.  Update dependent calls and types.
5292         * ira-costs.c (htab_t cost_classes_htab):
5293         Change type to hash_table.  Update dependent calls and types.
5295         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5296         Change type to hash_table.  Update dependent calls and types.
5298         * loop-iv.c (htab_t bivs):
5299         Change type to hash_table.  Update dependent calls and types.
5301         * loop-unroll.c (htab_t opt_info::insns_to_split):
5302         Change type to hash_table.  Update dependent calls and types.
5303         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5305         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5306         (struct string_slot_hasher): New.
5307         (htab_t output_block::string_hash_table):
5308         Change type to hash_table.  Update dependent calls and types.
5310         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5311         (htab_t file_name_hash_table):
5312         Change type to hash_table.  Update dependent calls and types.
5314         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5315         calls and types.
5317         * lto-streamer.c (htab_t tree_htab):
5318         Change type to hash_table.  Update dependent calls and types.
5320         * omp-low.c: Include gimplify-ctx.h.
5322         * passes.c (htab_t name_to_pass_map):
5323         Change type to hash_table.  Update dependent calls and types.
5324         (pass_traverse): Rename to passes_pass_traverse.
5326         * plugin.c (htab_t event_tab):
5327         Change type to hash_table.  Update dependent calls and types.
5329         * postreload-gcse.c (htab_t expr_table):
5330         Change type to hash_table.  Update dependent calls and types.
5331         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5333         * sese.c (debug_rename_map_1): Make extern.
5334         (htab_t copy_bb_and_scalar_dependences::rename_map):
5335         Change type to hash_table.  Update dependent calls and types.
5337         * sese.h (extern debug_rename_map): Move to .c file.
5339         * store-motion.c (htab_t store_motion_mems_table):
5340         Change type to hash_table.  Update dependent calls and types.
5342         * trans-mem.c (htab_t tm_new_mem_hash):
5343         Change type to hash_table.  Update dependent calls and types.
5345         * tree-browser.c (htab_t TB_up_ht):
5346         Change type to hash_table.  Update dependent calls and types.
5348         * tree-cfg.c (htab_t discriminator_per_locus):
5349         Change type to hash_table.  Update dependent calls and types.
5351         * tree-complex.c: Include tree-hasher.h
5352         (htab_t complex_variable_components):
5353         Change type to hash_table.  Update dependent calls and types.
5355         * tree-eh.c (htab_t finally_tree):
5356         Change type to hash_table.  Update dependent calls and types.
5358         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5359         struct int_tree_hasher.
5360         (extern int_tree_map_eq): Likewise.
5361         (uid_decl_map_hash): Removed.
5362         (extern decl_tree_map_eq): Likewise.
5364         * tree-hasher.h: New.
5365         (struct int_tree_hasher): New.
5366         (typedef int_tree_htab_type): New.
5368         * tree-inline.c: Include gimplify-ctx.h.
5370         * tree-mudflap.c: Include gimplify-ctx.h.
5372         * tree-parloops.c: Include tree-hasher.h.
5373         (htab_t eliminate_local_variables_stmt::decl_address):
5374         Change type to hash_table.  Update dependent calls and types.
5375         (htab_t separate_decls_in_region::decl_copies): Likewise.
5377         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5378         Change type to hash_table.  Update dependent calls and types.
5380         * tree-sra.c (candidates):
5381         Change type to hash_table.  Update dependent calls and types.
5383         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5384         in tree-flow.h.
5385         (int_tree_map_hash): Likewise.
5387         * tree-ssa-dom.c (htab_t avail_exprs):
5388         Change type to hash_table.  Update dependent calls and types.
5390         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5391         Change type to hash_table.  Update dependent calls and types.
5393         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5394         Change type to hash_table.  Update dependent calls and types.
5396         * tree-ssa-phiopt.c (seen_ssa_names):
5397         Change type to hash_table.  Update dependent calls and types.
5399         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5400         Change type to hash_table.  Update dependent calls and types.
5402         * tree-ssa-uncprop.c (equiv):
5403         Change type to hash_table.  Update dependent calls and types.
5405 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5407         PR rtl-optimization/57003
5408         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5409         call note_stores with kill_clobbered_value callback again after
5410         killing regs_invalidated_by_call.
5412 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5414         * config/aarch64/aarch64-simd.md
5415         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5416         (aarch64_simd_bsl<mode>): Likewise.
5417         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5419 2013-04-25  Marek Polacek  <polacek@redhat.com>
5421         PR tree-optimization/57066
5422         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5424 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5426         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5428 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5430         * config/aarch64/aarch64-builtins.c
5431         (aarch64_fold_builtin): New.
5432         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5433         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5434         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5435         * config/aarch64/arm_neon.h
5436         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5438 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5439             Tejas Belagod  <tejas.belagod@arm.com>
5441         * config/aarch64/aarch64-builtins.c
5442         (aarch64_gimple_fold_builtin): New.
5443         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5444         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5445         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5446         (addvv4sf): Update.
5447         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5449 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5451         * config/aarch64/aarch64.md
5452         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5454 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5456         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5457         (*ngcsi_uxtw): New pattern.
5459 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5460             Julian Brown  <julian@codesourcery.com>
5462         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5463         (TB_DREG): Add T_V4HF.
5464         (v4hf_UP): New macro.
5465         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5466         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5467         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5468         built-ins.
5469         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5470         (arm_vector_mode_supported_p): Handle V4HF.
5471         (arm_mangle_map): Handle V4HFmode.
5472         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5473         * config/arm/arm_neon_builtins.def: Add entries for
5474         vcvtv4hfv4sf, vcvtv4sfv4hf.
5475         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5476         (neon_vcvtv4hfv4sf): Likewise.
5477         * config/arm/neon-gen.ml: Handle half-precision floating point
5478         features.
5479         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5480         * config/arm/arm_neon.h: Regenerate.
5481         * config/arm/neon.ml (type elts): Add F16.
5482         (type vectype): Add T_float16x4, T_floatHF.
5483         (type vecmode): Add V4HF.
5484         (type features): Add Requires_FP_bit feature.
5485         (elt_width): Handle F16.
5486         (elt_class): Likewise.
5487         (elt_of_class_width): Likewise.
5488         (mode_of_elt): Refactor.
5489         (type_for_elt): Handle F16, fix error messages.
5490         (vectype_size): Handle T_float16x4.
5491         (vcvt_sh): New function.
5492         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5493         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5494         (string_of_mode): Handle V4HF.
5495         * doc/arm-neon-intrinsics.texi: Regenerate.
5497 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5499         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5500         format specifier in 'X' case.
5502 2013-04-25  Alan Modra  <amodra@gmail.com>
5504         PR target/57052
5505         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5506         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5507         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5508         Repeat for many other rotate/shift and mask patterns using subregs.
5509         Name lshiftrt insns.
5510         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5511         on WORDS_BIG_ENDIAN.
5513 2013-04-25  Alan Modra  <amodra@gmail.com>
5515         * config.gcc: Support little-endian powerpc-linux targets.
5516         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5517         (LINK_OS_LINUX_SPEC): Define.
5518         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5519         Preserve MASK_LITTLE_ENDIAN.
5520         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5521         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5522         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5523         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5524         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5525         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5526         Correct fp word order for little-endian.  Don't shift toc entries
5527         smaller than a word for little-endian.
5528         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5529         (bswapdi2 splits): Correct low-part subreg for little-endian.
5530         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5531         low/high where such is correct only for be.
5532         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5533         little-endian for -mcall-aixdesc.
5535 2013-04-25  Alan Modra  <amodra@gmail.com>
5537         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5538         replace_equiv_address_nv.
5540 2013-04-25  Alan Modra  <amodra@gmail.com>
5542         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5544 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5546         Revert:
5547         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5548         * rtl.h (struct rtx_def): ...
5550 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5552         PR rtl-optimizations/57046
5553         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5554         for multi-reg splits.
5556 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5558         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5560 2013-04-24  Sterling Augustine  <saugustine@google.com>
5562         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5563         (comp_dir_string, debug_str_dwo_section): New.
5564         (DEBUG_STR_DWO_SECTION): Rename to ...
5565         (DEBUG_DWO_STR_SECTION): ... this.
5566         (DEBUG_NORM_STR_SECTION): Delete.
5567         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5568         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5569         (find_AT_string): Move most logic to ...
5570         (find_AT_string_in_table): ... here.  New.
5571         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5572         add_skeleton_AT_string.  Delete logic.
5573         (output_skeleton_debug_sections): Remove call to
5574         add_top_level_skeleton_die_attrs.
5575         (add_comp_dir_attribute): Move logic to comp_dir_string.
5576         (dwarf2out_init): Initialize debug_str_dwo_section.
5577         (output_indirect_string): Call find_string_form.
5578         (output_indirect_strings): Rewrite.
5579         (prune_unused_types): Empty skeleton_debug_str_hash.
5580         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5581         (dwarf2out_finish):  Call output_indirect_strings.
5583 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5585         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5587 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5589         * rtl.h (struct rtx_def): Add comment for field jump.
5590         (LRA_SUBREG_P): New macro.
5591         * recog.c (register_operand): Check LRA_SUBREG_P.
5592         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5593         stack frame.
5594         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5595         (lra_final_code_change): Skip subreg change for operators.
5596         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5597         if there are no operand changes.
5598         * lra-constraints.c (curr_insn_set): New.
5599         (match_reload): Set LRA_SUBREG_P.
5600         (emit_spill_move): Ditto.
5601         (check_and_process_move): Use curr_insn_set. Process only single
5602         set insns.  Don't initialize sec_mem_p and change_p.
5603         (simplify_operand_subreg): Use LRA_SUBREG_P.
5604         (reg_in_class_p): New function.
5605         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5606         of #ifdef.  Add code to remove cycling.
5607         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5608         non-null disp.  Reload inner instead of disp when base and index
5609         are null.  Try to put lo_sum into register.
5610         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5611         (check_and_process_move): Move code for move cost check to
5612         simple_move_p.  Remove equiv_substitution.
5613         (simple_move_p): New function.
5614         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5615         curr_insn_set.  Call check_and_process_move only for single set
5616         insns.  Use the new function.  Move call of check_and_process_move
5617         after operand equiv substitution and address process.
5619 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5621         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5622         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5623         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5625 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5627         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5629 2013-04-24  Marek Polacek  <polacek@redhat.com>
5631         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5632         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5633         (select_loops_exit_conditions): Likewise.
5634         (number_of_iterations_for_all_loops): Likewise.
5635         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5636         (scev_analysis): Likewise.
5638 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5639             Chao-ying Fu <fu@mips.com>
5641         * config/mips/micromips.md (jraddiusp): New pattern.
5642         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5643         instruction if possible.
5645 2013-04-24  Alan Modra  <amodra@gmail.com>
5647         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5649 2013-04-24  Julian Brown  <julian@codesourcery.com>
5650             Chung-Lin Tang  <cltang@codesourcery.com>
5652         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5653         dependency behavior in enumeration type DIE generation. Add TODO note
5654         to comments about future DW_FORM_sdata/udata re-work of related code.
5656 2013-04-23  Lawrence Crowl  <crowl@google.com>
5658         * Makefile.in: Update as needed below.
5660         * hash-table.h (class hash_table):
5661         Correct many methods with parameter types compare_type to the correct
5662         value_type.  (Correct code was unlikely to notice the change.)
5663         (hash_table::elements_with_deleted) New.
5664         (class hashtable::iterator): New.
5665         (hashtable::begin()): New.
5666         (hashtable::end()): New.
5667         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5669         * statistics.c (statistics_hashes):
5670         Change type to hash_table.  Update dependent calls and types.
5672         * tree-into-ssa.c (var_infos):
5673         Change type to hash_table.  Update dependent calls and types.
5675         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5676         Change type to hash_table.  Update dependent calls and types.
5678         * tree-ssa-loop-im.c (struct mem_ref.refs):
5679         Change type to hash_table.  Update dependent calls and types.
5681         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5682         Change type to hash_table.  Update dependent calls and types.
5684         * tree-ssa-sccvn.c (vn_tables_s::nary):
5685         Change type to hash_table.  Update dependent calls and types.
5686         (vn_tables_s::phis): Likewise.
5687         (vn_tables_s::references): Likewise.
5689         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5690         (vn_reference_eq): Update parameter and return types.
5692         * tree-ssa-structalias.c (pointer_equiv_class_table):
5693         Change type to hash_table.  Update dependent calls and types.
5694         (location_equiv_class_table): Likewise.
5696         * tree-vect-data-refs.c: Consequential changes for making
5697         peeling a hash_table.
5699         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5700         (destroy_loop_vec_info): Dependent hash_table update.
5702         * tree-vectorizer.h (peeling_htab):
5703         Change type to hash_table.  Update dependent calls and types.
5705 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5707         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5708         to check the register content is equal or not.
5709         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5710         to assign register content record.
5711         * lra-eliminations.c (update_reg_eliminate): Use
5712         lra_update_reg_val_offset to update register content offset.
5713         * lra-int.h (struct lra_reg): Add offset member.
5714         (lra_reg_val_equal_p): New static inline function.
5715         (lra_update_reg_val_offset): New static inline function.
5716         (lra_assign_reg_val): New static inline function.
5717         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5718         to assign register content record.
5719         (initialize_lra_reg_info_element): Initial offset to zero.
5721 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5723         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5724         operands.  Record compression.
5726 2013-04-23  Xinliang David Li  <davidxl@google.com>
5728         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5730 2013-04-23  Richard Biener  <rguenther@suse.de>
5732         PR middle-end/57036
5733         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5734         parameter, only add abnormal goto edges from the copied body
5735         if the call could perform abnormal gotos.
5736         (copy_cfg_body): Adjust.
5738 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5740         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5742 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5744         * coretypes.h (gimple_stmt_iterator): Add struct to make
5745         compatible with C.
5747 2013-04-23  Richard Biener  <rguenther@suse.de>
5749         PR tree-optimization/57026
5750         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5751         from SSA names occuring in abnormal PHI nodes.
5753 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5755         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5757 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5759         * lto/lto.c (print_lto_report_1): Declare early.
5760         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5762 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5764         * common.opt (-flto-report-wpa): Add.
5765         * doc/invoke.texi (-flto-report-wpa): Add.
5766         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5767         (lto_main): dito.
5769 2013-04-22  Xinliang David Li  <davidxl@google.com>
5771         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5772         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5773         * Makefile.in: New dependency
5775             David Daney <ddaney.cavm@gmail.com>
5777         * configure.ac (gcc_cv_as_micromips_support):  Use the
5778         --fatal-warnings option.
5779         * configure: Regenerate.
5781 2013-04-22  Marek Polacek  <polacek@redhat.com>
5783         PR sanitizer/56990
5784         * tsan.c (instrument_expr): Don't instrument expression
5785         in case its size is zero.
5787 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
5789         PR target/57032
5790         Revert:
5791         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5793         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5795 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5797         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5798         (gimple_stmt_iterator): New typedef.
5799         * gimple.h (gimple_stmt_iterator): Rename to...
5800         (gimple_stmt_iterator_d): ... This.
5801         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5802         trees be valid for GIMPLE and GENERIC.
5803         (TARGET_GIMPLE_FOLD_BUILTIN): New.
5804         * gimple-fold.c (gimple_fold_call): Call target hook
5805         gimple_fold_builtin.
5806         * hooks.c (hook_bool_gsiptr_false): New.
5807         * hooks.h (hook_bool_gsiptr_false): New.
5808         * target.def (fold_stmt): New.
5809         * doc/tm.texi: Regenerate.
5811 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
5813         PR target/57018
5814         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5815         a set sp if no stack realignment.
5817 2013-04-22  Nick Clifton  <nickc@redhat.com>
5819         * config.gcc (tilegx-linux): Extend extra_objs rather than
5820         overwriting it.
5821         (tilepro-linux): Likewise.
5823 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5825         * config/aarch64/aarch64-builtins.c
5826         (CF): Remove.
5827         (CF0, CF1, CF2, CF3, CF4, CF10): New.
5828         (VAR<1-12>): Add MAP parameter.
5829         (BUILTIN_*): Likewise.
5830         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5831         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5832         (aarch64_ushl_n<mode>): Likewise.
5833         (aarch64_sshr_n<mode>): Likewise.
5834         (aarch64_ushr_n<mode>): Likewise.
5835         (aarch64_<maxmin><mode>): Likewise.
5836         (aarch64_sqrt<mode>): Likewise.
5837         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5838         (vshr<q>_n_*): Likewise.
5840 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5842         * config/aarch64/aarch64-builtins.c
5843         (aarch64_simd_builtin_type_mode): Handle SF types.
5844         (sf_UP): Define.
5845         (BUILTIN_GPF): Define.
5846         (aarch64_init_simd_builtins): Handle SF types.
5847         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5848         (frecps): Likewise.
5849         (frecpx): Likewise.
5850         * config/aarch64/aarch64-simd.md
5851         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5852         (aarch64_frecpe<mode>): New.
5853         (aarch64_frecps<mode>): Likewise.
5854         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5855         (v8type): Add frecp<esx>.
5856         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5857         (aarch64_frecps<mode>): Likewise.
5858         * config/aarch64/iterators.md (FRECP): New.
5859         (frecp_suffix): Likewise.
5860         * config/aarch64/arm_neon.h
5861         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5863 2013-04-22  Christian Bruel  <christian.bruel@st.com>
5865         PR target/56995
5866         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5867         (REG_CLASS_NAMES): Idem.
5868         (REG_CLASS_CONTENTS): Idem.
5869         (REGCLASS_HAS_FP_REG): Idem.
5870         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5871         (sh_conditional_register_usage): Idem.
5873 2013-04-21  Jeff Law  <law@redhat.com>
5875         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5876         (ssa_forward_propagate_and_combine): Use it.
5878 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5880         * lra.c: Update the flow chart diagram.
5882 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5884         PR rtl-optimization/56847
5885         * lra-constraints.c (process_alt_operands): Discourage alternative
5886         with non-matche doffsettable memory constraint fro memory with
5887         known offset.
5889 2013-04-19  Richard Biener  <rguenther@suse.de>
5891         PR tree-optimization/56982
5892         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5893         function.
5894         * gimplify.c (gimplify_call_expr): Notice special calls.
5895         (gimplify_modify_expr): Likewise.
5896         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5897         abnormal control flow receivers.
5898         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5899         in the same way as cfun->has_nonlocal_labels.
5900         (gimple_purge_dead_abnormal_call_edges): Likewise.
5901         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5902         receivers start a basic-block.
5904 2013-04-19  Richard Biener  <rguenther@suse.de>
5906         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5907         member ...
5908         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
5909         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5910         (SLP_TREE_LOAD_PERMUTATION): Add.
5911         (vect_transform_slp_perm_load): Adjust prototype.
5912         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5913         (vect_free_slp_instance): Likewise.
5914         (vect_create_new_slp_node): Likewise.
5915         (vect_supported_slp_permutation_p): Remove.
5916         (vect_slp_rearrange_stmts): Adjust.
5917         (vect_supported_load_permutation_p): Likewise.  Inline
5918         vect_supported_slp_permutation_p here.
5919         (vect_analyze_slp_instance): Compute load permutations per
5920         slp node instead of per instance.
5921         (vect_get_slp_defs): Adjust.
5922         (vect_transform_slp_perm_load): Likewise.
5923         (vect_schedule_slp_instance): Remove redundant code.
5924         (vect_schedule_slp): Remove hack for PR56270, add it ...
5925         * tree-vect-stmts.c (vectorizable_load): ... here, do not
5926         CSE loads for SLP.  Adjust.
5928 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5930         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5931         spelling in two comments.
5933 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5935         PR target/56797
5936         * config/arm/arm.c (load_multiple_sequence): Require SP
5937         as base register for loads if SP is in the register list.
5939 2013-04-19  Martin Jambor  <mjambor@suse.cz>
5941         PR tree-optimization/56718
5942         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5943         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5944         and made public.  Adjusted all callers.
5945         (ipa_intraprocedural_devirtualization): New function.
5946         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5947         (ipa_intraprocedural_devirtualization): Likewise.
5948         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5950 2013-04-19  Richard Biener  <rguenther@suse.de>
5952         PR tree-optimization/57000
5953         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5955 2013-04-19  Terry Guo  <terry.guo@arm.com>
5957         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5958         Replace with ...
5959         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
5960         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5961         (cortex_m4_fmacs): Use new reservations.
5962         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5964 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5966         PR rtl-optimization/56999
5967         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5968         related code.
5969         (lra_coalesce): Remove split_origin_bitmap and related code.
5970         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
5971         ranges if necessary.
5973 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
5975         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5976         New array.
5977         (ix86_expand_call): Remove clobbered_registers array and use
5978         x86_64_ms_sysv_extra_clobbered_registers instead.
5979         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5980         Declare here.
5981         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5982         predicate.
5983         * config/i386/i386.md (*call_rex64_ms_sysv): Use
5984         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
5985         (*call_value_rex64_ms_sysv): Ditto.
5987 2013-04-18  Cary Coutant  <ccoutant@google.com>
5989         * dwarf2out.c (output_pubnames): Check die_perennial_p of
5990         parent instead of die_mark.
5992 2013-04-18  Diego Novillo  <dnovillo@google.com>
5994         * gimple.c (create_gimple_tmp): New.
5995         (get_expr_type): New.
5996         (build_assign): New.
5997         (build_type_cast): New.
5998         * gimple.h (enum ssa_mode): Define.
5999         (gimple_seq_set_location): New.
6000         * asan.c (build_check_stmt): Change some gimple_build_* calls
6001         to use build_assign and build_type_cast.
6003 2013-04-18  Richard Biener  <rguenther@suse.de>
6005         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6006         handle negative step.  Remove redundant checks.
6007         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6008         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6009         for negative step and grouped loads fail to vectorize.
6011 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6013         * emit-rtl.c (reset_insn_used_flags): New function.
6014         (reset_all_used_flags): Use it.
6015         (verify_insn_sharing): New function.
6016         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6018 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6020         PR tree-optimization/56984
6021         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6022         and (x >> M) >= N don't register any assertion if N << M is the
6023         minimum value.
6025 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6027         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6028         do not delete_insn insns that have not yet been emitted, only
6029         unlink them with remove_insn.
6030         * df-scan.c (df_insn_delete): Revert r197492.
6032 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6034         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6035         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6037 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6039         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6040         define_insn_and_split.
6041         (and_scc,ior_scc,negscc): Likewise.
6042         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6044 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6046         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6047         can benefit from using a sequence of LDRD instructions in epilogue
6048         instead of a single LDM instruction.
6050 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6052         PR 45688
6053         * doc/extend.texi: Fix typo.
6055 2013-04-17  Richard Biener  <rguenther@suse.de>
6057         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6058         (vect_build_slp_tree): ... here.
6059         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6060         match.  Remove special-casing of mismatched complex loads.
6061         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6062         re-try the match with swapped commutative operands.
6063         (vect_supported_load_permutation_p): Remove special-casing of
6064         mismatched complex loads.
6065         (vect_analyze_slp_instance): Adjust.
6067 2013-04-17  Richard Biener  <rguenther@suse.de>
6069         PR rtl-optimization/56921
6070         * cfgloop.h (struct loop): Add simple_loop_desc member.
6071         (struct niter_desc): Mark with GTY(()).
6072         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6073         * loop-iv.c (get_simple_loop_desc): Likewise.
6074         (free_simple_loop_desc): Likewise.
6076         Revert
6077         2013-04-16  Richard Biener  <rguenther@suse.de>
6079         PR rtl-optimization/56921
6080         * loop-init.c (pass_rtl_move_loop_invariants): Add
6081         TODO_do_not_ggc_collect to todo_flags_finish.
6082         (pass_rtl_unswitch): Same.
6083         (pass_rtl_unroll_and_peel_loops): Same.
6084         (pass_rtl_doloop): Same.
6086 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6088         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6089         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6090         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6091         references.
6092         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6093         * tree-streamer.c (record_common_node): Adjust reference in comment.
6095 2013-04-17  Terry Guo  <terry.guo@arm.com>
6097         * config/arm/cortex-m4.md: Add a new bypass.
6099 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6101         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6102         New pattern.
6103         (*subs_<optab><mode>_multp2): New pattern.
6104         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6105         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6107 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6109         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6110         (*subs_mul_imm_<mode>): New pattern.
6112 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6114         PR target/56948
6115         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6116         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6117         (vsx_movti_32bit): Change j->wa to O->wa.
6119 2013-04-16  Richard Biener  <rguenther@suse.de>
6121         PR rtl-optimization/56921
6122         * loop-init.c (pass_rtl_move_loop_invariants): Add
6123         TODO_do_not_ggc_collect to todo_flags_finish.
6124         (pass_rtl_unswitch): Same.
6125         (pass_rtl_unroll_and_peel_loops): Same.
6126         (pass_rtl_doloop): Same.
6128 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6130         * config/arm/arm.c (emit_multi_reg_push): New declaration
6131         for an existing function.
6132         (arm_emit_strd_push): New function.
6133         (arm_expand_prologue): Used here.
6134         (arm_emit_ldrd_pop): New function.
6135         (arm_expand_epilogue): Used here.
6136         (arm_get_frame_offsets): Update condition.
6137         (arm_emit_multi_reg_pop): Add a special case for load of a single
6138         register with writeback.
6140 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6142         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6143         description.
6145 2013-04-16  Richard Biener  <rguenther@suse.de>
6147         PR tree-optimization/56756
6148         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6149         (first_mem_ref_loc): New.
6150         (execute_sm): Place the load temporarily before a previous
6151         access instead of in the latch edge to ensure its SSA dependencies
6152         are defined at points dominating the load.
6154 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6156         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6157         correct fix by moving header and footer insn to the footer of
6158         the merged basic block.  Clear BB_END of the merged-away block.
6160         PR middle-end/43631
6161         * emit-rtl.c (make_note_raw): New function.
6162         (link_insn_into_chain): New static inline function.
6163         (add_insn): Use it.
6164         (add_insn_before, add_insn_after): Factor insn chain linking code...
6165         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6166         using link_insn_into_chain.
6167         (note_outside_basic_block_p): New helper function for emit_note_after
6168         and emit_note_before.
6169         (emit_note_after): Use nobb variant of add_insn_after if the note
6170         should not be contained in a basic block.
6171         (emit_note_before): Use nobb variant of add_insn_before if the note
6172         should not be contained in a basic block.
6173         (emit_note_copy): Use make_note_raw.
6174         (emit_note): Likewise.
6175         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6176         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6177         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6178         the moved barrier the tail of the basic block it follows.
6179         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6181 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6183         PR tree-optimization/56962
6184         * gimple-ssa-strength-reduction.c (record_increment): Only set
6185         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6186         either rhs1 or rhs2 is equal to c->base_expr.
6188 2013-04-15  Richard Biener  <rguenther@suse.de>
6190         PR tree-optimization/56933
6191         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6192         member.
6193         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6194         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6195         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6196         dependence check ...
6197         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6198         ... here.
6199         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6200         GROUP_READ_WRITE_DEPENDENCE.
6202 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6204         * emit-rtl.c (reset_all_used_flags): New function.
6205         (verify_rtl_sharing): Call reset_all_used_flags before and after
6206         performing the checks.
6208 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6210         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6211         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6212         * config/arm/constraints.md (De): New constraint.
6213         * config/arm/neon.md (anddi3_neon): Delete.
6214         (neon_vand<mode>): Expand to standard anddi3 pattern.
6215         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6216         Move earlier in the file.
6217         (neon_inv_logic_op2): Likewise.
6218         (arm_anddi_operand_neon): New predicate.
6220 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6222         * configure.ac (gcc_cv_ld_as_needed): Set
6223         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6224         Use -z ignore, -z record on *-*-solaris2*.
6225         (HAVE_LD_AS_NEEDED): Update comment.
6226         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6227         * configure: Regenerate.
6228         * config.in: Regenerate.
6229         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6230         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6231         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6232         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6233         equivalents.  Fix markup.
6234         * doc/tm.texi: Regenerate.
6236 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6238         * config/i386/i386.opt: New option mstack-protector-guard=.
6239         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6240         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6241         TARGET_SSP_TLS_GUARD.
6242         * config/i386/i386.c (ix86_option_override_internal): Set
6243         ix86_stack_protector_guard.
6244         * config/i386/i386.md (stack_protect_set): Enable for
6245         TARGET_SSP_TLS_GUARD only.
6246         (stack_protect_set_<mode>): Ditto.
6247         (stack_protect_test): Ditto.
6248         (stack_protect_test_<mode>): Ditto.
6249         * doc/invoke.texi (i386 Option): Document.
6251 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6253         PR target/56890
6254         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6255         (S_MODES): Set H_MODE bit.
6256         (SF_MODES): Set only S_MODE and SF_MODE bits.
6257         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6258         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6259         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6260         <MODE_FLOAT>: Likewise.
6262 2013-04-15  Joey Ye  <joey.ye@arm.com>
6264         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6266 2013-04-15  Joey Ye  <joey.ye@arm.com>
6268         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6269         for real far jump.
6270         (thumb_far_jump_used_p): Count instruction size and set
6271         far_jump_used.
6273 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6275         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6276         * resource.c (mark_target_live_regs): Reformat conditional block.
6278 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6280         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6281         notes, they are emitted only just before final.
6282         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6284 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6286         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6287         * cfgrtl.c (delete_insn): Call it here instead.
6288         * lra-spills.c (lra_final_code_change): Use delete_insn.
6289         * haifa-sched.c (sched_remove_insn): Likewise.
6290         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6291         returning to the nop pool.
6292         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6293         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6295 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6297         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6298         * doc/tm.texi: Regenerated.
6300 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6302         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6303         QImode checks.
6305 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6307         * df-core.c (df_find_def): Compare register numbers.
6308         (df_find_use): Likewise.
6310 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6312         PR target/56903
6313         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6314         lra_in_progress for return.
6316 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6318         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6319         define_insn into define_insn_and_split and emit movsicc patterns.
6321 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6323         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6325 2013-04-12  Richard Biener  <rguenther@suse.de>
6327         * tree-pass.h (TODO_do_not_ggc_collect): New.
6328         * passes.c (execute_one_ipa_transform_pass): Honor
6329         TODO_do_not_ggc_collect.
6330         (execute_one_pass): Likewise.
6332         Revert
6333         2013-04-10  Richard Biener  <rguenther@suse.de>
6335         * passes.c (init_optimization_passes): Remove reload pass.
6336         * ira.c (do_reload): Merge into ...
6337         (ira): ... this.
6338         (rest_of_handle_reload): Remove.
6339         (pass_reload): Likewise.
6340         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6341         of reload for vzeroupper pass placement.
6343 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6345         PR tree-optimization/56918
6346         PR tree-optimization/56920
6347         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6348         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6349         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6350         use wide_mul_with_sign method.
6352 2013-04-12  Richard Biener  <rguenther@suse.de>
6354         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6355         not be considered a gimple constant.
6357 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6359         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6360         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6361         operations.
6363 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6364             Jakub Jelinek  <jakub@redhat.com>
6366         * opts.c: Include diagnostic-color.h.
6367         (common_handle_option): Handle OPT_fdiagnostics_color_.
6368         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6369         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6370         (diagnostic-color.o): New.
6371         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6372         (diagnostic_color_rule): New enum.
6373         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6374         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6375         the location string.
6376         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6377         either NULL, or color kind.
6378         * diagnostic-color.c: New file.
6379         * diagnostic-color.h: New file.
6380         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6381         arguments.
6382         * doc/invoke.texi (-fdiagnostics-color): Document.
6383         * pretty-print.h (pp_show_color): Define.
6384         (struct pretty_print_info): Add show_color field.
6385         * diagnostic.c: Include diagnostic-color.h.
6386         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6387         macros.  Colorize error:, warning: etc. strings and also the location
6388         string.
6389         (diagnostic_show_locus): Colorize the caret line.
6390         * pretty-print.c: Include diagnostic-color.h.
6391         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6392         inside of %< %> quotes or quoted through q format modifier.
6394 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6396         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6398 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6400         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6401         code in CC_NZ mode.
6402         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6403         pattern.
6405 2013-04-11  Marek Polacek  <polacek@redhat.com>
6407         PR tree-optimization/48184
6408         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6410 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6412         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6413         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6414         (skip_simple_arithmetic): Tidy up.
6415         * tree.h (skip_simple_constant_arithmetic): Declare.
6417 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6419         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6421 2013-04-11  Richard Biener  <rguenther@suse.de>
6423         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6424         generate vector constants.
6426 2013-04-11  Richard Biener  <rguenther@suse.de>
6428         PR tree-optimization/56878
6429         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6430         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6431         New function.
6432         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6433         Prefer to align the DR with the most invariant base address.
6435 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6437         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6438         comment.
6440 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6442         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6443         floating-point vector comparisons against 0.
6445 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6447         PR tree-optimization/56899
6448         * fold-const.c (extract_muldiv_1): Apply distributive law
6449         only if TYPE_OVERFLOW_WRAPS (ctype).
6451 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6453         PR target/56124
6454         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6455         loading has side effect.
6457 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6459         * config/sparc/sparc.c: Include tree-pass.h.
6460         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6461         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6462         head of file.  Change return type.  Split off gate function.
6463         (sparc_gate_work_around_errata): New function.
6464         (pass_work_around_errata): New pass definition.
6465         (insert_pass_work_around_errata) New pass insert definition to
6466         insert pass_work_around_errata just after delayed-branch scheduling.
6467         (sparc_option_override): Insert the pass.
6468         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6470 2013-04-10  David S. Miller  <davem@davemloft.net>
6472         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6473         or -mcpu=hypersparc.
6475         * target.def (cstore_mode): New hook.
6476         * target.h: Include insn-codes.h
6477         * targhooks.c: Likewise.
6478         (default_cstore_mode): New function.
6479         * targhooks.h: Declare it.
6480         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6481         * doc/tm.texi: Rebuild.
6482         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6483         target hook, rather than inspecting the insn_data.
6484         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6485         (TARGET_CSTORE_MODE): Redefine.
6486         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6487         result patterns.
6488         * config/sparc/predicates.md (cstore_result_operand): New special
6489         predicate.
6490         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6491         Use it for operand 0.
6492         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6493         (*snesi_special): Likewise.
6494         (*snesi_zero): Likewise.
6495         (*seqsi_zero): Likewise.
6496         (*sltu_insn): Likewise.
6497         (*sgeu_insn): Likewise.
6498         (*seqdi_special): Make operand 0 and comparison operation be of
6499         DImode.
6500         (*snedi_special): Likewise.
6501         (*snedi_special_vis3): Likewise.
6502         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6503         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6504         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6505         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6506         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6507         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6508         (*sltu_extend_sp64): Likewise.
6509         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6510         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6511         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6512         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6513         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6515 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6517         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6518         (aarch64_start_file): Use the new function.
6520 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6521             Jason Merrill  <jason@redhat.com>
6523         * common.opt: Add -gdwarf.
6524         * opts.c (common_handle_option): Handle it.
6525         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6527 2013-04-10  Richard Biener  <rguenther@suse.de>
6529         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6530         (execute_one_ipa_transform_pass): But unconditionally here.
6531         (execute_one_pass): And here.
6532         (init_optimization_passes): Remove reload pass.
6533         * tree-pass.h (TODO_ggc_collect): Remove.
6534         (pass_reload): Likewise.
6535         * ira.c (do_reload): Merge into ...
6536         (ira): ... this.
6537         (rest_of_handle_reload): Remove.
6538         (pass_reload): Likewise.
6539         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6540         of reload for vzeroupper pass placement.
6541         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6542         and todo_flags_finish of all passes.
6544 2013-04-10  Richard Biener  <rguenther@suse.de>
6546         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6547         first_const_oprnd field, rename first_def_type to first_op_type.
6548         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6549         (vect_get_and_check_slp_defs): Always use the type of the
6550         operand.  Allow mixed vect_external_def, vect_constant_def types.
6551         (vect_get_constant_vectors): Handle mixed vect_external_def,
6552         vect_constant_def types.
6554 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6556         PR tree-optimization/55524
6557         * tree-ssa-math-opts.c
6558         (convert_mult_to_fma): Don't use an fms construct
6559         when we don't have an fms operation, but fnma, and it looks
6560         likely that we'll be able to use the latter.
6562 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6564         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6565         function.
6566         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6567         inline fail caused by overwritable functions.
6569 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6571         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6572         unnecessary bits in the constant power of two case.
6574 2013-04-10  Richard Biener  <rguenther@suse.de>
6576         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6577         broken code swapping operands.
6578         (vect_build_slp_tree): Do not compute load permutations here.
6579         (vect_analyze_slp_instance): Compute load permutations here,
6580         after building the SLP tree.
6582 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6584         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6585         of next/prev_real_insn.
6587 2013-04-09  Jan Hubicka  <jh@suse.cz>
6589         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6590         Drop aliased parameter.
6591         (function_and_variable_visibility): Do not handle alias pairs.
6592         * cgraph.c (varpool_externally_visible_p): Update prototype.
6593         * varpool.c (varpool_add_new_variable): Update.
6595 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6597         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6599 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6601         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6603         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6605 2013-04-09  Marek Polacek  <polacek@redhat.com>
6607         PR tree-optimization/48762
6608         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6610 2013-04-09  Richard Biener  <rguenther@suse.de>
6612         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6613         dealing with cost.
6614         (vect_build_slp_tree): Likewise.
6615         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6616         calculating the cost of a SLP instance.
6617         (vect_analyze_slp_instance): Use it from here, after building
6618         the SLP tree.
6620 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6622         PR middle-end/56883
6623         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6624         expand_omp_for_static_chunk): Use simple_p = true in
6625         force_gimple_operand_gsi calls when assigning to addressable decls.
6627 2013-04-09  Jeff Law  <law@redhat.com>
6629         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6630         when the boolean was created by converting a wider object which
6631         had a boolean range.
6633 2013-04-09  Richard Biener  <rguenther@suse.de>
6635         * tree-vectorizer.h (slp_void_p): Remove.
6636         (slp_tree): Typedef before _slp_tree declaration.
6637         (struct _slp_tree): Use a vector of slp_tree as children.
6638         (vect_get_place_in_interleaving_chain): Remove.
6639         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6640         Move ...
6641         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6642         and make static.
6643         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6644         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6645         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6646         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6647         Use slp_node instead of slp_void_p and adjust.
6649 2013-04-09  Richard Biener  <rguenther@suse.de>
6651         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6652         work that is not necessary.
6654 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6656         PR tree-optimization/56854
6657         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6658         forward into clobber stmts if it would change MEM_REF lhs into
6659         non-MEM_REF.
6661 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6663         * tree.c (type_hash_lookup, type_hash_add): Make static.
6664         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6666 2013-04-09  Richard Biener  <rguenther@suse.de>
6668         * tree.h (unsave_expr_now): Remove.
6669         * tree-inline.c (mark_local_for_remap_r): Remove.
6670         (unsave_expr_1): Likewise.
6671         (unsave_r): Likewise.
6672         (unsave_expr_now): Likewise.
6673         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6674         (propagate_tree_value): Likewise.
6676 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6678         * doc/rtl.texi (sequence): Rewrite documentation to match the
6679         current use of SEQUENCE rtl objects.
6680         * rtl.def (SEQUENCE): Likewise.
6682         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6683         Update documentation.
6684         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6685         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6687         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6689 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6691         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6692         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6693         methods.
6694         (estimate_edge_size_and_time): Add comment to suggest using rounding
6695         methods.
6696         (estimate_node_size_and_time): Ditto.
6697         (remap_edge_change_prob): Use helper rounding divide methods.
6698         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6699         (gimple_mod_pow2_value_transform): Ditto.
6700         (gimple_mod_subtract_transform): Ditto.
6701         (gimple_ic_transform): Ditto.
6702         (gimple_stringops_transform): Ditto.
6703         * stmt.c (conditional_probability): Ditto.
6704         (emit_case_dispatch_table): Ditto.
6705         * lto-cgraph.c (merge_profile_summaries): Ditto.
6706         * tree-optimize.c (execute_fixup_cfg): Ditto.
6707         * cfgcleanup.c (try_forward_edges): Ditto.
6708         * cfgloopmanip.c (scale_loop_profile): Ditto.
6709         (loopify): Ditto.
6710         (duplicate_loop_to_header_edge): Ditto.
6711         (lv_adjust_loop_entry_edge): Ditto.
6712         * tree-vect-loop.c (vect_transform_loop): Ditto.
6713         * profile.c (compute_branch_probabilities): Ditto.
6714         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6715         * lto-streamer-in.c (input_cfg): Ditto.
6716         * gimple-streamer-in.c (input_bb): Ditto.
6717         * ipa-cp.c (update_profiling_info): Ditto.
6718         (update_specialized_profile): Ditto.
6719         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6720         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6721         rounding methods.
6722         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6723         (compute_trg_info): Ditto.
6724         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6725         (purge_dead_edges): Ditto.
6726         * loop-unswitch.c (unswitch_loop): Ditto.
6727         * cgraphclones.c (cgraph_clone_edge): Ditto.
6728         (cgraph_clone_node): Ditto.
6729         * tree-inline.c (copy_bb): Ditto.
6730         (copy_edges_for_bb): Ditto.
6731         (initialize_cfun): Ditto.
6732         (copy_cfg_body): Ditto.
6733         (expand_call_inline): Ditto.
6735 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6737         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6738         TARGET_CYGWIN64 by TARGET_64BIT.
6740 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6742         * config/epiphany/epiphany.md (GPR_1): New constant.
6743         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6744         * config/epiphany/epiphany.c (gen_compare_reg):
6745         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6746         is already in place.
6747         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6748         Don't require being called during rtl expansion; If y operlaps r0,
6749         return 0.
6750         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6751         (epiphany_expand_epilogue): Likewise.
6753         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6754         Don't use CC_FPmode for ORDERED / UNORDERED.
6755         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6757         * config/epiphany/constraints.md (CnL): New constraint.
6758         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6759         * config/epiphany/predicates.md (add_operand): Allow 1024.
6761         * config/epiphany/epiphany.md (logical_op): New code iterator.
6762         (op_mnc): New code attribute.
6763         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6764         (mov_f+1, mov_f+2): New peephole2 patterns.
6766         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6767         (cstoresi4): Also allow re-use of zero result when doing a NE
6768         comparison to a non-zero operand.
6769         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6771         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6772         Use gen_addsi3_i / gen_subsi3_i.
6774 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6776         PR c++/34949
6777         PR c++/50243
6778         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6779         contain anything but clobbers, at most one __builtin_stack_restore,
6780         optionally debug stmts and final resx, and if it has at least one
6781         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6782         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6783         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6784         which isn't defaut definition, remove them.
6785         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6786         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6787         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6788         with MEM_REF LHS with SSA_NAME address.
6790 2013-04-08  Jeff Law  <law@redhat.com>
6792         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6794 2013-04-08  Richard Biener  <rguenther@suse.de>
6796         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6797         extra newline.
6798         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6799         determined vector type.
6800         (vect_analyze_data_refs): Likewise.
6801         (vect_get_new_vect_var): Adjust.
6802         (vect_create_destination_var): Preserve SSA name versions.
6803         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6804         not dump anything here.
6806 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6808         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6809         Add member lr_slot_known.
6810         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6811         if necessary.
6812         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6813         Remove code that sets lr_slot_offset according to what a previous
6814         version of epiphany_emit_save_restore used to do.
6815         (epiphany_emit_save_restore): When doing an lr save or restore,
6816         set/verify lr_slot_known and lr_slot_offset.
6818 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
6820         PR target/54338
6821         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6822         in ALL_REGS.
6824 2013-04-08  Richard Biener  <rguenther@suse.de>
6826         * alias.c (find_base_term): Fix thinko in previous change.
6828 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6830         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6831         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6832         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
6833         if possible to compute val.
6834         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6835         For QImode integers don't require anything about precision.  Use
6836         const_with_all_bytes_same to find out if the constant doesn't have
6837         repeated bytes in it.
6839 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6841         * config/s390/s390.c (s390_expand_insv): Only accept insertions
6842         within mode size.
6844 2013-04-08  Marek Polacek  <polacek@redhat.com>
6846         PR rtl-optimization/48182
6847         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6848         value to 1.
6850 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6852         PR target/55487
6853         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6854         nuses, make sure we have a label.
6856 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6858         PR target/56843
6859         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6860         (rs6000_emit_swdiv_low_precision): Remove.
6861         (rs6000_emit_swdiv): Rewrite to handle between one and four
6862         iterations of Newton-Raphson generally; modify required number of
6863         iterations for some cases.
6864         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6866 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6868         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6869         set-but-unused variable.
6871         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6872         basic blocks of released function bodies garbage-collectable.
6874         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6875         (struct rtl_opt_pass): Add TODO_df_finish.
6877         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6879 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6881         * config/arm/constraints.md (q): New constraint.
6882         * config/arm/ldrdstrd.md: New file.
6883         * config/arm/arm.md (ldrdstrd.md) New include.
6884         (arm_movdi): Use "q" instead of "r" constraint
6885         for double-word memory access.
6886         (movdf_soft_insn): Likewise.
6887         * config/arm/vfp.md (movdi_vfp): Likewise.
6888         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6889         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6890         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6891         (mem_ok_for_ldrd_strd): Likewise.
6892         (output_move_double): Update assertion.
6894 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6896         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6898 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6900         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6901         define_insn_and_split.
6902         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6904 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6906         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6907         define_insn_and_split.
6908         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6909         (shiftsi3_compare): New pattern.
6910         (rrx): New pattern.
6911         * config/arm/unspecs.md (UNSPEC_RRX): New.
6913 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6915         * config/arm/arm.md (negdi_extendsidi): New pattern.
6916         (negdi_zero_extendsidi): Likewise.
6918 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6920         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6921         define_insn_and_split.
6922         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6923         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6925 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6927         * config/arm/arm.md (arm_subdi3): Convert define_insn into
6928         define_insn_and_split.
6929         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6930         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6932 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6934         * config/arm/arm.md (subsi3_carryin): New pattern.
6935         (subsi3_carryin_const): Likewise.
6936         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6937         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6939 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6941         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6943 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6945         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6946         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6948 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6950         * config/arm/arm.c (arm_expand_builtin): Change fcode
6951         type to unsigned int.
6953 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6955         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6957 2013-04-04  Ian Lance Taylor  <iant@google.com>
6959         * doc/standards.texi (Standards): The Go frontend supports the Go 1
6960         language standard.
6962 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6964         PR middle-end/56729
6965         * df-scan.c (df_insn_delete): Disable failing assert.
6967 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6969         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6970         New function prototype.
6971         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6972         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6973         (arm_builtin_vectorized_function): New function.
6975 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6977         * config/arm/arm_neon_builtins.def: New file.
6978         * config/arm/arm.c (neon_builtin_data): Move contents to
6979         arm_neon_builtins.def.
6980         (enum arm_builtins): Include neon builtin definitions.
6981         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6982         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6984 2013-04-04  Marek Polacek  <polacek@redhat.com>
6986         PR tree-optimization/48186
6987         * predict.c (maybe_hot_frequency_p): Return false if
6988         HOT_BB_FREQUENCY_FRACTION is 0.
6989         (cgraph_maybe_hot_edge_p): Likewise.
6991 2013-04-04  Richard Biener  <rguenther@suse.de>
6993         PR tree-optimization/56826
6994         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6995         more accurately.
6997 2013-04-04  Richard Biener  <rguenther@suse.de>
6999         PR tree-optimization/56213
7000         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7001         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7003 2013-04-04  Richard Biener  <rguenther@suse.de>
7005         PR tree-optimization/56837
7006         * tree-loop-distribution.c (classify_partition): For non-zero
7007         values require that the value has the same precision as its
7008         mode to be useful as memset value.
7010 2013-04-03  Nick Clifton  <nickc@redhat.com>
7012         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7013         (fmssf4): Use fmsf.s on E3V5 architectures.
7014         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7015         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7017 2013-04-03  Jeff Law  <law@redhat.com>
7019         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7020         (lra-eliminations.o): Likewise.
7022 2013-04-03  Teresa Johnson  <tejohnson@google.com>
7024         * gcov-io.c (compute_working_sets): Moved most of body of old
7025         compute_working_sets here from profile.c.
7026         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7027         (gcov_working_set_t): Moved typedef here from basic-block.h
7028         (compute_working_set): Declare.
7029         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7030         (get_working_sets): Renamed from compute_working_set,
7031         replace most of body with call to new compute_working_sets.
7032         (get_exec_counts): Replace call to compute_working_sets
7033         to get_working_sets.
7034         * profile.h (get_working_sets): Renamed from compute_working_set.
7035         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7036         to get_working_sets.
7037         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7038         * gcov-dump.c (dump_working_sets): New function.
7040 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7042         * hwint.c (sext_hwi, zext_hwi): New functions.
7043         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7044         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7045         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7046         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7047         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7048         (sext_hwi, zext_hwi): New functions.
7050 2013-04-03  Jeff Law  <law@redhat.com>
7052         PR tree-optimization/56799
7053         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7054         back test for widening conversion erroneously dropped in prior change.
7056 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7058         PR target/56809
7059         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7060         instead of next_real_insn.
7062 2013-04-03  Marek Polacek  <polacek@redhat.com>
7064         PR sanitizer/55702
7065         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7067 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7069         PR target/56809
7070         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7071         next_real_insn.
7072         (thumb1_output_casesi): Likewise.
7073         (thumb2_output_casesi): Likewise.
7075 2013-04-03  Richard Biener  <rguenther@suse.de>
7077         PR tree-optimization/56817
7078         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7079         Split out ...
7080         (tree_unroll_loops_completely_1): ... new function to manually
7081         walk the loop tree, properly defering outer loops of unrolled
7082         loops to later iterations.
7084 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7086         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7087         (vectorizable_load): Likewise.
7088         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7089         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7091 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7093         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7094         BIT_FIELD_REF.
7096 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7098         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7100 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7102         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7104 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7106         PR tree-optimization/56790
7107         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7108         folding.
7110 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7112         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7113         Handle VEC_MERGE.
7114         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7115         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7116         equal arguments.
7118 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7120         PR c/19449
7121         * tree.h (force_folding_builtin_constant_p): New decl.
7122         * builtins.c (force_folding_builtin_constant_p): New variable.
7123         (fold_builtin_constant_p): Fold immediately also if
7124         force_folding_builtin_constant_p.
7126 2013-04-03  Richard Biener  <rguenther@suse.de>
7128         PR tree-optimization/56812
7129         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7130         DRs of the same interleaving chain are independent.
7132 2013-04-02  Jason Merrill  <jason@redhat.com>
7134         * gdbinit.in (pbb): Use debug fn.
7136 2013-04-02  Lawrence Crowl  <crowl@google.com>
7138         * sese.h (struct ivtype_map_elt_s): Remove unused.
7139         (extern debug_ivtype_map): Remove unused.
7140         (extern eq_ivtype_map_elts): Remove unused.
7141         * sese.c (debug_ivtype_map): Removed unused.
7142         (debug_ivtype_map_1): Removed unused.
7143         (debug_ivtype_elt): Remove unused.
7144         (eq_ivtype_map_elts): Remove unused.
7147 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7149         PR target/52790
7150         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7151         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7152         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7153         function.
7154         (legitimize_pe_coff_symbol): Likewise.
7155         (is_imported_p): New helper-function.
7156         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7157         for Windows x64 targets.
7158         (ix86_expand_prologue): Optimize for pe-coff targets.
7159         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7160         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7161         medium/large code-model.
7162         (legitimize_pic_address): Likewise.
7163         (legitimize_tls_address): Likewise.
7164         (ix86_expand_call): Likewise.
7165         (x86_output_mi_thunk): Likewise.
7166         (get_dllimport_decl): Add new beimport argument.
7167         (construct_plt_address): Don't assert for x64 pe-coff targets.
7168         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7169         targets.
7170         (SYMBOL_FLAG_STUBVAR): New macro.
7171         (SYMBOL_REF_STUBVAR_P): Likewise.
7172         * config/i386/winnt.c (stub_list): New structure.
7173         (stub_head): New local variable.
7174         (i386_pe_record_stub): New function.
7175         (i386_pe_file_end): Emit refptr-stubs.
7177 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7179         PR rtl-optimization/56745
7180         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7181         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7183         PR c++/34949
7184         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7185         and both of them are MEM_REFs, just compare first argument for
7186         equality and attempt to deal even with differing offsets.
7188         PR c++/34949
7189         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7190         of gimple_clobber_p to be MEM_REF.
7191         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7192         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7193         after gimplification.
7194         * asan.c (get_mem_ref_of_assignment): Don't instrument
7195         gimple_clobber_p stmts.
7196         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7197         gimple_clobber_p stmt if they have MEM_REF lhs and
7198         are dead because of another gimple_clobber_p stmt.
7199         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7200         gimple_clobber_p stmts like debug stmts.
7201         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7202         that refer to unused VAR_DECLs or uninitialized values.
7203         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7204         gimple_clobber_p stmts if they refer to removed parameters.
7205         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7206         formatting.
7208 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7210         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7211         using SWI48 mode attribute.
7213 2013-04-02  Wei Mi  <wmi@google.com>
7215         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7216         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7217         *<rotate_insn><mode>3_mask in i386.md.
7219 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7221         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7223 2013-04-02  Richard Biener  <rguenther@suse.de>
7225         PR tree-optimization/56778
7226         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7227         Runtime alias tests are not supported for gather loads.
7228         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7229         stmts referenced from SSA operands before updating SSA form.
7231 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7232             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7234         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7235         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7236         * config/arm/cortex-a53.md: New file.
7237         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7238         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7239         * config/arm/arm.c (arm_issue_rate): Likewise.
7240         * config/arm/arm-tune.md: Regenerate
7241         * config/arm/arm-tables.opt: Regenerate.
7242         * config/arm/arm-cores.def: Add cortex-a53.
7244 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7246         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7247         non-static link.
7249 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7251         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7252         scalar load/store operations using B/H registers.
7253         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7255 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7257         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7258         scalar move.
7259         * config/aarch64/aarch64.c
7260         (aarch64_simd_scalar_immediate_valid_for_move): New.
7261         * config/aarch64/aarch64-protos.h
7262         (aarch64_simd_scalar_immediate_valid_for_move): New.
7263         * config/aarch64/constraints.md (Dh, Dq): New.
7264         * config/aarch64/iterators.md (hq): New.
7266 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7268         * reorg.c (get_branch_condition): Deal with conditional returns.
7269         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7271 2013-04-01  Wei Mi  <wmi@google.com>
7273         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7274         Truncate operand 2 using %b asm operand modifier.
7275         (*<shift_insn><mode>3_mask): Ditto.
7276         (*<rotate_insn><mode>3_mask): Ditto.
7278 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7280         PR middle-end/56798
7281         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7283 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7285         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7286         of next_real_insn.
7287         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7289 2013-03-30  Lawrence Crowl  <crowl@google.com>
7291         * dse.c (clear_alias_sets): Remove never set.
7292         (disqualified_clear_alias_sets): Remove never set.
7293         (clear_alias_mode_pool): Remove never set.
7294         (dse_step0): Remove condition that is never true.
7295         (canon_address): Remove condition that is never true.
7296         (dse_step7): Remove condition that is never true.
7297         (rest_of_handle_dse): Remove condition that is never true.
7298         (rest_of_handle_dse::did_global): Remove never read from above.
7299         (dse_step2_spill): Remove never called from above.
7300         (dse_step5_spill): Remove never called from above.
7302 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7304         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7305         JUMP_TABLE_DATA changes.
7306         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7307         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7308         (Insns) <jump_table_data>: New entry.
7309         * doc/tm.texi: Regenerate.
7311         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7313         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7314         for table jump at the end of a basic block using tablejump_p.
7315         * targhooks.c (default_invalid_within_doloop): Likewise.
7316         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7317         target hook implementation that is identical to the default hook.
7318         (rs6000_invalid_within_doloop): Remove.
7320         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7321         unused variable from tablejump_p call.
7323         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7324         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7325         (INSN_DELETED_P): Likewise.
7326         (emit_jump_table_data): New prototype.
7327         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7328         after 4th as unused.
7329         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7330         * sched-vis.c (print_insn): Likewise.
7331         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7332         insn for compatibility with back ends that use next_active_insn to
7333         identify jump table data.
7334         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7335         (remove_insn): Likewise.
7336         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7337         to be emitted.
7338         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7339         (emit_jump_table_data): New function.
7341         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7342         basic block, a JUMP_TABLE_DATA never is.
7343         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7344         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7345         off from code handling real insns.
7346         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7347         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7348         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7349         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7350         is not a NONDEBUG_INSN_P.
7351         * ira-costs.c (scan_one_insn): Likewise.
7352         * jump.c (mark_all_labels): Likewise.
7353         (mark_jump_label_1): Likewise.
7354         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7355         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7356         a basic block.
7357         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7358         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7359         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7360         JUMP_TABLE_DATA_P insns.
7361         (calculate_elim_costs_all_insns): Likewise.
7362         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7363         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7364         (delete_output_reload): Code style fixups.
7365         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7366         insn flags on this non-insn.
7367         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7368         as scheduling barriers, for pre-change compatibility.
7369         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7370         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7372         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7373         redundant JUMP_TABLE_DATA_P test.
7374         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7375         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7376         (frv_for_each_packet): Likewise.
7377         * config/i386/i386.c (min_insn_size): Likewise.
7378         (ix86_avoid_jump_mispredicts): Likewise.
7379         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7380         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7381         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7382         (mips16_insn_length): Robustify.
7383         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7384         (mips16_split_long_branches): Likewise.
7385         * config/pa/pa.c (pa_combine_instructions): Likewise.
7386         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7387         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7388         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7389         as contributing to pool range lengths.
7390         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7391         Remove redundant JUMP_TABLE_DATA_P test.
7392         (sh_loop_align): Likewise.
7393         (split_branches): Likewise.
7394         (sh_insn_length_adjustment): Likewise.
7395         * config/spu/spu.c (get_branch_target): Likewise.
7397 2013-03-29  Jan Hubicka  <jh@suse.cz>
7399         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7400         gcov streaming; stream hot bb threshold to ltrans.
7401         * predict.c (get_hot_bb_threshold): Break out from ....
7402         (maybe_hot_count_p): ... here.
7403         (set_hot_bb_threshold): New function.
7404         * lto-section-in.c (lto_section_name): Add profile.
7405         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7406         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7407         and data-streamer.h
7408         (histogram_entry): New structure.
7409         (histogram, histogram_pool): New global vars.
7410         (histogram_hash): New structure.
7411         (histogram_hash::hash): New method.
7412         (histogram_hash::equal): Likewise.
7413         (account_time_size): New function.
7414         (cmp_counts): New function.
7415         (dump_histogram): New function.
7416         (ipa_profile_generate_summary): New function.
7417         (ipa_profile_write_summary): New function.
7418         (ipa_profile_read_summary): New function.
7419         (ipa_profile): Decide on threshold.
7420         (pass_ipa_profile): Add ipa_profile_write_summary and
7421         ipa_profile_read_summary.
7422         * Makefile.in (ipa.o): Update dependencies.
7423         * lto-streamer.h (LTO_section_ipa_profile): New section.
7425 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7427         * tree.h (VAR_P): New.
7429 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7431         PR lto/56777
7432         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7434 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7436         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7437         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7438         (control_flow_insn_p): Likewise.
7439         * cfgrtl.c (duplicate_insn_chain): Likewise.
7440         * final.c (get_attr_length_1): Likewise.
7441         (shorten_branches): Likewise.
7442         (final_scan_insn): Likewise.
7443         * function.c (instantiate_virtual_regs): Likewise.
7444         * gcse.c (insert_insn_end_basic_block): Likewise.
7445         * ira-costs.c (scan_one_insn): Likewise.
7446         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7447         * lra.c (check_rtl): Likewise.
7448         * reload1.c (elimination_costs_in_insn): Likewise.
7449         * reorg.c (follow_jumps): Likewise.
7451         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7452         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7453         (thumb_far_jump_used_p): Likewise.
7454         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7455         (workaround_speculation): Likewise.
7456         (add_sched_insns_for_speculation): Likewise.
7457         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7458         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7459         (frv_for_each_packet): Likewise.
7460         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7461         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7462         (final_emit_insn_group_barriers): Likewise.
7463         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7464         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7465         (mips16_insn_length): Likewise.
7466         * config/pa/pa.c (pa_reorg): Likewise.
7467         (pa_combine_instructions): Likewise.
7468         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7469         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7470         (sh_reorg): Likewise.
7471         (split_branches): Likewise.
7472         * config/spu/spu.c (get_branch_target): Likewise.
7474         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7475         JUMP_TABLE_DATA_P.
7477 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7479         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7480         Fix declaration name.
7482 2013-03-28  Lawrence Crowl  <crowl@google.com>
7484         * graphds.h (struct graph.indicies): Remove unused.
7485         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7486         (SCOP_ORIGINAL_PDDRS): Remove unused.
7487         * sese.h (extern insert_loop_close_phis): Removed unused.
7488         (extern insert_guard_phis): Removed unused.
7489         (extern ivtype_map_elt_info): Removed unused.
7490         (new_ivtype_map_elt): Removed unused.
7491         * sese.c (ivtype_map_elt_info): Removed unused.
7493 2013-03-28  Lawrence Crowl  <crowl@google.com>
7495         * Makefile.in: Add several missing include dependences.
7496         (DUMPFILE_H): New.
7497         (test-dump.o): New.  This object is not added to any executable,
7498         but is present for ad-hoc testing.
7499         * bitmap.c
7500         (debug (const bitmap_head_def &)): New.
7501         (debug (const bitmap_head_def *)): New.
7502         * bitmap.h
7503         (extern debug (const bitmap_head_def &)): New.
7504         (extern debug (const bitmap_head_def *)): New.
7505         * cfg.c
7506         (debug (edge_def &)): New.
7507         (debug (edge_def *)): New.
7508         * cfghooks.c
7509         (debug (basic_block_def &)): New.
7510         (debug (basic_block_def *)): New.
7511         * dumpfile.h
7512         (dump_node (const_tree, int, FILE *)): Correct source file.
7513         * dwarf2out.c
7514         (debug (die_struct &)): New.
7515         (debug (die_struct *)): New.
7516         * dwarf2out.h
7517         (extern debug (die_struct &)): New.
7518         (extern debug (die_struct *)): New.
7519         * gimple-pretty-print.c
7520         (debug (gimple_statement_d &)): New.
7521         (debug (gimple_statement_d *)): New.
7522         * gimple-pretty-print.h
7523         (extern debug (gimple_statement_d &)): New.
7524         (extern debug (gimple_statement_d *)): New.
7525         * ira-build.c
7526         (debug (ira_allocno_copy &)): New.
7527         (debug (ira_allocno_copy *)): New.
7528         (debug (ira_allocno &)): New.
7529         (debug (ira_allocno *)): New.
7530         * ira-int.h
7531         (extern debug (ira_allocno_copy &)): New.
7532         (extern debug (ira_allocno_copy *)): New.
7533         (extern debug (ira_allocno &)): New.
7534         (extern debug (ira_allocno *)): New.
7535         * ira-lives.c
7536         (debug (live_range &)): New.
7537         (debug (live_range *)): New.
7538         * lra-int.h
7539         (debug (lra_live_range &)): New.
7540         (debug (lra_live_range *)): New.
7541         * lra-lives.c
7542         (debug (lra_live_range &)): New.
7543         (debug (lra_live_range *)): New.
7544         * omega.c
7545         (debug (omega_pb_d &)): New.
7546         (debug (omega_pb_d *)): New.
7547         * omega.h
7548         (extern debug (omega_pb_d &)): New.
7549         (extern debug (omega_pb_d *)): New.
7550         * print-rtl.c
7551         (debug (const rtx_def &)): New.
7552         (debug (const rtx_def *)): New.
7553         * print-tree.c
7554         (debug_tree (tree): Move within file.
7555         (debug_raw (const tree_node &)): New.
7556         (debug_raw (const tree_node *)): New.
7557         (dump_tree_via_hooks (const tree_node *, int)): New.
7558         (debug (const tree_node &)): New.
7559         (debug (const tree_node *)): New.
7560         (debug_verbose (const tree_node &)): New.
7561         (debug_verbose (const tree_node *)): New.
7562         (debug_head (const tree_node &)): New.
7563         (debug_head (const tree_node *)): New.
7564         (debug_body (const tree_node &)): New.
7565         (debug_body (const tree_node *)): New.
7566         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7567         (debug (vec<tree, va_gc> &)): New.
7568         (debug (vec<tree, va_gc> *)): New.
7569         * rtl.h
7570         (extern debug (const rtx_def &)): New.
7571         (extern debug (const rtx_def *)): New.
7572         * sbitmap.c
7573         (debug_raw (simple_bitmap_def &)): New.
7574         (debug_raw (simple_bitmap_def *)): New.
7575         (debug (simple_bitmap_def &)): New.
7576         (debug (simple_bitmap_def *)): New.
7577         * sbitmap.h
7578         (extern debug (simple_bitmap_def &)): New.
7579         (extern debug (simple_bitmap_def *)): New.
7580         (extern debug_raw (simple_bitmap_def &)): New.
7581         (extern debug_raw (simple_bitmap_def *)): New.
7582         * sel-sched-dump.c
7583         (debug (vinsn_def &)): New.
7584         (debug (vinsn_def *)): New.
7585         (debug_verbose (vinsn_def &)): New.
7586         (debug_verbose (vinsn_def *)): New.
7587         (debug (expr_def &)): New.
7588         (debug (expr_def *)): New.
7589         (debug_verbose (expr_def &)): New.
7590         (debug_verbose (expr_def *)): New.
7591         (debug (vec<rtx> &)): New.
7592         (debug (vec<rtx> *)): New.
7593         * sel-sched-dump.h
7594         (extern debug (vinsn_def &)): New.
7595         (extern debug (vinsn_def *)): New.
7596         (extern debug_verbose (vinsn_def &)): New.
7597         (extern debug_verbose (vinsn_def *)): New.
7598         (extern debug (expr_def &)): New.
7599         (extern debug (expr_def *)): New.
7600         (extern debug_verbose (expr_def &)): New.
7601         (extern debug_verbose (expr_def *)): New.
7602         (extern debug (vec<rtx> &)): New.
7603         (extern debug (vec<rtx> *)): New.
7604         * sel-sched-ir.h
7605         (_list_iter_cond_expr): Make inline instead of static.
7606         * sreal.c
7607         (debug (sreal &)): New.
7608         (debug (sreal *)): New.
7609         * sreal.h
7610         (extern debug (sreal &)): New.
7611         (extern debug (sreal *)): New.
7612         * tree.h
7613         (extern debug_raw (const tree_node &)): New.
7614         (extern debug_raw (const tree_node *)): New.
7615         (extern debug (const tree_node &)): New.
7616         (extern debug (const tree_node *)): New.
7617         (extern debug_verbose (const tree_node &)): New.
7618         (extern debug_verbose (const tree_node *)): New.
7619         (extern debug_head (const tree_node &)): New.
7620         (extern debug_head (const tree_node *)): New.
7621         (extern debug_body (const tree_node &)): New.
7622         (extern debug_body (const tree_node *)): New.
7623         (extern debug (vec<tree, va_gc> &)): New.
7624         (extern debug (vec<tree, va_gc> *)): New.
7625         * tree-cfg.c
7626         (debug (struct loop &)): New.
7627         (debug (struct loop *)): New.
7628         (debug_verbose (struct loop &)): New.
7629         (debug_verbose (struct loop *)): New.
7630         * tree-dump.c: Add header dependence.
7631         * tree-flow.h
7632         (extern debug (struct loop &)): New.
7633         (extern debug (struct loop *)): New.
7634         (extern debug_verbose (struct loop &)): New.
7635         (extern debug_verbose (struct loop *)): New.
7636         * tree-data-ref.c
7637         (debug (data_reference &)): New.
7638         (debug (data_reference *)): New.
7639         (debug (vec<data_reference_p> &)): New.
7640         (debug (vec<data_reference_p> *)): New.
7641         (debug (vec<ddr_p> &)): New.
7642         (debug (vec<ddr_p> *)): New.
7643         * tree-data-ref.h
7644         (extern debug (data_reference &)): New.
7645         (extern debug (data_reference *)): New.
7646         (extern debug (vec<data_reference_p> &)): New.
7647         (extern debug (vec<data_reference_p> *)): New.
7648         (extern debug (vec<ddr_p> &)): New.
7649         (extern debug (vec<ddr_p> *)): New.
7650         * tree-ssa-alias.c
7651         (debug (pt_solution &)): New.
7652         (debug (pt_solution *)): New.
7653         * tree-ssa-alias.h
7654         (extern debug (pt_solution &)): New.
7655         (extern debug (pt_solution *)): New.
7656         * tree-ssa-alias.c
7657         (debug (_var_map &)): New.
7658         (debug (_var_map *)): New.
7659         (debug (tree_live_info_d &)): New.
7660         (debug (tree_live_info_d *)): New.
7661         * tree-ssa-alias.h
7662         (extern debug (_var_map &)): New.
7663         (extern debug (_var_map *)): New.
7664         (extern debug (tree_live_info_d &)): New.
7665         (extern debug (tree_live_info_d *)): New.
7667 2013-03-28  Jan Hubicka  <jh@suse.cz>
7669         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7671 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7673         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7674         record only when desired or required.
7676 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7678         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7679         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7681 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7683         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7684         (*andsi3_compare0_uxtw): New pattern.
7685         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7686         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7688 2013-03-28  Jan Hubicka  <jh@suse.cz>
7690         * data-streamer-in.c (streamer_read_gcov_count): New function.
7691         * gimple-streamer-out.c: Include value-prof.h.
7692         (output_gimple_stmt): Output histogram.
7693         (output_bb): Use streamer_write_gcov_count.
7694         * value-prof.c: Include data-streamer.h
7695         (dump_histogram_value): Add HIST_TYPE_MAX.
7696         (stream_out_histogram_value): New function.
7697         (stream_in_histogram_value): New function.
7698         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7699         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7700         * data-streamer-out.c (streamer_write_gcov_count): New function.
7701         (streamer_write_gcov_count_stream): New function.
7702         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7703         (lto_output_node): Likewise.
7704         (input_node, input_edge): Likewise.
7705         * lto-streamer-out.c (output_cfg): Update streaming.
7706         * lto-streamer-in.c (input_cfg): Likewise.
7707         * data-streamer.h (streamer_write_gcov_count,
7708         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7709         * gimple-streamer-in.c: Include value-prof.h
7710         (input_gimple_stmt): Input histograms.
7711         (input_bb): Update profile streaming.
7713 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7715         * genmodes.c (emit_max_int): New function.
7716         (emit_insn_modes_h): Added call to emit_max_function.
7717         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7718         Added doc.
7719         * machmode.def: Fixed comment.
7721 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7723         * combine.c (try_combine): Removed useless assert.
7724         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7726 2013-03-28  Marek Polacek  <polacek@redhat.com>
7727             Richard Biener  <rguenther@suse.de>
7729         PR tree-optimization/56695
7730         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7731         build signed result of a vector comparison.
7732         * tree-cfg.c (verify_gimple_comparison): Check that a result
7733         of a vector comparison has signed type.
7735 2013-03-28  Richard Biener  <rguenther@suse.de>
7737         PR tree-optimization/37021
7738         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7739         do not restrict gaps between groups.
7740         * tree-vect-stmts.c (vectorizable_load): Properly account for
7741         a gap between groups.
7743 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7745         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7746         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7747         is not enabled.
7749 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7751         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7752         * doc/extend.texi (Named Address Spaces): Ditto.
7753         (Variable Attributes): Ditto.
7755 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7757         * config.build: Add support for cygwin x64 target.
7758         * config.gcc: Likewise.
7759         * config.host: Likewise.
7760         * configure.ac: Likewise
7761         * configure: Regenerated.
7763 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7765         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7766         * config/i386/t-cygwin-w64: New file.
7767         * config/i386/cygwin-w64.h: New file.
7768         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7769         and add support for x64-cygwin target.
7770         (CPP_SPEC): Likewise.
7771         (CXX_WRAP_SPEC_LIST): Undefine before define.
7772         (LIBGCJ_SONAME): Use 15 as version.
7774 2013-03-27  Richard Biener  <rguenther@suse.de>
7776         PR tree-optimization/56716
7777         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7778         dumping for ref nodes.
7780 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7782         PR tree-optimization/55334
7783         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7784         restricted pointers to arrays.
7786 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7788         * Makefile.in (.SUFFIXES): Add .cc.
7789         (.c.o): Apply same recipe for implicit rule .cc.o.
7791 2013-03-27  Richard Biener  <rguenther@suse.de>
7793         PR tree-optimization/37021
7794         * tree-vect-data-refs.c (vect_check_strided_load): Allow
7795         REALPART/IMAGPART_EXPRs around the supported refs.
7796         * tree-ssa-structalias.c (find_func_aliases): Assume that
7797         floating-point values are not used to transfer pointers.
7799 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7801         * target.def (TARGET_HAS_IFUNC_P): New target hook.
7802         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7803         * doc/tm.texi: Regenerate.
7804         * targhooks.h (default_has_ifunc_p): New.
7805         * targhooks.c (default_has_ifunc_p): Ditto.
7806         * config/linux-protos.h: New file.
7807         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7808         this hook for linux which disables support of indirect functions in
7809         android.
7810         * config/linux-android.c: New file.
7811         * config/t-linux-android.c: Ditto.
7812         * config.gcc: Added new object file linux-android.o.
7813         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7814         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7815         * varasm.c (do_assemble_alias): Likewise.
7816         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7817         doesn't support indirect functions.
7818         * configure: Regenerate.
7820 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
7822         PR target/56102
7823         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7824         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7825         mult-word mode.
7827 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7829         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7831 2013-03-27  Terry Guo  <terry.guo@arm.com>
7833         * config/arm/arm-cores.def: Added core cortex-r7.
7834         * config/arm/arm-tune.md: Regenerated.
7835         * config/arm/arm-tables.opt: Regenerated.
7836         * doc/invoke.texi: Added entry for core cortex-r7.
7838 2013-03-27  Walter Lee  <walt@tilera.com>
7840         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7841         double-decrement of next_scratch_regno.
7843 2013-03-27  Walter Lee  <walt@tilera.com>
7845         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7846         input operands.
7847         (insn_v1mulus): Ditto.
7848         (insn_v2muls): Ditto.
7850 2013-03-27  Walter Lee  <walt@tilera.com>
7852         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7853         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7855 2013-03-27  Walter Lee  <walt@tilera.com>
7857         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7858         (*sibcall_value): Ditto.
7860 2013-03-27  Walter Lee  <walt@tilera.com>
7862         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7863         (insn_mnz_v8qi): ... this ...
7864         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
7865         vector equivalent.
7866         (insn_v<n>mnz): Replaced by ...
7867         (insn_v1mnz): ... this ...
7868         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
7869         equivalent.
7870         (insn_mz_<mode>): Replaced by ...
7871         (insn_mz_v8qi): ... this ...
7872         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
7873         vector equivalent.
7874         (insn_v<n>mz): Replaced by ...
7875         (insn_v1mz): ... this ...
7876         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
7877         equivalent.
7879 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7881         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7883 2013-03-26  Roland McGrath  <mcgrathr@google.com>
7885         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7886         than fprintf with a non-constant, non-format string.
7888 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7890         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7891         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
7892         operand 0 predicate.
7893         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7894         attribute.  Use general_x64nomem_operand as operand 1 predicate.
7895         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7896         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7897         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7898         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7899         (mov<mode>_insv_1): Remove expander.  Merge insn with
7900         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7901         Use general_x64nomem_operand as operand 1 predicate.
7902         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7903         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7904         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7905         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7906         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
7907         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7908         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7909         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7910         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
7911         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7912         (general_x64nomem_operand): Ditto.
7914 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7916         * config/rtems.opt: Add -pthread option.
7918 2013-03-26  Richard Biener  <rguenther@suse.de>
7920         * alias.c (find_base_term): Avoid redundant and not used recursion.
7921         (base_alias_check): Get the initial base term from the caller.
7922         (true_dependence_1): Compute and pass base terms to base_alias_check.
7923         (write_dependence_p): Likewise.
7924         (may_alias_p): Likewise.
7926 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
7928         * config/aarch64/aarch64.c (aarch64_classify_address): Support
7929         PC-relative load in SI modes and above only.
7931 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
7933         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7934         * config/arm/iwmmxt.md (WCGR0): Update.
7935         (WCGR1, WCGR2, WCGR3): Likewise.
7937 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7939         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7940         Use x64 and nox64 isa attributes.
7942 2013-03-26  Richard Biener  <rguenther@suse.de>
7944         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7945         alignment computations and rely on get_object_alignment_1
7946         for the !TYPE_P case.
7947         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7949 2013-03-26  Walter Lee  <walt@tilera.com>
7951         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7952         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7954 2013-03-25  Jeff Law  <law@redhat.com>
7956         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7957         check for INTEGRAL_TYPE_P that was missing due to checking in
7958         wrong version of prior patch.
7960 2013-03-25  Walter Lee  <walt@tilera.com>
7962         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7963         TILEGX_INSN_SHUFFLEBYTES1.
7964         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7965         shufflebytes1.
7966         (tilegx_builtins): Ditto.
7967         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7969 2013-03-25  Walter Lee  <walt@tilera.com>
7971         * config/tilegx/tilegx.md (floatsisf2): New pattern.
7972         (floatunssisf2): New pattern.
7973         (floatsidf2): New pattern.
7974         (floatunssidf2): New pattern.
7976 2013-03-25  Walter Lee  <walt@tilera.com>
7978         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7979         tests for constraint J, K, N, P.
7981 2013-03-25  Walter Lee  <walt@tilera.com>
7983         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7984         Use indirect/pcrel encoding.
7985         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7986         Ditto.
7988 2013-03-25  Steve Ellcey  <sellcey@mips.com>
7990         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7991         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7992         * config/mips/mips.c (mips_option_override): Set IMADD default.
7993         * config/mips/mips.h (PTF_AVOID_IMADD): New.
7994         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7995         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7996         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7997         * doc/invoke.texi (-mimadd/-mno-imadd): New.
7999 2013-03-25  Jeff Law  <law@redhat.com>
8001         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8002         slightly to avoid creating and folding useless trees.  Simplify
8003         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8005 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8007         * config/i386/i386.md (*zero_extendsidi2): Merge with
8008         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8009         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8010         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8011         targets.  Clarify comment.
8013 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8015         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8016         pass-through jump functions differently.
8017         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8018         up jump functions.
8020 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8022         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8023         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8024         process it.
8025         (ipa_get_indirect_edge_target): New function.
8026         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8027         ipa_get_indirect_edge_target.  Update all callers.
8028         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8029         ipa_get_indirect_edge_target_1 instead of calling
8030         ipa_get_indirect_edge_target.
8031         (create_specialized_node): Pass aggvlas to
8032         ipcp_discover_new_direct_edges.
8034 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8036         * config/arm/arm.md (f_sels, f_seld): New types.
8037         (*cmov<mode>): New pattern.
8038         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8039         predicate.
8041 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8043         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8044         POSIX-printf for mingw-hosted  builds.
8046 2013-03-25  Richard Biener  <rguenther@suse.de>
8048         PR middle-end/56694
8049         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8050         must-not-throw stmt location.
8052 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8054         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8055         Emit load-acquire versions when acq is true.
8056         (arm_emit_store_exclusive): Add rel parameter.
8057         Emit store-release versions when rel is true.
8058         (arm_split_compare_and_swap): Use acquire-release instructions
8059         instead.
8060         of barriers when appropriate.
8061         (arm_split_atomic_op): Likewise.
8062         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8063         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8064         (VUNSPEC_SLX): Likewise.
8065         (VUNSPEC_LDA): Likewise.
8066         (VUNSPEC_STL): Likewise.
8067         * config/arm/sync.md (atomic_load<mode>): New pattern.
8068         (atomic_store<mode>): Likewise.
8069         (arm_load_acquire_exclusive<mode>): Likewise.
8070         (arm_load_acquire_exclusivesi): Likewise.
8071         (arm_load_acquire_exclusivedi): Likewise.
8072         (arm_store_release_exclusive<mode>): Likewise.
8074 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8076         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8077         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8078         * config/mip/predicates.md (lwsp_swsp_operand,
8079         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8080         sb16_operand, db4_operand, db7_operand, ib3_operand,
8081         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8082         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8083         andi16_operand): New predicates.
8084         * config/mips/mips.md (compression): New attribute.
8085         (enabled): New attribute.
8086         (length): Consider compression in computing length.
8087         (shift_compression): New code attribute.
8088         (*add<mode>3): New operands. Record compression.
8089         (sub<mode>3): Likewise.
8090         (one_cmpl<mode>2): Likewise.
8091         (*and<mode>3): Likewise.
8092         (*ior<mode>3): Likewise.
8093         (unnamed pattern for xor): Likewise.
8094         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8095         (*<optab><mode>3): Likewise.
8096         (*mov<mode>_internal: Likewise.
8097         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8098         (mips_unsigned_immediate_p): New.
8099         (umips_lwsp_swsp_address_p): New.
8100         (m16_based_address_p): New.
8101         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8102         (mips_unsigned_immediate_p): New prototype.
8103         (lwsp_swsp_address_p): New prototype.
8104         (m16_based_address_p): New prototype.
8105         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8106         (mips_signed_immediate_p): New function.
8107         (m16_based_address_p): New function.
8108         (lwsp_swsp_address_p): New function.
8109         (mips_print_operand_punctuation): Recognize short delay slot insns
8110         for microMIPS.add<mode>3"
8112 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8114         PR target/56720
8115         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8116         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8118 2013-03-25  Richard Biener  <rguenther@suse.de>
8120         PR tree-optimization/56689
8121         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8122         any edge.
8124 2013-03-25  Richard Biener  <rguenther@suse.de>
8126         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8127         of bitmap.
8128         (memory_references): Likewise.
8129         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8130         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8131         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8132         (gather_mem_refs_in_loops): Fold into ...
8133         (analyze_memory_references): ... this.  Move initialization
8134         to tree_ssa_lim_initialize.
8135         (fill_always_executed_in): Rename to ...
8136         (fill_always_executed_in_1): ... this.
8137         (fill_always_executed_in): Move contains_call computation to
8138         this new function from ...
8139         (tree_ssa_lim_initialize): ... here.
8140         (tree_ssa_lim): Call fill_always_executed_in.
8142 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8144         * postreload.c (reload_combine): Fix code detecting returns.
8146 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8148         * function.c (emit_use_return_register_into_block): On cc0 targets,
8149         do not emit the sequence between cc0 setter and user.
8151 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8153         * config/i386/predicates.md (local_symbolic_operand): Interpret
8154         dll-imported symbols as none-local.
8156 2013-03-25  Richard Biener  <rguenther@suse.de>
8158         * tree-ssa-loop-im.c (struct depend): Remove.
8159         (struct lim_aux_data): Make depends a vec of gimples.
8160         (free_lim_aux_data): Adjust.
8161         (add_dependency): Likewise.
8162         (set_level): Likewise.
8164 2013-03-25  Richard Biener  <rguenther@suse.de>
8166         PR middle-end/56434
8167         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8168         the pointer returned by calls with ECF_MALLOC set.
8170 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8172         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8174 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8176         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8177         using MMXMODE mode iterator.
8178         (*move<mode>_internal): Merge with *movv2sf_internal and
8179         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8181 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8183         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8184         (record_last_mem_set_info): Likewise.
8186         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8187         of XNEWVEC followed by memset.
8188         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8190 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8192         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8193         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8194         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8195         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8196         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8197         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8198         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8199         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8200         BARRIER_P instead of GET_CODE.
8202 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8204         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8205         inaccuracy in the probing code.
8207         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8208         (ctrapdi4): Likewise.
8210 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8212         * calls.c (expand_call): Add missing guard to code handling return
8213         of non-BLKmode structures in MSB.
8214         * function.c (expand_function_end): Likewise.
8216 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8218         * combine.c (try_combine): Adjust comment.  Do not add the set of
8219         insn #0 if the destination indirectly is set or dies in insn #2.
8220         Tidy up code to distribute a new note.
8222 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8224         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8225         also for alternatives 16 and 17.
8227 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8229         * config/i386/sse.md (*mov<mode>_internal): Merge with
8230         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8231         Emit insn template depending on type attribute.  Use
8232         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8233         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8234         attribute calculation.  Remove unit attribute calculation.
8235         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8236         Set prefix_data16 attribute for DImode ssemov types.
8237         Use Ym instead of y for SSE-MMX conversion alternatives.
8238         Reorder operand constraints.
8240 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8242         * df.h (df_insn_delete): Adjust prototype.
8243         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8244         and let it decide whether mark the basic block dirty.
8245         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8246         * df-scan.c (df_insn_info_delete): New helper function, split
8247         off from df_insn_delete.
8248         (df_scan_free_bb_info): Use it.
8249         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8250         Likewise.
8251         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8252         that the insn is actually an insn and it has a non-NULL basic block.
8253         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8255 2013-03-22  Richard Biener  <rguenther@suse.de>
8257         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8258         dep_ref members.
8259         (mem_ref_alloc): Do not allocate them.
8260         (refs_independent_p): Do not query or maintain a cache.
8262 2013-03-22  Richard Biener  <rguenther@suse.de>
8264         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8265         (gather_mem_refs_in_loops): Do not compute it.
8266         (analyze_memory_references): Do not allocate it.
8267         (tree_ssa_lim_finalize): Do not free it.
8268         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8270 2013-03-22  Richard Biener  <rguenther@suse.de>
8272         * is-a.h (as_a): Use gcc_checking_assert.
8274 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8276         * config/aarch64/aarch64.c (aarch64_print_operand): New
8277         format specifier for printing a constant in hex.
8278         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8279         format specifier for printing second operand.
8281 2013-03-22  Richard Biener  <rguenther@suse.de>
8283         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8284         bitmaps.
8285         (gather_mem_refs_in_loops): Perform store accumulation here.
8286         (create_vop_ref_mapping_loop): Remove.
8287         (create_vop_ref_mapping): Likewise.
8288         (analyze_memory_references): Initialize refs_stored_in_loop.
8289         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8290         (record_indep_loop): Remove.
8291         (record_dep_loop): New function.
8292         (ref_indep_loop_p_1): Adjust to only walk over references
8293         in the loop, not its subloops.
8294         (ref_indep_loop_p): Rename to ...
8295         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8296         maintaining a more fine-grained cache.
8297         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8298         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8300 2013-03-22  Richard Biener  <rguenther@suse.de>
8302         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8303         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8304         aggregate mem_ref_loc.
8305         (free_mem_ref_locs): Inline into ...
8306         (memref_free): ... this and adjust.
8307         (mem_ref_alloc): Adjust.
8308         (mem_ref_locs_alloc): Remove.
8309         (record_mem_ref_loc): Adjust.
8310         (get_all_locs_in_loop): Rewrite into ...
8311         (for_all_locs_in_loop): ... this iterator.
8312         (rewrite_mem_ref_loc): New functor.
8313         (rewrite_mem_refs): Use for_all_locs_in_loop.
8314         (sm_set_flag_if_changed): New functor.
8315         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8316         (ref_always_accessed): New functor.
8317         (ref_always_accessed_p): Use for_all_locs_in_loop.
8319 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8321         * tree-pass.h (PROP_gimple_lvec): New.
8322         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8323         (init_optimization_passes): Move pass_lower_vector.
8324         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8325         PROP_gimple_lvec.
8326         (pass_lower_vector): Provide PROP_gimple_lvec.
8327         (pass_lower_vector_ssa): Likewise.
8328         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8330 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8332         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8334 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8336         * config/i386/i386.md (*movdi_internal): Disparage slightly
8337         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8338         conversion alternatives.
8340 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8342         PR middle-end/48087
8343         * diagnostic.def (DK_WERROR): New kind.
8344         * diagnostic.h (werrorcount): Define.
8345         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8346         promoted to DK_ERROR, increment DK_WERROR counter instead of
8347         DK_ERROR counter.
8348         * toplev.c (toplev_main): Call print_ignored_options even if
8349         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8350         even if just werrorcount is non-zero.
8352         PR debug/55608
8353         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8354         on failure.
8355         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8356         (string_cst_pool_decl): New function.
8357         (optimize_one_addr_into_implicit_ptr): New function.
8358         (resolve_addr_in_expr): Optimize DWARF location expression
8359         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8360         which doesn't live in memory, but has DW_AT_location or
8361         DW_AT_const_value, or refers to a string literal, into
8362         DW_OP_GNU_implicit_pointer.
8363         (optimize_location_into_implicit_ptr): New function.
8364         (resolve_addr): If removing DW_AT_location of a variable because
8365         it was DW_OP_addr of address of the variable, but the variable doesn't
8366         live in memory, try to emit const value attribute for the initializer.
8368 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8370         * tree.h (VECTOR_TYPE_P): New macro.
8371         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8372         TYPE_MODE): Use it.
8373         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8374         VEC_COND_EXPR cannot be lvalues.
8375         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8377 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8379         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8380         Restrict the transformation to equal modes.
8382 2013-03-21  Richard Biener  <rguenther@suse.de>
8384         PR tree-optimization/39326
8385         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8386         (MEM_ANALYZABLE): Adjust.
8387         (record_mem_ref_loc): Move bitmap ops ...
8388         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8389         unanalyzable refs, do not record locations for it.
8390         (analyze_memory_references): Allocate ref zero as shared
8391         unanalyzable ref.
8392         (refs_independent_p): Do not test for unanalyzed mems here.
8393         (ref_indep_loop_p_1): Special-case disambiguation against
8394         the unanalyzed ref.
8395         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8397 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8399         * config/arm/arm-protos.h (tune_params): Add
8400         prefer_neon_for_64bits field.
8401         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8402         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8403         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8404         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8405         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8406         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8407         (arm_option_override): Handle -mneon-for-64bits new option.
8408         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8409         (prefer_neon_for_64bits): Declare new variable.
8410         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8411         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8412         (arch_enabled): Handle new arch types. Remove support for onlya8
8413         and nota8.
8414         (one_cmpldi2): Use new arch names.
8415         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8416         * config/arm/arm.opt (mneon-for-64bits): Add option.
8417         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8418         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8419         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8420         of onlya8.
8421         * doc/invoke.texi (-mneon-for-64bits): Document.
8423 2013-03-21  Richard Biener  <rguenther@suse.de>
8425         PR tree-optimization/39326
8426         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8427         (sort_bbs_in_loop_postorder_cmp): New function.
8428         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8430 2013-03-21  Richard Biener  <rguenther@suse.de>
8432         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8433         (vect_insert_into_interleaving_chain): Likewise.
8434         (vect_drs_dependent_in_basic_block): Inline ...
8435         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8436         split out from ...
8437         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8438         (vect_check_interleaving): Simplify.
8439         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8440         (vect_slp_analyze_data_ref_dependences): ... this new function.
8441         (dr_group_sort_cmp): New function.
8442         (vect_analyze_data_ref_accesses): Compute data-reference groups
8443         here instead of in vect_analyze_data_ref_dependence.  Use
8444         a more efficient algorithm.
8445         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8446         vect_slp_analyze_data_ref_dependences.  Call
8447         vect_analyze_data_ref_accesses earlier.
8448         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8449         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8450         (vect_slp_analyze_data_ref_dependences): New prototype.
8452 2013-03-21  Richard Biener  <rguenther@suse.de>
8454         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8455         ref is stored in the loop.
8456         (find_refs_for_sm): Walk only over all stores.
8457         (store_motion_loop): Allocate from lim_bitmap_obstack.
8458         (store_motion): Likewise.
8460 2013-03-21  Richard Biener  <rguenther@suse.de>
8462         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8463         Update virtual SSA form.
8465 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8467         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8468         * configure: Regenerate.
8469         * config.in: Regenerate.
8470         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8471         if !HAVE_LD_EH_FRAME_CIEV3.
8473 2013-03-21  Richard Biener  <rguenther@suse.de>
8475         * tree-cfg.c (verify_expr_no_block): New function.
8476         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8477         nor DECL_VALUE_EXPR have locations with associated blocks.
8478         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8479         (clear_unused_block_pointer): Remove code dealing with
8480         blocks in DECL_DEBUG_EXPR locations.
8482 2013-03-21  Richard Biener  <rguenther@suse.de>
8484         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8485         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8486         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8487         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8488         instead of DECL_DEBUG_EXPR_IS_FROM.
8489         * gimplify.c (gimplify_modify_expr): Likewise.
8490         * tree-cfg.c (verify_expr_location_1): Likewise.
8491         * tree-complex.c (create_one_component_var): Likewise.
8492         * tree-sra.c (create_access_replacement): Likewise.
8493         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8494         (clear_unused_block_pointer): Likewise.
8495         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8496         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8497         * var-tracking.c (var_debug_decl): Likewise.
8498         (track_expr_p): Likewise.
8499         * tree-inline.c (add_local_variables): Likewise.  Set
8500         DECL_HAS_DEBUG_EXPR_P after copying it.
8501         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8502         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8504 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8506         PR bootstrap/56656
8507         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8508         * configure: Regenerate.
8509         * config.in: Regenerate.
8510         * config/i386/i386.md (*movdf_internal): Use
8511         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8512         movd instead of movq mnemonic for interunit moves.
8513         (*movdi_internal): Ditto.
8515 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8517         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8518         (abd<mode>_3): New pattern.
8519         (aba<mode>_3): New pattern.
8520         (fabd<mode>_3): New pattern.
8522 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8524         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8525         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8526         occurrence of REGISTER_PREFIX as its empty string.
8528 2013-03-20  Jeff Law  <law@redhat.com>
8530         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8531         addititional equivalences for equality comparisons between an SSA_NAME
8532         and a constant where the SSA_NAME was set from a widening conversion.
8534 2013-03-20  Walter Lee  <walt@tilera.com>
8536         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8538 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8540         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8541         depending on type attribute.
8542         (*movti_internal): Ditto.
8543         (*movtf_internal): Ditto.
8544         (*movxf_internal): Ditto.
8545         (*movdf_internal): Ditto.
8546         (*movsf_internal): Ditto.
8548 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8550         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8551         maybe_vex for sselog1 and ssemov types.
8552         (*movdi_internal): Reorder operand constraints.
8553         (*movsi_internal): Ditto.  Set prefix attribute to
8554         maybe_vex for sselog1 and ssemov types.
8555         (*movtf_internal): Set prefix attribute to maybe_vex
8556         for sselog1 and ssemov types.
8557         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8558         DImode ssemov types.  Reorder operand constraints.
8559         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8560         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8561         attribute for SImode ssemov types.  Reorder operand constraints.
8563 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8565         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8566         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8568 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8570         * config/rs6000/predicates.md (indexed_address, update_address_mem
8571         update_indexed_address_mem): New predicates.
8572         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8573         attribute for load/store instructions.
8574         * config/rs6000/dfp.md (movsd_store): Likewise.
8575         (movsd_load): Likewise.
8576         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8577         (unnamed HI->DI extend define_insn): Likewise.
8578         (unnamed SI->DI extend define_insn): Likewise.
8579         (unnamed QI->SI extend define_insn): Likewise.
8580         (unnamed QI->HI extend define_insn): Likewise.
8581         (unnamed HI->SI extend define_insn): Likewise.
8582         (unnamed HI->SI extend define_insn): Likewise.
8583         (extendsfdf2_fpr): Likewise.
8584         (movsi_internal1): Likewise.
8585         (movsi_internal1_single): Likewise.
8586         (movhi_internal): Likewise.
8587         (movqi_internal): Likewise.
8588         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8589         attribute for load/store instructions.
8590         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8591         instructions.
8592         (mov<mode>_softfloat): Likewise.
8593         (mov<mode>_hardfloat32): Likewise.
8594         (mov<mode>_hardfloat64): Likewise.
8595         (mov<mode>_softfloat64): Likewise.
8596         (movdi_internal32): Likewise.
8597         (movdi_internal64): Likewise.
8598         (probe_stack_<mode>): Likewise.
8600 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8602         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8603         floating point, and decimal floating point to reload iterator.
8605         * config/rs6000/constraints.md (wl constraint): New constraints to
8606         return FLOAT_REGS if certain options are used to reduce the number
8607         of separate patterns that exist in the file.
8608         (wx constraint): Likewise.
8609         (wz constraint): Likewise.
8611         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8612         -mdebug=reg, print wg, wl, wx, and wz constraints.
8613         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8614         Initialize the reload functions for 64-bit binary/decimal floating
8615         point types.
8616         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8617         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8618         create the buffer on the stack to overcome not having a 32-bit
8619         load and store.
8620         (rs6000_emit_move): Likewise.
8621         (rs6000_secondary_memory_needed_rtx): Likewise.
8622         (rs6000_alloc_sdmode_stack_slot): Likewise.
8623         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8624         via xxlxor, just like DFmode 0.0.
8626         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8627         define as 1 if we are running on a power7 or newer.
8628         (enum r6000_reg_class_enum): Add new constraints.
8630         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8631         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8632         with other moves by using conditional constraits (wg).  Use LFIWZX
8633         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8634         (movsd splitter): Likewise.
8635         (movsd_hardfloat): Likewise.
8636         (movsd_softfloat): Likewise.
8638         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8639         binary and decimal floating point moves.
8640         (fmove_ok): New attributes to combine binary and decimal floating
8641         point moves, and to combine power6x (mfpgpr) moves along normal
8642         floating moves.
8643         (real_value_to_target): Likewise.
8644         (f32_lr): Likewise.
8645         (f32_lm): Likewise.
8646         (f32_li): Likewise.
8647         (f32_sr): Likewise.
8648         (f32_sm): Likewise.
8649         (f32_si): Likewise.
8650         (movsf): Combine binary and decimal floating point moves.  Combine
8651         power6x (mfpgpr) moves with other moves by using conditional
8652         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8653         (mov<mode> for SFmode/SDmode); Likewise.
8654         (SFmode/SDmode splitters): Likewise.
8655         (movsf_hardfloat): Likewise.
8656         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8657         (movsf_softfloat): Likewise.
8658         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8660         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8661         wx and wz constraints.
8663         * config/rs6000/constraints.md (wg constraint): New constraint to
8664         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8666         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8667         constraint.
8669         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8670         -mdebug=reg, print wg, wl, wx, and wz constraints.
8671         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8672         Initialize the reload functions for 64-bit binary/decimal floating
8673         point types.
8674         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8675         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8676         create the buffer on the stack to overcome not having a 32-bit
8677         load and store.
8678         (rs6000_emit_move): Likewise.
8679         (rs6000_secondary_memory_needed_rtx): Likewise.
8680         (rs6000_alloc_sdmode_stack_slot): Likewise.
8681         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8682         via xxlxor, just like DFmode 0.0.
8684         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8685         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8686         with other moves by using conditional constraits (wg).  Use LFIWZX
8687         and STFIWX for loading SDmode on power7.
8688         (movdd splitters): Likewise.
8689         (movdd_hardfloat32): Likewise.
8690         (movdd_softfloat32): Likewise.
8691         (movdd_hardfloat64_mfpgpr): Likewise.
8692         (movdd_hardfloat64): Likewise.
8693         (movdd_softfloat64): Likewise.
8695         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8696         64-bit binary and decimal floating point moves.
8697         (FMOVE64X): Likewise.
8698         (movdf): Combine 64-bit binary and decimal floating point moves.
8699         Combine power6x (mfpgpr) moves with other moves by using
8700         conditional constraits (wg).
8701         (mov<mode> for DFmode/DDmode): Likewise.
8702         (DFmode/DDmode splitters): Likewise.
8703         (movdf_hardfloat32): Likewise.
8704         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8705         (movdf_softfloat32): Likewise.
8706         (movdf_hardfloat64_mfpgpr): Likewise.
8707         (movdf_hardfloat64): Likewise.
8708         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8709         (movdf_softfloat64): Likewise.
8710         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8711         (reload_<mode>_load): Move to later in the file so they aren't in
8712         the middle of the floating point move insns.
8713         (reload_<mode>_store): Likewise.
8715         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8716         constraint.
8718         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8719         constraint if -mdebug=reg.
8720         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8721         Enable using dd reload support if needed.
8723         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8724         binary and decimal floating point moves in rs6000.md.
8725         (movtd_internal): Likewise.
8727         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8728         decimal floating point moves.
8729         (movtf): Likewise.
8730         (movtf_internal): Likewise.
8731         (mov<mode>_internal, TDmode/TFmode): Likewise.
8732         (movtf_softfloat): Likewise.
8733         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8735         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8736         movdi_internal64, using wg constraint for move direct operations.
8737         (movdi_internal64): Likewise.
8739         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8740         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8741         the various virtual registers. Use GPR/FPR first/last values,
8742         instead of hard coding the register numbers.  Print which modes
8743         have reload functions registered.
8744         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8745         settings before/after setting cpu, target and subtarget settings.
8746         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8747         and for secondary reload failures in rs6000_secondary_reload_inner.
8748         (rs6000_secondary_reload_fail): Likewise.
8749         (rs6000_secondary_reload_inner): Likewise.
8751         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8752         macros for first/last GPR and FPR registers.
8753         (LAST_GPR_REGNO): Likewise.
8754         (FIRST_FPR_REGNO): Likewise.
8755         (LAST_FPR_REGNO): Likewise.
8757         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8758         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8759         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8760         (vcond<mode><mode>): Likewise.
8761         (vcondu<mode><mode>): Likewise.
8762         (vector_gtu<mode>): Likewise.
8763         (vector_gte<mode>): Likewise.
8764         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8765         to prevent the compiler from converting DImode operations to TImode.
8766         (ior<mode>3): Likewise.
8767         (and<mode>3): Likewise.
8768         (one_cmpl<mode>2): Likewise.
8769         (nor<mode>3): Likewise.
8770         (andc<mode>3): Likewise.
8772         * config/rs6000/constraints.md (wt constraint): New constraint
8773         that returns VSX_REGS if TImode is allowed in VSX registers.
8775         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8776         constant under VSX.
8778         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8779         similar to TImode, but it is restricted to being in the GPRs.
8781         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8782         TImode to occupy a single VSX register.
8784         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8785         -mvsx-timode for power7/power8.
8786         (power7 cpu): Likewise.
8787         (power8 cpu): Likewise.
8789         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8790         sure that TFmode/TDmode take up two registers if they are ever
8791         allowed in the upper VSX registers.
8792         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8793         registers.
8794         (rs6000_init_hard_regno_mode_ok): Likewise.
8795         (rs6000_debug_reg_global): Add debugging for PTImode and wt
8796         constraint.  Print if LRA is turned on.
8797         (rs6000_option_override_internal): Give an error if -mvsx-timode
8798         and VSX is not enabled.
8799         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
8800         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8801         to reg+offset addressing.  Use PTImode when checking offset
8802         addresses for validity.
8803         (reg_offset_addressing_ok_p): Likewise.
8804         (rs6000_legitimate_offset_address_p): Likewise.
8805         (rs6000_legitimize_address): Likewise.
8806         (rs6000_legitimize_reload_address): Likewise.
8807         (rs6000_legitimate_address_p): Likewise.
8808         (rs6000_eliminate_indexed_memrefs): Likewise.
8809         (rs6000_emit_move): Likewise.
8810         (rs6000_secondary_reload): Likewise.
8811         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
8812         reloads to fpr registers to continue to use reg+offset addressing,
8813         but 64-bit reloads to altivec registers need reg+reg addressing.
8814         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8815         it.  Treat LO_SUM like a PLUS operation.
8816         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8817         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8818         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8819         registers to share a register with a smaller sized type, since VSX
8820         puts scalars in the upper 64-bits.
8821         (print_operand): Add support for PTImode.
8822         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8823         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8824         registers, but don't have arithmetic support.
8825         (rs6000_memory_move_cost): Add test for VSX.
8826         (rs6000_opt_masks): Add -mvsx-timode.
8828         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8829         for TImode.
8830         (VSs): Likewise.
8831         (VSr): Use wt constraint for TImode.
8832         (VSv): Drop TImode support.
8833         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8834         (vsx_movti_64bit): Likewise.
8835         (vsx_movti_32bit): Likewise.
8836         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8837         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8838         one '?' on the appropriate output constraint.  Do not allow TImode
8839         logical operations on 32-bit systems.
8840         (vsx_ior<mode>3): Likewise.
8841         (vsx_xor<mode>3): Likewise.
8842         (vsx_one_cmpl<mode>2): Likewise.
8843         (vsx_nor<mode>3): Likewise.
8844         (vsx_andc<mode>3): Likewise.
8845         (vsx_concat_<mode>): Likewise.
8846         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8848         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8849         OPTION_MASK_VSX_TIMODE.
8850         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8851         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8853         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8854         (TI2 iterator): New iterator for TImode, PTImode.
8855         (wd mode attribute): Add values for vector types.
8856         (movti_string): Replace TI move operations with operations for TImode
8857         and PTImode.  Add support for TImode being allowed in VSX registers.
8858         (mov<mode>_string, TImode/PTImode): Likewise.
8859         (movti_ppc64): Likewise.
8860         (mov<mode>_ppc64, TImode/PTImode): Likewise.
8861         (TI mode splitters): Likewise.
8863         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8864         constraint.
8866 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
8868         PR tree-optimization/56355
8869         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8870         Also handle integers with undefined overflow.
8872 2013-03-20  Catherine Moore  <clm@codesourcery.com>
8873             Maciej W. Rozycki  <macro@codesourcery.com>
8874             Tom de Vries  <tom@codesourcery.com>
8875             Nathan Sidwell <nathan@codesourcery.com>
8876             Iain Sandoe  <iain@codesourcery.com>
8877             Nathan Froyd  <froydnj@codesourcery.com>
8878             Chao-ying Fu <fu@mips.com>
8880         * doc/extend.texi: (micromips, nomicromips, nocompression):
8881         Document new function attributes.
8882         * doc/invoke.texi (minterlink-compressed, mmicromips,
8883         m14k, m14ke, m14kec): Document new options.
8884         (minterlink-mips16): Update documentation.
8885         * doc/md.texi (ZC, ZD): Document new constraints.
8886         * configure.ac (gcc_cv_as_micromips): Check if linker
8887         supports the .set micromips directive.
8888         * configure: Regenerate.
8889         * config.in: Regenerate.
8890         * config/mips/mips-tables.opt: Regenerate.
8891         * config/mips/micromips.md: New file.
8892         * constraints.md (ZC, ZD): New constraints.
8893         * config/mips/predicates.md (movep_src_register): New predicate.
8894         (movep_src_operand): New predicate.
8895         (non_volatile_mem_operand): New predicate.
8896         * config/mips/mips.md (multimem): New type.
8897         (length): Differentiate between 17-bit and 18-bit branch offsets.
8898         (MOVEP1, MOVEP2): New mode iterator.
8899         (mov_<load>l): Use ZC constraint.
8900         (mov_<load>r): Likewise.
8901         (mov_<store>l): Likewise.
8902         (mov_<store>r): Likewise.
8903         (*branch_equality<mode>_inverted): Add microMIPS support.
8904         (*branch_equality<mode>): Likewise.
8905         (*jump_absolute): Likewise.
8906         (indirect_jump_<mode>): Likewise.
8907         (tablejump_<mode>): Likewise.
8908         (<optab>_internal): Likewise.
8909         (sibcall_internal): Likewise.
8910         (sibcall_value_internal): Likewise.
8911         (prefetch): Use constraint ZD.
8912         * config/mips/mips.opt (minterlink-compressed): New option.
8913         (minterlink-mips16): Now an alias for minterlink-compressed.
8914         (mmicromips): New option.
8915         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8916         (compare_and_swap_12): Likewise.
8917         (sync_add<mode>): Likewise.
8918         (sync_<optab>_12): Likewise.
8919         (sync_old_<optab>_12): Likewise.
8920         (sync_new_<optab>_12): Likewise.
8921         (sync_nand_12): Likewise.
8922         (sync_old_nand_12): Likewise.
8923         (sync_new_nand_12): Likewise.
8924         (sync_sub<mode>): Likewise.
8925         (sync_old_add<mode>): Likewise.
8926         (sync_old_sub<mode>): Likewise.
8927         (sync_new_add<mode>): Likewise.
8928         (sync_new_sub<mode>): Likewise.
8929         (sync_<optab><mode>): Likewise.
8930         (sync_old_<optab><mode>): Likewise.
8931         (sync_new_<optab><mode>): Likewise.
8932         (sync_nand<mode>): Likewise.
8933         (sync_old_nand<mode>): Likewise.
8934         (sync_new_nand<mode>): Likewise.
8935         (sync_lock_test_and_set<mode>): Likewise.
8936         (test_and_set_12): Likewise.
8937         (atomic_compare_and_swap<mode>): Likewise.
8938         (atomic_exchange<mode>_llsc): Likewise.
8939         (atomic_fetch_add<mode>_llsc): Likewise.
8940         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8941         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8942         (umips_save_restore_pattern_p): Likewise.
8943         (umips_load_store_pair_p): Likewise.
8944         (umips_output_load_store_pair): Likewise.
8945         (umips_movep_target_p): Likewise.
8946         (umips_12bit_offset_address_p): Likewise.
8947         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8948         (mips_base_mips16): Rename this...
8949         (mips_base_compression_flags): ...to this. Update all uses.
8950         (mips_attribute_table): Add micromips, nomicromips and nocompression.
8951         (mips_mips16_decl_p): Delete.
8952         (mips_nomips16_decl_p): Delete.
8953         (mips_get_compress_on_flags): New function.
8954         (mips_get_compress_off_flags): New function.
8955         (mips_get_compress_mode): New function.
8956         (mips_get_compress_on_name): New function.
8957         (mips_get_compress_off_name): New function.
8958         (mips_insert_attributes): Support multiple compression types.
8959         (mips_merge_decl_attributes): Likewise.
8960         (umips_12bit_offset_address_p): New function.
8961         (mips_start_function_definition): Emit .set micromips directive.
8962         (mips_call_may_need_jalx_p): New function.
8963         (mips_function_ok_for_sibcall): Add microMIPS support.
8964         (mips_print_operand_punctuation): Support short delay slots and
8965         compact jumps.
8966         (umips_swm_mask, umips_swm_encoding): New.
8967         (umips_build_save_restore): New function.
8968         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8969         (was_mips16_p): Remove.
8970         (old_compression_mode): New.
8971         (mips_set_compression_mode): New function.
8972         (mips_set_current_function): Add microMIPS support.
8973         (mips_option_override): Likewise.
8974         (umips_save_restore_pattern_p): New function.
8975         (umips_output_save_restore): New function.
8976         (umips_load_store_pair_p_1): New function.
8977         (umips_load_store_pair_p): New function.
8978         (umips_output_load_store_pair_1): New function.
8979         (umips_output_load_store_pair): New function.
8980         (umips_movep_target_p) New function.
8981         (mips_prepare_pch_save): Add microMIPS support.
8982         * config/mips/mips.h (TARGET_COMPRESSION): New.
8983         (TARGET_CPU_CPP_BUILTINS): Update macro
8984         to use new compression flags and to support microMIPS.
8985         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8986         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8987         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8988         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8989         (ASM_SPEC): Support mmicromips and mno-micromips.
8990         (M16STORE_REG_P): New macro.
8991         (MIPS_CALL): Support TARGET_MICROMIPS.
8992         (MICROMIPS_J): New macro.
8993         (mips_base_mips16): Rename this...
8994         (mips_base_compression_flags): ...to this.
8995         (UMIPS_12BIT_OFFSET_P): New macro.
8996         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8997         (MULTILIB_DIRNAMES): Likewise.
8998 2013-03-20  Richard Biener  <rguenther@suse.de>
9000         PR tree-optimization/56661
9001         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9002         the result does not have to be distinct.
9004 2013-03-20  Richard Biener  <rguenther@suse.de>
9006         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9007         remap_gimple_op_r.
9009 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9010             Steven Bosscher <steven@gcc.gnu.org>
9012         PR rtl-optimization/56605
9013         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9015 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9017         PR bootstrap/56656
9018         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9019         that require movd instead of movq.
9021 2013-03-20  Richard Biener  <rguenther@suse.de>
9023         * tree-ssa-structalias.c (struct variable_info): Add pointer
9024         to the first field of an aggregate with sub-vars.  Make
9025         this and the pointer to the next subfield its ID.
9026         (vi_next): New function.
9027         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9028         storedanything_id, integer_id): Increment by one.
9029         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9030         get_call_clobber_vi): Adjust.
9031         (solution_set_expand): Simplify and speedup.
9032         (solution_set_add): Inline into ...
9033         (set_union_with_increment): ... this.  Adjust accordingly.
9034         (do_sd_constraint): Likewise.
9035         (do_ds_constraint): Likewise.
9036         (do_complex_constraint): Simplify.
9037         (build_pred_graph): Adjust.
9038         (solve_graph): Likewise.  Simplify and speedup.
9039         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9040         get_constraint_for_component_ref, get_constraint_for_1,
9041         first_vi_for_offset, first_or_preceding_vi_for_offset,
9042         create_function_info_for, create_variable_info_for_1,
9043         create_variable_info_for, intra_create_variable_infos): Adjust.
9044         (init_base_vars): Push NULL for ID zero.
9045         (compute_points_to_sets): Adjust.
9047 2013-03-20  Richard Biener  <rguenther@suse.de>
9049         * cfgloop.c (verify_loop_structure): Streamline and avoid
9050         ICEing on corrupt loop tree.
9051         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9052         loop tree.
9054 2013-03-20  Richard Biener  <rguenther@suse.de>
9056         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9057         check whether an SSA update is needed.
9059 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9061         * config/mips/constraints.md (T): Rename to...
9062         (Yf): ...this.
9063         (U): Rename to...
9064         (Yd): ...this.
9065         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9066         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9068 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9070         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9071         (*subsi3_carryin_uxtw): Likewise.
9073 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9075         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9076         (*rorsi3_insn_uxtw): Likewise.
9078 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9080         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9081         (*extrsi5_insn_uxtw): Likewise.
9083 2013-03-19  Richard Biener  <rguenther@suse.de>
9085         PR tree-optimization/56273
9086         * passes.c (init_optimization_passes): Move second VRP after DOM.
9088 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9090         * config/i386/i386.md (*movti_internal): Merge from
9091         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9092         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9093         nox64 isa attributes.
9095 2013-03-18  Richard Biener  <rguenther@suse.de>
9097         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9098         (unite): Likewise.
9099         (merge_node_constraints): Likewise.
9100         (build_succ_graph): Likewise.
9101         (valid_graph_edge): Inline into single caller.
9102         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9103         and cache varinfo.
9104         (scc_visit): Fix formatting and variable use.
9105         (do_sd_constraint): Use gcc_checking_assert.
9106         (do_ds_constraint): Likewise.
9107         (do_complex_constraint): Likewise.
9108         (condense_visit): Likewise.  Cleanup.
9109         (dump_pred_graph): New function.
9110         (perform_var_substitution): Dump the pred-graph before
9111         variable substitution.
9112         (find_equivalent_node): Use gcc_checking_assert.
9113         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9115 2013-03-18  Richard Biener  <rguenther@suse.de>
9117         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9118         Remove cond_expr_stmt_list argument and do not gimplify the
9119         built expression.
9120         (vect_loop_versioning): Adjust.
9121         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9122         Cleanup to use less temporaries.
9123         (vect_create_data_ref_ptr): Cleanup.
9125 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9127         PR tree-optimization/56635
9128         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9129         require types_compatible_p types.
9131 2013-03-18  Nick Clifton  <nickc@redhat.com>
9133         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9134         spurious backslash.
9136         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9137         Add missing line to comment describing function.
9139 2013-03-18  Richard Biener  <rguenther@suse.de>
9141         PR tree-optimization/56210
9142         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9143         Handle string / character search functions.
9144         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9146 2013-03-18  Richard Biener  <rguenther@suse.de>
9148         PR middle-end/56483
9149         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9150         and implement properly.
9151         * gimple.h (gimple_cond_single_var_p): Remove.
9153 2013-03-18  Richard Biener  <rguenther@suse.de>
9155         * tree-data-ref.h (find_data_references_in_loop): Declare.
9156         * tree-data-ref.c (get_references_in_stmt): Use a stack
9157         vector pre-allocated in the callers.
9158         (find_data_references_in_stmt): Adjust.
9159         (graphite_find_data_references_in_stmt): Likewise.
9160         (create_rdg_vertices): Likewise.
9161         (find_data_references_in_loop): Export.
9162         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9163         Compute dependences here...
9164         (vect_analyze_data_refs): ...not here.  When we encounter
9165         a non-vectorizable data reference in basic-block vectorization
9166         truncate the data reference vector.  Do not bother to
9167         fixup data-dependence information for gather loads.
9168         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9169         of data references, as reported.
9171 2013-03-18  Richard Biener  <rguenther@suse.de>
9173         PR tree-optimization/3713
9174         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9175         has_constants and expr.
9176         (stmt_has_constants): Properly valueize SSA names when deciding
9177         whether the stmt has constants.
9179 2013-03-18  Richard Biener  <rguenther@suse.de>
9181         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9182         whole function when there is nothing to do.
9183         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9184         * tree-vectorizer.c (vectorize_loops): Update virtual and
9185         loop-closed SSA once.
9186         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9188 2013-03-18  Richard Biener  <rguenther@suse.de>
9190         PR middle-end/56113
9191         * domwalk.c (bb_postorder): New global static.
9192         (cmp_bb_postorder): New function.
9193         (walk_dominator_tree): Replace scheme imposing an order for
9194         visiting dominator sons by one sorting them at the time they
9195         are pushed on the stack.
9197 2013-03-18  Richard Biener  <rguenther@suse.de>
9199         PR tree-optimization/39326
9200         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9201         (struct mem_ref): Replace mem member with ao_ref typed member.
9202         (MEM_ANALYZABLE): Adjust.
9203         (memref_eq): Likewise.
9204         (mem_ref_alloc): Likewise.
9205         (gather_mem_refs_stmt): Likewise.
9206         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9207         (execute_sm_if_changed_flag_set): Adjust.
9208         (execute_sm): Likewise.
9209         (ref_always_accessed_p): Likewise.
9210         (refs_independent_p): Likewise.
9211         (can_sm_ref_p): Likewise.
9213 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9215         PR c/56566
9216         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9217         return 1 even for !unsignedp.
9219 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9221         * config/i386/i386.md (isa): Add x64 and nox64.
9222         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9223         (*pushtf): Enable *roF alternative for x64 isa only.
9224         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9225         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9226         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9227         (*movtf_internal): Merge from *movtf_internal_rex64 and
9228         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9229         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9230         nox64 isa attributes.
9231         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9232         nox64 isa attributes.
9233         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9235 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9237         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9239 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9241         PR target/56640
9242         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9243         class names.  Remove trailing comma after "ALL_REGS".
9245 2013-03-16  Jan Hubicka  <jh@suse.cz>
9247         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9248         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9249         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9250         of cgraph_get_create_node.
9251         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9253 2013-03-16  Jason Merrill  <jason@redhat.com>
9255         PR debug/49090
9256         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9257         with DW_AT_default_value.
9259 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9261         * BASE-VER: Set to 4.9.0.
9263 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9265         PR target/56619
9266         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9267         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9268         Document _x* TSX intrinsics.
9270 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9271             David Holsgrove  <david.holsgrove@xilinx.com>
9273         * configure.ac: Add MicroBlaze TLS support detection.
9274         * configure: Regenerate.
9275         * config/microblaze/microblaze-protos.h
9276         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9277         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9278         * config/microblaze/microblaze.c (microblaze_address_type): Add
9279         ADDRESS_TLS and tls_reloc address types.
9280         (microblaze_address_info): Add tls_reloc.
9281         (TARGET_HAVE_TLS): Define.
9282         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9283          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9284          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9285         load_tls_operand,  microblaze_call_tls_get_addr,
9286         microblaze_legitimize_tls_address): New functions.
9287         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9288         (get_base_reg): Use microblaze_tls_symbol_p.
9289         (microblaze_classify_address): Handle TLS.
9290         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9291         label_mentioned_p and microblaze_tls_referenced_p.
9292         (microblaze_legitimize_address): Handle TLS.
9293         (microblaze_address_insns): Handle ADDRESS_TLS.
9294         (pic_address_needs_scratch): Handle TLS.
9295         (print_operand_address): Handle TLS.
9296         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9297         (microblaze_expand_move): Handle TLS.
9298         (microblaze_legitimate_constant_p): Check
9299         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9300         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9301         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9302         (PIC_OFFSET_TABLE_REGNUM): Set.
9303         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9304         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9305         (addsi3, movsi_internal2, movdf_internal): Update constraints
9306         * config/microblaze/predicates.md (arith_plus_operand): Define
9307         (move_operand): Redefine as move_src_operand,
9308         check microblaze_tls_referenced_p.
9310 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9312         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9313         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9315 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9317         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9318         CC mode for AND.
9320 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9322         PR tree-optimization/53265
9323         * common.opt (Waggressive-loop-optimizations): New option.
9324         * tree-ssa-loop-niter.c: Include tree-pass.h.
9325         (do_warn_aggressive_loop_optimizations): New function.
9326         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9327         if number_of_latch_executions returned constant.
9328         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9329         early.  If number_of_latch_executions returned constant, set
9330         nb_iterations_upper_bound back to it.
9331         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9332         field.
9333         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9334         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9336         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9337         (MULTILIB_OSDIRNAMES): Set.
9338         * genmultilib: If defaultosdirname doesn't start with :: , set
9339         defaultosdirname2 instead, clear it and emit two . multilib_raw
9340         entries instead of just one.
9342 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9344         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9345         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9346         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9347         (SUBTARGET_OVERRIDE_OPTIONS): New.
9349 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9351         PR target/49880
9352         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9353         (musermode): Convert to Var(TARGET_USERMODE).
9354         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9355         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9356         * config/sh/sh.c (sh_option_override): Use
9357         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9358         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9359         condition.
9360         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9361         TARGET_SH4.
9362         (udivsi3_i4_single, divsi3_i4_single): Use
9363         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9365 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9367         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9368         default setting.
9370 2013-03-13  Richard Biener  <rguenther@suse.de>
9372         PR tree-optimization/56608
9373         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9374         calls when vectorizing basic-blocks.
9376 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9378         PR plugins/45078
9379         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9380         tm_file.
9382 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9384         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9386 2013-03-11  Jan Hubicka  <jh@suse.cz>
9388         PR lto/56557
9389         * lto-streamer-out.c (output_symbol_p): Skip references from
9390         constructors of external variables.
9392 2013-03-11  Jan Hubicka  <jh@suse.cz>
9394         PR middle-end/56571
9395         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9396         from pseudos.
9397         * emit-rtl.c (verify_rtx_sharing): Likewise.
9398         (copy_insn_1): Likewise.
9399         * rtl.c (copy_rtx): Likewise.
9401 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9403         PR target/56591
9404         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9405         output_operand_lossage message.
9407 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9409         PR target/56470
9410         * arm.c (shift_op): Validate RTL pattern on the fly.
9411         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9412         the RTL.
9414 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9416         PR target/56347
9417         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9418         new call patterns that clobber %fr12.
9419         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9420         split and postreload patterns.
9421         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9422         registers %fr12 and %fr12R as call used.
9424 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9426         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9427         (canon_address, record_store, replace_read, check_mem_read_rtx,
9428         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9429         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9430         rest_of_handle_dse): Likewise.
9432 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9434         PR middle-end/56524
9435         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9436         Add base_optabs.
9437         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9438         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9439         (save_optabs_if_changed): Replace with...
9440         (init_tree_optimization_optabs): ...this.
9441         * optabs.c (save_optabs_if_changed): Rename to...
9442         (init_tree_optimization_optabs): ...this.  Take the optimization node
9443         as argument.  Do nothing if the base optabs are already correct.
9444         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9445         to recompute optabs.
9446         * function.h (function): Remove optabs field.
9447         * function.c (invoke_set_current_function_hook): Call
9448         init_tree_optimization_optabs.  Use the result to initialize
9449         this_fn_optabs.
9451 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9453         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9454         if GTMA_HAS_NO_INSTRUMENTATION.
9455         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9456         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9457         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9458         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9459         GTMA_HAS_NO_INSTRUMENTATION.
9461 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9463         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9464         libasan_preinit.o.
9466 2013-03-08  Marek Polacek  <polacek@redhat.com>
9467             Jakub Jelinek  <jakub@redhat.com>
9469         PR tree-optimization/56478
9470         * predict.c (is_comparison_with_loop_invariant_p): Change the
9471         type of loop_step to tree.
9472         (predict_loops): Adjust.
9473         (predict_iv_comparison): Perform the computations on double_ints.
9475 2013-03-08  Richard Biener  <rguenther@suse.de>
9477         PR tree-optimization/56570
9478         * tree-cfg.c (verify_expr_location_1): Verify locations for
9479         DECL_DEBUG_EXPR.
9480         * tree-sra.c (create_access_replacement): Strip locations
9481         from DECL_DEBUG_EXPRs.
9483 2013-03-08  Richard Biener  <rguenther@suse.de>
9485         * tree-inline.c (expand_call_inline): Do not associate
9486         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9487         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9489 2013-03-08  Richard Biener  <rguenther@suse.de>
9491         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9492         or block changes with -Og.  Fix for location / block encoding
9493         changes and PHI arguments with locations.
9495 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9497         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9498         for all counters.
9499         (struct output_info): Likewise.
9500         (register_overhead): Remove bad gcc_assert.
9501         (bitmap_find_bit): If there is only a single bitmap element, do not
9502         count a miss as a search.
9503         (print_statistics): Update for counter type changes.
9504         (dump_bitmap_statistics): Likewise.  Print headers such that they
9505         are properly lined up with the printed counters.
9507 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9509         PR tree-optimization/56559
9510         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9511         check that it has only a single use.
9513 2013-03-07  Richard Biener  <rguenther@suse.de>
9515         * doc/invoke.texi (fwhole-program): Discourage use in combination
9516         with -flto.
9518 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9520         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9522         PR tree-optimization/56539
9523         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9524         instead of GSI_CONTINUE_LINKING as last argument to
9525         force_gimple_operand_gsi.  Adjust function comment.
9527         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9528         aarch64-cores.def.
9530         PR middle-end/56548
9531         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9532         promoted mode, convert the result back to the original mode.
9534 2013-03-06  Richard Biener  <rguenther@suse.de>
9536         PR middle-end/56294
9537         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9538         (insert_updated_phi_nodes_compare_uids): New function.
9539         (update_ssa): Sort symbols_to_rename after UID before
9540         traversing it to insert PHI nodes.
9542 2013-03-06  Richard Biener  <rguenther@suse.de>
9544         PR middle-end/50494
9545         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9546         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9548         Revert
9549         2013-02-13  Richard Biener  <rguenther@suse.de>
9551         PR lto/50494
9552         * varasm.c (output_constant_def_1): Get the decl representing
9553         the constant as argument.
9554         (output_constant_def): Wrap output_constant_def_1.
9555         (make_decl_rtl): Use output_constant_def_1 with the decl
9556         representing the constant.
9557         (build_constant_desc): Optionally re-use a decl already
9558         representing the constant.
9559         (tree_output_constant_def): Adjust.
9561 2013-03-06  Joey Ye  <joey.ye@arm.com>
9563         PR lto/50293
9564         * gcc.c (convert_white_space): New function.
9565         (main): Handles white space in function name.
9567 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9569         PR target/56529
9570         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9571         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9572         to SH_DIV_CALL_TABLE for TARGET_SH2.
9573         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9574         list.
9575         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9576         call-table options.
9578 2013-03-05  Sterling Augustine  <saugustine@google.com>
9579             Cary Coutant  <ccoutant@google.com>
9581         PR debug/55364
9582         * dwarf2out.c (resolve_addr): Don't call
9583         remove_loc_list_addr_table_entries a second time for the same
9584         expression.
9586 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9588         PR debug/56510
9589         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9590         (avoid_complex_debug_insns): New function.
9591         (expand_debug_locations): Call it.
9593         PR rtl-optimization/56484
9594         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9595         lifetimes of hard registers on small register class machines.
9597 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9599         * config/microblaze/microblaze-protos.h: Rename
9600         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9601         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9602         fast_interrupt.
9603         (microblaze_fast_interrupt_function_p): New function.
9604         (microblaze_is_interrupt_handler): Rename to
9605         microblaze_is_interrupt_variant and add fast_interrupt check.
9606         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9607         (save_restore_insns): Likewise.
9608         (compute_frame_size): Likewise.
9609         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9610         (microblaze_globalize_label): Likewise.
9611         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9612         * config/microblaze/microblaze.md: Use wrapper
9613         microblaze_is_interrupt_variant.
9615 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9617         * sdbout.c (sdbout_one_type): Switch to current function's section
9618         supporting cold/hot.
9620 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9622         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9623         -mxl-reorder.
9625 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9627         PR middle-end/56461
9628         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9629         if VALGRIND_GET_VBITS is defined, temporarily make object
9630         memory all defined, and restore previous valgrind addressability
9631         and definability afterwards.  Free this_object at the end.
9633         PR middle-end/56461
9634         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9635         right before calling lra_create_live_ranges, also call it
9636         when clearing live_p.  Only call lra_clear_live_ranges
9637         at the end if live_p.
9639         PR middle-end/56461
9640         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9642 2013-03-05  Richard Biener  <rguenther@suse.de>
9644         PR tree-optimization/56521
9645         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9646         value-id.
9648 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9650         PR c++/55135
9651         * except.h (remove_unreachable_eh_regions): New prototype.
9652         * except.c (remove_eh_handler_splicer): New function, split out
9653         of remove_eh_handler.
9654         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9655         warning about running it on many EH regions one at a time.
9656         (remove_unreachable_eh_regions_worker): New function, walk the
9657         EH tree in depth-first order and remove non-marked regions.
9658         (remove_unreachable_eh_regions): New function.
9659         * tree-eh.c (mark_reachable_handlers): New function, split out
9660         from remove_unreachable_handlers.
9661         (remove_unreachable_handlers): Use mark_reachable_handlers and
9662         remove_unreachable_eh_regions.
9663         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9664         and remove_unreachable_eh_regions.
9666 2013-03-05  Richard Biener  <rguenther@suse.de>
9668         PR middle-end/56525
9669         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9670         not freeing them until the end.
9672 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9674         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9676 2013-03-05  Richard Biener  <rguenther@suse.de>
9678         PR tree-optimization/56270
9679         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9680         of loads after scheduling an SLP instance.
9682 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9684         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9685         tic6x.exp.
9686         (check_gcc_parallelize): Run guality.exp as a separate job from
9687         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9688         struct-layout-1.exp with stackalign.exp.
9690         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9692         PR middle-end/56461
9693         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9694         load_index sbitmap even if some bit in it isn't set.
9696         PR middle-end/56461
9697         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9698         (discover_iteration_bound_by_body_walk): Change queues to
9699         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9700         spelling in comment.  Call safe_push on queues[bound_index] directly.
9701         Release queues[queue_index] in every iteration unconditionally.
9702         Release bounds vector.
9704         PR middle-end/56461
9705         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9706         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9707         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9708         inner_phis vector.
9710 2013-03-05  Richard Biener  <rguenther@suse.de>
9712         PR lto/56515
9713         * tree-inline.c (remap_blocks_to_null): New function.
9714         (expand_call_inline): When expanding a call stmt without
9715         an associated block inline remap all callee blocks to NULL.
9717 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9719         PR rtl-optimization/56494
9720         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9721         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9722         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9724         PR middle-end/56461
9725         * sel-sched-ir.c (free_sched_pools): Release
9726         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9727         if succs_info_pool.max_top isn't -1.
9729         PR bootstrap/56509
9730         * opts.c (opts_obstack, opts_concat): Moved to...
9731         * opts-common.c (opts_obstack, opts_concat): ... here.
9733 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9735         PR middle-end/56461
9736         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9738 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9740         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9741         all appropriate places.
9743 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9745         PR tree-optimization/56424
9746         * ipa-split.c (split_function): Do not set the RSO flag if result is
9747         not by reference and its type is a register type.
9749 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9751         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9752         (microblaze_legitimate_pic_operand): Likewise
9753         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9754         new function microblaze_legitimate_pic_operand
9755         * config/microblaze/microblaze-protos.h
9756         (microblaze_legitimate_pic_operand): Declare.
9758 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9760         * config/microblaze/predicates.md (call_insn_simple_operand):
9761         New predicate for supported rtx code types.
9762         * config/microblaze/microblaze.md (call_internal1): Use
9763         call_insn_simple_operand predicate.
9765 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9767         PR middle-end/56461
9768         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9769         partitions.ordered_remove.
9771         PR middle-end/56461
9772         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9773         vec_oprnds0.create (1) for modifier == NONE.
9775         PR middle-end/56461
9776         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9777         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9778         vec_oprnds1 right before pushing anything to it for
9779         scalar_shift_arg.
9781         PR middle-end/56461
9782         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9783         set nbbs to 0 instead of having separate code path.
9784         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9785         instead of false as last argument if returning NULL.
9787 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
9789         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9790         the attribute is now called "target" instead of "option".
9791         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9792         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
9793         attribute/pragma name for TARGET_OPTION_VALID_P and
9794         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9795         * doc/tm.texi: Regenerated.
9797 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
9799         * config/microblaze/microblaze.c:
9800         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9801         * config/microblaze/microblaze.h: Add -mxl-reorder to
9802         DRIVER_SELF_SPECS.
9803         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9804         instructions emitted if TARGET_REORDER.
9805         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9806         or 0 for -m/-mno case, but initialises as 2 to detect default use case
9807         separately.
9809 2013-03-01  Xinliang David Li  <davidxl@google.com>
9811         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9812         walk length.
9814 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
9816         PR middle-end/56461
9817         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9818         vector even when returning true.  Fix up function comment formatting.
9820         PR middle-end/56461
9821         * ira-build.c (ira_loop_nodes_count): New variable.
9822         (create_loop_tree_nodes): Initialize it.
9823         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9825         PR middle-end/56461
9826         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9827         method on dr_chain and result_chain.
9828         * tree-vect-stmts.c (vectorizable_store): Only call
9829         result_chain.create if j == 0.
9831         PR middle-end/56461
9832         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9833         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9834         before overwriting it.
9836 2013-03-01  Tobias Burnus  <burnus@net-b.de>
9838         * doc/extended.texi (C Extensions): Change order in @menu
9839         to match @node.
9840         (Other MIPS Built-in Functions): Move last MIPS entry before
9841         "picoChip Built-in Functions".
9842         (SH Built-in Functions): Move after RX Built-in Functions.
9843         * doc/gcc.texi (Introduction): Change order in @menu
9844         to match @node.
9845         * doc/md.texi (Constraints): Ditto.
9846         * gty.texi (Type Information): Ditto.
9847         (User-provided marking routines for template types): Make
9848         subsection.
9849         * doc/invoke.texi (AArch64 Options): Move before
9850         "Adapteva Epiphany Options".
9852 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
9853             Jakub Jelinek  <jakub@redhat.com>
9855         PR sanitizer/56454
9856         * asan.c (gate_asan): Lookup no_sanitize_address instead of
9857         no_address_safety_analysis attribute.
9858         * doc/extend.texi (no_address_safety_attribute): Rename to
9859         no_sanitize_address attribute, mention no_address_safety_analysis
9860         attribute as deprecated alias.
9862 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
9864         PR middle-end/56461
9865         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9866         type to vec<vec<tree> > *.
9867         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
9868         to be vec<tree> instead of vec<tree> *, set vec_defs
9869         to vNULL and call vec_defs.create (number_of_vects), adjust other
9870         uses of vec_defs.
9871         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9872         vectorizable_condition): Adjust vect_get_slp_defs callers.
9874 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9876         * config/aarch64/aarch64.c
9877         (aarch64_float_const_representable): Remove unused variable.
9879 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9881         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9883 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9885         * config/aarch64/aarch64-builtins.c
9886         (aarch64_init_simd_builtins): Make static.
9888 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9890         * config/aarch64/aarch64.c
9891         (aarch64_simd_make_constant): Make static.
9893 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9895         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9896         with no initialization to the RHS of debug statements.
9898 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9900         PR tree-optimization/56294
9901         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9902         Adjust dumping.
9903         (get_access_replacement): Do not call create_access_replacement.
9904         Assert a replacement exists.
9905         (get_repl_default_def_ssa_name): Create the replacement declaration
9906         itself.
9908 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9910         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9911         final_end_function.
9913 2013-02-28  Marek Polacek  <polacek@redhat.com>
9915         PR rtl-optimization/56466
9916         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9917         if we're changing a loop.
9918         (peel_loops_completely): Likewise.
9920 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
9922         PR c++/55813
9923         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9925 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9927         PR target/56445
9928         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9929         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9930         INTX_FTYPE_FX, FX_FTYPE_INTX.
9931         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9933 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9935         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9936         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9937         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9938         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9939         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9940         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9941         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9942         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9943         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9944         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9945         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9946         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9947         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9948         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9949         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9950         (avrxmega6): Increase max flash segments from 5 to 6.
9951         * config/avr/t-multilib: Regenerate.
9952         * config/avr/avr-tables.opt: Regenerate.
9953         * doc/avr-mmcu.texi: Regenerate.
9955 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9957         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9958         (avr_device_to_arch): Rename to avr_device_to_ld.
9959         (avr_device_to_as): New prototype.
9960         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9961         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9962         * config/avr/driver-avr.c (avr_device_to_as): New.
9963         (avr_device_to_arch): Rename to avr_device_to_ld.
9965 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9967         PR middle-end/56461
9968         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9969         method on dr_chain and result_chain.
9971         PR middle-end/56461
9972         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9973         pointer_set_destroy on not_executed_last_iteration.
9975         PR middle-end/56461
9976         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9978         PR middle-end/56461
9979         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9980         FOR_EACH_DEFINED_FUNCTION when freeing state.
9982         PR middle-end/56461
9983         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9984         pool_free.
9985         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9986         overwriting it.
9988         PR middle-end/56461
9989         * ipa-cp.c (decide_whether_version_node): Call vec_free on
9990         known_aggs[i].items and release known_aggs vector.
9992         PR middle-end/56461
9993         * ipa-reference.c (propagate): Free node_info even for alias nodes.
9995 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9997         * config/microblaze/microblaze.c (microblaze_emit_compare):
9998         Use xor for EQ/NE comparisions.
9999         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10000         (cbranchsf4): Adjust operator to comparison_operator.
10002 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10004         PR middle-end/56461
10005         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10006         vector.
10007         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10008         vec_safe_push, always update *slot.
10009         (redirect_edge_var_map_clear): Use vec_free.
10010         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10011         (free_var_map_entry): Use vec_free.
10012         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10013         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10015 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10017         PR middle-end/45472
10018         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10019         when the may_trap_p bit of the exprs being merged differs.
10020         Reorder tests for speculativeness in the logical and operator.
10022 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10024         * incpath.c (add_standard_paths): Use reconcat instead of concat
10025         where appropriate and avoid leaking memory.
10027         * opts.h: Include obstack.h.
10028         (opts_concat): New prototype.
10029         (opts_obstack): New declaration.
10030         * opts.c (opts_concat): New function.
10031         (opts_obstack): New variable.
10032         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10033         (finish_options): Use opts_concat instead of concat
10034         and XOBNEWVEC instead of XNEWVEC.
10035         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10036         generate_option): Likewise.
10037         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10038         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10040         PR target/56455
10041         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10042         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10044 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10046         PR middle-end/56461
10047         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10049 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10051         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10052         (arm_block_move_unaligned_straight): Likewise.
10053         (arm_adjust_block_mem): Likewise.
10055 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10057         PR target/48901
10058         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10059         temp, cond and label.
10060         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10062         PR target/52500
10063         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10064         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10066         PR target/52501
10067         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10068         of prologue/epilogue functions.
10070         PR target/52550
10071         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10072         Remove unused variable cfa_offset.
10073         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10075         PR target/54639
10076         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10077         type promotion to unsigned.
10079         PR target/54640
10080         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10081         for HOST_WIDE_INT of 32 bit / same size as int.
10082         (arm_block_move_unaligned_straight): Likewise.
10083         (arm_adjust_block_mem): Likewise.
10085         PR target/54662
10086         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10087         ALL_CFLAGS.
10089 2013-02-26  Marek Polacek  <polacek@redhat.com>
10091         PR tree-optimization/56426
10092         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10094 2013-02-26  Richard Biener  <rguenther@suse.de>
10096         PR target/56444
10097         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10098         unused variable loops.
10100 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10102         PR tree-optimization/56448
10103         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10104         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10105         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10106         later operands of the references, or even first operand for
10107         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10109         PR tree-optimization/56443
10110         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10111         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10112         to type_for_mode langhook.
10114 2013-02-25  Matt Turner  <mattst88@gmail.com>
10116         * doc/invoke.texi: Document r4700.
10118 2013-02-25  Richard Biener  <rguenther@suse.de>
10120         PR tree-optimization/56175
10121         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10122         split out from ...
10123         (simplify_bitwise_binary): ... here.  Also guard the conversion
10124         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10126 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10128         Revert:
10129         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10130             Maciej W. Rozycki  <macro@codesourcery.com>
10131             Tom de Vries  <tom@codesourcery.com>
10132             Nathan Sidwell  <nathan@codesourcery.com>
10133             Iain Sandoe  <iain@codesourcery.com>
10134             Nathan Froyd  <froydnj@codesourcery.com>
10135             Chao-ying Fu  <fu@mips.com>
10137         * doc/extend.texi: (micromips, nomicromips, nocompression):
10138         Document new function attributes.
10139         * doc/invoke.texi (minterlink-compressed, mmicromips,
10140         m14k, m14ke, m14kec): Document new options.
10141         (minterlink-mips16): Update documentation.
10142         * doc/md.texi (ZC, ZD): Document new constraints.
10143         * configure.ac (gcc_cv_as_micromips): Check if linker
10144         supports the .set micromips directive.
10145         * configure: Regenerate.
10146         * config.in: Regenerate.
10147         * config/mips/mips-tables.opt: Regenerate.
10148         * config/mips/micromips.md: New file.
10149         * constraints.md (ZC, AD): New constraints.
10150         * config/mips/predicates.md (movep_src_register): New predicate.
10151         (movep_src_operand): New predicate.
10152         (non_volatile_mem_operand): New predicate.
10153         * config/mips/mips.md (multimem): New type.
10154         (length): Differentiate between 17-bit and 18-bit branch offsets.
10155         (MOVEP1, MOVEP2): New mode iterator.
10156         (mov_<load>l): Use ZC constraint.
10157         (mov_<load>r): Likewise.
10158         (mov_<store>l): Likewise.
10159         (mov_<store>r): Likewise.
10160         (*branch_equality<mode>_inverted): Add microMIPS support.
10161         (*branch_equality<mode>): Likewise.
10162         (*jump_absolute): Likewise.
10163         (indirect_jump_<mode>): Likewise.
10164         (tablejump_<mode>): Likewise.
10165         (<optab>_internal): Likewise.
10166         (sibcall_internal): Likewise.
10167         (sibcall_value_internal): Likewise.
10168         (prefetch): Use constraint ZD.
10169         * config/mips/mips.opt (minterlink-compressed): New option.
10170         (minterlink-mips16): Now an alias for minterlink-compressed.
10171         (mmicromips): New option.
10172         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10173         (compare_and_swap_12): Likewise.
10174         (sync_add<mode>): Likewise.
10175         (sync_<optab>_12): Likewise.
10176         (sync_old_<optab>_12): Likewise.
10177         (sync_new_<optab>_12): Likewise.
10178         (sync_nand_12): Likewise.
10179         (sync_old_nand_12): Likewise.
10180         (sync_new_nand_12): Likewise.
10181         (sync_sub<mode>): Likewise.
10182         (sync_old_add<mode>): Likewise.
10183         (sync_old_sub<mode>): Likewise.
10184         (sync_new_add<mode>): Likewise.
10185         (sync_new_sub<mode>): Likewise.
10186         (sync_<optab><mode>): Likewise.
10187         (sync_old_<optab><mode>): Likewise.
10188         (sync_new_<optab><mode>): Likewise.
10189         (sync_nand<mode>): Likewise.
10190         (sync_old_nand<mode>): Likewise.
10191         (sync_new_nand<mode>): Likewise.
10192         (sync_lock_test_and_set<mode>): Likewise.
10193         (test_and_set_12): Likewise.
10194         (atomic_compare_and_swap<mode>): Likewise.
10195         (atomic_exchange<mode>_llsc): Likewise.
10196         (atomic_fetch_add<mode>_llsc): Likewise.
10197         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10198         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10199         (umips_save_restore_pattern_p): Likewise.
10200         (umips_load_store_pair_p): Likewise.
10201         (umips_output_load_store_pair): Likewise.
10202         (umips_movep_target_p): Likewise.
10203         (umips_12bit_offset_address_p): Likewise.
10204         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10205         (mips_base_mips16): Rename this...
10206         (mips_base_compression_flags): ...to this. Update all uses.
10207         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10208         (mips_mips16_decl_p): Delete.
10209         (mips_nomips16_decl_p): Delete.
10210         (mips_get_compress_on_flags): New function.
10211         (mips_get_compress_off_flags): New function.
10212         (mips_get_compress_mode): New function.
10213         (mips_get_compress_on_name): New function.
10214         (mips_get_compress_off_name): New function.
10215         (mips_insert_attributes): Support multiple compression types.
10216         (mips_merge_decl_attributes): Likewise.
10217         (umips_12bit_offset_address_p): New function.
10218         (mips_start_function_definition): Emit .set micromips directive.
10219         (mips_call_may_need_jalx_p): New function.
10220         (mips_function_ok_for_sibcall): Add microMIPS support.
10221         (mips_print_operand_punctuation): Support short delay slots and
10222         compact jumps.
10223         (umips_swm_mask, umips_swm_encoding): New.
10224         (umips_build_save_restore): New function.
10225         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10226         (was_mips16_p): Remove.
10227         (old_compression_mode): New.
10228         (mips_set_compression_mode): New function.
10229         (mips_set_current_function): Add microMIPS support.
10230         (mips_option_override): Likewise.
10231         (umips_save_restore_pattern_p): New function.
10232         (umips_output_save_restore): New function.
10233         (umips_load_store_pair_p_1): New function.
10234         (umips_load_store_pair_p): New function.
10235         (umips_output_load_store_pair_1): New function.
10236         (umips_output_load_store_pair): New function.
10237         (umips_movep_target_p) New function.
10238         (mips_prepare_pch_save): Add microMIPS support.
10239         * config/mips/mips.h (TARGET_COMPRESSION): New.
10240         (TARGET_CPU_CPP_BUILTINS): Update macro
10241         to use new compression flags and to support microMIPS.
10242         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10243         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10244         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10245         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10246         (ASM_SPEC): Support mmicromips and mno-micromips.
10247         (M16STORE_REG_P): New macro.
10248         (MIPS_CALL): Support TARGET_MICROMIPS.
10249         (MICROMIPS_J): New macro.
10250         (mips_base_mips16): Rename this...
10251         (mips_base_compression_flags): ...to this.
10252         (UMIPS_12BIT_OFFSET_P): New macro.
10253         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10254         (MULTILIB_DIRNAMES): Likewise.
10256 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10258         PR rtl-optimization/56131
10259         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10260         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10261         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10263 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10265         * doc/invoke.texi (-fsanitize=): Move from optimization
10266         to debugging options.
10268 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10270         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10272 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10273             Alexander Monakov  <amonakov@ispras.ru>
10275         PR middle-end/56077
10276         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10277         flush pending lists also on non-jumps.  Adjust comment.
10279 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10280             Maciej W. Rozycki  <macro@codesourcery.com>
10281             Tom de Vries  <tom@codesourcery.com>
10282             Nathan Sidwell  <nathan@codesourcery.com>
10283             Iain Sandoe  <iain@codesourcery.com>
10284             Nathan Froyd  <froydnj@codesourcery.com>
10285             Chao-ying Fu  <fu@mips.com>
10287         * doc/extend.texi: (micromips, nomicromips, nocompression):
10288         Document new function attributes.
10289         * doc/invoke.texi (minterlink-compressed, mmicromips,
10290         m14k, m14ke, m14kec): Document new options.
10291         (minterlink-mips16): Update documentation.
10292         * doc/md.texi (ZC, ZD): Document new constraints.
10293         * configure.ac (gcc_cv_as_micromips): Check if linker
10294         supports the .set micromips directive.
10295         * configure: Regenerate.
10296         * config.in: Regenerate.
10297         * config/mips/mips-tables.opt: Regenerate.
10298         * config/mips/micromips.md: New file.
10299         * constraints.md (ZC, AD): New constraints.
10300         * config/mips/predicates.md (movep_src_register): New predicate.
10301         (movep_src_operand): New predicate.
10302         (non_volatile_mem_operand): New predicate.
10303         * config/mips/mips.md (multimem): New type.
10304         (length): Differentiate between 17-bit and 18-bit branch offsets.
10305         (MOVEP1, MOVEP2): New mode iterator.
10306         (mov_<load>l): Use ZC constraint.
10307         (mov_<load>r): Likewise.
10308         (mov_<store>l): Likewise.
10309         (mov_<store>r): Likewise.
10310         (*branch_equality<mode>_inverted): Add microMIPS support.
10311         (*branch_equality<mode>): Likewise.
10312         (*jump_absolute): Likewise.
10313         (indirect_jump_<mode>): Likewise.
10314         (tablejump_<mode>): Likewise.
10315         (<optab>_internal): Likewise.
10316         (sibcall_internal): Likewise.
10317         (sibcall_value_internal): Likewise.
10318         (prefetch): Use constraint ZD.
10319         * config/mips/mips.opt (minterlink-compressed): New option.
10320         (minterlink-mips16): Now an alias for minterlink-compressed.
10321         (mmicromips): New option.
10322         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10323         (compare_and_swap_12): Likewise.
10324         (sync_add<mode>): Likewise.
10325         (sync_<optab>_12): Likewise.
10326         (sync_old_<optab>_12): Likewise.
10327         (sync_new_<optab>_12): Likewise.
10328         (sync_nand_12): Likewise.
10329         (sync_old_nand_12): Likewise.
10330         (sync_new_nand_12): Likewise.
10331         (sync_sub<mode>): Likewise.
10332         (sync_old_add<mode>): Likewise.
10333         (sync_old_sub<mode>): Likewise.
10334         (sync_new_add<mode>): Likewise.
10335         (sync_new_sub<mode>): Likewise.
10336         (sync_<optab><mode>): Likewise.
10337         (sync_old_<optab><mode>): Likewise.
10338         (sync_new_<optab><mode>): Likewise.
10339         (sync_nand<mode>): Likewise.
10340         (sync_old_nand<mode>): Likewise.
10341         (sync_new_nand<mode>): Likewise.
10342         (sync_lock_test_and_set<mode>): Likewise.
10343         (test_and_set_12): Likewise.
10344         (atomic_compare_and_swap<mode>): Likewise.
10345         (atomic_exchange<mode>_llsc): Likewise.
10346         (atomic_fetch_add<mode>_llsc): Likewise.
10347         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10348         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10349         (umips_save_restore_pattern_p): Likewise.
10350         (umips_load_store_pair_p): Likewise.
10351         (umips_output_load_store_pair): Likewise.
10352         (umips_movep_target_p): Likewise.
10353         (umips_12bit_offset_address_p): Likewise.
10354         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10355         (mips_base_mips16): Rename this...
10356         (mips_base_compression_flags): ...to this. Update all uses.
10357         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10358         (mips_mips16_decl_p): Delete.
10359         (mips_nomips16_decl_p): Delete.
10360         (mips_get_compress_on_flags): New function.
10361         (mips_get_compress_off_flags): New function.
10362         (mips_get_compress_mode): New function.
10363         (mips_get_compress_on_name): New function.
10364         (mips_get_compress_off_name): New function.
10365         (mips_insert_attributes): Support multiple compression types.
10366         (mips_merge_decl_attributes): Likewise.
10367         (umips_12bit_offset_address_p): New function.
10368         (mips_start_function_definition): Emit .set micromips directive.
10369         (mips_call_may_need_jalx_p): New function.
10370         (mips_function_ok_for_sibcall): Add microMIPS support.
10371         (mips_print_operand_punctuation): Support short delay slots and
10372         compact jumps.
10373         (umips_swm_mask, umips_swm_encoding): New.
10374         (umips_build_save_restore): New function.
10375         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10376         (was_mips16_p): Remove.
10377         (old_compression_mode): New.
10378         (mips_set_compression_mode): New function.
10379         (mips_set_current_function): Add microMIPS support.
10380         (mips_option_override): Likewise.
10381         (umips_save_restore_pattern_p): New function.
10382         (umips_output_save_restore): New function.
10383         (umips_load_store_pair_p_1): New function.
10384         (umips_load_store_pair_p): New function.
10385         (umips_output_load_store_pair_1): New function.
10386         (umips_output_load_store_pair): New function.
10387         (umips_movep_target_p) New function.
10388         (mips_prepare_pch_save): Add microMIPS support.
10389         * config/mips/mips.h (TARGET_COMPRESSION): New.
10390         (TARGET_CPU_CPP_BUILTINS): Update macro
10391         to use new compression flags and to support microMIPS.
10392         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10393         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10394         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10395         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10396         (ASM_SPEC): Support mmicromips and mno-micromips.
10397         (M16STORE_REG_P): New macro.
10398         (MIPS_CALL): Support TARGET_MICROMIPS.
10399         (MICROMIPS_J): New macro.
10400         (mips_base_mips16): Rename this...
10401         (mips_base_compression_flags): ...to this.
10402         (UMIPS_12BIT_OFFSET_P): New macro.
10403         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10404         (MULTILIB_DIRNAMES): Likewise.
10406 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10408         PR target/52555
10409         * target-globals.c (save_target_globals): For init_reg_sets and
10410         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10412 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10414         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10415         * config/aarch64/t-aarch64
10416         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10418 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10420         PR inline-asm/56148
10421         * lra-constraints.c (process_alt_operands): Reload operand
10422         conflicting with earlier clobber only if no more other conflicting
10423         operands.
10425 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10427         PR sanitizer/56393
10428         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10429         if not linking a shared library.
10431 2013-02-22  Seth LaForge  <sethml@google.com>
10433         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10435 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10437         * config/arm/arm.md (split for extendsidi): Update condition.
10438         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10439         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10440         (qhs_zextenddi_cstr): Likewise.
10442 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10444         PR middle-end/56420
10445         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10446         avoid signed wrapping.
10447         (expand_mult): Handle properly multiplication by
10448         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10449         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10450         in the compiler if coeff is HOST_WIDE_INT_MIN.
10451         (expand_divmod): Don't make ext_op1 static, change it's type to
10452         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10454         PR rtl-optimization/50339
10455         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10456         field.
10457         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10458         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10459         into splitting_ashiftrt field.
10460         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10461         ASHIFTRT.
10462         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10463         choices.
10465 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10467         PR middle-end/56108
10468         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10469         are sure to go irrevocable.
10471 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10473         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10474         scalars are valid operands.
10476 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10478         PR tree-optimization/56310
10479         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10480         only matching indices and non-negative final offsets.
10481         (intersect_aggregates_with_edge): Pass src_idx to
10482         agg_replacements_to_vector.  Pass src_idx insstead of index to
10483         intersect_with_agg_replacements.
10485 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10487         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10488         instead of hard-wired defaults.
10490 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10492         * doc/invoke.texi (MIPS Options): Update documentation of the
10493         floating-point multiply-accumulate instruction restrictions.
10495 2013-02-21  Kostya Serebryany  <kcc@google.com>
10497         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10498         asan_shadow_offset on x86_64 linux.
10500 2013-02-21  Richard Biener  <rguenther@suse.de>
10502         PR tree-optimization/56415
10503         Revert
10504         2013-02-11  Richard Biener  <rguenther@suse.de>
10506         PR tree-optimization/56273
10507         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10508         first VRP run.
10510 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10512         PR bootstrap/56258
10513         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10514         instead of @itemx.
10516         PR inline-asm/56405
10517         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10518         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10520 2013-02-20  Jan Hubicka  <jh@suse.cz>
10522         PR tree-optimization/56265
10523         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10524         when target is referenced for first time.
10526 2013-02-20  Richard Biener  <rguenther@suse.de>
10528         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10529         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10530         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10531         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10532         not return anything.
10533         (rename_ssa_copies): Do not remove unused locals.
10534         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10535         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10536         * passes.c (execute_function_todo): Do not schedule unused locals
10537         removal if cleanup_tree_cfg did something.
10538         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10539         about the number of removed locals.
10541 2013-02-20  Richard Biener  <rguenther@suse.de>
10543         PR tree-optimization/56398
10544         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10546 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10548         PR tree-optimization/55334
10549         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10550         restricted pointers to arrays.
10552 2013-02-20  Richard Biener  <rguenther@suse.de>
10553             Jakub Jelinek  <jakub@redhat.com>
10555         PR tree-optimization/56396
10556         * tree-ssa-ccp.c (n_const_val): New static variable.
10557         (get_value): Return NULL for SSA names we don't have a lattice
10558         entry for.
10559         (ccp_initialize): Initialize n_const_val.
10560         * tree-ssa-copy.c (n_copy_of): New static variable.
10561         (init_copy_prop): Initialize n_copy_of.
10562         (get_value): Return NULL_TREE for SSA names we don't have a
10563         lattice entry for.
10565 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10567         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10569 2013-02-20  Richard Biener  <rguenther@suse.de>
10571         * genpreds.c (write_lookup_constraint): Do not compare first
10572         letter of the constraint again.
10574 2013-02-20  Richard Biener  <rguenther@suse.de>
10576         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10577         and ceil_log2.
10578         (get_use_iv_cost): Terminate hashtable walk when coming across
10579         an empty entry.
10581 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10583         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10584         reassociation for avx2 targets.
10586 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10588         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10589         Add version check for v8.10.a to enable microblaze_has_clz
10590         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10591         version and TARGET_PATTERN_COMPARE check
10592         * config/microblaze/microblaze.md: New clzsi2 instruction
10594 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10596         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10597         function before branching.
10599 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10601         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10602         DUMP_INSN_RTX_UID.
10603         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10605 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10607         PR middle-end/55889
10608         * sel-sched.c: Include ira.h.
10609         (implicit_clobber_conflict_p): New function.
10610         (moveup_expr): Use it.
10611         * Makefile.in (sel-sched.o): Depend on ira.h.
10613 2013-02-19  Richard Biener  <rguenther@suse.de>
10615         PR tree-optimization/56384
10616         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10617         (vn_hash_type): Split out from ...
10618         (vn_hash_constant_with_type): ... here.
10619         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10620         (vn_phi_eq): Compare types from vn_phi_s structure.
10621         (vn_phi_lookup): Populate vn_phi_s type.
10622         (vn_phi_insert): Likewise.
10624 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10626         PR tree-optimization/56350
10627         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10628         if haven't found reduction or nested cycle operand, rather than
10629         asserting we must find it.
10631         PR tree-optimization/56381
10632         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10633         to fold_build3.
10635 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10636             Jakub Jelinek  <jakub@redhat.com>
10638         PR target/52555
10639         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10640         (swap_optab_enable): Same.
10641         (init_all_optabs): Use argument instead of global.
10642         * tree.h (struct tree_optimization_option): New field target_optabs.
10643         * expr.h (init_all_optabs): Add argument to prototype.
10644         (TREE_OPTIMIZATION_OPTABS): New.
10645         (save_optabs_if_changed): Protoize.
10646         * optabs.h: Declare this_fn_optabs.
10647         * optabs.c (save_optabs_if_changed): New.
10648         Declare this_fn_optabs.
10649         (init_optabs): Add argument to init_all_optabs() call.
10650         * function.c (invoke_set_current_function_hook): Handle per
10651         function optabs.
10652         * function.h (struct function): New field optabs.
10653         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10654         optimization_current_node has changed.
10655         * target-globals.h (save_target_globals_default_opts): Protoize.
10656         * target-globals.c (save_target_globals_default_opts): New.
10658 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10660         PR target/56347
10661         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10662         registers %fr12 and %fr12R as call used.
10664         PR target/56214
10665         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10666         and HImode, require all displacements to be an integer multiple of
10667         their mode size.
10668         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10669         only allow QImode and HImode when reload is in progress and strict is
10670         true.  Likewise for symbolic addresses.  Use base14_operand to check
10671         displacements in REG+BASE addresses.
10673 2013-02-18  Richard Biener  <rguenther@suse.de>
10675         PR tree-optimization/56366
10676         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10677         handle sign-conversion of outer-loop initial induction value.
10679 2013-02-18  Richard Biener  <rguenther@suse.de>
10681         PR middle-end/56349
10682         * cfghooks.c (merge_blocks): If we merge a latch into another
10683         block adjust references to it.
10684         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10685         (verify_loop_structure): Verify that a recorded latch is in fact
10686         a latch.
10688 2013-02-18  Richard Biener  <rguenther@suse.de>
10690         PR tree-optimization/56321
10691         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10692         order SSA name release and virtual operand unlinking.
10694 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10696         * config/microblaze/microblaze.md (save_stack_block): Define.
10697         (restore_stack_block): Likewise.
10699 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10701         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10702         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10703         * config/microblaze/microblaze.c (microblaze_option_override):
10704         Bail out early for PIC modes when target does not support PIC.
10706 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10708         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10709         Replace with a microblaze version.
10710         (microblaze_trampoline_init): Adapt for microblaze.
10711         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10712         microblaze.
10714 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10715             Dodji Seketeli  <dodji@redhat.com>
10717         PR asan/56330
10718         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10719         (instrument_mem_region_access): Do not forget to always put
10720         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10721         0) statement, even for cases where either 'base' or 'base + len'
10722         are not instrumented -- because they have been previously
10723         instrumented.  Simplify the logic by putting all the statements
10724         instrument 'base + len' inside a sequence, and then insert that
10725         sequence right before the current insertion point.  Then, to
10726         instrument 'base + len', just get an iterator on that statement.
10727         And do not forget to update the pointer to iterator the function
10728         received as argument.
10730 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10732         PR rtl-optimization/56348
10733         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10735 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10737         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10738         (clean_graph_dump_file): Pass base to start_graph_dump.
10740 2013-02-14  Richard Henderson  <rth@redhat.com>
10742         PR target/55941
10743         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10745 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10747         * collect2-aix.h: Define F_LOADONLY.
10749 2013-02-14  Richard Biener  <rguenther@suse.de>
10751         PR lto/50494
10752         * varasm.c (output_constant_def_1): Get the decl representing
10753         the constant as argument.
10754         (output_constant_def): Wrap output_constant_def_1.
10755         (make_decl_rtl): Use output_constant_def_1 with the decl
10756         representing the constant.
10757         (build_constant_desc): Optionally re-use a decl already
10758         representing the constant.
10759         (tree_output_constant_def): Adjust.
10761 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10763         Fix an asan crash
10764         * asan.c (instrument_builtin_call):  Really put the length of the
10765         second source argument into src1_len.
10767 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10769         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10770         argument.  If it is false, don't create edge from then_bb to
10771         fallthru_bb.
10772         (insert_if_then_before_iter): Pass true to it.
10773         (build_check_stmt): Pass false to it.
10774         (transform_statements): Flush hash table only on extended basic
10775         block boundaries, rather than at the beginning of every bb.
10776         Don't flush hash table on nonfreeing_call_p calls.
10777         * tree-flow.h (nonfreeing_call_p): New prototype.
10778         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10780 2013-02-13  David S. Miller  <davem@davemloft.net>
10782         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10784 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10786         PR target/56184
10787         * ira.c (max_regno_before_ira): Move from ...
10788         (ira): ... here.
10789         (fix_reg_equiv_init): Use max_regno_before_ira instead of
10790         vec_safe_length.
10792 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10794         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10796 2013-02-13  Richard Biener  <rguenther@suse.de>
10798         PR lto/56295
10799         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10800         globals in MEM_REFs.
10802 2013-02-13  Richard Biener  <rguenther@suse.de>
10804         * loop-init.c (loop_optimizer_init): Clear loop state when
10805         re-initializing preserved loops.
10806         * loop-unswitch.c (unswitch_single_loop): Return whether
10807         we unswitched the loop.  Do not verify loop state here.
10808         (unswitch_loops): When we unswitched a loop discover new loops.
10810 2013-02-13  Kostya Serebryany  <kcc@google.com>
10812         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10813         on x86_64 linux.
10814         * sanitizer.def: Rename __asan_init to __asan_init_v1.
10816 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
10818         Avoid instrumenting duplicated memory access in the same basic block
10819         * Makefile.in (asan.o): Add new dependency on hash-table.h
10820         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10821         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10822         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10823         (free_mem_ref_resources, has_mem_ref_been_instrumented)
10824         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10825         (get_mem_ref_of_assignment): New functions.
10826         (get_mem_refs_of_builtin_call): Extract from
10827         instrument_builtin_call and tweak a little bit to make it fit with
10828         the new signature.
10829         (instrument_builtin_call): Use the new
10830         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
10831         of is_gimple_builtin_call.
10832         (instrument_derefs, instrument_mem_region_access): Insert the
10833         instrumented memory reference into the hash table.
10834         (maybe_instrument_assignment): Renamed instrument_assignment into
10835         this, and change it to advance the iterator when instrumentation
10836         actually happened and return true in that case.  This makes it
10837         homogeneous with maybe_instrument_assignment, and thus give a
10838         chance to callers to be more 'regular'.
10839         (transform_statements): Clear the memory reference hash table
10840         whenever we enter a new BB, when we cross a function call, or when
10841         we are done transforming statements.  Use
10842         maybe_instrument_assignment instead of instrumentation.  No more
10843         need to special case maybe_instrument_assignment and advance the
10844         iterator after calling it; it's now handled just like
10845         maybe_instrument_call.  Update comment.
10847 2013-02-13  Richard Biener  <rguenther@suse.de>
10849         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10850         Fix loop discovery code.
10852 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
10854         PR inline-asm/56148
10855         * lra-constraints.c (process_alt_operands): Match early clobber
10856         operand with itself.  Check conflicts with earlyclobber only if
10857         the operand is not reloaded.  Prefer to reload conflicting operand
10858         if earlyclobber and matching operands are the same.
10860 2013-02-12  Richard Biener  <rguenther@suse.de>
10862         PR lto/56297
10863         * lto-streamer-out.c (write_symbol): Do not output symbols
10864         for hard register variables.
10866 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
10868         PR target/54222
10869         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10870         (umulsidi3_insn, mulsidi3_insn): New insns.
10872 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
10874         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10875         (struct tune_params): Add vec_costs field.
10876         * config/arm/arm.c (arm_builtin_vectorization_cost)
10877         (arm_add_stmt_cost): New functions.
10878         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10879         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10880         (arm_default_vec_cost): New struct of type cpu_vec_costs.
10881         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10882         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10883         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10884         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10886 2013-02-12  Richard Biener  <rguenther@suse.de>
10888         PR lto/56295
10889         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10890         decls again if possible.
10892 2013-02-12  Richard Biener  <rguenther@suse.de>
10894         PR middle-end/56288
10895         * tree-ssa.c (verify_ssa_name): Fix check, move
10896         SSA_NAME_IN_FREE_LIST check up.
10898 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
10899             Steven Bosscher   <steven@gcc.gnu.org>
10901         PR rtl-optimization/56151
10902         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10903         equal to op0 or op1, and last_insn pattern is CODE operation
10904         with MEM dest and one of the operands matches that MEM.
10906 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
10908         * doc/extend.texi: Document Function Multiversioning and "default"
10909         parameter string to target attribute.
10910         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10911         target attribute parameter is "default".
10912         (ix86_compare_version_priority): Remove checks for target attribute.
10913         (ix86_mangle_function_version_assembler_name): Change error to sorry.
10914         Remove check for target attribute equal to NULL. Add assert.
10915         (ix86_generate_version_dispatcher_body): Change error to sorry.
10917 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
10918             Jack Howarth  <howarth@bromo.med.uc.edu>
10919             Patrick Marlier  <patrick.marlier@gmail.com>
10921         PR libitm/55693
10922         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10923         define ENDFILE_SPEC as TM_DESTRUCTOR.
10924         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10926 2013-02-11  Alexander Potapenko  <glider@google.com>
10927             Jack Howarth  <howarth@bromo.med.uc.edu>
10928             Jakub Jelinek  <jakub@redhat.com>
10930         PR sanitizer/55617
10931         * config/darwin.c (cdtor_record): Rename ctor_record.
10932         (sort_cdtor_records): Rename sort_ctor_records.
10933         (finalize_dtors): New routine to sort destructors by
10934         priority before use in assemble_integer.
10935         (machopic_asm_out_destructor): Use finalize_dtors if needed.
10937 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
10939         PR rtl-optimization/56275
10940         * simplify-rtx.c (avoid_constant_pool_reference): Check that
10941         offset is non-negative and less than cmode size before
10942         calling simplify_subreg.
10944 2013-02-11  Richard Biener  <rguenther@suse.de>
10946         PR tree-optimization/56264
10947         * cfgloop.h (fix_loop_structure): Adjust prototype.
10948         * loop-init.c (fix_loop_structure): Return the number of
10949         newly discovered loops.
10950         * tree-cfgcleanup.c (repair_loop_structures): When new loops
10951         are discovered, do a full loop-closed SSA rewrite.
10953 2013-02-11  Richard Biener  <rguenther@suse.de>
10955         PR tree-optimization/56273
10956         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10957         first VRP run.
10958         (check_array_ref): Fix missing newline in dumps.
10959         (search_for_addr_array): Likewise.
10961 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
10963         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10965 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
10967         PR target/56256
10968         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10970 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
10972         PR rtl-optimization/56246
10973         * lra-constraints.c (simplify_operand_subreg): Try to reuse
10974         reload pseudo.
10975         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10976         constraints are satisfied.
10978 2013-02-08  Jeff Law  <law@redhat.com>
10980         PR debug/53948
10981         * emit-rtl.c (reg_is_parm_p): New function.
10982         * regs.h (reg_is_parm_p): New prototype.
10983         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10984         callee-clobbered registers.
10986 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10988         PR target/56043
10989         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10990         If there is no implicit builtin declaration, just return NULL.
10992 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10994         * config/i386/sse.md (FMAMODEM): New mode iterator.
10995         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10996         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10998 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11000         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11001         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11002         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11004 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11006         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11007         (microblaze*-*-elf): Likewise.
11008         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11009         LINK_SPEC.
11010         * config/microblaze/microblaze-c.c: Add builtin defines for
11011         _LITTLE_ENDIAN and _BIG_ENDIAN.
11012         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11013         add to TARGET_DEFAULT flags.
11014         Expand ASM_SPEC and LINK_SPEC.
11015         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11016         * config/microblaze/microblaze.md: Update extendsidi2 and
11017         movdi_internal instructions to use low-order / high-order reg
11018         print_operands.
11019         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11020         options and inversemask / mask of LITTLE_ENDIAN.
11021         * config/microblaze/t-microblaze: Expand multilib options to
11022         include mlittle-endian (le) and update exceptions patterns.
11024 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11026         PR rtl-optimization/56195
11027         * lra-constraints.c (get_reload_reg): Don't reuse regs
11028         if they have smaller mode than requested, if they have
11029         wider mode than requested, try to return a SUBREG.
11031         PR tree-optimization/56250
11032         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11033         if type is unsigned and code isn't MULT_EXPR.
11035 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11037         PR tree-optimization/56064
11038         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11039         bits according to mode.
11040         * fixed-value.h (fixed_from_double_int)
11041         (const_fixed_from_double_int): Adjust comments.
11043 2013-02-08  Richard Biener  <rguenther@suse.de>
11045         PR lto/56231
11046         * lto-streamer.h (struct data_in): Remove current_file, current_line
11047         and current_col members.
11048         * lto-streamer-out.c (lto_output_location): Stream changed bits
11049         en-block for efficiency.
11050         * lto-streamer-in.c (clear_line_info): Remove.
11051         (lto_input_location): Cache current file, line and column
11052         globally via local statics.  Read changed bits en-block.
11053         (input_function): Do not call clear_line_info.
11054         (lto_read_body): Likewise.
11055         (lto_input_toplevel_asms): Likewise.
11057 2013-02-08  Michael Matz  <matz@suse.de>
11059         PR tree-optimization/52448
11060         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11061         (nt_call_phase): New static.
11062         (add_or_mark_expr): Only mark accesses with newer phase than any
11063         call seen.
11064         (nonfreeing_call_p): New.
11065         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11066         (nt_fini_block): Keep blocks marked as visited.
11067         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11069 2013-02-08  Richard Biener  <rguenther@suse.de>
11071         * ira.c (ira): Free broken dominator information.
11073 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11075         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11077 2013-02-08  Marek Polacek  <polacek@redhat.com>
11079         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11081 2013-02-08  Richard Biener  <rguenther@suse.de>
11083         PR middle-end/56181
11084         * cfgloop.h (flow_loops_find): Adjust.
11085         (bb_loop_header_p): Declare.
11086         * cfgloop.c (bb_loop_header_p): New function split out from ...
11087         (flow_loops_find): ... here.  Adjust function signature,
11088         support incremental loop structure update.
11089         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11090         * cfgloopmanip.c (fix_loop_structure): Move ...
11091         * loop-init.c (fix_loop_structure): ... here.
11092         (apply_loop_flags): Split out from ...
11093         (loop_optimizer_init): ... here.
11094         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11095         in incremental mode, only remove dead loops here.
11097 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11099         PR target/54222
11100         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11101         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11102         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11103         (*round<mode>3.libgcc): New insns for fixed-modes.
11104         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11105         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11106         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11107         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11108         implementations.  Define to __builtin_avr_absFX,
11109         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11110         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11111         __builtin_avr_countlsFX, respectively.
11112         * config/avr/avr-c.c (target.h): Include it.
11113         (enum avr_builtin_id): New enum.
11114         (avr_resolve_overloaded_builtin): New static function.
11115         (avr_register_target_pragmas): Use it to set
11116         targetm.resolve_overloaded_builtin.
11117         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11118         tree nodes used by DEF_BUILTIN.
11119         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11120         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11121         <AVR_BUILTIN_xxBITS>: Same.
11123 2013-02-08  Richard Biener  <rguenther@suse.de>
11125         * cfgloop.c (verify_loop_structure): Properly handle
11126         a loop exiting to another loop header.
11127         * ira-int.h (ira_loops): Remove.
11128         * ira.c (ira_loops): Remove.
11129         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11130         (do_reload): Use loop_optimizer_finalize.
11131         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11132         number_of_loops to access the loop tree.
11133         (more_one_region_p): Likewise.
11134         (finish_loop_tree_nodes): Likewise.
11135         (rebuild_regno_allocno_maps): Likewise.
11136         (mark_loops_for_removal): Likewise.
11137         (mark_all_loops_for_removal): Likewise.
11138         (remove_unnecessary_regions): Likewise.
11139         (ira_build): Likewise.
11140         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11142 2013-02-08  Richard Biener  <rguenther@suse.de>
11144         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11145         * ipa-pure-const.c (analyze_function): Avoid calling
11146         mark_irreducible_loops twice.
11147         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11149 2013-02-07  David S. Miller  <davem@davemloft.net>
11151         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11152         on 'reg'.
11153         * var-tracking.c (vt_add_function_parameter): Test the presence of
11154         HAVE_window_save properly and do not remap argument registers when
11155         we have a leaf function.
11157 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11159         PR bootstrap/56227
11160         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11161         instead of "ll".
11162         * config/i386/i386.c (ix86_print_operand): Ditto.
11164 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11166         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11168 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11170         PR rtl-optimization/56225
11171         * lra-constraints.c (process_alt_operands): Check that reload hard
11172         reg can hold value for strict_low_part.
11174 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11176         PR debug/56154
11177         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11178         dwarf2out_end_function.
11179         (in_first_function_p, maybe_at_text_label_p,
11180         first_loclabel_num_not_at_text_label): New variables.
11181         (dwarf2out_var_location): In the first function find out
11182         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11183         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11184         functions.
11186 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11188         PR rtl-optimization/56178
11189         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11190         SUBREG of a register.  Tidy up related block of code.
11191         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11192         note if the source is a register or a SUBREG of a register.
11194 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11196         PR target/56228
11197         * config/rs6000/rs6000.md (ptrm): New mode attr.
11198         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11199         call_value_indirect_aix<pttrsize>,
11200         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11201         m in constraints.
11203 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11205         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11206         if -bnortl. Convert to strcmp and strncmp.
11208 2013-02-07  Alan Modra  <amodra@gmail.com>
11210         PR target/54009
11211         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11212         addresses won't wrap when offsetting.
11213         (rs6000_secondary_reload): Provide secondary reloads needed for
11214         wrapping LO_SUM addresses.
11216 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11218         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11219         MACH, just __MACH__.
11221 2013-02-06  Richard Biener  <rguenther@suse.de>
11223         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11224         instead of calling fix_loop_structure.
11226 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11228         PR middle-end/56217
11229         * omp-low.c (use_pointer_for_field): Return false if
11230         lower_send_shared_vars doesn't generate any copy-out code.
11232 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11234         PR rtl-optimization/56131
11235         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11236         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11237         of the label is NULL.  Add comment.
11239 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11241         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11243         PR sanitizer/55374
11244         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11245         (STATIC_LIBTSAN_LIBS): Likewise.
11246         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11247         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11248         is defined, don't add anything else beyond that.
11249         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11250         (LINK_COMMAND_SPEC): Use them.
11252         PR tree-optimization/56205
11253         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11254         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11255         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11257 2013-02-05  Richard Biener  <rguenther@suse.de>
11259         PR tree-optimization/53342
11260         PR tree-optimization/53185
11261         * tree-vectorizer.h (vect_check_strided_load): Remove.
11262         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11263         not disallow peeling for vectorized strided loads.
11264         (vect_check_strided_load): Make static and simplify.
11265         (vect_analyze_data_refs): Adjust.
11266         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11267         correctly when vectorizing strided loads.
11269 2013-02-05  Richard Biener  <rguenther@suse.de>
11271         * doc/install.texi: Refer to ISL, not PPL.
11273 2013-02-05  Jan Hubicka  <jh@suse.cz>
11275         PR tree-optimization/55789
11276         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11278 2013-02-05  Jan Hubicka  <jh@suse.cz>
11280         PR tree-optimization/55789
11281         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11282         the dead call anyway.
11284 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11286         PR sanitizer/55374
11287         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11289 2013-02-04  Alexander Potapenko  <glider@google.com>
11290             Jack Howarth  <howarth@bromo.med.uc.edu>
11291             Jakub Jelinek  <jakub@redhat.com>
11293         PR sanitizer/55617
11294         * config/darwin.c (sort_ctor_records): Stabilized qsort
11295         on constructor priority by using original position.
11296         (finalize_ctors): New routine to sort constructors by
11297         priority before use in assemble_integer.
11298         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11300 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11302         PR libstdc++/54314
11303         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11304         about visibility on artificial decls.
11305         * config/sol2.c (solaris_assemble_visibility): Likewise.
11307 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11309         PR target/56186
11310         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11311         argument and improve checking of return-argument types for 16-byte
11312         modes.
11313         (ix86_function_value_1): Add additional valtype argument on call
11314         of function_value_64.
11315         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11316         handling infunction_value_64 function.
11318 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11320         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11322 2013-02-04  Richard Biener  <rguenther@suse.de>
11324         PR tree-optimization/56188
11325         * tree-ssa-structalias.c (label_visit): Consider case with
11326         initially non-empty points-to set.
11327         (perform_var_substitution): Dump node mapping and clean up.
11329 2013-02-04  Richard Guenther  <rguenther@suse.de>
11331         PR lto/56168
11332         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11333         node prevail as last resort.
11334         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11335         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11337 2013-02-04  Richard Biener  <rguenther@suse.de>
11339         PR tree-optimization/56113
11340         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11341         Merge into ...
11342         (equiv_class_lookup_or_add): ... this.
11343         (label_visit): Adjust and fix error in previous patch.
11344         (perform_var_substitution): Adjust.
11346 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11348         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11349         * config/sh/sh4-300.md: Likewise.
11350         * config/sh/sh4a.md: Likewise.
11351         * config/sh/constraints.md: Likewise.
11352         * config/sh/sh.md: Likewise.
11353         * config/sh/netbsd-elf.h: Likewise.
11354         * config/sh/predicates.md: Likewise.
11355         * config/sh/sh-protos.h: Likewise.
11356         * config/sh/ushmedia.h: Likewise.
11357         * config/sh/linux.h: Likewise.
11358         * config/sh/sh.c: Likewise.
11359         * config/sh/superh.h: Likewise.
11360         * config/sh/elf.h: Likewise.
11361         * config/sh/sh4.md: Likewise.
11362         * config/sh/sh.h: Likewise.
11364 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11366         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11367         constraint to match_test floating_point_store_memory_operand().
11368         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11369         (base14_operand): New.
11370         (floating_point_store_memory_operand): New.
11371         (integer_store_memory_operand): Revise to use base14_operand and
11372         reg_plus_base_memory_operand.
11373         (move_dest_operand): Allow symbolic_memory_operands.
11374         (symbolic_memory_operand): Check for LO_SOM.
11375         (symbolic_operand): Change default case to break.
11376         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11377         CONST_DOUBLE values to be reloaded by putting them into memory when
11378         the destination is a floating point register.
11379         (movdf): Remove code to handle CONST_DOUBLE.
11380         (movsf): Likewise.
11381         (reload_indf_r1): New.
11382         (reload_insf_r1): New.
11383         Consistently use "Q" and "T" constraints with integer and floating
11384         point move instructions, respectively.
11385         (movdi): Remove FAIL.
11386         Change predicate for source operand unamed DImode move from
11387         general_operand to move_src_operand.
11388         (umulsidi3): Change predicate for destination operand to
11389         register_operand.
11390         Likewise for similar unamed patterns.
11391         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11392         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11393         (hppa_legitimize_address): Simplify mask calculation.
11394         (pa_emit_move_sequence): Revised handling of secondary reloads from
11395         REG+D addresses for floating point loads and stores.  Directly handle
11396         loading CONST0_RTX (mode) to a floating point register.
11397         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11398         to floating point registers.  Don't restrict secondary reloads to
11399         floating point registers to integer modes.  Revise some comments and
11400         cleanup some code.
11401         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11402         (pa_legitimate_address_p): New.
11403         (pa_legitimize_reload_address): New.
11404         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11405         (STRICT_REG_OK_FOR_BASE_P): New.
11406         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11407         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11409 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11410             Andrew Dixie  <andrewd@gentrack.com>
11412         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11413         flag set.
11415 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11417         * expmed.c (extract_bit_field_1): Pass the full width of the
11418         structure to get_best_reg_extraction_insn.
11420 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11422         PR target/54601
11423         * configure.ac (use_cxa_atexit): Add AIX.
11424         * configure: Regenerate.
11426         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11428 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11430         PR debug/54793
11431         * final.c (need_profile_function): New variable.
11432         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11433         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11434         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11435         notes, targetm.asm_out.function_prologue doesn't emit anything,
11436         HAVE_prologue and profiler should be emitted before prologue,
11437         set need_profile_function instead of emitting it.
11438         (final_scan_insn): If need_profile_function, emit
11439         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11440         NOTE_INSN_FUNCTION_BEG note.
11442 2013-02-01  Richard Henderson  <rth@redhat.com>
11444         * config/rs6000/rs6000.md (smulditi3): New.
11445         (umulditi3): New.
11447         * config/alpha/alpha.md (umulditi3): New.
11449 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11451         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11452         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11454 2013-02-01  Richard Biener  <rguenther@suse.de>
11456         PR tree-optimization/56113
11457         * tree-ssa-structalias.c (label_visit): Reduce work for
11458         single-predecessor nodes.
11460 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11462         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11463         range isn't testing for zero.
11465 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11467         PR middle-end/56113
11468         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11470 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11471             Nick Clifton  <nickc@redhat.com>
11473         * config/v850/constraints.md (Q): Define as a memory constraint.
11474         * config/v850/predicates.md (label_ref_operand): New predicate.
11475         (e3v5_shift_operand): New predicate.
11476         (ior_operator): New predicate.
11477         * config/v850/t-v850: Add e3v5 multilib.
11478         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11479         (v850_gen_movdi): Prototype.
11480         * config/v850/v850.c: Add support for e3v5 architecture.
11481         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11482         TARGET_V850E_UP.
11483         (construct_save_jarl): Add e3v5 long JARL support.
11484         (v850_adjust_insn_length): New function.  Adjust length of call
11485         insns when using e3v5 instructions.
11486         (v850_gen_movdi): New function: Generate instructions to move a
11487         DImode value.
11488         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11489         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11490         (TARGET_USE_FPU): Enable for e3v5.
11491         (CONST_OK_FOR_W): New macro.
11492         (ADJUST_INSN_LENGTH): Define.
11493         * config/v850/v850.md (UNSPEC_LOOP): Define.
11494         (attr cpu): Add v850e3v5.
11495         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11496         (movdi): New pattern.
11497         (movdi_internal): New pattern.
11498         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11499         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11500         (cstoresf4): Likewise.
11501         (cstoredf4): Likewise.
11502         (insv): New pattern.
11503         (rotlso3_a): New pattern.
11504         (rotlsi3_b): New pattern
11505         (rotlsi3_v850e3v5): New pattern.
11506         (doloop_begin): New pattern.
11507         (fix_loop_counter): New pattern.
11508         (doloop_end): New pattern.
11509         (branch_normal): Add e3v5 long branch support.
11510         (branch_invert): Likewise.
11511         (branch_z_normal): Likewise.
11512         (branch_z_invert): Likewise.
11513         (branch_nz_normal): Likewise.
11514         (branch_nz_invert): Likewise.
11515         (call_internal_short): Add e3v5 register-indirect JARL support.
11516         (call_internal_long): Likewise.
11517         (call_value_internal_short): Likewise.
11518         (call_value_internal_long): Likewise.
11519         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11520         (mloop): New option.
11521         * config.gcc: Add support for configuring v840e3v5 target.
11522         * doc/invoke.texi: Document new v850 specific command line options.
11524 2013-01-31  Paul Koning  <ni1d@arrl.net>
11526         PR debug/55059
11527         PR debug/54508
11528         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11529         children if parent is a class.
11530         (prune_unused_types_prune): Don't add DW_AT_declaration.
11532 2013-01-31  Richard Biener  <rguenther@suse.de>
11534         PR tree-optimization/56157
11535         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11536         match up operand with SLP child.
11538 2013-01-31  Jason Merrill  <jason@redhat.com>
11540         PR debug/54410
11541         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11542         parameters the first time.
11543         (gen_scheduled_generic_parms_dies): Check completeness here.
11545 2013-01-31  Richard Biener  <rguenther@suse.de>
11547         PR middle-end/53073
11548         * common.opt (faggressive-loop-optimizations): New flag,
11549         enabled by default.
11550         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11551         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11552         infer_loop_bounds_from_undefined by it.
11554 2013-01-31  Richard Biener  <rguenther@suse.de>
11556         PR tree-optimization/56150
11557         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11558         visit virtual operands.
11559         (find_uses_to_rename_bb): Likewise.
11561 2013-01-31  Richard Biener  <rguenther@suse.de>
11563         PR tree-optimization/56150
11564         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11565         mixed store non-store stmts.
11567 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11569         PR sanitizer/55374
11570         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11571         LIBASAN_EARLY_SPEC is defined.
11572         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11573         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11574         before %o.
11575         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11577         PR c++/55742
11578         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11579         invalid args instead of ICEing on it.
11580         (ix86_valid_target_attribute_tree): Return error_mark_node if
11581         ix86_valid_target_attribute_inner_p failed.
11582         (ix86_valid_target_attribute_p): Return false only if
11583         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11584         target("default") attribute.
11585         (sorted_attr_string): Change argument from const char * to tree,
11586         merge in all target attribute arguments rather than just one.
11587         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11588         instead of free.  Avoid using strcat.
11589         (ix86_mangle_function_version_assembler_name): Mangle
11590         target("default") as if no target attribute is present.  Adjust
11591         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11592         instead of xmalloc and XDELETEVEC instead of free.
11593         (ix86_function_versions): Don't return true if one of the decls
11594         doesn't have target attribute.  If they don't and one of the decls
11595         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11596         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11597         (ix86_supports_function_versions): Remove.
11598         (make_name): Fix up formatting.
11599         (make_dispatcher_decl): Remove resolver_name and its initialization.
11600         Avoid leaking memory.
11601         (is_function_default_version): Return true if there is
11602         target("default") attribute rather than no target attribute at all.
11603         (make_resolver_func): Avoid leaking memory.
11604         (ix86_generate_version_dispatcher_body): Likewise.
11605         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11606         * target.def (supports_function_versions): Remove.
11607         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11608         * doc/tm.texi: Regenerated.
11610 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11612         PR rtl-optimization/56144
11613         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11614         for values with side effects.
11616 2013-01-30  Richard Biener  <rguenther@suse.de>
11618         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11619         (sparseset_pop): Likewise.
11620         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11621         to be able to use quick_push in the worker loop.
11623 2013-01-30  Marek Polacek  <polacek@redhat.com>
11625         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11627 2013-01-30  Richard Biener  <rguenther@suse.de>
11629         PR lto/56147
11630         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11632 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11634         PR tree-optimization/56064
11635         * fixed-value.c (fixed_from_double_int): New function.
11636         * fixed-value.h (fixed_from_double_int): New prototype.
11637         (const_fixed_from_double_int): New static inline function.
11638         * fold-const.c (native_interpret_fixed): New static function.
11639         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11640         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11641         (native_encode_fixed): New static function.
11642         (native_encode_expr) <FIXED_CST>: Use it.
11643         (native_interpret_int): Move double_int worker code to...
11644         * double-int.c (double_int::from_buffer): ...this new static method.
11645         * double-int.h (double_int::from_buffer): Prototype it.
11647 2013-01-30  Richard Biener  <rguenther@suse.de>
11649         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11650         New pointer-map and obstack.
11651         (init_alias_vars): Allocate pointer-map and obstack.
11652         (delete_points_to_sets): Free them.
11653         (find_what_var_points_to): Cache result.
11654         (find_what_p_points_to): Adjust for changed interface of
11655         find_what_var_points_to.
11656         (compute_points_to_sets): Likewise.
11657         (ipa_pta_execute): Likewise.
11659 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11661         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11662         * configure: Regenerate.
11663         * config.in: Regenerate.
11664         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11665         #nobits/#progbits if supported.
11667 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11669         PR target/56121
11670         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11671         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11672         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11674 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11676         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11677         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11679 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11681         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11682         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11684 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11686         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11687         declaration.
11688         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11689         * config/arm/cortex-a7.md: New bypasses using
11690         arm_mac_accumulator_is_result.
11692 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11694         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11695         (cortex_a7_neon_mla): Likewise.
11696         (cortex_a7_fpfmad): New reservation.
11697         (cortex_a7_fpmacs): Use ffmas and update required units.
11698         (cortex_a7_fpmuld): Update required units and latency.
11699         (cortex_a7_fpmacd): Likewise.
11700         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11701         (cortex_a7_neon). Likewise.
11702         (bypass) Update participating units.
11704 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11706         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11707         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11708         from fmac to ffma.
11709         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11710         (vfp_fmul): Use ffmad.
11711         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11712         (cortex_r4_fmacd): Use ffmad.
11713         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11714         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11715         (cortex_a9_fmacd): Use ffmad.
11716         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11717         (cortex_a8_vfp_macd): Use ffmad.
11718         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11719         (cortex_a5_fpmacd): Use ffmad.
11720         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11721         (cortex_a15_vfp_macd): Use ffmad.
11722         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11724 2013-01-29  Jason Merrill  <jason@redhat.com>
11726         PR libstdc++/54314
11727         * varasm.c (default_assemble_visibility): Don't warn about
11728         visibility on artificial decls.
11730 2013-01-29  Richard Biener  <rguenther@suse.de>
11732         PR tree-optimization/56113
11733         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11734         the bitmap leader.
11735         (label_visit): Free duplicate bitmaps and record the leader instead.
11736         (perform_var_substitution): Adjust.
11738 2013-01-29  Richard Biener  <rguenther@suse.de>
11740         PR tree-optimization/55270
11741         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11742         the CFG, schedule loops for fixup.
11744 2013-01-29  Nick Clifton  <nickc@redhat.com>
11746         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11747         SP_REG.
11749 2013-01-28  Leif Ekblad  <leif@rdos.net>
11751         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11752         * config/i386/i386.h (TARGET_RDOS): New macro.
11753         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11754         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11755         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11756         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11757         DEFAULT_LARGE_SECTION_THRESHOLD.
11758         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11759         * config/i386/rdos.h: New file.
11760         * config/i386/rdos64.h: New file.
11762 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11764         PR other/54814
11765         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11766         TEST_HARD_REG_BIT.
11768 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11770         PR rtl-optimization/56117
11771         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11772         call cselib_lookup_from_insn on the MEM before calling
11773         add_insn_mem_dependence.
11775 2013-01-28  Richard Biener  <rguenther@suse.de>
11777         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11778         to a stmt that didn't have one.
11779         (copy_phis_for_bb): Likewise for PHI arguments.
11780         (copy_debug_stmt): Likewise for debug stmts.
11782 2013-01-28  Richard Biener  <rguenther@suse.de>
11784         PR tree-optimization/56034
11785         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11786         (partition_builtin_p): Adjust.
11787         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
11788         it is the last partition.
11789         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11790         up the vertex for the definition.
11791         (classify_partition): Classify whether a partition is a
11792         PKIND_REDUCTION, thus has uses outside of the loop.
11793         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11794         Merge all PKIND_REDUCTION partitions into the last partition.
11795         (tree_loop_distribution): Seed partitions from reductions as well.
11797 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11799         PR tree-optimization/56125
11800         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11801         pow(x,c) into sqrt(x) * powi(x, n/2) or
11802         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11803         optimizing for size.
11804         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11805         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11806         integer.
11808         PR tree-optimization/56094
11809         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11810         to UNKNOWN_LOCATION while gimplifying expr.
11812 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
11814         PR target/56114
11815         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11816         operand 0 in movabs insn template for -masm=intel asm alternative.
11817         (*movabs<mode>_2): Ditto for operand 1.
11819 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
11821         PR target/54663
11822         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11823         of microblaze-c.o
11825 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11827         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11828         tm_file.
11830 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11832         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11833         Undef to avoid warning.
11835 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11837         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11838         * configure: Regenerate.
11840 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
11842         PR tree-optimization/56098
11843         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11844         for stmts with volatile ops.
11845         (cond_store_replacement): Don't optimize if assign has volatile ops.
11846         (cond_if_else_store_replacement_1): Don't optimize if either
11847         then_assign or else_assign have volatile ops.
11848         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11849         volatile ops.
11851 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11853         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11855 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11857         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11858         missing ':' in asm example.
11860 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
11862         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11863         entries into lane and laneq entries.
11864         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11865         Remove AdvSIMD scalar modes.
11866         (aarch64_sq<r>dmulh_laneq<mode>): New.
11867         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11868         modes.
11869         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11870         builtin implementations to relfect changes in RTL in aarch64-simd.md.
11871         * config/aarch64/iterators.md (VCOND): New.
11872         (VCONQ): New.
11874 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11876         PR target/54222
11877         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11878         Add NULL LIBNAME argument to existing definitions.
11879         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11880         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11881         * config/avr/avr.c (DEF_BUILTIN): Same.
11882         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11883         (avr_expand_builtin): Expand to a vanilla call if a libgcc
11884         implementation is available (DECL_ASSEMBLER_NAME is set).
11885         (avr_fold_absfx): New static function.
11886         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11887         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11888         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11889         AVR_BUILTIN_ABSLLK.
11890         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11891         (abshk, absk, abslk, absllk): Provide as static inline functions.
11893 2013-01-25  Marek Polacek  <polacek@redhat.com>
11895         PR tree-optimization/56035
11896         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11898 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
11900         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11901         (*movtf_internal_rex64): Add (!o,C) alternative
11902         (*movxf_internal_rex64): Ditto.
11903         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11905 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
11907         * doc/invoke.texi: fix typo.
11908         * doc/objc.texi: fix typo.
11910 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
11912         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11913         for the first two alternatives.
11915 2013-01-24  Diego Novillo  <dnovillo@google.com>
11917         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
11918         (ggc-zone.o): Remove.
11919         * configure.ac: Remove option --with-gc.
11920         * configure: Re-generate.
11921         * doc/install.texi: Remove documentation for --with-gc.
11922         * gengtype.c (write_enum_defn): Remove.  Update all users.
11923         (write_Types_process_field): Remove generation of gt_e_* argument.
11924         (output_type_enum): Remove.  Update all users.
11925         (write_enum_defn): Remove.  Update all users.
11926         (enum alloc_zone): Remove.  Update all users.
11927         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11928         * ggc-common.c (ggc_splay_alloc): Remove first argument.
11929         Update all callers.
11930         (struct ptr_data): Remove field TYPE.  Update all users.
11931         (gt_pch_note_object): Remove argument TYPE.  Update all users.
11932         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11933         Update all users.
11934         * ggc-none.c (ggc_alloc_typed_stat): Remove.
11935         (struct alloc_zone): Remove.
11936         (ggc_internal_alloc_zone_stat): Remove.
11937         (ggc_internal_cleared_alloc_zone_stat): Remove.
11938         * ggc-page.c (ggc_alloc_typed_stat): Remove.
11939         (ggc_pch_count_object): Remove last argument.  Update all users.
11940         (ggc_pch_alloc_object): Remove last argument.  Update all users.
11941         (struct alloc_zone): Remove.
11942         * ggc-zone.c: Remove.
11943         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
11944         (struct alloc_zone): Remove.
11945         (ggc_alloc_typed_stat): Remove.
11946         (ggc_alloc_typed): Remove.
11947         (ggc_splay_alloc): Remove first argument.
11948         (rtl_zone): Remove.  Update all users.
11949         (tree_zone): Remove.  Update all users.
11950         (tree_id_zone): Remove.  Update all users.
11951         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
11952         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
11953         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
11954         * tree-ssanames.c: Remove references to zone allocator in comments.
11956 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
11958         * config/avr/avr.c (avr_out_fract): Make register numbers that
11959         might be outside of source operand signed.
11961 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
11963         * config/i386/constraints.md (Yf): New constraint.
11964         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11965         of f constraint to conditionaly disable x87 register preferences.
11966         (*movdf_internal): Ditto.
11967         (*movsf_internal): Ditto.
11969 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
11971         PR inline-asm/55934
11972         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11973         that have operands with impossible constraints.
11974         Add a FIXME for a speed-up opportunity.
11975         * lra-constraints.c (process_alt_operands): Verify that a class
11976         selected from constraints on asms is valid for the operand mode.
11977         (curr_insn_transform): Remove incorrect comment.
11979 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
11981         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11982         TOC operand is a valid symbol ref in the constant pool.
11984 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11986         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11988 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
11990         PR target/54222
11991         * config/avr/stdfix.h: New file.
11992         * t-avr (stdfix-gcc.h): New rule to build it.
11993         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11995 2013-01-23  Kostya Serebryany  <kcc@google.com>
11997         * config/darwin.h: remove dependency on
11998         CoreFoundation (asan on Mac OS).
12000 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12002         PR target/49069
12003         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12004         instead of cmpdi_operand for first comparison operand.
12005         Don't assert that comparison operands aren't both constants.
12007 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12009         * doc/install.texi (Downloading the Source): Update references to
12010         downloading separate components.
12012 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12014         * doc/extend.texi (__int128): Improve grammar.
12016 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12018         PR target/56028
12019         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12020         alternative to (o,r).
12021         (*movdi_internal_rex64): Remove (!o,n) alternative.
12022         (DImode immediate->memory splitter): Remove.
12023         (DImode immediate->memory peephole2): Remove.
12024         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12025         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12026         alternative to (!o,*r).
12027         (*movtf_internal_sse): New pattern.
12028         (*movxf_internal_rex64): New pattern.
12029         (*movxf_internal): Disable for TARGET_64BIT.
12030         (*movdf_internal_rex64): Remove (!o,F) alternative.
12032 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12034         PR middle-end/56074
12035         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12036         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12037         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12038         stmt locations where LOCATION_LOCUS of the stmt location is
12039         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12041         PR target/55686
12042         * config/i386/i386.md (UNSPEC_STOS): New.
12043         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12044         *strsetqi_1): Add UNSPEC_STOS.
12046 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12048         PR c++/56067
12049         * doc/invoke.texi: Remove left over -Wsynth example.
12051 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12053         PR tree-optimization/56051
12054         * fold-const.c (fold_binary_loc): Don't fold
12055         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12056         a narrowing conversion, or widening conversion from signed
12057         to unsigned.
12059 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12061         PR rtl-optimization/56023
12062         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12063         dependent on debug instruction.
12065 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12067         PR middle-end/56022
12068         * function.c (allocate_struct_function): Call
12069         invoke_set_current_function_hook earlier.
12071 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12073         * reload1.c (init_reload): Only initialize reload_obstack
12074         during the first call.
12076 2013-01-21  Marek Polacek  <polacek@redhat.com>
12078         * cfgloop.c (verify_loop_structure): Fix up grammar.
12080 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12082         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12083         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12085 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12087         PR target/56058
12088         * config/arm/marvell-pj4.md: Update copyright year.
12089         Fix up use of alu to alu_reg and simple_alu_imm.
12091 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12093         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12095 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12097         PR target/55433
12098         * lra-constraints.c (curr_insn_transform): Don't reuse original
12099         insn for secondary memory move when memory mode should be different.
12101 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12103         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12104         atomic_storedi_1): New patterns.
12106 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12108         btver2 pipeline descriptions.
12109         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12110         descriptions.
12111         * config/i386/i386.md (btver2_decode): New type attributes.
12112         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12113         type attributes.
12114         * config/i386/btver2.md: New file describing btver2 pipelines.
12116 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12118         PR tree-optimization/52631
12119         * tree-ssa-sccvn (visit_use): Before looking up the original
12120         statement, try looking up the simplified expression.
12122 2013-01-19  Anthony Green  <green@moxielogic.com>
12124         * config/moxie/moxie.c (moxie_expand_prologue): Set
12125         current_function_static_stack_size.
12127 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12129         PR tree-optimization/56029
12130         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12131         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12133 2013-01-18  Sharad Singhai  <singhai@google.com>
12135         PR tree-optimization/55995
12136         * dumpfile.c (dump_loc): Print location only if available.
12137         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12139 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12141         PR target/55433
12142         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12143         secondary memory move.
12144         (inherit_reload_reg): Use rclass instead of cl for
12145         check_secondary_memory_needed_p.
12147 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12149         PR middle-end/56015
12150         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12151         the case where writing real complex part of target modifies op1.
12153 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12155         * config/aarch64/aarch64-simd.md
12156         (aarch64_vcond_internal<mode>): Handle unordered cases.
12157         * config/aarch64/iterators.md (v_cmp_result): New.
12159 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12160             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12162         * config/arm/marvell-pj4.md: New file.
12163         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12164         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12165         (generic_vfp): Likewise.
12166         * config/arm/arm-cores.def: Add marvell-pj4.
12167         * config/arm/arm-tune.md: Regenerate.
12168         * config/arm/arm-tables.opt: Regenerate.
12169         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12170         * doc/invoke.texi: Document marvell-pj4.
12172 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12174         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12176 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12178         PR debug/54114
12179         PR debug/54402
12180         PR debug/49888
12181         * var-tracking.c (negative_power_of_two_p): New.
12182         (global_get_addr_cache, local_get_addr_cache): New.
12183         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12184         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12185         heading comment.
12186         (vt_stack_offset_p): Remove.
12187         (vt_canon_true_dep): Always canonicalize loc's address.
12188         (clobber_overlapping_mems): Make sure we have a MEM.
12189         (local_get_addr_clear_given_value): New.
12190         (val_reset): Clear local cached entries.
12191         (compute_bb_dataflow): Create and release the local cache.
12192         Disable duplicate MEMs clobbering.
12193         (emit_notes_in_bb): Clobber MEMs likewise.
12194         (vt_emit_notes): Create and release the local cache.
12195         (vt_initialize, vt_finalize): Create and release the global
12196         cache, respectively.
12197         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12199 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12201         PR libmudflap/53359
12202         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12203         not found in the symtab.
12205 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12207         PR debug/56006
12208         PR rtl-optimization/55547
12209         PR rtl-optimization/53827
12210         PR debug/53671
12211         PR debug/49888
12212         * alias.c (offset_overlap_p): New, factored out of...
12213         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12214         the conservative special case for symbolic constants.  Don't
12215         adjust zero sizes on alignment.
12217 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12219         PR rtl-optimization/52573
12220         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12221         REG_UNUSED for the same register.
12223 2013-01-17  Richard Biener  <rguenther@suse.de>
12224             Marek Polacek  <polacek@redhat.com>
12226         PR rtl-optimization/55833
12227         * loop-unswitch.c (unswitch_loops): Move loop verification...
12228         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12229         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12230         Set it to true when we're removing a loop from hierarchy tree in
12231         an irreducible region.
12232         (fix_bb_placements): Adjust caller.
12233         (fix_loop_placements): Likewise.
12235 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12237         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12238         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12239         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12240         Remove ID.  Adjust comments.
12241         * config/avr/avr-c.c (avr_builtin_name): Remove.
12242         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12243         * config/avr/avr.c (avr_tolower): New static function.
12244         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12245         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12246         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12247         default expansion.
12249 2013-01-17  Jan Hubicka  <jh@suse.cz>
12251         PR tree-optimization/55273
12252         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12254 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12256         PR target/55981
12257         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12258         store through atomic_store<mode>_1.
12259         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12261 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12263         PR tree-optimizations/55264
12264         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12265         for virtual methods.
12266         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12267         virtual methods before inlining is over.
12268         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12269         virtual functions.
12270         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12271         non-virtual.
12273 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12275         PR rtl-optimization/56005
12276         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12277         pending reads for prefetch.
12279 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12281         * config/aarch64/aarch64.md
12282         (*cstoresi_neg_uxtw): New pattern.
12283         (*cmovsi_insn_uxtw): New pattern.
12284         (*<optab>si3_uxtw): New pattern.
12285         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12286         (*<optab>si3_insn_uxtw): New pattern.
12287         (*bswapsi2_uxtw): New pattern.
12289 2013-01-16  Richard Biener  <rguenther@suse.de>
12291         * tree-inline.c (tree_function_versioning): Remove set but
12292         never used variable.
12294 2013-01-16  Richard Biener  <rguenther@suse.de>
12296         PR tree-optimization/55964
12297         * tree-flow.h (rename_variables_in_loop): Remove.
12298         (rename_variables_in_bb): Likewise.
12299         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12300         (copy_loop_before): Adjust and delete update-ssa status.
12301         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12302         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12303         (rename_variables_in_loop): Remove.
12304         (slpeel_update_phis_for_duplicate_loop): Likewise.
12305         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12306         use available cfg machinery instead of duplicating it.
12307         Update PHI nodes and perform poor-mans SSA update here.
12308         (slpeel_tree_peel_loop_to_edge): Adjust.
12310 2013-01-16  Richard Biener  <rguenther@suse.de>
12312         PR tree-optimization/54767
12313         PR tree-optimization/53465
12314         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12315         (vrp_visit_phi_node): For PHI arguments coming via backedges
12316         drop all symbolical range information.
12317         (execute_vrp): Compute backedges.
12319 2013-01-16  Richard Biener  <rguenther@suse.de>
12321         * doc/install.texi: Update CLooG and ISL requirements to
12322         0.18.0 and 0.11.1.
12324 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12326         PR target/55301
12327         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12328         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12329         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12331 2013-01-16  DJ Delorie  <dj@redhat.com>
12333         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12334         (UNSPECV_SP_SWITCH_E): New.
12335         (sp_switch_1): Change to an unspec.
12336         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12337         replace $r15.
12339 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12341         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12342         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12343         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12344         (expand_mem_thread_fence): Ditto.
12345         (expand_mem_signal_fence): Ditto.
12346         (expand_atomic_load): Ditto.
12347         (expand_atomic_store): Ditto.
12349 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12351         PR rtl-optimization/55547
12352         PR rtl-optimization/53827
12353         PR debug/53671
12354         PR debug/49888
12355         * alias.c (memrefs_conflict_p): Set sizes to negative after
12356         AND adjustments.
12358 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12360         PR target/55940
12361         * function.c (thread_prologue_and_epilogue_insns): Always
12362         add crtl->drap_reg to set_up_by_prologue.set, even if
12363         stack_realign_drap is false.
12365 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12367         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12368         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12369         *call): Fix indention.
12371 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12373         PR target/55876
12374         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12375         Update comment.
12377 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12379         PR rtl-optimization/55153
12380         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12382 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12384         PR tree-optimization/55920
12385         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12386         accesses as grp_to_be_debug_replaced.
12388 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12390         PR tree-optimization/55920
12391         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12392         there is non-useless type conversion needed from debug rhs to lhs,
12393         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12395 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12396             Mikael Pettersson  <mikpe@it.uu.se>
12398         PR target/43961
12399         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12400         Thumb.
12401         (ASM_OUTPUT_CASE_LABEL): Remove.
12402         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12403         * final.c (shorten_branches): Update alignment of labels before
12404         jump tables if CASE_VECTOR_SHORTEN_MODE.
12406 2013-01-15  Richard Biener  <rguenther@suse.de>
12408         PR bootstrap/55961
12409         * system.h: Do not include gmp.h for building host tools.
12411 2013-01-15  Richard Biener  <rguenther@suse.de>
12413         PR middle-end/55882
12414         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12415         account for bitpos when computing alignment.
12417 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12419         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12420         (ix86_target_macros_internal): Likewise.
12422         * config/i386/i386.c (m_CORE2I7): Removed.
12423         (m_CORE_HASWELL): New macro.
12424         (m_CORE_ALL): Likewise.
12425         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12426         (initial_ix86_arch_features): Likewise.
12427         (processor_target_table): Initializations for Core avx2.
12428         (cpu_names): New names "core-avx2".
12429         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12430         PROCESSOR_CORE_HASWELL.
12431         (ix86_issue_rate): New case.
12432         (ia32_multipass_dfa_lookahead): Likewise.
12433         (ix86_sched_init_global): Likewise.
12435         * config/i386/i386.h (TARGET_HASWELL): New macro.
12436         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12437         (processor_type): New PROCESSOR_HASWELL.
12439 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12441         PR tree-optimization/55955
12442         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12443         *SHIFT_EXPR and *ROTATE_EXPR codes.
12445         PR tree-optimization/48766
12446         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12447         -ftrapv disable -fwrapv.
12449 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12451         PR target/55974
12452         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12453         etc. to 1 and not to __flash.
12454         Use LL suffix for __INT24_MAX__ with -mint8.
12455         Use ULL suffix for __UINT24_MAX__ with -mint8.
12457 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12459         * config/avr/avr-arch.h
12460         (struct base_arch_s): Use typedef avr_arch_t instead.
12461         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12462         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12463         * config/avr/avr.c: Same.
12464         * config/avr/avr-devices.c: Same.
12465         * config/avr/driver-avr.c: Same.
12466         * config/avr/gen-avr-mmcu-texi.c: Same.
12467         * config/avr/avr-mcus.def: Adjust comment.
12469 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12471         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12472         * config/aarch64/iterators.md (VALLDI): New.
12474 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12475             Andi Kleen  <ak@linux.intel.com>
12477         PR target/55948
12478         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12479         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12480         memmodel flag.
12482 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12484         * config/avr/avr-stdint.h: Remove trailing blanks.
12485         * config/avr/avr-log.h: Same.
12486         * config/avr/avr-arch.h: Same.
12487         * config/avr/avr-devices.c: Same.
12488         * config/avr/avr-dimode.md: Same.
12489         * config/avr/predicates.md: Same.
12490         * config/avr/avr-c.c: Same.  And fix typo.
12492         * config/avr/avr-protos.h: Same.  And:
12493         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12494         (init_cumulative_args): Rename to avr_init_cumulative_args.
12495         (expand_prologue): Rename to avr_expand_prologue.
12496         (expand_epilogue): Rename to avr_expand_epilogue.
12497         (adjust_insn_length): Rename to avr_adjust_insn_length.
12498         (notice_update_cc): Rename to avr_notice_update_cc.
12499         (final_prescan_insn): Rename to avr_final_prescan_insn.
12500         * config/avr/avr.c: Same.
12501         * config/avr/avr.h: Same.
12502         * config/avr/avr.md: Remove trailing blanks.
12503         (prologue): Use avr_expand_prologue.
12504         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12506 2013-01-14  Richard Biener  <rguenther@suse.de>
12508         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12509         verify_location, collect_subblocks): New functions.
12510         (verify_gimple_in_cfg): Verify that locations only reference
12511         BLOCKs in the functions BLOCK tree.
12513 2013-01-14  Richard Biener  <rguenther@suse.de>
12515         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12516         PHI argument.
12517         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12518         unshare reference.
12519         (insert_out_of_ssa_copy_on_edge): Likewise.
12520         (rewrite_close_phi_out_of_ssa): Likewise.
12521         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12522         debug expressions.
12523         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12524         propagated constants.
12525         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12526         can not be shared.
12528 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12530         * config/avr/avr-modes.def: Add GPL copyright notice.
12532 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12534         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12535         MEMMODEL_MASK to determine memory model.
12536         (atomic_store<mode>): Ditto from operands[2].
12537         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12539 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12541         PR fortran/55935
12542         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12543         (fold_gimple_assign): Don't call unshare_expr here.
12544         (fold_ctor_reference): Call unshare_expr.
12546 2013-01-13  Terry Guo  <terry.guo@arm.com>
12548         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12549         * doc/fragments.texi: Document MULTILIB_REUSE.
12550         * gcc.c (multilib_reuse): New internal spec.
12551         (set_multilib_dir): Also search multilib from multilib_reuse.
12552         * genmultilib (tmpmultilib3): Refactor code.
12553         (tmpmultilib4): Ditto.
12554         (multilib_reuse): New multilib argument.
12556 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12558         * Makefile.in: Update copyright.
12560 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12562         PR middle-end/55890
12563         * calls.c (expand_call): Check if arg_nr is valid.
12565 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12567         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12568         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12569         documentation.  Add missing '__' in front of
12570         __builtin_ia32_packssdw256.
12572 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12574         PR target/55719
12575         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12576         NO_REGS for larl operands.
12577         (s390_reload_larl_operand): Use s390_load_address instead of
12578         emit_move_insn.
12580 2013-01-11  Richard Biener  <rguenther@suse.de>
12582         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12583         (verify_node_sharing): ... here.
12584         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12586 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12588         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12589         Substitute TREECHECKING.
12590         * configure: Regenerate.
12591         * Makefile.in (TREECHECKING): New.
12593 2013-01-11  Richard Guenther  <rguenther@suse.de>
12595         PR tree-optimization/44061
12596         * tree-vrp.c (extract_range_basic): Compute zero as
12597         value-range for __builtin_constant_p of function parameters.
12599 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12601         Update copyright years.
12603 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12605         PR rtl-optimization/55672
12606         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12607         const to be eliminable.
12609 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12611         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12612         * configure: Regenerate.
12614 2013-01-10  Richard Biener  <rguenther@suse.de>
12616         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12618 2013-01-10  Richard Biener  <rguenther@suse.de>
12620         PR bootstrap/55792
12621         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12622         locations for virtual PHI arguments.
12623         (rewrite_update_phi_arguments): Likewise.
12625 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12627         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12628         on to assembler.
12630 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12632         PR tree-optimization/55921
12633         * tree-complex.c (expand_complex_asm): New function.
12634         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12636 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12638         PR target/55718
12639         * config/s390/s390.c (s390_symref_operand_p)
12640         (s390_loadrelative_operand_p): Merge the two functions.
12641         (s390_check_qrst_address, print_operand_address): Add parameters
12642         to s390_loadrelative_operand_p invokation.
12643         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12644         (s390_reload_larl_operand, s390_secondary_reload): Use
12645         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12646         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12648 2013-01-09  Mike Stump  <mikestump@comcast.net>
12650         * dse.c (record_store): Remove unnecessary assert.
12652 2013-01-09  Jan Hubicka  <jh@suse.cz>
12654         PR tree-optimization/55569
12655         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12656         * cfgloop.h (scale_loop_profile): Likewise.
12658 2013-01-09  Jan Hubicka  <jh@suse.cz>
12660         PR lto/45375
12661         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12662         functions.
12663         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12665 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12667         PR middle-end/55114
12668         * expr.h (maybe_emit_group_store): Declare.
12669         * expr.c (maybe_emit_group_store): New function.
12670         * builtins.c (expand_builtin_int_roundingfn): Call it.
12671         (expand_builtin_int_roundingfn_2): Likewise.
12673 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12675         PR rtl-optimization/55829
12676         * lra-constraints.c (match_reload): Add code for absent output.
12677         (curr_insn_transform): Add code for reloads of matched inputs
12678         without output.
12680 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12682         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12683         attribute of movddup insn to DF.
12684         (*vec_interleave_lowv2df): Ditto.
12685         (vec_dupv2df): Ditto.
12687 2013-01-09  Jan Hubicka  <jh@suse.cz>
12689         PR tree-optimiation/55875
12690         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12691         EVERY_ITERATION parameter.
12692         (number_of_iterations_exit): Check if exit is executed every iteration.
12693         (idx_infer_loop_bounds): Similarly here.
12694         (n_of_executions_at_most): Simplify
12695         to only test for cases where statement is dominated by the
12696         particular bound; handle correctly the "postdominance" test.
12697         (scev_probably_wraps_p): Use max loop iterations info
12698         as a global bound first.
12700 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12701             Nick Clifton  <nickc@redhat.com>
12703         * config/v850/v850.md (cbranchsf4): New pattern.
12704         (cstoresf4): New pattern.
12705         (cbranchdf4): New pattern.
12706         (cstoredf4): New pattern.
12707         (movsicc): Disallow floating point comparisons.
12708         (cmpsf_le_insn): Fix order of operators.
12709         (cmpsf_lt_insn): Likewise.
12710         (cmpsf_eq_insn): Likewise.
12711         (cmpdf_le_insn): Likewise.
12712         (cmpdf_lt_insn): Likewise.
12713         (cmpdf_eq_insn): Likewise.
12714         (cmpsf_ge_insn): Use LE comparison.
12715         (cmpdf_ge_insn): Likewise.
12716         (cmpsf_gt_insn): Use LT comparison.
12717         (cmpdf_gt_insn): Likewise.
12718         (cmpsf_ne_insn): Delete pattern.
12719         (cmpdf_ne_insn): Delete pattern.
12720         * config/v850/v850.c (v850_gen_float_compare): Use
12721         gen_cmpdf_eq_insn for NE comparison.
12722         (v850_float_z_comparison_operator)
12723         (v850_float_nz_comparison_operator): Move from here ...
12724         * config/v850/predicates.md: ... to here.  Move GT and GE
12725         comparisons into v850_float_z_comparison_operator.
12726         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12727         Delete prototype.
12728         (v850_float_nz_comparison_operator): Likewise.
12730 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12732         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12733         with calls to gen_insvsi/gen_insvdi.
12735 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12737         * config/i386/i386.c (initial_ix86_tune_features): Set up
12738         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12740 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12741             Jakub Jelinek  <jakub@redhat.com>
12743         PR tree-optimization/48189
12744         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12745         If nitercst is 0, don't predict the exit edge.
12747 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12749         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12750         in asm_fprintf with reg_names.
12751         (aarch64_print_operand_address): Likewise.
12752         (aarch64_return_addr): Likewise.
12753         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12755 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12757         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12758         (INT_U6_BITS): Likewise.
12759         * config/pa/predicates.md (uint6_operand): New predicate.
12760         (shift5_operand, shift6_operand): Likewise.
12761         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12762         arith32_operand.
12763         (lshrdi3): Use shift6_operand.
12764         (shrpsi4, shrpdi4): New insn patterns.
12765         (extzv): Delete expander.
12766         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12767         predicates in unamed zero extract patterns.  Tighten common constraint.
12768         (extv): Delete expander.
12769         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12770         predicates in unamed sign extract patterns.  Tighten common constraint.
12771         (insv): Delete expander.
12772         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12773         predicates in unamed insert patterns.  Tighten common constraint.
12774         Change uint32_operand predicate to uint6_operand predicate in unamed
12775         DImode pattern to insert constant values of type 1...1xxxx.
12777 2013-01-04  Jan Hubicka  <jh@suse.cz>
12779         PR tree-optimization/55823
12780         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12781         issue.
12783 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12784             Uros Bizjak  <ubizjak@gmail.com>
12786         PR rtl-optimization/55845
12787         * df-problems.c (can_move_insns_across): Stop scanning at
12788         volatile_insn_p source instruction or give up if
12789         across_from .. across_to range contains any volatile_insn_p
12790         instructions.
12792 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12794         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12795         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12796         Declare.
12797         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12798         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12800 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12802         PR fortran/55341
12803         * asan.c (asan_clear_shadow): New function.
12804         (asan_emit_stack_protection): Use it.
12806 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12808         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12809         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12810         with tab instead of space.
12812 2013-01-08  Nick Clifton  <nickc@redhat.com>
12814         * config/rl78/rl78.c (rl78_expand_prologue): Always select
12815         register bank 0 at the start of an interrupt handler.
12816         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12817         MDBH registers.
12819 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12821         * config/aarch64/aarch64-simd.md
12822         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12823         (aarch64_simd_bsl): Likewise.
12824         (aarch64_vcond_internal<mode>): Likewise.
12825         (vcond<mode><mode>): Likewise.
12826         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12827         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12829 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12831         * config/aarch64/aarch64-builtins.c
12832         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12834 2013-01-08  Martin Jambor  <mjambor@suse.cz>
12836         PR debug/55579
12837         * tree-sra.c (analyze_access_subtree): Return true also after
12838         potentially creating a debug-only replacement.
12840 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12842         PR middle-end/55890
12843         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12845         PR tree-optimization/54120
12846         * tree-vrp.c (range_fits_type_p): Don't allow
12847         src_precision < precision from signed vr to unsigned_p
12848         if vr->min or vr->max is negative.
12849         (simplify_float_conversion_using_ranges): Test can_float_p
12850         against CODE_FOR_nothing.
12852 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12853             Richard Biener  <rguenther@suse.de>
12855         PR middle-end/55851
12856         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12857         types instead of just INTEGER_TYPE types.
12859 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
12861         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12862         TF_SIZE): Define.
12864 2013-01-07  Steve Ellcey  <sellcey@mips.com>
12866         PR target/42661
12867         * config/mips/mips.opt: Change mad to mmad to match documentation.
12869 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12871         PR target/55897
12872         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12873         .progmemx.data now.
12875 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12877         PR target/55897
12878         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12879         (avr_addrspace_t): Add .section_name field.
12880         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12881         array size.
12882         (avr_addrspace): Same.  Initialize .section_name.  Remove last
12883         NULL entry.  Put __memx into .progmemx.data.
12884         (progmem_section_prefix): Remove.
12885         (avr_asm_init_sections): No need to initialize progmem_section.
12886         (avr_asm_named_section): Use avr_addrspace[].section_name to get
12887         section name prefix.
12888         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
12889         retrieve the progmem section.
12890         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12891         boundary to run over avr_addrspace[].
12892         (avr_register_target_pragmas): Ditto.
12894 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
12896         * varasm.c (output_constant_def_contents): For asan_protect_global
12897         protected strings, adjust DECL_ALIGN if needed, before testing for
12898         anchored symbols.
12899         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12900         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
12901         normal decls.
12902         (output_object_block): For asan protected decls, emit asan padding
12903         after their contents.
12904         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12905         (asan_finish_file): Test it here instead.
12907 2013-01-07  Nick Clifton  <nickc@redhat.com>
12908             Matthias Klose  <doko@debian.org>
12909             Doug Kwan  <dougkwan@google.com>
12910             H.J. Lu  <hongjiu.lu@intel.com>
12912         PR driver/55470
12913         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12915         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12917         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12919         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12921         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12923 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12925         PR target/54461
12926         * doc/install.texi (Cross-Compiler-Specific Options): Document
12927         --with-avrlibc.
12929 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
12931         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12932         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12933         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12934         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12935         vqmovun_high_s64): Fix source operand number and update copyright.
12937 2013-01-07  Richard Biener  <rguenther@suse.de>
12939         PR middle-end/55890
12940         * gimple.h (gimple_call_builtin_p): New overload.
12941         * gimple.c (validate_call): New function.
12942         (gimple_call_builtin_p): Likewise.
12943         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12944         Use gimple_call_builtin_p.
12945         (find_func_clobbers): Likewise.
12946         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12947         (strlen_optimize_stmt): Likewise.
12949 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12951         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12952         (vld1q_dup_*): Likewise.
12953         (vld1_*): Likewise.
12954         (vld1q_*): Likewise.
12955         (vld1_lane_*): Likewise.
12956         (vld1q_lane_*): Likewise.
12958 2013-01-07  Richard Biener  <rguenther@suse.de>
12960         * lto-streamer.h (LTO_minor_version): Bump to 2.
12962 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12964         * config/aarch64/aarch64-protos.h
12965         (aarch64_const_double_zero_rtx_p): Rename to...
12966         (aarch64_float_const_zero_rtx_p): ...this.
12967         (aarch64_float_const_representable_p): New.
12968         (aarch64_output_simd_mov_immediate): Likewise.
12969         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12970         move immediate case.
12971         * config/aarch64/aarch64.c
12972         (aarch64_const_double_zero_rtx_p): Rename to...
12973         (aarch64_float_const_zero_rtx_p): ...this.
12974         (aarch64_print_operand): Allow printing of new constants.
12975         (aarch64_valid_floating_const): New.
12976         (aarch64_legitimate_constant_p): Check for valid floating-point
12977         constants.
12978         (aarch64_simd_valid_immediate): Likewise.
12979         (aarch64_vect_float_const_representable_p): New.
12980         (aarch64_float_const_representable_p): Likewise.
12981         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12982         (aarch64_output_simd_mov_immediate): New.
12983         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12984         (*movdf_aarch64): Likewise.
12985         * config/aarch64/constraints.md (Ufc): New.
12986         (Y): call aarch64_float_const_zero_rtx.
12987         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12989 2013-01-07  Richard Biener  <rguenther@suse.de>
12991         PR tree-optimization/55888
12992         PR tree-optimization/55862
12993         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12994         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12995         not if it is contained therein.
12997 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12999         * config/avr/t-avr: Typo.
13001 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13003         PR55243
13004         * config/avr/t-avr: Don't automatically rebuild
13005         $(srcdir)/config/avr/t-multilib
13006         $(srcdir)/config/avr/avr-tables.opt
13007         $(srcdir)/doc/avr-mmcu.texi
13008         (avr-mcus): New phony target to build them on request.
13009         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13010         * avr/avr-mcus.def: Adjust comments.
13012 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13014         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13016 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13018         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13020 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13022         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13024 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13026         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13027         to generate profiling.
13028         * config/rs6000/aix64.h (LIB_SPEC): Same.
13030 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13032         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13033         New function.
13034         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13036 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13038         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13039         unconditionally.
13040         (ix86_expand_move): Ditto.
13041         (ix86_zero_extend_to_Pmode): Ditto.
13042         (ix86_expand_call): Ditto.
13043         (ix86_expand_special_args_builtin): Ditto.
13044         (ix86_expand_builtin): Ditto.
13046 2013-01-04  Richard Biener  <rguenther@suse.de>
13048         PR tree-optimization/55862
13049         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13050         translating them through PHI nodes.
13052 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13054         PR tree-optimization/55755
13055         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13056         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13058 2013-01-04  Marek Polacek  <polacek@redhat.com>
13060         PR middle-end/55859
13061         * opts.c (default_options_optimization): Clarify error message.
13063 2013-01-04  Richard Biener  <rguenther@suse.de>
13065         PR middle-end/55863
13066         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13067         reassociation.
13069 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13071         PR target/53789
13072         * config/pa/pa.md (movsi): Revert previous change.
13073         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13074         references.
13076 2013-01-03  Richard Henderson  <rth@redhat.com>
13078         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13079         after eliminating TLS symbols.
13081 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13083         PR bootstrap/50167
13084         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13085         * graphite-poly.c (debug_gmp_value): Likewise.
13087 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13089         PR target/55712
13090         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13091         selected code model, define __code_mode_small__, __code_model_medium__,
13092         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13093         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13094         xchg temporary register with %k.  Declare temporary register as
13095         early clobbered.
13096         [__x86_64__]: For medium and large code models, preserve %rbx register.
13098 2013-01-03  Richard Biener  <rguenther@suse.de>
13100         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13101         (dump_subscript): Adjust.
13102         (finalize_ddr_dependent): Do not dump redundant info.
13103         (analyze_siv_subscript): Adjust.
13104         (subscript_dependence_tester): Likewise.
13105         (compute_affine_dependence): Likewise.
13107 2013-01-03  Richard Biener  <rguenther@suse.de>
13109         Revert
13110         2013-01-03  Richard Biener  <rguenther@suse.de>
13112         PR tree-optimization/55857
13113         * tree-vect-stmts.c (vectorizable_load): Do not setup
13114         re-alignment for invariant loads.
13116         2013-01-02  Richard Biener  <rguenther@suse.de>
13118         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13119         invariant load do not generate a vector load from the scalar location.
13121 2013-01-03  Richard Biener  <rguenther@suse.de>
13123         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13124         for not vectorizing.
13125         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13126         not build INDIRECT_REFs, call get_name once only.
13127         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13128         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13130 2013-01-03  Richard Biener  <rguenther@suse.de>
13132         PR tree-optimization/55857
13133         * tree-vect-stmts.c (vectorizable_load): Do not setup
13134         re-alignment for invariant loads.
13136 2013-01-03  Richard Biener  <rguenther@suse.de>
13138         PR lto/55848
13139         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13140         prefer a built-in decl.
13142 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13144         * gcc.c (process_command): Update copyright notice dates.
13145         * gcov.c (print_version): Likewise.
13146         * gcov-dump.c (print_version): Likewise.
13148         PR rtl-optimization/55838
13149         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13150         iv0.step, iv1.step and step.
13152 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13153             Marc Glisse  <marc.glisse@inria.fr>
13155         PR tree-optimization/55832
13156         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13157         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13158         integer_{one,zero}_node.
13160 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13162         PR debug/54402
13163         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13164         * var-tracking.c (reverse_op): Don't add reverse ops to
13165         VALUEs that have already
13166         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13168 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13170         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13172 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13174         * dumpfile.c (dump_loc): Print filename with location.
13175         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13176         new location_t parameter to emit complete unroll message with
13177         new dump framework.
13178         (canonicalize_loop_induction_variables): Compute loops location
13179         and pass to try_unroll_loop_completely.
13180         * loop-unroll.c (report_unroll_peel): New function.
13181         (peel_loops_completely): Use new dump format with location
13182         for main dumpfile message, and invoke report_unroll_peel on success.
13183         (decide_unrolling_and_peeling): Ditto.
13184         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13185         by report_unroll_peel.
13186         (decide_peel_completely): Ditto.
13187         (decide_unroll_constant_iterations): Ditto.
13188         (decide_unroll_runtime_iterations): Ditto.
13189         (decide_peel_simple): Ditto.
13190         (decide_unroll_stupid): Ditto.
13191         * cfgloop.c (get_loop_location): New function.
13192         * cfgloop.h (get_loop_location): Declare.
13194 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13196         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13197         NULL.
13199 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13201         PR middle-end/55198
13202         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13203         BLKmode objects when EXPAND_MEMORY is specified.
13205 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13207         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13208         in loop predicate.
13209         (fold_builtin_cpu): Do not share cpu model decls across statements.
13211 2013-01-02  Jason Merrill  <jason@redhat.com>
13213         PR c++/55804
13214         * tree.c (build_array_type_1): Revert earlier change.
13216 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13218         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13219         "cortex-a57".
13220         * config/aarch64/aarch64-tune.md: Re-generate.
13222 2013-01-02  Richard Biener  <rguenther@suse.de>
13224         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13225         invariant load do not generate a vector load from the scalar location.
13227 2013-01-02  Richard Biener  <rguenther@suse.de>
13229         PR bootstrap/55784
13230         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13231         * configure: Regenerate.
13233 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13235         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13236         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13237         (expand_builtin_int_roundingfn_2): Keep the original target around
13238         for the fallback case.
13240 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13242         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13243         to be clear for sign changes.
13245 2013-01-01  Jan Hubicka  <jh@suse.cz>
13247         * ipa-inline-analysis.c: Fix formatting.
13249 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13251         PR tree-optimization/55831
13252         * tree-vect-loop.c (get_initial_def_for_induction): Use
13253         gsi_after_labels instead of gsi_start_bb.
13255 Copyright (C) 2013 Free Software Foundation, Inc.
13257 Copying and distribution of this file, with or without modification,
13258 are permitted in any medium without royalty provided the copyright
13259 notice and this notice are preserved.