2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blobb0fa317f3c573c040514c83bdc53db8ae40cc2b1
1 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
3         PR bootstrap/57604
4         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
5         (lra_emit_add): Use the functions.  Add comment about Y as an
6         address segment.
8 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
10         PR driver/57652
11         * collect2.c (collect_atexit): New.
12         (collect_exit): Delete.
13         (main): Register collect_atexit with atexit.
14         (collect_wait): Change collect_exit to exit.
15         (do_wait): Same.
16         * collect2.h (collect_exit): Delete.
17         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
19 2013-06-19  Wei Mi  <wmi@google.com>
21         PR rtl-optimization/57518
22         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23         if regno is used in paradoxical subreg.
24         (update_equiv_regs): Check pdx_subregs[regno] before
25         set a reg to be equivalent with a mem.
27 2013-06-19  Matthias Klose  <doko@ubuntu.com>
29         PR driver/57651
30         * file-find.h (find_a_file): Add a mode parameter.
31         * file-find.c (find_a_file): Likewise.
32         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
33         with X_OK for the executables.
34         * collect2.c (main): Call find_a_file with X_OK.
36 2013-06-19  Steve Ellcey  <sellcey@mips.com>
38         PR target/56942
39         * config/mips/mips.md (casesi_internal_mips16_<mode>):
40         Use NEXT_INSN instead of next_real_insn.
42 2013-06-19  Jan Hubicka  <jh@suse.cz>
44         * cgraph.h (const_value_known_p): Replace by ...
45         (ctor_for_folding): .. this one.
46         * cgraphunit.c (process_function_and_variable_attributes): Use it.
47         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
48         * expr.c (expand_expr_real_1): Likewise.
49         (string_constant): Likewise.
50         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
51         * ipa.c (process_references): Likewise.
52         (symtab_remove_unreachable_nodes): Likewise.
53         * ipa-inline-analysis.c (param_change_prob): Likewise.
54         * gimple-fold.c (canonicalize_constructor_val): Likewise.
55         (get_base_constructor): Likwise.
56         * varpool.c (varpool_remove_node): Likewise.
57         (varpool_remove_initializer): LIkewise.
58         (dump_varpool_node): LIkwise.
59         (const_value_known_p): Rewrite to ...
60         (ctor_for_folding): ... this one.
62 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
64         PR driver/57651
65         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
66         PERSONALITY in $PATH derived prefixes.
68 2013-06-19  Jeff Law  <law@redhat.com>
70         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
71         in comment.
73         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
74         (simplify_bitwise_binary): Use it to simpify certain binary ops on
75         booleans.
77 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
79         * config/arm/vfp.md: Move VFP instruction classification documentation
80         to ...
81         * config/arm/arm.md: ... here.  Update instruction classification
82         documentation.
84 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
86         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
87         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
88         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
90 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
92         PR target/57609
93         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
94         with NEXT_INSN.  Use tablejump_p to check for jump table data
95         insns.
97 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
99         PR c++/56544
100         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
101         that now in C++ the value is correct per the C++ standards.
103 2013-06-19  Richard Biener  <rguenther@suse.de>
105         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
106         for global context.
108 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
110         Revert:
111         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
113         PR target/57609
114         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
115         with next_active_insn.
117 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
119         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
120         functions are inlined during failures to flag an error.
121         * tree-inline.c (expand_call_inline): Allow the error to be flagged
122         in early inline pass.
124 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
126         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
127         in comments.
129 2013-06-18  Julian Brown  <julian@codesourcery.com>
131         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
132         Permit virtual register pre-reload if !strict.
133         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
134         change.
135         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
136         prototype.
137         * config/arm/neon.md (movmisalign<mode>): Use
138         neon_perm_struct_or_reg_operand instead of
139         neon_struct_or_register_operand.
140         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
141         neon_permissive_struct_operand instead of neon_struct_operand.
142         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
143         neon_vector_mem_operand.
144         * config/arm/predicates.md (neon_struct_operand): Adjust call to
145         neon_vector_mem_operand.
146         (neon_permissive_struct_operand): New.
147         (neon_struct_or_register_operand): Rename to...
148         (neon_perm_struct_or_reg_operand): This. Adjust call to
149         neon_vector_mem_operand.
151 2013-06-18  Richard Biener  <rguenther@suse.de>
153         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
154         * lto-streamer.h: Include pointer-set.h.
155         (struct lto_decl_slot): Remove.
156         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
157         Remove next_index entry.
158         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
159         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
160         (lto_init_tree_ref_encoder): Adjust.
161         (lto_destroy_tree_ref_encoder): Likewise.
162         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
163         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
164         (lto_output_decl_index): Adjust.
165         (lto_new_out_decl_state): Likewise.
166         (lto_record_function_out_decl_state): Likewise.
167         * lto-streamer-out.c (copy_function): Likewise.
169 2013-06-18  Richard Biener  <rguenther@suse.de>
171         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
172         * cgraphunit.c: Include cfgloop.h.
173         (init_lowered_empty_function): Initialize the loop tree.
174         (assemble_thunk): Insert new BBs into loops.
176 2013-06-18  Richard Biener  <rguenther@suse.de>
178         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
179         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
180         the map from cache entry to cache index optional.
181         (streamer_tree_cache_replace_tree): Adjust accordingly.
182         (streamer_tree_cache_append): Likewise.
183         (streamer_tree_cache_delete): Likewise.
184         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
185         streamer cache map from cache entry to cache index.
186         * lto-streamer-out.c (create_output_block): Adjust.
188 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
190         * config/arm/arm.md (attribute "insn"): Move multiplication and
191         division attributes to...
192         (attribute "type"): ... here.  Remove mult.
193         (attribute "mul32"): New attribute.
194         (attribute "mul64"): Add umaal.
195         (*arm_mulsi3): Update attributes.
196         (*arm_mulsi3_v6): Likewise.
197         (*thumb_mulsi3): Likewise.
198         (*thumb_mulsi3_v6): Likewise.
199         (*mulsi3_compare0): Likewise.
200         (*mulsi3_compare0_v6): Likewise.
201         (*mulsi_compare0_scratch): Likewise.
202         (*mulsi_compare0_scratch_v6): Likewise.
203         (*mulsi3addsi): Likewise.
204         (*mulsi3addsi_v6): Likewise.
205         (*mulsi3addsi_compare0): Likewise.
206         (*mulsi3addsi_compare0_v6): Likewise.
207         (*mulsi3addsi_compare0_scratch): Likewise.
208         (*mulsi3addsi_compare0_scratch_v6): Likewise.
209         (*mulsi3subsi): Likewise.
210         (*mulsidi3adddi): Likewise.
211         (*mulsi3addsi_v6): Likewise.
212         (*mulsidi3adddi_v6): Likewise.
213         (*mulsidi3_nov6): Likewise.
214         (*mulsidi3_v6): Likewise.
215         (*umulsidi3_nov6): Likewise.
216         (*umulsidi3_v6): Likewise.
217         (*umulsidi3adddi): Likewise.
218         (*umulsidi3adddi_v6): Likewise.
219         (*smulsi3_highpart_nov6): Likewise.
220         (*smulsi3_highpart_v6): Likewise.
221         (*umulsi3_highpart_nov6): Likewise.
222         (*umulsi3_highpart_v6): Likewise.
223         (mulhisi3): Likewise.
224         (*mulhisi3tb): Likewise.
225         (*mulhisi3bt): Likewise.
226         (*mulhisi3tt): Likewise.
227         (maddhisi4): Likewise.
228         (*maddhisi4tb): Likewise.
229         (*maddhisi4tt): Likewise.
230         (maddhidi4): Likewise.
231         (*maddhidi4tb): Likewise.
232         (*maddhidi4tt): Likewise.
233         (divsi3): Likewise.
234         (udivsi3): Likewise.
235         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
236         (thumb2_mulsi_short_compare0): Likewise.
237         (thumb2_mulsi_short_compare0_scratch): Likewise.
238         * config/arm/arm1020e.md (1020mult1): Update attribute change.
239         (1020mult2): Likewise.
240         (1020mult3): Likewise.
241         (1020mult4): Likewise.
242         (1020mult5): Likewise.
243         (1020mult6): Likewise.
244         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
245         change.
246         (cortex_a15_mult64): Likewise.
247         (cortex_a15_sdiv): Likewise.
248         (cortex_a15_udiv): Likewise.
249         * config/arm/arm1026ejs.md (mult1): Update attribute change.
250         (mult2): Likewise.
251         (mult3): Likewise.
252         (mult4): Likewise.
253         (mult5): Likewise.
254         (mult6): Likewise.
255         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
256         (pj4_ir_div): Likewise.
257         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
258         (11_mult2): Likewise.
259         (11_mult3): Likewise.
260         (11_mult4): Likewise.
261         (11_mult5): Likewise.
262         (11_mult6): Likewise.
263         (11_mult7): Likewise.
264         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
265         (cortex_a8_mla): Likewise.
266         (cortex_a8_mull): Likewise.
267         (cortex_a8_smulwy): Likewise.
268         (cortex_a8_smlald): Likewise.
269         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
270         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
271         (cortex_r4_mul_3): Likewise.
272         (cortex_r4_mla_4): Likewise.
273         (cortex_r4_mla_3): Likewise.
274         (cortex_r4_smlald): Likewise.
275         (cortex_r4_mull): Likewise.
276         (cortex_r4_sdiv): Likewise.
277         (cortex_r4_udiv): Likewise.
278         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
279         (cortex_a7_idiv): Likewise.
280         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
281         (9_mult2): Likewise.
282         (9_mult3): Likewise.
283         (9_mult4): Likewise.
284         (9_mult5): Likewise.
285         (9_mult6): Likewise.
286         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
287         (cortex_a53_sdiv): Likewise.
288         (cortex_a53_udiv): Likewise.
289         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
290         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
291         (mp626_mult2): Likewise.
292         (mp626_mult3): Likewise.
293         (mp626_mult4): Likewise.
294         * config/arm/fa526.md (526_mult1): Update attribute change.
295         (526_mult2): Likewise.
296         * config/arm/arm-generic.md (mult): Update attribute change.
297         (mult_ldsched_strongarm): Likewise.
298         (mult_ldsched): Likewise.
299         (multi_cycle): Likewise.
300         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
301         * config/arm/fa606te.md (606te_mult1): Update attribute change.
302         (606te_mult2): Likewise.
303         (606te_mult3): Likewise.
304         (606te_mult4): Likewise.
305         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
306         (cortex_a9_mac16): Likewise.
307         (cortex_a9_multiply): Likewise.
308         (cortex_a9_mac): Likewise.
309         (cortex_a9_multiply_long): Likewise.
310         * config/arm/fa626te.md (626te_mult1): Update attribute change.
311         (626te_mult2): Likewise.
312         (626te_mult3): Likewise.
313         (626te_mult4): Likewise.
315 2013-06-18  Richard Biener  <rguenther@suse.de>
317         PR lto/57334
318         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
320 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
322         PR target/57609
323         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
324         with next_active_insn.
326 2013-06-18  Alan Modra  <amodra@gmail.com>
328         * config/rs6000/rs6000.h (enum data_align): New.
329         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
330         (DATA_ABI_ALIGNMENT): Define.
331         (CONSTANT_ALIGNMENT): Correct comment.
332         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
333         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
335 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
337         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
338         ATTRIBUTE_UNUSED marking.
340 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
342         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
343         alternative and update.
344         (aarch64_dup_lanedi): Delete.
345         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
346         * config/aarch64/aarch64-simd-builtins.def: Update.
348 2013-06-17  Richard Biener  <rguenther@suse.de>
350         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
351         (lto_input_scc): Declare.
352         (lto_input_tree_1): Likewise.
353         (struct lto_stats_d): Add num_tree_bodies_output and
354         num_pickle_refs_output.
355         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
356         (lto_read_tree_1): Split out from ...
357         (lto_read_tree): ... this.
358         (lto_input_scc): New function.
359         (lto_input_tree_1): Split out from ...
360         (lto_input_tree): ... this.  Handle LTO_tree_scc.
361         (lto_data_in_create): Create the streamer cache without hashes.
362         * lto-streamer-out.c (create_output_block): Create the streamer
363         cache with hashes when not doing WPA.
364         (lto_write_tree_1): Split out from ...
365         (lto_write_tree): ... this.
366         (get_symbol_initial_value): New function.
367         (lto_output_tree_1): Split out from ...
368         (lto_output_tree): ... this.  Write trees as series of SCCs
369         using a DFS walk via DFS_write_tree.
370         (struct sccs, struct scc_entry): New types.
371         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
372         (DFS_write_tree_body): New function.
373         (DFS_write_tree): Likewise.
374         (hash_tree): Likewise.
375         (scc_entry_compare): Likewise.
376         (hash_scc): Likewise.
377         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
378         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
379         TREE_CHAIN as regular reference.
380         (streamer_read_integer_cst): Remove.
381         (streamer_get_pickled_tree): Adjust.
382         * tree-streamer-out.c (streamer_write_chain): Disable streaming
383         of DECL_EXTERNALs in BLOCK_VARS for now.
384         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
385         reference.
386         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
387         Add hash value argument and record that if hashes are recorded
388         in the cache.
389         (streamer_tree_cache_insert_1): Adjust.
390         (streamer_tree_cache_insert): Likewise.
391         (streamer_tree_cache_insert_at): Rename to ...
392         (streamer_tree_cache_replace_tree): ... this and adjust.
393         (streamer_tree_cache_append): Adjust.
394         (record_common_node): Likewise.
395         (streamer_tree_cache_create): Add argument whether to
396         record hash values together with trees.
397         (streamer_tree_cache_delete): Adjust.
398         * tree-streamer.h (struct streamer_tree_cache_d): Add
399         vector of hashes.
400         (streamer_read_integer_cst): Remove.
401         (streamer_tree_cache_insert): Adjust.
402         (streamer_tree_cache_append): Likewise.
403         (streamer_tree_cache_insert_at): Rename to ...
404         (streamer_tree_cache_replace_tree): ... this and adjust.
405         (streamer_tree_cache_create): Add argument whether to record hashes.
406         (streamer_tree_cache_get): Rename to ...
407         (streamer_tree_cache_get_tree): ... this.
408         (streamer_tree_cache_get_hash): New function.
409         * tree.c (cache_integer_cst): New function.
410         * tree.h (cache_integer_cst): Declare.
411         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
412         * lto-symtab.c (lto_varpool_replace_node): Only release
413         DECL_INITIAL of non-prevailing decls.
414         * varpool.c (varpool_remove_initializer): Do not release
415         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
417 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
419         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
420         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
421         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
422         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
423         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
424         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
425         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
426         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
427         instead of TARGET_64BIT.
428         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
429         Require ISA_HAS_<D>DIV.
431 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
433         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
434         (mips*-*-linux*): Move default with_llsc setting to where other
435         defaults are set.
436         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
437         with_arch block.
438         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
439         Likewise.  Remove default with_tune setting.  Move default float
440         setting to its own block.  Handle with_llsc in the same block as above.
442 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
444         PR rtl-optimization/57425
445         PR rtl-optimization/57569
446         * alias.c (write_dependence_p): Add new parameters mem_mode,
447         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
448         Changed all callers.
449         (canon_anti_dependence): New function.
450         * cse.c (check_dependence): Use canon_anti_dependence.
451         * cselib.c (cselib_invalidate_mem): Likewise.
452         * rtl.h (canon_anti_dependence): Declare.
454 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
456         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
457         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
458         ".set mips3" for 64-bit targets.
460 2013-06-15  Dehao Chen  <dehao@google.com>
462         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
463         * gimple-low.c (gimple_check_call_matching_types): Likewise.
464         (gimple_check_call_args): Likewise.
465         * value-prof.c (check_ic_target): Likewise.
466         * ipa-inline.c (early_inliner): Likewise.
467         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
468         * cgraph.c (cgraph_create_edge_1): Likewise.
469         (cgraph_make_edge_direct): Likewise.
471 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
473         PR target/57615
474         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
475         rs6000_output_move_128bit to handle emitting quad memory
476         operations.  Set attribute length to 8 bytes.
478 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
480         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
481         New pattern.
482         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
483         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
484         (aarch64_<su>mlsl<mode>): Likewise.
486 2013-06-14  Mike Stump  <mikestump@comcast.net>
488         * Makefile.in (TARGET_H): Add insn-codes.h.
490 2013-06-14  Alan Modra  <amodra@gmail.com>
492         PR middle-end/57134
493         PR middle-end/57586
494         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
495         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
496         bitfield expansion when EXPAND_MEMORY.
497         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
499 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
501         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
502         test for clearing quad memory on 32-bit later.
504 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
506         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
507         (fold_negate_expr): Likewise.
508         (fold_real_zero_addition_p): Handle vectors.
509         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
511 2013-06-14  Alan Modra  <amodra@gmail.com>
513         * varasm.c (force_const_mem): Revert 2013-06-07 change.
515 2013-06-13  Jan Hubicka  <jh@suse.cz>
517         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
518         Local comdats are not externally visible.
519         * symtab.c (dump_symtab_base): Dump externally visible.
520         (verify_symtab_base): Verify back links in the symtab hash.
522 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
524         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
525         CONVERT_EXPR as equal nodes.
527 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
529         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
531 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
533         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
534         Generalize to complex and vector.
535         * tree.c (build_all_ones_cst): New function.
536         * tree.h (build_all_ones_cst): Declare it.
538 2013-06-13  Alan Modra  <amodra@gmail.com>
540         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
541         * config/rs6000/rs6000.md (signbittf2): New insn.
542         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
543         (abstf2_internal, cmptf_internal2): Likewise.
544         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
546 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
547             Pat Haugen <pthaugen@us.ibm.com>
548             Peter Bergner <bergner@vnet.ibm.com>
550         * config/rs6000/rs6000.c (emit_load_locked): Add support for
551         power8 byte, half-word, and quad-word atomic instructions.
552         (emit_store_conditional): Likewise.
553         (rs6000_expand_atomic_compare_and_swap): Likewise.
554         (rs6000_expand_atomic_op): Likewise.
556         * config/rs6000/sync.md (larx): Add new modes for power8.
557         (stcx): Likewise.
558         (AINT): New mode iterator to include TImode as well as normal
559         integer modes on power8.
560         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
561         that VSX registers are not considered.  Use AINT mode iterator
562         instead of INT1 to allow inclusion of quad word atomic operations
563         on power8.
564         (load_locked<mode>): Likewise.
565         (store_conditional<mode>): Likewise.
566         (atomic_compare_and_swap<mode>): Likewise.
567         (atomic_exchange<mode>): Likewise.
568         (atomic_nand<mode>): Likewise.
569         (atomic_fetch_<fetchop_name><mode>): Likewise.
570         (atomic_nand_fetch<mode>): Likewise.
571         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
572         each type.
573         (ATOMIC): On power8, add QImode, HImode modes.
574         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
575         modes that promote to SImode.
576         (load_lockedti): Convert TImode arguments to PTImode, so that we
577         get a guaranteed even/odd register pair.
578         (load_lockedpti): Likewise.
579         (store_conditionalti): Likewise.
580         (store_conditionalpti): Likewise.
582         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
583         atomic load/store instructions.
584         (HSI): Likewise.
586 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
588         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
589         loads.
590         (insn_count): New attribute, with most cases extracted from...
591         (length): ...here.  Redefine most cases in terms of insn_count.
592         (single_insn): Delete.
593         (can_delay): Use insn_count to check for single instructions.
594         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
595         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
596         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
597         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
598         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
599         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
600         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
601         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
602         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
603         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
604         rather than "length".
605         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
606         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
607         Use "insn_count" rather than "length".
608         * config/mips/mips-dsp.md
609         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
610         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
611         length attributes.
613 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
615         PR tree-optimization/57361
616         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
618 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
620         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
621         to split.
622         (aarch64_simd_combine<mode>): New instruction expansion.
623         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
624         function prototype.
625         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
626         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
628 2013-06-12  Jan Hubicka  <jh@suse.cz>
630         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
631         decl has when in streaming stage.
632         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
633         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
635 2013-06-12  Roland Stigge <stigge@antcom.de>
637         PR target/57578
638         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
640 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
642         PR tree-optimization/57537
643         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
644         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
646 2013-06-12  Richard Biener  <rguenther@suse.de>
648         * data-streamer.h (streamer_write_char_stream): CSE
649         obs->current_pointer.
650         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
651         streamer_write_char_stream manually and optimize the resulting loop.
652         (streamer_write_hwi_stream): Likewise.
654 2013-06-12  Jan Hubicka  <jh@suse.cz>
656         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
657         * cgraph.h (varpool_create_empty_node): Declare.
658         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
659         duplicated nodes.
660         * symtab.c (symtab_unregister_node): Be lax about missin entries
661         in node hash.
662         (symtab_get_node): Update comment.
663         * varpool.c (varpool_create_empty_node): Break out from ...
664         (varpool_node_for_decl): ... here.
665         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
667 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
669         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
670         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
671         part.  Use straight-line flow at the end.
672         <COMPONENT_REF>: Remove superfluous else.
673         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
675 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
677         PR target/56564
678         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
679         target hook even for !TREE_PUBLIC decls.  If no resolution info
680         is available, return false for common and external decls.
682 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
684         * config/rl78/constraints.md (U): New constraint.
685         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
686         valloc attribute.
688 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
690         PR target/57589
691         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
692         to allow returning address to AT_PLATFORM name.
694 2013-06-11  Jan Hubicka  <jh@suse.cz>
696         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
697         * cgraph.h (symtab_node_base): Add weakref flag.
698         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
699         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
700         (output_weakrefs): Use weakref flag.
701         * fold-const.c (simple_operand_p): Handle WEAK.
702         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
703         * ipa.c (varpool_externally_visible_p): Drop weakref.
704         (function_and_variable_visibility): Update comment; fix weakref
705         sanity checks; do not clear DECL_WEAK on them.
706         * lto-cgraph.c (lto_output_node): update.
707         (lto_output_varpool_node): Update.
708         (input_overwrite_node): Update.
709         (input_node): Update.
710         (input_varpool_node): Update.
711         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
712         (lto_symtab_merge_symbols): Add sanity check.
713         (lto_symtab_prevailing_decl): Do not special case weakrefs.
714         * passes.c (rest_of_decl_compilation): Set static flag, too.
715         * symtab.c (dump_symtab_base): Dump weakref.
716         (verify_symtab_base): Sanity check weakrefs.
717         (symtab_make_decl_local): Remove duplicated code.
718         (symtab_alias_ultimate_target): Simplify.
719         * varpool.c (varpool_create_variable_alias): Set weakref flag.
721 2013-06-11  DJ Delorie  <dj@redhat.com>
723         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
724         (rl78_unwind_word_mode): New.
726 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
728         * final.c (debug_prefix_maps): Make static.
730 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
732         * function.c (initial_trampoline): Remove stray copy.
734 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
736         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
738 2013-06-11  Martin Jambor  <mjambor@suse.cz>
740         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
741         within bounds at the beginning of the function.
743 2013-06-11  Alan Modra  <amodra@gmail.com>
745         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
746         reporting.
747         (get_named_section): Don't NULL !DECL_P decl.
749 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
751         * doc/invoke.texi (core-avx2): Document.
752         (slm): Likewise.
753         (atom): Updated with MOVBE.
755 2013-06-11  Richard Biener  <rguenther@suse.de>
757         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
759 2013-06-11  Anton Blanchard  <anton@samba.org>
761         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
762         correct shift value in little-endian mode.
764 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
766         PR target/56564
767         * varasm.c (get_variable_align): Move #endif to the right place.
769 2013-06-10  Cary Coutant  <ccoutant@google.com>
771         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
772         for hash so that hash table traversal order is deterministic.
774 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
775             Pat Haugen <pthaugen@us.ibm.com>
776             Peter Bergner <bergner@vnet.ibm.com>
778         * config/rs6000/vector.md (GPR move splitter): Do not split moves
779         of vectors in GPRS if they are direct moves or quad word load or
780         store moves.
782         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
783         declaration.
784         (direct_move_p): Likewise.
785         (quad_load_store_p): Likewise.
787         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
788         classes into bins based on the physical register type.
789         (reg_class_to_reg_type): Likewise.
790         (IS_STD_REG_TYPE): Likewise.
791         (IS_FP_VECT_REG_TYPE): Likewise.
792         (reload_fpr_gpr): Arrays to determine what insn to use if we can
793         use direct move instructions.
794         (reload_gpr_vsx): Likewise.
795         (reload_vsx_gpr): Likewise.
796         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
797         information that is a simplification of register classes.  Also
798         precalculate direct move reload helpers.
799         (direct_move_p): New function to return true if the operation can
800         be done as a direct move instruciton.
801         (quad_load_store_p): New function to return true if the operation
802         is a quad memory operation.
803         (rs6000_legitimize_address): If quad memory, only allow register
804         indirect for TImode addresses.
805         (rs6000_legitimate_address_p): Likewise.
806         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
807         (rs6000_reload_register_type): Likewise.
808         (register_to_reg_type): Return register type.
809         (rs6000_secondary_reload_simple_move): New helper function for
810         secondary reload and secondary memory needed to identify anything
811         that is a simple move, and does not need reloading.
812         (rs6000_secondary_reload_direct_move): New helper function for
813         secondary reload to identify cases that can be done with several
814         instructions via the direct move instructions.
815         (rs6000_secondary_reload_move): New helper function for secondary
816         reload to identify moves between register types that can be done.
817         (rs6000_secondary_reload): Add support for quad memory operations
818         and for direct move.
819         (rs6000_secondary_memory_needed): Likewise.
820         (rs6000_debug_secondary_memory_needed): Change argument names.
821         (rs6000_output_move_128bit): New function to return the move to
822         use for 128-bit moves, including knowing about the various
823         limitations of quad memory operations.
825         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
826         memory operations.  call rs6000_output_move_128bit for the actual
827         instruciton(s) to generate.
828         (vsx_movti_64bit): Likewise.
830         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
831         (UNSPEC_P8V_MTVSRWZ): Likewise.
832         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
833         (UNSPEC_P8V_MTVSRD): Likewise.
834         (UNSPEC_P8V_XXPERMDI): Likewise.
835         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
836         (UNSPEC_FUSION_GPR): Likewise.
837         (FMOVE128_GPR): New iterator for direct move.
838         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
839         (f32_sv): Likewise.
840         (f32_dm): Likewise.
841         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
842         loads and direct move instructions.
843         (zero_extendsidi2_lfiwzx): Likewise.
844         (extendsidi2_lfiwax): Likewise.
845         (extendsidi2_nocell): Likewise.
846         (floatsi<mode>2_lfiwax): Likewise.
847         (lfiwax): Likewise.
848         (floatunssi<mode>2_lfiwzx): Likewise.
849         (lfiwzx): Likewise.
850         (fix_trunc<mode>_stfiwx): Likewise.
851         (fixuns_trunc<mode>_stfiwx): Likewise.
852         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
853         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
854         (parity<mode>2_cmpb): Set length/type attr.
855         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
856         for 'mr.' to fast_compare.
857         (bpermd_<mode>): Change type attr to popcnt.
858         (p8_fmrgow_<mode>): New insns for power8 direct move support.
859         (p8_mtvsrwz_1): Likewise.
860         (p8_mtvsrwz_2): Likewise.
861         (reload_fpr_from_gpr<mode>): Likewise.
862         (p8_mtvsrd_1): Likewise.
863         (p8_mtvsrd_2): Likewise.
864         (p8_xxpermdi_<mode>): Likewise.
865         (reload_vsx_from_gpr<mode>): Likewise.
866         (reload_vsx_from_gprsf): Likewise.
867         (p8_mfvsrd_3_<mode>): LIkewise.
868         (reload_gpr_from_vsx<mode>): Likewise.
869         (reload_gpr_from_vsxsf): Likewise.
870         (p8_mfvsrd_4_disf): Likewise.
871         (multi-word GPR splits): Do not split direct moves or quad memory
872         operations.
874 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
876         * tree-into-ssa.c (interesting_blocks): Make static.
878 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
880         PR target/56564
881         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
882         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
883         Use DATA_ABI_ALIGNMENT for that case instead if defined.
884         (get_variable_align): New function.
885         (get_variable_section, emit_bss, emit_common,
886         assemble_variable_contents, place_block_symbol): Use
887         get_variable_align instead of DECL_ALIGN.
888         (assemble_noswitch_variable): Add align argument, use it
889         instead of DECL_ALIGN.
890         (assemble_variable): Adjust caller.  Use get_variable_align
891         instead of DECL_ALIGN.
892         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
893         caller.
894         (DATA_ABI_ALIGNMENT): Define.
895         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
896         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
897         opt is false, only return the psABI mandated alignment increase.
898         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
899         (DATA_ABI_ALIGNMENT): ... this.
900         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
901         (DATA_ABI_ALIGNMENT): ... this.
902         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
903         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
904         (DATA_ABI_ALIGNMENT): ... this.
905         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
906         * doc/tm.texi: Regenerated.
908 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
910         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
911         cmp_code to construct REG_EQUAL note.
913 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
915         PR target/57568
916         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
917         that operands[2] doesn't overlap with operands[0].
919 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
920             Jan Hubicka  <jh@suse.cz>
922         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
923         hack to mark symbols as used.
925 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
927         PR rtl-optimization/57559
928         * lra-constraints.c (process_alt_operands): Don't discourage
929         memory with known offset for offsetable memory constraint.
930         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
932 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
934         * varasm.c (struct oc_local_state): Reorder fields.
935         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
936         and adjust accordingly.
937         (output_constructor): Reorder initialization code and adjust call to
938         output_constructor_bitfield.
940 2013-06-07  Jan Hubicka  <jh@suse.cz>
942         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
944 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
946         * tree-object-size.c (unknown): Make const.
948 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
950         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
951         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
952         for last alternative in the cpu_facility attribute.
954 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
956         PR target/56315
957         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
958         (xordi3): Change operand 2 constraint to arm_xordi_operand.
959         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
960         * config/arm/constraints.md (Dg): New constraint.
961         * config/arm/neon.md (xordi3_neon): Remove.
962         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
963         * config/arm/predicates.md (arm_xordi_operand): New predicate.
965 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
967         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
968         Clean up alternatives.
970 2013-06-07  Alan Modra  <amodra@gmail.com>
972         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
973         va_list_gpr_size.
975 2013-06-07  Alan Modra  <amodra@gmail.com>
977         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
979 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
981         * config/arm/constraints.md (Df): New constraint.
982         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
983         Correct length attribute for last two alternatives.
985 2013-06-07  Alan Modra  <amodra@gmail.com>
987         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
988         override user -mfp-in-toc.
989         (offsettable_ok_by_alignment): Consider just the current access
990         rather than the whole object, unless BLKmode.  Handle
991         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
992         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
993         for -mcmodel=medium.
994         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
995         override user -mfp-in-toc or -msum-in-toc.  Default to
996         -mno-fp-in-toc for -mcmodel=medium.
998 2013-06-06  DJ Delorie  <dj@redhat.com>
1000         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1001         TARGET_VALID_POINTER_MODE.
1003 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1004             Pat Haugen <pthaugen@us.ibm.com>
1005             Peter Bergner <bergner@vnet.ibm.com>
1007         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1008         Document new power8 builtins.
1010         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1011         condition code register, to allow 128-bit logical operations to be
1012         done in the VSX or GPR registers.
1013         (nor<mode>3): Use the canonical form for nor.
1014         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1015         vclz*, and vpopcnt* vector instructions.
1016         (nand<mode>3): Likewise.
1017         (orc<mode>3): Likewise.
1018         (clz<mode>2): LIkewise.
1019         (popcount<mode>2): Likewise.
1021         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1022         that only the GPRs are recognized.
1024         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1025         support for new power8 builtins.
1027         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1028         builtin functions.
1029         (xscvdpspn): Likewise.
1030         (vclz): Likewise.
1031         (vclzb): Likewise.
1032         (vclzh): Likewise.
1033         (vclzw): Likewise.
1034         (vclzd): Likewise.
1035         (vpopcnt): Likewise.
1036         (vpopcntb): Likewise.
1037         (vpopcnth): Likewise.
1038         (vpopcntw): Likewise.
1039         (vpopcntd): Likewise.
1040         (vgbbd): Likewise.
1041         (vmrgew): Likewise.
1042         (vmrgow): Likewise.
1043         (eqv): Likewise.
1044         (eqv_v16qi3): Likewise.
1045         (eqv_v8hi3): Likewise.
1046         (eqv_v4si3): Likewise.
1047         (eqv_v2di3): Likewise.
1048         (eqv_v4sf3): Likewise.
1049         (eqv_v2df3): Likewise.
1050         (nand): Likewise.
1051         (nand_v16qi3): Likewise.
1052         (nand_v8hi3): Likewise.
1053         (nand_v4si3): Likewise.
1054         (nand_v2di3): Likewise.
1055         (nand_v4sf3): Likewise.
1056         (nand_v2df3): Likewise.
1057         (orc): Likewise.
1058         (orc_v16qi3): Likewise.
1059         (orc_v8hi3): Likewise.
1060         (orc_v4si3): Likewise.
1061         (orc_v2di3): Likewise.
1062         (orc_v4sf3): Likewise.
1063         (orc_v2df3): Likewise.
1065         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1066         allow power8 quad mode in 64-bit.
1067         (rs6000_builtin_vectorized_function): Add support to vectorize
1068         ISA 2.07 count leading zeros, population count builtins.
1069         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1070         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1071         (builtin_function_type): Add vgbbd builtin function which takes an
1072         unsigned argument.
1073         (altivec_expand_vec_perm_const): Add support for new power8 merge
1074         instructions.
1076         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1077         that does not include TImdoe for use with 32-bit.
1078         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1079         instructions.
1080         (UNSPEC_VSX_CVDPSPN): Likewise.
1081         (vsx_xscvdpspn): Likewise.
1082         (vsx_xscvspdpn): Likewise.
1083         (vsx_xscvdpspn_scalar): Likewise.
1084         (vsx_xscvspdpn_directmove): Likewise.
1085         (vsx_and<mode>3): Split logical operations into 32-bit and
1086         64-bit. Add support to do logical operations on TImode as well as
1087         VSX vector types.  Allow logical operations to be done in either
1088         VSX registers or in general purpose registers in 64-bit mode.  Add
1089         splitters if GPRs were used. For AND, add clobber of CCmode to
1090         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1091         encoding.
1092         (vsx_and<mode>3_32bit): Likewise.
1093         (vsx_and<mode>3_64bit): Likewise.
1094         (vsx_ior<mode>3): Likewise.
1095         (vsx_ior<mode>3_32bit): Likewise.
1096         (vsx_ior<mode>3_64bit): Likewise.
1097         (vsx_xor<mode>3): Likewise.
1098         (vsx_xor<mode>3_32bit): Likewise.
1099         (vsx_xor<mode>3_64bit): Likewise.
1100         (vsx_one_cmpl<mode>2): Likewise.
1101         (vsx_one_cmpl<mode>2_32bit): Likewise.
1102         (vsx_one_cmpl<mode>2_64bit): Likewise.
1103         (vsx_nor<mode>3): Likewise.
1104         (vsx_nor<mode>3_32bit): Likewise.
1105         (vsx_nor<mode>3_64bit): Likewise.
1106         (vsx_andc<mode>3): Likewise.
1107         (vsx_andc<mode>3_32bit): Likewise.
1108         (vsx_andc<mode>3_64bit): Likewise.
1109         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1110         and xxlorc instructions.
1111         (vsx_eqv<mode>3_64bit): Likewise.
1112         (vsx_nand<mode>3_32bit): Likewise.
1113         (vsx_nand<mode>3_64bit): Likewise.
1114         (vsx_orc<mode>3_32bit): Likewise.
1115         (vsx_orc<mode>3_64bit): Likewise.
1117         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1119         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1120         instruction.
1121         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1122         (p8_vmrgow): Likewise.
1123         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1124         GPRs to be split under VSX.
1125         (p8v_clz<mode>2): Add power8 count leading zero support.
1126         (p8v_popcount<mode>2): Add power8 population count support.
1127         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1128         support.
1130         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1131         instruction.
1133         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1134         builtin functions.
1135         (vec_nand): Likewise.
1136         (vec_vclz): Likewise.
1137         (vec_vclzb): Likewise.
1138         (vec_vclzd): Likewise.
1139         (vec_vclzh): Likewise.
1140         (vec_vclzw): Likewise.
1141         (vec_vgbbd): Likewise.
1142         (vec_vmrgew): Likewise.
1143         (vec_vmrgow): Likewise.
1144         (vec_vpopcnt): Likewise.
1145         (vec_vpopcntb): Likewise.
1146         (vec_vpopcntd): Likewise.
1147         (vec_vpopcnth): Likewise.
1148         (vec_vpopcntw): Likewise.
1150 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1152         PR rtl-optimization/57468
1153         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1154         spilled pseudos.
1156 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1158         PR rtl-optimization/57459
1159         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1160         type when setting live regs.
1162 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1164         * config/s390/s390.opt (mlra): New option.
1165         * config/s390/s390.c (s390_decompose_address): Check displacement
1166         for all registers for LRA.
1167         (s390_secondary_reload): Don't used secondary reloads for LRA.
1168         (s390_lra_p): New function.
1169         (TARGET_LRA_P): Define.
1170         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1171         of attribute cpu_facility to zarch for the last alternative.
1172         (*cmpmem_short): Ditto.
1174 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1176         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1177         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1178         (arm_expand_prologue): Likewise.
1180 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1182         PR c++/53743
1183         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1184         as this is now done by redirect_edge_and_branch_force.
1185         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1186         barriers, and fix interaction with splitting.
1187         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1188         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1189         reflect changes made in the routine.
1190         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1191         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1192         since this is called in cfglayout mode, and replace partition fixup
1193         with assert as that is now done by force_nonfallthru_and_redirect.
1194         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1195         already be marked with region crossing note.
1196         (insert_section_boundary_note): Make non-static, gate on flag
1197         has_bb_partition, rewrite to also check for multiple partitions.
1198         (rest_of_handle_reorder_blocks): Remove call to
1199         insert_section_boundary_note, now done later during free_cfg.
1200         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1201         * bb-reorder.h (insert_section_boundary_note): Declare.
1202         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1203         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1204         invoke insert_section_boundary_note.
1205         (try_redirect_by_replacing_jump): Remove unnecessary
1206         check for region crossing note.
1207         (fixup_partition_crossing): New function.
1208         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1209         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1210         in non-cfglayout mode.
1211         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1212         remove old code that tried to do this. Emit barrier correctly
1213         when we are in cfglayout mode.
1214         (last_bb_in_partition): New function.
1215         (rtl_split_edge): Correctly fixup partition boundaries.
1216         (commit_one_edge_insertion): Remove old code that tried to
1217         fixup region crossing edge since this is now handled in
1218         split_block, and set up insertion point correctly since
1219         block may now end in a jump.
1220         (verify_hot_cold_block_grouping): Guard against checking when not in
1221         linearized RTL mode.
1222         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1223         notes.
1224         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1225         rtl_verify_flow_info, so not called in cfglayout mode.
1226         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1227         (fixup_reorder_chain): Remove old code that attempted to fixup region
1228         crossing note as this is now handled in force_nonfallthru_and_redirect.
1229         (duplicate_insn_chain): Don't duplicate switch section notes.
1230         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1231         note.
1232         * basic-block.h (emit_barrier_after_bb): Declare.
1234 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1236         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1237         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1238         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1240 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1242         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1243         where appropriate.
1244         * config/arm/ldmstm.md: Regenerate.
1246 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1248         * config/arm/sync.md (atomic_loaddi_1):
1249         Disable predication for arm_restrict_it.
1250         (arm_load_exclusive<mode>): Likewise.
1251         (arm_load_exclusivesi): Likewise.
1252         (arm_load_exclusivedi): Likewise.
1253         (arm_load_acquire_exclusive<mode>): Likewise.
1254         (arm_load_acquire_exclusivesi): Likewise.
1255         (arm_load_acquire_exclusivedi): Likewise.
1256         (arm_store_exclusive<mode>): Likewise.
1257         (arm_store_exclusive<mode>): Likewise.
1258         (arm_store_release_exclusivedi): Likewise.
1259         (arm_store_release_exclusive<mode>): Likewise.
1261 2013-06-06  Richard Biener  <rguenther@suse.de>
1263         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1264         after LTO_null.
1265         (lto_tag_is_tree_code_p): Adjust.
1266         (lto_tag_is_gimple_code_p): Likewise.
1267         (lto_gimple_code_to_tag): Likewise.
1268         (lto_tag_to_gimple_code): Likewise.
1269         (lto_tree_code_to_tag): Likewise.
1270         (lto_tag_to_tree_code): Likewise.
1271         * data-streamer.h (streamer_write_hwi_in_range): Use
1272         uhwi streaming to stream the normalized range.
1273         (streamer_read_hwi_in_range): Likewise.
1275 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1277         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1278         (predicable_short_it): Likewise.
1279         (predicated): Likewise.
1280         (enabled): Handle above.
1281         (define_cond_exec): Set predicated attribute to yes.
1283 2013-06-05  Mike Stump  <mikestump@comcast.net>
1285         * gdbinit.in (__FUNCTION__): Add.
1287 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1289         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1290         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1292 2013-06-05  Jan Hubicka  <jh@suse.cz>
1294         * varasm.c (mark_decl_referenced): Revert the removal until targets
1295         are fixed.
1297 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1299         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1300         instead of mark_decl_referenced.
1302 2013-06-05  Jan Hubicka  <jh@suse.cz>
1304         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1305         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1306         and symtab_used_from_object_file_p.
1307         (cgraph_make_node_local_1): Clear forced_by_abi.
1308         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1309         * cgraph.h (symtab_node_base): Add forced_by_abi.
1310         (decide_is_variable_needed): Remove.
1311         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1312         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1313         (decide_is_symbol_needed): ... this one; handle symbols in general;
1314         always analyze virtuals; honnor forced_by_abi.
1315         (cgraph_finalize_function): Update.
1316         (varpool_finalize_decl): Update.
1317         (symbol_defined_and_needed): Remove.
1318         (analyze_functions): Update.
1319         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1320         output_refs, input_overwrite_node): Handle forced_by_abi.
1321         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1322         (address_taken_from_non_vtable_p): ... this one.
1323         (comdat_can_be_unshared_p_1): New function.
1324         (cgraph_comdat_can_be_unshared_p): Rename to ...
1325         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1326         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1327         (function_and_variable_visibility): Clear forced_by_abi as needed.
1328         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1329         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1330         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1331         * varpool.c (decide_is_variable_needed): Remove.
1333 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1335         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1336         (arm_option_override): Override arm_restrict_it where appropriate.
1337         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1338         * config/arm/arm.opt (mrestrict-it): New command-line option.
1339         * doc/invoke.texi: Document -mrestrict-it.
1341 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1343         * tsan.c (tsan_atomic_table): Make const.
1345 2013-06-05  Richard Biener  <rguenther@suse.de>
1347         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1348         index associated with the tree we are supposed to replace.
1349         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1350         TREE_ASM_WRITTEN as zero for everything but SSA names.
1352 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1354         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1356 2013-06-04  Jan Hubicka  <jh@suse.cz>
1358         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1359         (input_node, input_varpool_node): Handle correctly external same
1360         body aliases.
1361         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1362         nodes at ltrans stage.
1364 2013-06-04  Jan Hubicka  <jh@suse.cz>
1366         * ipa-inline.c (update_caller_keys): Fix availability test.
1367         (update_callee_keys): Likewise.
1368         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1369         to follow ELF standard.
1371 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1373         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1374         (mips64r5900el-*-elf*): New configurations.
1375         * config/mips/mips-cpus.def (r5900): New processor.
1376         * config/mips/mips-tables.opt: Regenerate.
1377         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1378         (mips_issue_rate): Handle PROCESSOR_R5900.
1379         (mips_reorg_process_insns): Force reorder mode for the R5900.
1380         * config/mips/mips.h (TARGET_MIPS5900): Define.
1381         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1382         TARGET_MIPS5900.
1383         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1384         TARGET_MIPS5900.
1385         * config/mips/mips.md (processor): Add r5900.
1386         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1388 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1390         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1391         into function to generate MOVI instruction.
1392         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1393         (aarch64_preferred_simd_mode): Turn into wrapper.
1394         (aarch64_output_scalar_simd_mov_immediate): New function.
1395         * config/aarch64/aarch64-protos.h: Add prototype for above.
1397 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1399         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1400         element_char member.
1401         (sizetochar): Return signed char.
1402         (aarch64_simd_valid_immediate): Remove elchar and other
1403         unnecessary variables.
1404         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1405         Calculate element_char as required.
1406         * config/aarch64/aarch64-protos.h: Update and move prototype
1407         for aarch64_output_simd_mov_immediate.
1408         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1409         Update arguments.
1411 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1413         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1414         information completed by aarch64_simd_valid_immediate.
1415         (aarch64_legitimate_constant_p): Update arguments.
1416         (aarch64_simd_valid_immediate): Work with struct rather than many
1417         pointers.
1418         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1419         (aarch64_simd_make_constant): Update arguments.
1420         (aarch64_output_simd_mov_immediate): Work with struct rather than
1421         many pointers.  Output immediate directly rather than as operand.
1422         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1423         Update prototype.
1424         * config/aarch64/constraints.md (Dn): Update arguments.
1426 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1428         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1429         longer static.
1430         (aarch64_simd_immediate_valid_for_move): Remove.
1431         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1432         (aarch64_simd_make_constant): Update call.
1433         (aarch64_output_simd_mov_immediate): Update call.
1434         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1435         Add prototype.
1436         * config/aarch64/constraints.md (Dn): Update call.
1438 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1440         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1441         return type to bool for prototype.
1442         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1443         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1444         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1446 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1448         * config/mips/mips.opt (meva): New.
1449         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1450         (ASM_SPEC): Handle -meva.
1451         * doc/invoke.texi (meva):  Document.
1453 2013-06-04  Alan Modra  <amodra@gmail.com>
1455         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1456         constant output.
1458 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1460         * rtl.def: Add extra fourth optional field to define_cond_exec.
1461         * gensupport.c (process_one_cond_exec): Process attributes from
1462         define_cond_exec.
1463         * doc/md.texi: Document fourth field in define_cond_exec.
1465 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1467         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1468         out the processing order as in store_bit_field_1.
1470 2013-06-04  Jan Hubicka  <jh@suse.cz>
1472         PR middle-end/57500
1473         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1474         non-VAR_DECL node if it does not exist yet.
1476 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1478         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1479         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1480         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1481         target_cpu_default setting.
1483 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1485         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1486         default to -fopt-info=optimized instead of all.
1487         * doc/invoke.texi: Ditto.
1488         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1489         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1490         (execute_vect_slp): Emit BB vectorization success under
1491         MSG_OPTIMIZED_LOCATIONS.
1492         * tree-vect-slp.c (vect_slp_transform_bb): Change
1493         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1494         * tree-vect-loop.c (vect_transform_loop): Ditto.
1496 2013-06-03  Jason Merrill  <jason@redhat.com>
1498         PR c++/57415
1499         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1500         Use TARGET_EXPR for C++.
1502 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1504         PR rtl-optimization/57268
1505         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1506         if DEBUG_INSN_P (insn).
1508         Reapply
1509         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1511         PR rtl-optimization/57268
1512         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1513         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1515 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1517         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1518         (ix86_avoid_lea_for_addr): Likewise.
1519         (exact_dependency_1): Likewise.
1520         (ix86_adjust_cost): Likewise.
1521         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1522         removed.
1523         (do_reorder_for_imul): Fix typo, formatting and
1524         !reload_completed check removed.
1525         (ix86_sched_reorder): Fix typo and formatting.
1526         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1527         list.
1529 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1531         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1533 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1535         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1536         <STRING_CST>: Likewise.
1537         <VECTOR_CST>: Likewise.
1539 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1540             Mikael Morin  <mikael@gcc.gnu.org>
1542         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1543         * config.in: Regenerated.
1544         * configure: Regenerated.
1546 2013-06-01  Jan Hubicka  <jh@suse.cz>
1548         PR middle-end/57366
1549         * cgraphunit.c (compile): When weakref is not supported,
1550         set up transparent aliases before final output pass.
1551         * varasm.c (assemble_alias): Do not try to do it here.
1553 2013-06-01  Jan Hubicka  <jh@suse.cz>
1555         PR middle-end/57467
1556         * passes.c (for_per_function): Skip unanalyzed functions.
1558 2013-06-01  Jan Hubicka  <jh@suse.cz>
1560         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1561         (lto_symtab_merge_symbols_1): ... this one.
1562         (lto_symtab_merge_cgraph_nodes): Rename to ...
1563         (lto_symtab_merge_symbols): ... this one; simplify.
1564         * cgraph.c (same_body_aliases_done): Rename to ...
1565         (cpp_implicit_aliases_done): ... this one.
1566         (cgraph_create_function_alias): Update.
1567         (cgraph_same_body_alias): Update.
1568         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1569         (verify_edge_corresponds_to_fndecl): Simplify.
1570         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1571         (cgraph_node): Remove same_body_alias.
1572         (varpool_node): Remove alias_of and extra_name_alias.
1573         (same_body_aliases_done): Rename to ..
1574         (cpp_implicit_aliases_done): ... this one.
1575         (symtab_alias_ultimate_target): Add default parameter.
1576         (symtab_resolve_alias): New function.
1577         (fixup_same_cpp_alias_visibility): Declare.
1578         (cgraph_function_node): Add default parameter.
1579         (cgraph_node_asm_name): Likewise.
1580         (cgraph_function_or_thunk_node): Add default parameter; do
1581         not ICE when it is NULL.
1582         (varpool_variable_node): Likewise.
1583         * tree-emutls.c (create_emultls_var): Update.
1584         (ipa_lower_emutls): Update.
1585         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1586         (cgraph_reset_node): Reset alias info.
1587         (cgraph_finalize_function): Update.
1588         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1589         (analyze_function): Simplify.
1590         (cgraph_process_same_body_aliases): Simplify.
1591         (analyze_functions): Fixup same body aliases.
1592         (handle_alias_pairs): Simplify.
1593         (assemble_thunk): Update.
1594         (assemble_thunks_and_aliases): Update.
1595         (output_weakrefs): Rewrite.
1596         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1597         (lto_output_varpool_node): Likewise.
1598         (compute_ltrans_boundary): Remve assert.
1599         (get_alias_symbol): New functoin.
1600         (input_node): Rewrite alias handling.
1601         (input_varpool_node): Likewise.
1602         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1603         * ipa.c (process_references): Handle weakrefs correctly.
1604         (symtab_remove_unreachable_nodes): Likewise.
1605         * trans-mem.c (get_cg_data): Update.
1606         (ipa_tm_create_version_alias): Update.
1607         (ipa_tm_execute): Update.
1608         * symtab.c (dump_symtab_base): Dump aliases.
1609         (verify_symtab_base): Verify aliases.
1610         (symtab_node_availability): New function.
1611         (symtab_alias_ultimate_target): Simplify.
1612         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1613         handle all the fixup cases.
1614         (symtab_resolve_alias): New function.
1615         * passes.c (ipa_write_summaries): Handle weakrefs.
1616         * varpool.c (varpool_analyze_node): Simplify.
1617         (assemble_aliases): Update.
1618         (varpool_create_variable_alias): Simplify.
1619         (varpool_extra_name_alias): Simplify.
1620         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1621         (lto_symtab_merge_symbols): ... this one.
1623 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1625         Revert
1626         PR rtl-optimization/57268
1627         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1628         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1630 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1632         Partially reverted:
1633         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1635         PR middle-end/57073
1636         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1637         further up.
1639 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1641         PR rtl-optimization/57268
1642         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1643         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1645 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1647         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1648         unordered comparison operators when -fno-trapping-math is in effect
1649         on the e500.
1650         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1651         and implement unordered comparison operators properly on the e500.
1653 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1655         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1656         for constant scalar integers.
1657         (simplify_relational_operation_1): Likewise.
1659 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1661         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1662         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1663         Fix comment.
1665 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1666             Igor Zamyatin  <igor.zamyatin@intel.com>
1668         Silvermont (SLM) architecture performance tuning.
1669         * config/i386/i386.h (enum ix86_tune_indices): Add
1670         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1671         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1673         * config/i386/i386.c (initial_ix86_tune_features)
1674         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1675         (ix86_lea_outperforms): Handle Silvermont tuning.
1676         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1677         call.
1678         (ix86_use_lea_for_mov): Likewise.
1679         (ix86_avoid_lea_for_addr): Likewise.
1680         (ix86_lea_for_add_ok): Likewise.
1681         (exact_dependency_1): New function.
1682         (exact_store_load_dependency): Likewise.
1683         (ix86_adjust_cost): Handle Silvermont tuning.
1684         (do_reoder_for_imul): Likewise.
1685         (swap_top_of_ready_list): New function.
1686         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1688         * config/i386/i386.md (peepholes that split memory operand in fp
1689         converts): New.
1691 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1693         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1694         Remove un-necessary braces.
1696 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1698         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1699         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1701 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1703         PR middle-end/57073
1704         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1706 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1708         PR target/56315
1709         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1710         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1711         * config/arm/neon.md (iordi3_neon): Remove.
1712         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1713         * config/arm/predicates.md (imm_for_neon_logic_operand):
1714         Move to earlier in the file.
1715         (neon_logic_op2): Likewise.
1716         (arm_iordi_operand_neon): New predicate.
1718 2013-05-31  Richard Biener  <rguenther@suse.de>
1720         PR tree-optimization/57478
1721         PR tree-optimization/57453
1722         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1723         are life as well.
1725 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1727         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1728         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1730 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1731             Thomas Koenig  <tkoenig@gcc.gnu.org>
1733         PR middle-end/57073
1734         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1735         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1737 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1739         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1741 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1743         * target.def (register_usage_leveling_p): New hook.
1744         * targhooks.c (default_register_usage_leveling_p): New.
1745         * targhooks.h (default_register_usage_leveling_p): New prototype.
1746         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1747         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1748         * doc/tm.texi: Update.
1749         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1751 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1753         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1754         (*insv_reg<mode>): New define_insn.
1756 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1758         PR rtl-optimization/57439
1759         * postreload.c (move2add_valid_value_p): Check that we have
1760         a zero subreg_regno_offset when accessing the register in
1761         the requested mode.
1763 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1764             Igor Zamyatin  <igor.zamyatin@intel.com>
1766         Silvermont (SLM) architecture pipeline model, tuning and
1767         insn selection.
1768         * config.gcc: Add slm config options and target.
1770         * config/i386/slm.md: New.
1772         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1774         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
1775         PROCESSOR_SLM.
1776         (ix86_target_macros_internal): Likewise.
1778         * gcc/config/i386/i386.c (slm_cost): New cost.
1779         (m_SLM): New macro flag.
1780         (initial_ix86_tune_features): Set m_SLM.
1781         (x86_accumulate_outgoing_args): Likewise.
1782         (x86_arch_always_fancy_math_387): Likewise.
1783         (processor_target_table): Add slm cost.
1784         (cpu_names): Add slm cpu name.
1785         (x86_option_override_internal): Set SLM ISA.
1786         (ix86_issue_rate): New case PROCESSOR_SLM.
1787         (ia32_multipass_dfa_lookahead): Likewise.
1788         (fold_builtin_cpu): Add slm.
1790         * config/i386/i386.h (TARGET_SLM): New target macro.
1791         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1792         (processor_type): Add PROCESSOR_SLM.
1794         * config/i386/i386.md (cpu): Add new value "slm".
1795         (slm.md): Include slm.md.
1797 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
1798             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1800         * config/arm/arm-protos.h: Add and update function protos.
1801         * config/arm/arm.c (use_simple_return_p): New added.
1802         (thumb2_expand_return): Check simple_return flag.
1803         * config/arm/arm.md: Add simple_return and conditional simple_return.
1804         * config/arm/iterators.md: Add iterator for return and simple_return.
1806 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1808         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1809         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1810         (arm_emit_vfp_multi_reg_pop): Likewise.
1811         (thumb2_emit_ldrd_pop): Likewise.
1812         (arm_expand_epilogue): Add misc REG_CFA notes.
1813         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1815 2013-05-29  Lawrence Crowl  <crowl@google.com>
1817         * config/arm/t-arm: Update for below.
1819         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1820         Change type to hash_table.  Update dependent calls and types.
1822         * config/i386/t-cygming: Update for below.
1824         * config/i386/t-interix: Update for below.
1826         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1827         Change type to hash_table.  Update dependent calls and types.
1828         (i386_find_on_wrapper_list::wrappers): Likewise.
1830         * config/ia64/t-ia64: Update for below.
1832         * config/ia64/ia64.c (bundle_state_table):
1833         Change type to hash_table.  Update dependent calls and types.
1835         * config/mips/mips.c (mips_reorg_process_insns::htab):
1836         Change type to hash_table.  Update dependent calls and types.
1838         * config/sol2.c (solaris_comdat_htab):
1839         Change type to hash_table.  Update dependent calls and types.
1841         * config/t-sol2: Update for above.
1843 2013-05-29  Teresa Johnson  <tejohnson@google.com>
1845         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1846         functions are not yet marked as defined.
1848 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1849             Pat Haugen <pthaugen@us.ibm.com>
1850             Peter Bergner <bergner@vnet.ibm.com>
1852         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1853         instructions.
1854         (VEC_A): Likewise.
1855         (VEC_C): Likewise.
1856         (vrotl<mode>3): Likewise.
1857         (vashl<mode>3): Likewise.
1858         (vlshr<mode>3): Likewise.
1859         (vashr<mode>3): Likewise.
1861         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1862         support for power8 V2DI builtins.
1864         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1865         power8 V2DI builtins.
1866         (vupkhsw): Likewise.
1867         (vupklsw): Likewise.
1868         (vaddudm): Likewise.
1869         (vminsd): Likewise.
1870         (vmaxsd): Likewise.
1871         (vminud): Likewise.
1872         (vmaxud): Likewise.
1873         (vpkudum): Likewise.
1874         (vpksdss): Likewise.
1875         (vpkudus): Likewise.
1876         (vpksdus): Likewise.
1877         (vrld): Likewise.
1878         (vsld): Likewise.
1879         (vsrd): Likewise.
1880         (vsrad): Likewise.
1881         (vsubudm): Likewise.
1882         (vcmpequd): Likewise.
1883         (vcmpgtsd): Likewise.
1884         (vcmpgtud): Likewise.
1885         (vcmpequd_p): Likewise.
1886         (vcmpgtsd_p): Likewise.
1887         (vcmpgtud_p): Likewise.
1888         (vupkhsw): Likewise.
1889         (vupklsw): Likewise.
1890         (vaddudm): Likewise.
1891         (vmaxsd): Likewise.
1892         (vmaxud): Likewise.
1893         (vminsd): Likewise.
1894         (vminud): Likewise.
1895         (vpksdss): Likewise.
1896         (vpksdus): Likewise.
1897         (vpkudum): Likewise.
1898         (vpkudus): Likewise.
1899         (vrld): Likewise.
1900         (vsld): Likewise.
1901         (vsrad): Likewise.
1902         (vsrd): Likewise.
1903         (vsubudm): Likewise.
1905         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1906         support for power8 V2DI instructions.
1908         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1909         power8 V2DI instructions.  Combine pack and unpack insns to use an
1910         iterator for each mode.  Check whether a particular mode supports
1911         Altivec instructions instead of just checking TARGET_ALTIVEC.
1912         (UNSPEC_VPKUWUM): Likewise.
1913         (UNSPEC_VPKSHSS): Likewise.
1914         (UNSPEC_VPKSWSS): Likewise.
1915         (UNSPEC_VPKUHUS): Likewise.
1916         (UNSPEC_VPKSHUS): Likewise.
1917         (UNSPEC_VPKUWUS): Likewise.
1918         (UNSPEC_VPKSWUS): Likewise.
1919         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1920         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1921         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1922         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1923         (UNSPEC_VUPKHSB): Likewise.
1924         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1925         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1926         (UNSPEC_VUPKHSH): Likewise.
1927         (UNSPEC_VUPKLSB): Likewise.
1928         (UNSPEC_VUPKLSH): Likewise.
1929         (VI2): Likewise.
1930         (VI_char): Likewise.
1931         (VI_scalar): Likewise.
1932         (VI_unit): Likewise.
1933         (VP): Likewise.
1934         (VP_small): Likewise.
1935         (VP_small_lc): Likewise.
1936         (VU_char): Likewise.
1937         (add<mode>3): Likewise.
1938         (altivec_vaddcuw): Likewise.
1939         (altivec_vaddu<VI_char>s): Likewise.
1940         (altivec_vadds<VI_char>s): Likewise.
1941         (sub<mode>3): Likewise.
1942         (altivec_vsubcuw): Likewise.
1943         (altivec_vsubu<VI_char>s): Likewise.
1944         (altivec_vsubs<VI_char>s): Likewise.
1945         (altivec_vavgs<VI_char>): Likewise.
1946         (altivec_vcmpbfp): Likewise.
1947         (altivec_eq<mode>): Likewise.
1948         (altivec_gt<mode>): Likewise.
1949         (altivec_gtu<mode>): Likewise.
1950         (umax<mode>3): Likewise.
1951         (smax<mode>3): Likewise.
1952         (umin<mode>3): Likewise.
1953         (smin<mode>3): Likewise.
1954         (altivec_vpkuhum): Likewise.
1955         (altivec_vpkuwum): Likewise.
1956         (altivec_vpkshss): Likewise.
1957         (altivec_vpkswss): Likewise.
1958         (altivec_vpkuhus): Likewise.
1959         (altivec_vpkshus): Likewise.
1960         (altivec_vpkuwus): Likewise.
1961         (altivec_vpkswus): Likewise.
1962         (altivec_vpks<VI_char>ss): Likewise.
1963         (altivec_vpks<VI_char>us): Likewise.
1964         (altivec_vpku<VI_char>us): Likewise.
1965         (altivec_vpku<VI_char>um): Likewise.
1966         (altivec_vrl<VI_char>): Likewise.
1967         (altivec_vsl<VI_char>): Likewise.
1968         (altivec_vsr<VI_char>): Likewise.
1969         (altivec_vsra<VI_char>): Likewise.
1970         (altivec_vsldoi_<mode>): Likewise.
1971         (altivec_vupkhsb): Likewise.
1972         (altivec_vupkhs<VU_char>): Likewise.
1973         (altivec_vupkls<VU_char>): Likewise.
1974         (altivec_vupkhsh): Likewise.
1975         (altivec_vupklsb): Likewise.
1976         (altivec_vupklsh): Likewise.
1977         (altivec_vcmpequ<VI_char>_p): Likewise.
1978         (altivec_vcmpgts<VI_char>_p): Likewise.
1979         (altivec_vcmpgtu<VI_char>_p): Likewise.
1980         (abs<mode>2): Likewise.
1981         (vec_unpacks_hi_v16qi): Likewise.
1982         (vec_unpacks_hi_v8hi): Likewise.
1983         (vec_unpacks_lo_v16qi): Likewise.
1984         (vec_unpacks_hi_<VP_small_lc>): Likewise.
1985         (vec_unpacks_lo_v8hi): Likewise.
1986         (vec_unpacks_lo_<VP_small_lc>): Likewise.
1987         (vec_pack_trunc_v8h): Likewise.
1988         (vec_pack_trunc_v4si): Likewise.
1989         (vec_pack_trunc_<mode>): Likewise.
1991         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1992         V2DI builtins.
1993         (vec_vmaxsd): Likewise.
1994         (vec_vmaxud): Likewise.
1995         (vec_vminsd): Likewise.
1996         (vec_vminud): Likewise.
1997         (vec_vpksdss): Likewise.
1998         (vec_vpksdus): Likewise.
1999         (vec_vpkudum): Likewise.
2000         (vec_vpkudus): Likewise.
2001         (vec_vrld): Likewise.
2002         (vec_vsld): Likewise.
2003         (vec_vsrad): Likewise.
2004         (vec_vsrd): Likewise.
2005         (vec_vsubudm): Likewise.
2006         (vec_vupkhsw): Likewise.
2007         (vec_vupklsw): Likewise.
2009 2013-05-29  Jan Hubicka  <jh@suse.cz>
2011         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2012         flags; reorder rest of fields in more consistent way.
2013         (varpool_node): Remove analyzed, finalized and alias.
2014         (cgraph_ndoe): Likewise.
2015         (symtab_alias_ultimate_target): New function.
2016         (cgraph_function_node): Move offline.
2017         (cgraph_reset_node): Declare.
2018         (cgraph_comdat_can_be_unshared_p): Remove.
2019         (varpool_remove_initializer): Declare.
2020         (varpool_first_defined_variable, varpool_next_defined_variable
2021         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2022         (cgraph_function_with_gimple_body_p): Update.
2023         (varpool_all_refs_explicit_p): Update.
2024         (symtab_alias_target): New function.
2025         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2026         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2027         (cgraph_function_or_thunk_node): Simplify using
2028         symtab_alias_ultimate_target.
2029         (varpool_variable_node): Likewise.
2030         * cgraph.c (cgraph_create_function_alias): Update.
2031         (cgraph_add_thunk): Update.
2032         (cgraph_remove_node): Update.
2033         (dump_cgraph_node): Do not dump removed flags.
2034         (cgraph_function_body_availability): Update.
2035         (cgraph_propagate_frequency): Update.
2036         (verify_cgraph_node): Check sanity of local flag.
2037         (cgraph_function_node): Move here from cgraph.h; revamp for
2038         cgraph_function_or_thunk_node.
2039         * lto-symtab.c (lto_varpool_replace_node): Update.
2040         (lto_symtab_resolve_can_prevail_p): Update.
2041         (lto_symtab_merge_cgraph_nodes): Update.
2042         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2043         propagate_constants_accross_call, devirtualization_time_bonus,
2044         ipcp_propagate_stage): Update.
2045         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2046         * ipa-inline-transform.c (clone_inlined_nodes,
2047         preserve_function_body_p): Update.
2048         * ipa-reference.c (propagate): Update.
2049         (write_node_summary_p): Update.
2050         * toplev.c (wrapup_global_declaration_2): Update.
2051         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2052         (analyze_function) ... this one.
2053         (cgraph_process_new_functions): Update.
2054         (cgraph_reset_node): Export.
2055         (cgraph_finalize_function): Update.
2056         (cgraph_add_new_function): Update.
2057         (process_function_and_variable_attributes): Update.
2058         (varpool_finalize_decl): Update.
2059         (symbol_finalized): Remove.
2060         (symbol_finalized_and_needed): Rename to ...
2061         (symbol_defined_and_needed): ... update.
2062         (cgraph_analyze_functions): Update.
2063         (handle_alias_pairs): Update.
2064         (mark_functions_to_output): Update.
2065         (assemble_thunk): Update.
2066         (output_in_order): Update.
2067         (output_weakrefs): Update.
2068         (finalize_compilation_unit): Update.
2069         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2070         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2071         input_node, input_varpool_node): Update.
2072         * dbxout.c (dbxout_expand_expr): Update.
2073         * cgraphclones.c (cgraph_clone_node): Update.
2074         (cgraph_copy_node_for_versioning): Update.
2075         (cgraph_materialize_clone): Update.
2076         (cgraph_materialize_all_clones): Update.
2077         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2078         propagate_pure_const, propagate_nothrow): Update.
2079         * lto-streamer-out.c (lto_output, write_symbol): Update.
2080         * ipa-utils.c (ipa_reverse_postorder): Update.
2081         * ipa-inline.c (can_inline_edge_p): Update.
2082         (update_caller_keys, ipa_inline): Update.
2083         * dwarf2out.c (reference_to_unused,
2084         premark_types_used_by_global_vars_helper): Update.
2085         * tree-eh.c (tree_could_trap_p): Update.
2086         * ipa-split.c (consider_split, execute_split_functions): Update.
2087         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2088         has_addr_references_p): Update; move ahead in file for better
2089         readability.
2090         (process_references): Simplify.
2091         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2092         bodies are removed.
2093         (cgraph_comdat_can_be_unshared_p): Make static.
2094         (cgraph_externally_visible_p): Update.
2095         (varpool_externally_visible_p): Update.
2096         (function_and_variable_visibility): Update.
2097         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2098         ipa_tm_mark_force_output_node): Update.
2099         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2100         estimate_edge_devirt_benefit, inline_generate_summary,
2101         inline_write_summary): Update.
2102         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2103         * ipa-prop.c (ipa_compute_jump_functions): Update.
2104         (ipa_print_node_params, ipa_prop_read_section,
2105         ipa_update_after_lto_read, read_replacements_section): Update.
2106         * varasm.c (mark_decl_referenced): Update.
2107         (assemble_alias, dump_tm_clone_pairs): Update.
2108         * tree-inline.c (copy_bb): Update.
2109         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2110         Update.
2111         * symtab.c (dump_symtab_base): Print new flags.
2112         (verify_symtab_base): Verify new flags.
2113         (symtab_alias_ultimate_target): New function.
2114         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2115         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2116         Update.
2117         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2118         Update.
2119         * i386.c (ix86_get_function_versions_dispatcher,
2120         ix86_generate_version_dispatcher_body): Update.
2121         (fold_builtin_cpu): Use varpool_add_new_variable.
2122         * varpool.c (varpool_remove_initializer): Break out from ...
2123         (varpool_remove_node): ... this one.
2124         (dump_varpool_node, varpool_node_for_asm,
2125         cgraph_variable_initializer_availability, varpool_analyze_node,
2126         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2127         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2128         Update.
2130 2013-05-29  Jan Hubicka  <jh@suse.cz>
2132         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2134 2013-05-29  Easwaran Raman  <eraman@google.com>
2136         PR tree-optimization/57442
2137         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2138         when control exits the main loop.
2140 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2142         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2143         and RX600.
2144         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2145         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2146         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2147         option.
2149 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2151         PR tree-optimization/57441
2152         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2153         Don't limit size of incr_vec to number of candidates.
2155 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2157         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2158         and mips16 directories.
2159         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2160         (MULTILIB_DIRNAMES): Ditto.
2161         (MULTILIB_EXCEPTIONS): Add new exceptions.
2162         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2163         (MULTILIB_DIRNAMES): Ditto.
2164         (MULTILIB_EXCEPTIONS): Add new exceptions.
2166 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2167             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2169         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2170         SYMBOL_TINY_ABSOLUTE.
2171         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2172         SYMBOL_TINY_ABSOLUTE.
2173         (aarch64_expand_mov_immediate): Likewise.
2174         (aarch64_classify_symbol): Likewise.
2175         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2176         Permit SYMBOL_TINY_ABSOLUTE.
2177         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2179 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2180             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2182         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2183         Refactor if/switch.  Replace gcc_assert with if.
2185 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2187         * config/i386/i386.c (initial_ix86_tune_features): Enable
2188         FP Reassociation for AMD bdver1 and bdver2.
2190 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2192         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2193         and IMAGPART_EXPR do not occur within other handled_components.
2195 2013-05-29  Richard Biener  <rguenther@suse.de>
2197         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2198         access on whether the use is in the BB we currently try to
2199         vectorize.
2200         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2201         vectorize to vect_bb_slp_scalar_cost.
2203 2013-05-29  Richard Biener  <rguenther@suse.de>
2205         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2206         computing scalar cost offsetted by stmts that are kept live
2207         by scalar uses.
2208         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2209         for computation of scalar cost.
2211 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2213         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2215 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2217         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2218         array notation built-in reduction functions.
2219         * doc/passes.texi (Passes): Added documentation about changes done
2220         for Cilk Plus.
2221         * doc/invoke.texi (C Dialect Options): Added documentation about
2222         the -fcilkplus flag.
2223         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2224         (BUILTINS_DEF): Depend on cilkplus.def.
2225         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2226         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2227         * cilkplus.def: New file.
2229 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2231         PR rtl-optimization/57439
2232         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2234 2013-05-28  Easwaran Raman  <eraman@google.com>
2236         PR tree-optimization/57337
2237         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2238         (find_insert_point): Correctly identify the insertion point
2239         when two statements with the same UID is compared.
2241 2013-05-28  Richard Biener  <rguenther@suse.de>
2243         PR tree-optimization/56787
2244         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2245         from the list of data references.
2246         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2247         clobbers.
2248         (vect_analyze_loop_operations): Likewise.
2249         (vect_transform_loop): Remove clobbers.
2251 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2253         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2254         and REALPART_EXPRs have scalar type.
2256 2013-05-28  Richard Biener  <rguenther@suse.de>
2258         PR tree-optimization/57411
2259         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2260         virtual operands.
2261         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2262         virtual operand propagation.
2264 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2266         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2267         destination register for bmasksi_vis.
2268         (vector_init_bshuffle): Likewise.
2269         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2271 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2273         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2274         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2275         mode if the instruction isn't available in the original mode.
2276         * config/sparc/sparc.opt (mfix-ut699): New option.
2277         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2278         (divdf3): Turn into expander.
2279         (divdf3_nofix): New insn.
2280         (divdf3_fix): Likewise.
2281         (divsf3): Disable if -mfix-ut699.
2282         (sqrtdf2): Turn into expander.
2283         (sqrtdf2_nofix): New insn.
2284         (sqrtdf2_fix): Likewise.
2285         (sqrtsf2): Disable if -mfix-ut699.
2287 2013-05-27  Richard Biener  <rguenther@suse.de>
2289         PR middle-end/57412
2290         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2291         block for the new loop.
2293 2013-05-27  Richard Biener  <rguenther@suse.de>
2295         PR tree-optimization/57343
2296         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2297         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2298         (number_of_iterations_cond): Do not build the folded tree.
2300 2013-05-27  Richard Biener  <rguenther@suse.de>
2302         Revert
2303         PR middle-end/57381
2304         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2305         OEP_CONSTANT_ADDRESS_OF retained.
2307         PR tree-optimization/57417
2308         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2309         for unchanged base.
2310         (set_ssa_val_to): Compare addresses using
2311         get_addr_base_and_unit_offset.
2313 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2315         PR rtl-optimization/56833
2316         * postreload.c (move2add_record_mode): New function.
2317         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2318         (move2add_use_add2_insn): Use move2add_record_sym_value.
2319         (move2add_use_add3_insn): Likewise.
2320         (reload_cse_move2add): Use move2add_valid_value_p and
2321         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2322         affected regs by setting reg_mode to VOIDmode.
2323         (move2add_note_store): Don't pretend the inside of a SUBREG is
2324         the actual destination.  Invalidate single/leading registers by
2325         setting reg_mode to VOIDmode.
2326         Use move2add_record_sym_value, move2add_valid_value_p and
2327         move2add_record_mode.
2329 2013-05-27  Richard Biener  <rguenther@suse.de>
2331         PR tree-optimization/57396
2332         * tree-affine.c (double_int_constant_multiple_p): Properly
2333         return false for val == 0 and div != 0.
2335 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2337         * config/mips/mips.h: Use #elif in preprocessor conditions.
2339 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2341         PR target/53916
2342         * config/mips/constraints.md (kl): New constraint.
2343         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2344         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2345         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2346         from LO for MIPS16.
2347         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2349 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2351         PR target/55777
2352         * config/mips/mips.c (mips_can_inline_p): New function.
2353         (TARGET_CAN_INLINE_P): Define.
2355 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2357         * sched-int.h (ds_t, dw_t): Make unsigned int.
2358         Fix documentation that describes how all the ds_t bits are used.
2359         Reserve the last bit for delayed-branch scheduling.
2360         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2361         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2362         (gen_dep_weak_1): Remove prototype.
2363         * sched-deps.c (get_dep_weak_1): Make static.
2364         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2365         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2366         * doc/tm.texi: Regenerate.
2367         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2369 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2371         PR debug/56950
2372         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2374 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2375             Sandra Loosemore  <sandra@codesourcery.com>
2377         * config.gcc (powerpc-*): Allow native for with-cpu.
2379 2013-05-24  Jeff Law  <law@redhat.com>
2381         PR tree-optimization/57124
2382         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2383         conversion feeding a condition if the range has an overflow
2384         if -fstrict-overflow.  Add warnings for when we do make the
2385         transformation.
2387 2013-05-24  Dehao Chen  <dehao@google.com>
2389         * tree-cfg.c (locus_discrim_map): Fix the typo.
2390         (locus_discrim_hasher): Likewise.
2391         (locus_discrim_hasher::hash): Likewise.
2392         (locus_discrim_hasher::equal): Likewise.
2394 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2396         PR tree-optimization/57294
2397         * cgraph.h (ipa_record_stmt_references): Declare.
2398         * cgraphbuild.c (ipa_record_stmt_references): New function.
2399         (build_cgraph_edges): Use ipa_record_stmt_references.
2400         (rebuild_cgraph_edges): Likewise.
2401         (cgraph_rebuild_references): Likewise.
2402         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2403         associated with the old statement and build references from the
2404         newly built statements.
2405         * ipa-ref.c (ipa_remove_stmt_references): New function.
2406         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2408 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2410         * lra-constraints.c (emit_spill_move): Use smaller mode for
2411         mem-mem moves.
2412         (check_and_process_move): Consider mem-reg moves for secondary
2413         too.
2414         (curr_insn_transform): Don't lose insns emitted before for
2415         secondary memory moves.
2416         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2417         reg set up in the current insn.
2419 2013-05-24  Dehao Chen  <dehao@google.com>
2421         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2422         hash function.
2423         (locus_descrim_hasher::equal): Likewise.
2424         (build_gimple_cfg): New discriminator assignment algorithm.
2425         (make_edges): Likewise.
2426         (next_discriminator_for_locus): Likewise.
2427         (same_line_p): Likewise.
2428         (assign_discriminators): Likewise.
2429         (make_cond_expr_edges): Likewise.
2430         (make_gimple_switch_edges): Likewise.
2431         (make_goto_expr_edges): Likewise.
2432         (make_gimple_asm_edges): Likewise.
2434 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2436         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2437         X format specifier to only display bottom 16 bits.
2438         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2439         immediate to match for operand 2, since it will be masked.
2441 2013-05-24  Richard Biener  <rguenther@suse.de>
2443         PR tree-optimization/57287
2444         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2445         all SSA names that occur in abnormal PHIs.
2447 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2449         PR tree-ssa/57385
2450         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2451         that index is not negative.
2453 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2455         PR rtl-optimization/55177
2456         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2457         (simplify_byte_swapping_operation): New.
2458         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2459         (simplify_relational_operation_1): Deal with BSWAP.
2461 2013-05-23  Richard Henderson  <rth@redhat.com>
2463         PR target/56742
2464         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2465         (ix86_reorg): Call it.
2467 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2469         PR target/57379
2470         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2471         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2472         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2474 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2476         PR debug/57351
2477         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2479 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2480             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2482         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2483         * config/aarch64/constraints.md (Usa): Remove.
2484         * doc/md.texi (AArch64 Usa): Remove.
2486 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2487             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2489         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2490         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2491         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2492         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2494 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2496         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2497         instruction (AdvSIMD).
2498         * config/aarch64/aarch64-builtins.c
2499         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2500         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2502 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2504         PR middle-end/57347
2505         * tree.h (contains_bitfld_component_ref_p): Declare.
2506         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2507         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2508         caller.
2509         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2510         not access a bit-field.  Assert all final offsets are byte-aligned.
2512 2013-05-23  Richard Biener  <rguenther@suse.de>
2514         PR tree-optimization/57380
2515         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2516         least one invariant or re-used load.
2517         * passes.c (init_optimization_passes): Move pass_phiprop before
2518         pass_forwprop.
2520 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2522         * config/aarch64/aarch64-simd.md
2523         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2525 2013-05-23  Richard Biener  <rguenther@suse.de>
2527         PR middle-end/57381
2528         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2529         OEP_CONSTANT_ADDRESS_OF retained.
2531 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2533         PR middle-end/57344
2534         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2535         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2537 2013-05-23  Richard Biener  <rguenther@suse.de>
2539         PR rtl-optimization/57341
2540         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2541         instead of true_dependence.
2543 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2545         * bb-reorder.c (branch_threshold): Make const.
2546         (exec_threshold): Ditto.
2548 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2549             Pat Haugen <pthaugen@us.ibm.com>
2550             Peter Bergner <bergner@vnet.ibm.com>
2552         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2553         documentation for the power8 crypto builtins.
2555         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2557         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2558         macros for defining power8 builtin functions.
2559         (BU_P8V_AV_2): Likewise.
2560         (BU_P8V_AV_P): Likewise.
2561         (BU_P8V_VSX_1): Likewise.
2562         (BU_P8V_OVERLOAD_1): Likewise.
2563         (BU_P8V_OVERLOAD_2): Likewise.
2564         (BU_CRYPTO_1): Likewise.
2565         (BU_CRYPTO_2): Likewise.
2566         (BU_CRYPTO_3): Likewise.
2567         (BU_CRYPTO_OVERLOAD_1): Likewise.
2568         (BU_CRYPTO_OVERLOAD_2): Likewise.
2569         (XSCVSPDP): Fix typo, point to the correct instruction.
2570         (VCIPHER): Add power8 crypto builtins.
2571         (VCIPHERLAST): Likewise.
2572         (VNCIPHER): Likewise.
2573         (VNCIPHERLAST): Likewise.
2574         (VPMSUMB): Likewise.
2575         (VPMSUMH): Likewise.
2576         (VPMSUMW): Likewise.
2577         (VPERMXOR_V2DI): Likewise.
2578         (VPERMXOR_V4SI: Likewise.
2579         (VPERMXOR_V8HI: Likewise.
2580         (VPERMXOR_V16QI: Likewise.
2581         (VSHASIGMAW): Likewise.
2582         (VSHASIGMAD): Likewise.
2583         (VPMSUM): Likewise.
2584         (VPERMXOR): Likewise.
2585         (VSHASIGMA): Likewise.
2587         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2588         __CRYPTO__ if the crypto instructions are available.
2589         (altivec_overloaded_builtins): Add support for overloaded power8
2590         builtins.
2592         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2593         support for power8 crypto builtins.
2594         (builtin_function_type): Likewise.
2595         (altivec_init_builtins): Add support for builtins that take vector
2596         long long (V2DI) arguments.
2598         * config/rs6000/crypto.md: New file, define power8 crypto
2599         instructions.
2601 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2602             Pat Haugen <pthaugen@us.ibm.com>
2603             Peter Bergner <bergner@vnet.ibm.com>
2605         * doc/invoke.texi (Option Summary): Add power8 options.
2606         (RS/6000 and PowerPC Options): Likewise.
2608         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2609         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2610         wm, wn, wr documentation.
2612         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2613         registers if direct move instructions are enabled.
2614         (wn): New constraint for no registers.
2615         (wq): New constraint for quad word even GPR registers.
2616         (wr): New constraint if 64-bit instructions are enabled.
2617         (wv): New constraint if power8 vector instructions are enabled.
2618         (wQ): New constraint for quad word memory locations.
2620         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2621         constraint for 0..15 for crypto instructions.
2622         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2623         as GPR and floating point registers.
2624         (int_reg_operand): New predicate to match only GPR registers.
2625         (base_reg_operand): New predicate to match base registers.
2626         (quad_int_reg_operand): New predicate to match even GPR registers
2627         for quad memory operations.
2628         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2629         operations in both GPR and VSX registers.
2630         (quad_memory_operand): New predicate for quad memory operations.
2631         (reg_or_indexed_operand): New predicate for direct move support.
2633         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2634         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2635         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2636         (POWERPC_MASKS): Add power8 options.
2637         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2638         various options.
2640         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2641         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2643         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2644         (-mpower8-fusion): New power8 options.
2645         (-mpower8-fusion-sign): Likewise.
2646         (-mpower8-vector): Likewise.
2647         (-mcrypto): Likewise.
2648         (-mdirect-move): Likewise.
2649         (-mquad-memory): Likewise.
2651         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2652         power8.
2653         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2654         registers.
2655         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2656         (rs6000_debug_vector_unit): Add p8_vector.
2657         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2658         definitions.  Also print fusion state.
2659         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2660         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2661         (rs6000_option_override_internal): Add support for power8.
2662         (rs6000_common_init_builtins): Add debugging for skipped builtins
2663         if -mdebug=builtin.
2664         (rs6000_adjust_cost): Add power8 support.
2665         (rs6000_issue_rate): Likewise.
2666         (insn_must_be_first_in_group): Likewise.
2667         (insn_must_be_last_in_group): Likewise.
2668         (force_new_group): Likewise.
2669         (rs6000_register_move_cost): Likewise.
2670         (rs6000_opt_masks): Likewise.
2672         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2673         power8 capable assembler, default to power7 options.
2674         (TARGET_DIRECT_MOVE): Likewise.
2675         (TARGET_CRYPTO): Likewise.
2676         (TARGET_P8_VECTOR): Likewise.
2677         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2678         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2679         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2680         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2681         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2682         (TARGET_XSCVDPSPN): Likewise.
2683         (TARGET_XSCVSPDPN): Likewsie.
2684         (TARGET_SYNC_HI_QI): Likewise.
2685         (TARGET_SYNC_TI): Likewise.
2686         (MASK_CRYPTO): Likewise.
2687         (MASK_DIRECT_MOVE): Likewise.
2688         (MASK_P8_FUSION): Likewise.
2689         (MASK_P8_VECTOR): Likewise.
2690         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2691         temporary used by some of the direct move instructions to get two FP
2692         temporary registers does not force creation of a stack frame.
2693         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2694         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2695         that any VSX registers are tieable, even if they are also an
2696         Altivec vector mode.
2697         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2698         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2699         (RS6000_BTM_CRYPTO): Likewise.
2700         (RS6000_BTM_COMMON): Likewise.
2702         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2703         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2704         (enum rs6000_vector): Add power8 vector support.
2706 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2708         PR target/19599
2709         PR target/57340
2710         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2711         (any_sibcall_could_use_r3): this and handle indirect calls.
2712         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2714 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2716         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2718 2013-05-22  Richard Biener  <rguenther@suse.de>
2720         PR middle-end/57349
2721         * profile.c (branch_prob): Do not split blocks that are
2722         abnormally receiving from ECF_RETURNS_TWICE functions.
2724 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2726         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2727         address mode.  Move pointer mode initialization to the same place.
2729 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2731         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2732         while it has any effect.
2734 2013-05-21  Easwaran Raman  <eraman@google.com>
2736         PR tree-optimization/57322
2737         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2738         UID of the statement added to the BB to be 1.
2740 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2742         PR tree-optimization/57331
2743         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2744         of conversion from pointer type to integral type with integer.
2746 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2748         PR lto/57289
2749         * ipa-prop.c (ipa_read_node_info): Process param_used and
2750         controlled_uses in the same order as when writing.
2752 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2754         PR plugins/56754
2755         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2757 2013-05-21  Richard Biener  <rguenther@suse.de>
2759         PR tree-optimization/57318
2760         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2761         estimate stmts with side-effects as likely eliminated.
2763 2013-05-21  Richard Biener  <rguenther@suse.de>
2765         PR tree-optimization/57330
2766         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2767         preserve the call stmts fntype.
2769 2013-05-21  Richard Biener  <rguenther@suse.de>
2771         PR tree-optimization/57303
2772         * tree-ssa-sink.c (statement_sink_location): Improve killing
2773         stmt detection and properly handle self-assignments.
2775 2013-05-21  Christian Bruel  <christian.bruel@st.com>
2777         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2778         spanning registers. LEAF_REG_REMAP is supported only for contiguous
2779         registers. Set register size out of the PARALLEL loop.
2781 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
2783         PR target/56547
2784         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2785         (*fmasf4, *fmasf4_media): New insns.
2787 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2789         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2790         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2791         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2792         (mips_idiv_insns): Update the comments to say that the returned
2793         instruction counts are in units of BASE_INSN_LENGTH.
2794         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2795         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
2796         using 2 rather than 4 as the length of indirect MIPS16 and
2797         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
2798         length of a NOP.  Don't divide MIPS16 lengths by 2.
2799         (mips16_split_long_branches): Assume a branch is long if the
2800         length is greater than 4 rather than 8.
2801         * config/mips/mips.md (length): Give MIPS16 lengths directly,
2802         rather than multiplying them by 2.  Multiply instruction counts
2803         by BASE_INSN_LENGTH rather than 4.
2804         (*jump_mips16, tls_get_tp_mips16_<mode>)
2805         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2807 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2809         * config/mips/mips.md (extended_mips16): Remove branch case.
2810         (length): Remove duplicated extended_mips16 test.
2812 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2814         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2816 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
2818         * recog.h (Recog_data): Rename to...
2819         (recog_data_d): ...this.
2820         (recog_data): Update accordingly.
2821         * recog.c (recog_data): Likewise.
2822         * reload.c (save_recog_data): Likewise.
2823         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2824         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2826 2013-05-17  Julian Brown  <julian@codesourcery.com>
2828         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2829         found in a REG_EQUAL note, invalidate it.
2831 2013-05-17   Easwaran Raman  <eraman@google.com>
2833         * tree-ssa-reassoc.c (find_insert_point): New function.
2834         (insert_stmt_after): Likewise.
2835         (get_def_stmt): Likewise.
2836         (ensure_ops_are_available): Likewise.
2837         (not_dominated_by): Likewise.
2838         (rewrite_expr_tree): Do not move statements beyond what is
2839         necessary. Remove call to swap_ops_for_binary_stmt...
2840         (reassociate_bb): ... and move it here.
2841         (build_and_add_sum): Assign UIDs for new statements.
2842         (linearize_expr): Likewise.
2843         (do_reassoc): Renumber gimple statement UIDs.
2845 2013-05-17  Jan Hubicka  <jh@suse.cz>
2847         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2848         weakrefs.
2849         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2850         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2851         weakrefs.
2852         (output_weakrefs): Update.
2854 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
2855             Martin Jambor  <mjambor@suse.cz>
2857         PR middle-end/57276
2858         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2859         value that corresponds to the given aggval is found in values vector.
2861 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
2863         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2864         sse, sse2, sse3, ssse3 and sse4a flags to options.
2866 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
2868         * gengtype-state.c: (s_expr_writer): New class, to handle
2869         prettifying of output layout of s-expressions.
2870         (state_writer): New class, to write out gtype.state.
2871         (state_written_type_count): Move this variable into member data of
2872         state_writer.
2873         (s_expr_writer::s_expr_writer): New code: constructor for new class
2874         (state_writer::state_writer(): ditto
2875         (s_expr_writer::write_new_line): New function
2876         (s_expr_writer::write_any_indent): ditto
2877         (s_expr_writer::begin_s_expr): ditto
2878         (s_expr_writer::end_s_expr): ditto
2879         (write_state_fileloc): convert to method of state_writer...
2880         (state_writer:: write_state_fileloc): ...and use methods of
2881         s_expr_writer to write indentation into the gtype.state output file
2882         to visually represent the hierarchical structure of the list
2883         structures
2884         (write_state_fields): ditto, renaming to...
2885         (state_writer::write_state_fields)
2886         (write_state_a_string): ditto, renaming to...
2887         (state_writer::write_state_a_string)
2888         (write_state_string_option): ditto, renaming to...
2889         (state_writer::write_state_string_option)
2890         (write_state_type_option): ditto, renaming to...
2891         (state_writer::write_state_type_option)
2892         (write_state_nested_option): ditto, renaming to...
2893         (state_writer::write_state_nested_option)
2894         (write_state_option): ditto, renaming to...
2895         (state_writer::write_state_option)
2896         (write_state_options): ditto, renaming to...
2897         (state_writer::write_state_options)
2898         (write_state_lang_bitmap): ditto, renaming to...
2899         (state_writer::write_state_lang_bitmap)
2900         (write_state_version): ditto, renaming to...
2901         (state_writer::write_state_version)
2902         (write_state_scalar_type): ditto, renaming to...
2903         (state_writer::write_state_scalar_type)
2904         (write_state_string_type): ditto, renaming to...
2905         (state_writer::write_state_string_type)
2906         (write_state_undefined_type): ditto, renaming to...
2907         (state_writer::write_state_undefined_type)
2908         (write_state_struct_union_type): ditto, renaming to...
2909         (state_writer::write_state_struct_union_type)
2910         (write_state_struct_type): ditto, renaming to...
2911         (state_writer::write_state_struct_type)
2912         (write_state_user_struct_type): ditto, renaming to...
2913         (state_writer::write_state_user_struct_type)
2914         (write_state_lang_struct_type): ditto, renaming to...
2915         (state_writer::write_state_lang_struct_type)
2916         (write_state_param_struct_type): ditto, renaming to...
2917         (state_writer::write_state_param_struct_type)
2918         (write_state_pointer_type): ditto, renaming to...
2919         (state_writer::write_state_pointer_type)
2920         (write_state_array_type): ditto, renaming to...
2921         (state_writer::write_state_array_type)
2922         (write_state_gc_used): ditto, renaming to...
2923         (state_writer::write_state_gc_used)
2924         (write_state_common_type_content): ditto, renaming to...
2925         (state_writer::write_state_common_type_content)
2926         (write_state_type): ditto, renaming to...
2927         (state_writer::write_state_type)
2928         (write_state_pair_list): ditto, renaming to...
2929         (state_writer::write_state_pair_list)
2930         (write_state_pair): ditto, renaming to...
2931         (state_writer::write_state_pair)
2932         (write_state_typedefs): ditto, renaming to...
2933         (state_writer::write_state_typedefs)
2934         (write_state_structures): ditto, renaming to...
2935         (state_writer::write_state_structures)
2936         (write_state_param_structs): ditto, renaming to...
2937         (state_writer::write_state_param_structs)
2938         (write_state_variables): ditto, renaming to...
2939         (state_writer::write_state_variables)
2940         (write_state_srcdir): ditto, renaming to...
2941         (state_writer::write_state_srcdir)
2942         (write_state_files_list): ditto, renaming to...
2943         (state_writer::write_state_files_list)
2944         (write_state_languages): ditto, renaming to...
2945         (state_writer::write_state_languages)
2946         (write_state): create a state_writer instance and use it when
2947         writing out the state file
2949 2013-05-17  Mike Stump  <mikestump@comcast.net>
2951         PR rtl-optimization/57304
2952         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2953         accessing DF_REF_REAL_LOC.
2955 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2957         PR rtl-optimization/57281
2958         PR rtl-optimization/57300
2959         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2960         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2961         what the other splitter did if the registers are dead.
2963 2013-05-17  Richard Biener  <rguenther@suse.de>
2965         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2966         MEM_REF offsets.
2968 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2970         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2971         linking.
2973 2013-05-17  Marek Polacek  <polacek@redhat.com>
2975         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2976         length when doing non-zero store of storing '\0' to '\0'.
2978 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2980         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2981         vect_external_def oprnd1 with loop_vinfo, try to emit
2982         optional cast, negation and and stmts on the loop preheader
2983         edge instead of into the pattern def seq.
2985         PR tree-optimization/57051
2986         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2987         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2989 2013-05-16  Nick Clifton  <nickc@redhat.com>
2991         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2992         (rl78_is_naked_func): New function.
2993         (rl78_expand_prologue): Skip prologue generation for naked functions.
2994         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2995         * doc/extend.texi (naked): Add RL78 to the list of processors
2996         that supports this attribute.
2998 2013-05-16  Jeff Law  <law@redhat.com>
3000         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3002 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3004         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3005         cache parameters using detect_caches_amd also for CYRIX,
3006         NSC and TM2 signatures.
3008 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3009             Dzianis Kahanovich  <mahatma@eu.by>
3011         PR target/45359
3012         PR target/46396
3013         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3014         VIA/Centaur processors and determine their cache parameters
3015         using detect_caches_amd.
3017 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3019         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3020         (rtl_verify_edges): New function.
3021         (rtl_verify_bb_insns): Ditto.
3022         (rtl_verify_bb_pointers): Ditto.
3023         (rtl_verify_bb_insn_chain): Ditto.
3024         (rtl_verify_fallthru): Ditto.
3025         (rtl_verify_bb_layout): Ditto.
3026         (rtl_verify_flow_info_1): Outline checks into new functions.
3027         (rtl_verify_flow_info): Ditto.
3029 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3031         * cfghooks.c (copy_bbs): Add update_dominance argument.
3032         * cfghooks.h (copy_bbs): Update prototype.
3033         * tree-cfg.c (gimple_duplicate_sese_region):
3034         Add update_dominance argument.
3035         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3036         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3037         gimple_duplicate_sese_region call.
3038         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3039         Update copy_bbs call.
3040         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3041         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3043 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3045         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3046         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3047         vect_recog_rotate_pattern.
3048         (vect_recog_rotate_pattern): New function.
3050 2013-05-16  Jason Merrill  <jason@redhat.com>
3052         * Makefile.in (LLINKER): New variable.
3053         (mostlyclean): Remove link mutex.
3054         * configure.ac: Handle --enable-link-mutex.
3055         * lock-and-run.sh: New script.
3057 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3059         PR target/19599
3060         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3061         for NULL decl.
3063 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3065         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3067 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3069         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3070         * config/arm/arm.c (next_consecutive_mem): New function.
3071         (gen_movmem_ldrd_strd): Likewise.
3072         * config/arm/arm.md (movmemqi): Update condition and code.
3073         (unaligned_loaddi, unaligned_storedi): New patterns.
3075 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3077         * config.gcc: Obsolete *-*-solaris2.9*.
3078         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3080 2013-05-16  Richard Biener  <rguenther@suse.de>
3082         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3083         earlier, after GRAPHITE transforms and IV canonicalization.
3085 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3087         * omp-low.c (extract_omp_for_data): For collapsed loops,
3088         if at least one of the loops is known at compile time to
3089         iterate zero times, set count to 0.
3090         (expand_omp_regimplify_p): New function.
3091         (expand_omp_for_generic): For collapsed loops, if at least
3092         one of the loops isn't known to iterate at least once,
3093         add runtime check with setting count to 0.
3094         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3095         For unsigned types if it isn't known at compile time that
3096         the loop will iterate at least once, add runtime check to bypass
3097         the whole loop if initial condition isn't true.
3099 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3101         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3103 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3105         PR middle-end/57286
3106         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3107         transformations to avoid an infinite loop.
3109 2013-05-16  Marek Polacek  <polacek@redhat.com>
3111         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3113 2013-05-15  Leif Ekblad  <leif@rdos.net>
3115         * config/i386/i386.c (ix86_decompose_address): Use
3116         DEFAULT_TLS_SEG_REG to access TLS segment register.
3117         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3118         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3119         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3121 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3123         PR target/57260
3124         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3125         sibling calls to functions that would normally be lazily bound,
3126         unless $gp is call-clobbered.
3128 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3130         * config/i386/i386.c (ix86_option_override_internal): Update
3131         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3132         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3133         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3134         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3135         of TARGET_3DNOW.
3136         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3138 2013-05-15  Andreas Schwab  <schwab@suse.de>
3140         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3141         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3142         third operand.
3144 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3146         * loop-unroll.c (report_unroll_peel): Check decision before
3147         emitting unroll/peel message.
3149 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3151         * function.h (has_bb_partition): New rtl_data flag.
3152         (bb_reorder_complete): Ditto.
3153         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3154         instead of flag_reorder_blocks_and_partition.
3155         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3156         with some enhancements.
3157         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3158         * bb-reorder.c (connect_traces): Check for has_bb_partition
3159         instead of flag_reorder_blocks_and_partition.
3160         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3161         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3162         verify_hot_cold_block_grouping.
3163         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3165 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3167         PR target/19599
3168         * config/arm/predicates.md (call_insn_operand): New predicate.
3169         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3170         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3171         if insn is not a tail call.
3172         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3173         registers.
3174         * config/arm/arm.h (enum reg_class): New caller save register class.
3175         (REG_CLASS_NAMES): Likewise.
3176         (REG_CLASS_CONTENTS): Likewise.
3177         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3178         without decls.
3180 2013-05-15  Richard Biener  <rguenther@suse.de>
3182         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3183         of MSG_OPTIMIZED_LOCATIONS.
3184         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3185         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3186         message.
3187         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3188         of MSG_OPTIMIZED_LOCATIONS.
3189         (execute_vect_slp): Likewise.
3190         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3191         (vect_create_cond_for_alias_checks): Likewise.
3192         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3193         (vect_recog_widen_mult_pattern): Likewise.
3194         (vect_recog_widen_sum_pattern): Likewise.
3195         (vect_recog_over_widening_pattern): Likewise.
3196         (vect_recog_widen_shift_pattern): Likewise.
3197         (vect_recog_vector_vector_shift_pattern): Likewise.
3198         (vect_recog_divmod_pattern): Likewise.
3199         (vect_recog_mixed_size_cond_pattern): Likewise.
3200         (vect_recog_bool_pattern): Likewise.
3201         (vect_pattern_recog_1): Likewise.
3203 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3205         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3206         non-functions to builtin_unreachable.
3207         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3208         correct when new direct edges were discovered.
3210 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3212         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3213         header, print symbol order instead of node uid, print more information
3214         about indirect edge targets.
3215         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3216         uids.
3217         (ipa_make_edge_direct_to_target): Likewise.
3218         (remove_described_reference): Likewise.
3219         (propagate_controlled_uses): Likewise.
3220         (ipa_print_node_params): Also print symbol order.
3221         (ipcp_transform_function): Print symbol order instead of node uids.
3222         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3223         (cgraph_get_create_real_symbol_node): Likewise.
3224         * ipa-cp.c (print_lattice): Likewise.
3225         (print_all_lattices): Likewise.
3226         (determine_versionability): Likewise.
3227         (initialize_node_lattices): Likewise.
3228         (estimate_local_effects): Likewise.
3229         (update_profiling_info): Likewise.
3230         (create_specialized_node): Likewise.
3231         (perhaps_add_new_callers): Likewise.
3232         (decide_about_value): Likewise.
3233         (decide_whether_version_node): Likewise.
3234         (identify_dead_nodes): Likewise.
3235         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3236         (dump_inline_summary): Likewise.
3237         (estimate_node_size_and_time): Likewise.
3238         (inline_analyze_function): Likewise.
3239         * ipa-inline.c (report_inline_failed_reason): Likewise.
3240         (want_early_inline_function_p): Likewise.
3241         (edge_badness): Likewise.
3242         (update_edge_key): Likewise.
3243         (inline_small_functions): Likewise.  Add dumping of order to two other
3244         dumps.
3245         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3246         instead of node uids.
3247         (propagate_pure_const): Likewise.
3248         (propagate_pure_const): Likewise.
3249         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3250         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3251         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3252         of node uids.
3253         * tree-pretty-print.c (dump_function_header): Likewise.
3254         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3255         Print symbol order instead of node uids.
3257 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3259         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3260         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3262 2013-05-15  Richard Biener  <rguenther@suse.de>
3264         PR tree-optimization/57275
3265         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3266         return value for fail to do runtime alias checks for gather loads.
3268 2013-05-15  Jan Hubicka  <jh@suse.cz>
3270         PR lto/57038
3271         PR lto/47375
3272         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3273         weakrefs are not external.
3274         (lto_symtab_merge_decls): Fix thinko when dealing with
3275         non-lto_symtab decls.
3276         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3277         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3278         * varpool.c (dump_varpool_node): Dump more flags.
3280 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3282         * config/i386/i386.c (processor_alias_table): Add instruction
3283         FSGSBASE for AMD bdver3 architecture.
3285 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3287         * tree.c (warn_deprecated_use): Print file:line using locus color.
3288         * diagnostic.c (diagnostic_report_current_module): Print file:line
3289         and file:line:column using locus color.
3291 2013-05-14  Mike Stump  <mikestump@comcast.net>
3293         * gdbinit.in: Add __null.
3295 2013-05-14  Mike Stump  <mikestump@comcast.net>
3297         * recog.h: Rename struct recog_data to Recog_data.
3298         * recog.c: Likewise.
3299         * reload.c (can_reload_into): Likewise.
3300         * config/picochip/picochip.c: Likewise.
3302 2013-05-14  Mike Stump  <mikestump@comcast.net>
3304         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3306 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3308         * resource.h (struct resources): Remove unch_memory member.
3309         (CLEAR_RESOURCE): Don't clear unch_memory.
3310         * resource.c (mark_referenced_resources): Don't set it.
3311         (mark_set_resources): Likewise.
3312         (mark_target_live_regs): Don't clear it.
3313         (init_resource_info): Likewise.
3314         * reorg.c (resource_conflicts_p): Don't compare it.
3315         (redundant_insn): Don't set it.
3317         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3318         Remove prototypes.
3319         * emit-rtl.c (next_label): Remove unused function.
3320         (skip_consecutive_labels, link_cc0_insns): Move to ...
3321         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3322         only place where these functions are used, and make them static.
3324 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3326         * fold-const.c (fold_negate_expr): Handle vectors.
3327         (fold_truth_not_expr): Make it static.
3328         (fold_invert_truthvalue): New static function.
3329         (invert_truthvalue_loc): Handle vectors. Do not call
3330         fold_truth_not_expr directly.
3331         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3332         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3333         (fold_comparison): Handle vector constants.
3334         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3335         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3336         * tree.h (fold_truth_not_expr): Remove declaration.
3338 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3340         * config/aarch64/aarch64-simd.md
3341         (aarch64_vcond_internal<mode>): Rename to...
3342         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3343         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3344         float modes. Clarify all iterator modes.
3345         (vcond<mode><mode>): Use new name for vcond expanders.
3346         (vcond<v_cmp_result><mode>): Likewise.
3347         (vcondu<mode><mode>: Likewise.
3348         * config/aarch64/iterators.md (VDQF_COND): New.
3350 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3352         PR bootstrap/57266
3353         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3354         variable for the shift amount. Check that we shift by non-negative
3355         amounts.
3357 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3359         PR target/42017
3360         * config/arm/arm.h (EPILOGUE_USES): Only return true
3361         for LR_REGNUM after epilogue_completed.
3363 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3365         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3366         is error_mark_node.
3368 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3370         PR target/57261
3371         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3372         and Solaris 11+/x86 with gld.
3373         * configure: Regenerate.
3375 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3377         * expmed.c (expand_shift_1): Canonicalize rotates by
3378         constant bitsize / 2 to bitsize - 1.
3379         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3380         case ROTATERT>: Likewise.
3382         Revert:
3383         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3385         * config/i386/i386.md (rotateinv): New code attr.
3386         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3387         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3388         roll $31, %eax, etc.
3390 2013-05-14  Richard Biener  <rguenther@suse.de>
3392         PR middle-end/57235
3393         * tree-eh.c (sink_clobbers): Give up for successors with
3394         multiple predecessors and no virtual uses.
3396 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3398         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3399         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3401 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3403         PR middle-end/57251
3404         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3405         the case when both op0 and op1 have VOIDmode.
3407 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3409         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3410         in multiply-accumulate mode.
3412 2013-05-13  Guozhi Wei  <carrot@google.com>
3414         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3416 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3418         PR target/56975
3419         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3420         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3421         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3422         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3423         (ix86_expand_prologue): Likewise.
3424         (ix86_expand_split_stack_prologue): Likewise.
3425         (legitimate_pic_address_disp_p): Likewise.
3426         (legitimize_pic_address): Likewise.
3427         (legitimize_tls_address): Likewise.
3428         (legitimize_pe_coff_symbol): Likewise.
3429         (output_pic_addr_const): Likewise.
3430         (construct_plt_address): Likewise.
3431         (ix86_expand_call): Likewise.
3432         (x86_output_mi_thunk): Likewise.
3433         (x86_function_profiler): Likewise.
3435 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3437         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3438         similar switch cases.
3439         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3440         (aarch64_simd_mov_to_<mode>low): Delete.
3441         (aarch64_simd_mov_to_<mode>high): Delete.
3442         (move_lo_quad_<mode>): Add w<-r alternative.
3443         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3444         (aarch64_simd_mov_from_*): Update type attribute.
3445         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3446         statement.
3448 2013-05-13  Jan Hubicka  <jh@suse.cz>
3450         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3451         * config/i386/i386.c (ix86_compute_frame_layout,
3452         ix86_expand_epilogue, emit_i387_cw_initialization,
3453         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3454         ix86_local_alignment): Fix use of size/speed predicates.
3456 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3458         PR tree-optimization/45216
3459         PR tree-optimization/57157
3460         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3461         the (-Y) & (B - 1) variant if OP is |.
3462         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3463         return shifted.  Use (-op1) & (prec - 1) as other_amount
3464         instead of prec - op1.
3466 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3468         PR middle-end/42371
3469         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3470         (ipa_constant_data): New type.
3471         (ipa_jump_func): Use ipa_constant_data to hold information about
3472         constant jump functions.
3473         (ipa_get_jf_constant): Adjust to jump function type changes.
3474         (ipa_get_jf_constant_rdesc): New function.
3475         (ipa_param_descriptor): New field controlled_uses.
3476         (ipa_get_controlled_uses): New function.
3477         (ipa_set_controlled_uses): Likewise.
3478         * ipa-ref.h (ipa_find_reference): Declare.
3479         * ipa-prop.c (ipa_cst_ref_desc): New type.
3480         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3481         changes.
3482         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3483         New parameter cs.  Adjust all callers.
3484         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3485         (remove_described_reference): New function.
3486         (jfunc_rdesc_usable): Likewise.
3487         (try_make_edge_direct_simple_call): Decrement controlled use count,
3488         attempt to remove reference if it hits zero.
3489         (combine_controlled_uses_counters): New function.
3490         (propagate_controlled_uses): Likewise.
3491         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3492         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3493         (ipa_print_node_params): Print described use counter.
3494         (ipa_write_jump_function): Adjust to jump function type changes.
3495         (ipa_read_jump_function): New parameter CS, pass it to
3496         ipa_set_jf_constant.  Adjust caller.
3497         (ipa_write_node_info): Stream controlled use count
3498         (ipa_read_node_info): Likewise.
3499         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3500         asserting.
3501         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3502         count.  Remove cloning-added reference if it reaches zero.
3503         * ipa-ref.c (ipa_find_reference): New function.
3505 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3507         * config/i386/i386.c (processor_target_table): Modified default
3508         alignment values for AMD BD and BT architectures.
3510 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3512         * tree-vect-generic.c (uniform_vector_p): Move ...
3513         * tree.c (uniform_vector_p): ... here.
3514         * tree.h (uniform_vector_p): Declare it.
3515         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3516         into a scalar.
3518 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3520         PR tree-optimization/57230
3521         * tree-ssa-strlen.c (handle_char_store): Record length for
3522         array store from STRING_CST.
3524         PR tree-optimization/57230
3525         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3526         check.
3528 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3530         * config/epiphany/epiphany.c (epiphany_init): Check size of
3531         NUM_MODES_FOR_MODE_SWITCHING.
3532         (epiphany_expand_prologue):
3533         Remove CONFIG_REGNUM initial value handling code.
3534         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3535         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3536         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3537         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3538         Don't return 1 for FP_MODE_NONE.
3539         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3540         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3541         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3542         * config/epiphany/epiphany.md (save_config): New pattern.
3544 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3546         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3548 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3550         * config/i386/i386.md (memory): Handle sseishft1.
3551         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3552         (*vec_extractv2di_1): Ditto.
3554 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3556         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3557         saved registers.
3559 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3561         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3562         Add mthumb/march=armv7-a multilib.
3563         Add mthumb/march=armv7-r multilib.
3564         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3566 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3568         * config/v850/t-rtems: Add more multilibs.
3570 2013-05-10  Richard Biener  <rguenther@suse.de>
3572         PR tree-optimization/57214
3573         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3574         not propagate from SSA names that occur in abnormal PHI nodes.
3576 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3578         * stor-layout.c (element_precision): New function.
3579         * machmode.h (element_precision): Declare it.
3580         * tree.c (build_minus_one_cst): New function.
3581         (element_precision): Likewise.
3582         * tree.h (build_minus_one_cst): Declare new function.
3583         (element_precision): Likewise.
3584         * fold-const.c (operand_equal_p): Use element_precision.
3585         (fold_binary_loc): Handle vector types.
3586         * convert.c (convert_to_integer): Use element_precision.
3587         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3588         separately.
3590 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3592         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3593         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3594         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3595         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3596         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3597         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3598         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3599         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3600         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3601         (Uuw8): New constraints.
3602         (Usb4): Move into alphabetical order.
3603         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3604         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3605         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3606         previously unnamed patterns.
3607         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3608         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3609         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3610         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3611         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3612         of specific lengths.
3614 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3616         * config/i386/i386.md (rotateinv): New code attr.
3617         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3618         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3619         roll $31, %eax, etc.
3621         PR tree-optimization/45216
3622         PR tree-optimization/57157
3623         * tree-ssa-forwprop.c (simplify_rotate): New function.
3624         (ssa_forward_propagate_and_combine): Call it.
3626 2013-05-10  Richard Biener  <rguenther@suse.de>
3628         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3629         disable peeling when we version for aliasing.
3630         (vector_alignment_reachable_p): Honor explicit user alignment.
3631         (vect_supportable_dr_alignment): Likewise.
3632         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3633         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3634         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3635         then peeling to arrange for the cost-model check to come first.
3637 2013-05-10  Alan Modra  <amodra@gmail.com>
3639         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3640         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3641         * configure: Regenerate.
3643 2013-05-10  Alan Modra  <amodra@gmail.com>
3645         PR target/55033
3646         * varasm.c (default_elf_select_section): Move !DECL_P check..
3647         (get_named_section): ..to here before calling get_section_name.
3648         Adjust assertion.
3649         (default_section_type_flags): Add DECL_P check.
3650         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3651         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3653 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3655         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3656         When using gen_stack_adjust_str with a register offset, add a
3657         REG_FRAME_RELATED_EXPR note.
3659 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3661         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3662         (*vec_extractv4si_zext_mem): Ditto.
3663         (*vec_extractv2di): Add 0->x and x->x alternatives.
3664         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3665         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3667 2013-05-09  Jason Merrill  <jason@redhat.com>
3669         N3639 C++1y VLA support
3670         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3671         DECL_VALUE_EXPR.
3673         * tree.c (build_constructor_va): New.
3674         * tree.h: Declare it.
3676 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3678         PR lto/57084
3679         * gimple-fold.c (canonicalize_constructor_val): Call
3680         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3682 2013-05-09  Jan Hubicka  <jh@suse.cz>
3683             Richard Biener  <rguenther@suse.de>
3685         PR lto/54095
3686         * symtab.c (symtab_make_decl_local): Do not add private names.
3688 2013-05-09  Jan Hubicka  <jh@suse.cz>
3690         PR lto/54095
3691         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3692         (unlink_from_assembler_name_hash): Likewise.
3693         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3694         symtab_unregister_node, symtab_initialize_asm_name_hash,
3695         change_decl_assembler_name): Update.
3697 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3699         * config/aarch64/aarch64.md: New movtf split.
3700         (*movtf_aarch64): Update.
3701         (aarch64_movdi_tilow): Handle TF modes and rename to
3702         aarch64_movdi_<mode>low.
3703         (aarch64_movdi_tihigh): Handle TF modes and rename to
3704         aarch64_movdi_<mode>high
3705         (aarch64_movtihigh_di): Handle TF modes and rename to
3706         aarch64_mov<mode>high_di
3707         (aarch64_movtilow_di): Handle TF modes and rename to
3708         aarch64_mov<mode>low_di
3709         (aarch64_movtilow_tilow): Remove spurious whitespace.
3710         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3711         splits.
3712         (aarch64_print_operand): Update.
3714 2013-05-09  Alan Modra  <amodra@gmail.com>
3716         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3717         powerpc64le.
3718         * configure: Regenerate.
3720 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3722         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3723         splitter preparation statements.
3724         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3725         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3726         adjust_address_nv.
3728 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3730         * gimple-ssa-strength-reduction.c (count_candidates): Change
3731         return value to int.
3732         (analyze_candidates_and_replace): Change type of length to int.
3734 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3736         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3737         (*vec_extract<mode>): Use VI12_128 mode iterator.
3738         (*vec_extract<mode>_mem): Ditto.
3739         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3740         attribute.
3742 2013-05-08  Diego Novillo  <dnovillo@google.com>
3744         PR bootstrap/54659
3746         Revert:
3747         2012-08-17  Diego Novillo  <dnovillo@google.com>
3749         PR bootstrap/54281
3750         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3751         * config.in: Regenerate.
3752         * configure: Regenerate.
3753         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3755 2013-05-08  Jan Hubicka  <jh@suse.cz>
3757         PR lto/54095
3758         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3759         * cgraph.h (symtab_node_base): Add unique_name.
3760         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3761         input_overwrite_node, input_varpool_node): Stream unique_name.
3762         * cgraphclones.c (cgraph_create_virtual_clone,
3763         cgraph_function_versioning): Set unique_name.
3764         * ipa.c (function_and_variable_visibility): Set unique_name.
3766 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3768         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3769         (alloc_cand_and_find_basis): Restrict conditional candidate
3770         processing to CAND_MULTs.
3772 2013-05-08  Jan Hubicka  <jh@suse.cz>
3774         PR lto/54095
3775         lto-symtab.c (lto_symtab_symbol_p): New function.
3776         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3777         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3778         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3779         Skip static symbols.
3781 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
3783         PR tree-optimization/57200
3784         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3785         Only call inform if the preceding warning_at returns true.
3787 2013-05-07  Han Shen  <shenhan@google.com>
3789         * cfgexpand.c (record_or_union_type_has_array_p): New function.
3790         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3791         * common.opt (fstack-protector-strong): New option.
3792         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3793         * doc/invoke.texi (Optimization Options): Document
3794         "-fstack-protector-strong".
3795         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3797 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3799         * config/mips/mips.c (mips_machine_reorg2): Return 0.
3801 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
3803         * ira.c (update_equiv_regs): Add insn having equiv memory even if
3804         it is not lhs of the insn.
3805         (setup_reg_equiv): Remove insn having equiv memory which it is not
3806         lhs of the insn.
3807         * lra-constraints.c (process_address): Try to improve generation
3808         code for address base + disp.
3809         (lra_constraints): Make correct the code for checking insn setting
3810         up backward equivalence.  Remove insn only if it is in the init
3811         insn list.
3812         * lra-eliminations.c (update_reg_eliminate): Change return value.
3813         (lra_eliminate): Use the result.
3815 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
3817         * config/i386/sse.md (ssescalarnummask): New mode attribute.
3818         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3819         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3820         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3821         register target operands.
3822         (*vec_extractv8hi_sse2): New pattern.
3823         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3824         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3825         (*vec_extract<mode>_mem): New insn and split pattern.
3827 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
3829         * config/arm/arm.c (arm_asan_shadow_offset): New function.
3830         (TARGET_ASAN_SHADOW_OFFSET): Define.
3831         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3832         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3834 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3836         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3837         (incr_vec_index): Return -1 if increment not found.
3838         (create_add_on_incoming_edge): Assert if increment not found.
3839         (record_increment): Limit number of increments recorded.
3840         (all_phi_incrs_profitable): Return false if an increment not found.
3841         (replace_profitable_candidates): Don't process increments that were
3842         not recorded.
3843         (analyze_candidates_and_replace): Limit size of incr_vec.
3845 2013-05-07  Richard Biener  <rguenther@suse.de>
3847         * calls.c (special_function_p): setjmp-like functions are leaf.
3848         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3849         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3851 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
3853         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3854         (aarch64_simd_mov<mode>): New expander.
3855         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3856         (aarch64_simd_mov_to_<mode>high): Likewise.
3857         (aarch64_simd_mov_from_<mode>low): Likewise.
3858         (aarch64_simd_mov_from_<mode>high): Likewise.
3859         (aarch64_dup_lane<mode>): Update.
3860         (aarch64_dup_lanedi): New instruction pattern.
3861         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3862         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3864 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3866         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3867         (replace_mult_candidate): Remove unnecessary argument; remove
3868         unnecessary parameter from call to introduce_cast_before_cand.
3869         (replace_unconditional_candidate): Remove unnecessary parameter
3870         from call to replace_mult_candidate.
3871         (replace_conditional_candidate): Likewise.
3872         (insert_initializers): Use make_temp_ssa_name.
3873         (introduce_cast_before_cand): Remove unnecessary argument; use
3874         make_temp_ssa_name.
3875         (replace_one_candidate): Remove unnecessary argument; remove
3876         unnecessary parameter from calls to introduce_cast_before_cand.
3877         (replace_profitable_candidates): Remove unnecessary parameters
3878         from calls to replace_one_candidate.
3880 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3882         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3883         phi def as possibly hiding a basis for a CAND_ADD whose operands
3884         have been commuted in the analysis.
3885         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3887 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3889         * config/aarch64/aarch64.md
3890         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3891         shift value between 0-4.
3893 2013-05-07  Richard Biener  <rguenther@suse.de>
3895         * double-int.h (rshift): New overload.
3896         * double-int.c (rshift): New function.
3897         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3898         (create_reference_ops_from_ref): Remove.
3899         (vn_reference_insert): Use shared ops for constructing the
3900         reference and copy it.
3902 2013-05-07  Richard Biener  <rguenther@suse.de>
3904         PR middle-end/57190
3905         * tree-eh.c (sink_clobbers): Properly propagate
3906         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3908 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
3910         PR tree-optimization/57149
3911         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3912         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3913         collect_phi_def_edges, execute_late_warn_uninitialized): Use
3914         uninit_undefined_value_p instead of ssa_undefined_value_p.
3916         PR debug/57184
3917         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3918         for modifier == EXPAND_INITIALIZER.
3920 2013-05-07  Anton Blanchard  <anton@samba.org>
3922         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3923         for powerpc64 little endian.
3924         * configure: Regenerate.
3926 2013-05-06  Graham Stott  <grahams@btinternet.com>
3928         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3929         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3930         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3931         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3933 2013-05-06  Graham Stott  <grahams@btinternet.com>
3935         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3936         codes which allow non-lvalues.
3938 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
3940         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3941         components are all 1s.
3942         (integer_minus_onep): New function.
3943         * tree.h (integer_minus_onep): Declare it.
3944         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3945         integer_minus_onep instead of integer_all_onesp.
3947 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3949         PR target/52933
3950         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3951         variations of these patterns.
3953 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3955         * config/i386/i386.md (isa): Add x64_sse4 member.
3956         (enabled): Handle x64_sse4.
3957         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3958         instruction for 64bit SSE4_1 targets.  Update insn attributes.
3959         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3960         instruction for SSE4_1 targets.  Update insn attributes.
3961         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3962         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3963         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3964         const_1 selector.
3965         (*vec_extractv4si): Rename from *sse4_1_pextrd.
3966         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3967         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3969 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3971         PR target/57108
3972         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3974 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
3976         * final.c (do_assembler_dialects): Don't handle curly braces and
3977         vertical bar escaped by % as dialect delimiters.
3978         (output_asm_insn): Print curly braces and vertical bar if escaped
3979         by % and ASSEMBLER_DIALECT defined.
3980         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3981         * doc/tm.texi: Regenerated.
3983 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3985         * config/mips/mips.c: Include tree-pass.h.
3986         (mips_reorg): Split in pre- and post-dbr_schedule parts.
3987         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3988         (pass_mips_machine_reorg2): New machine specific pass.
3989         (insert_pass_mips_machine_reorg2): New pass plugin definition.
3990         (mips_option_override): Register the new pass.
3991         * rtl.h (cleanup_barriers): Remove prototype.
3992         (dbr_schedule): Likewise.
3993         * jump.c (cleanup_barriers): Make static.
3994         * reorg.c (dbr_schedule): Likewise.
3996 2013-05-06  Richard Biener  <rguenther@suse.de>
3998         PR tree-optimization/57185
3999         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4000         SSA names properly.
4002 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4004         PR target/57106
4005         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4006         between "first_arg" and "insn", not "last" and "insn".
4008 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4010         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4011         (find_candidates_in_block): Re-enable slsr_process_phi.
4012         (create_phi_basis): Fix double counting of candidate adjustment.
4014 2013-05-06  Richard Biener  <rguenther@suse.de>
4016         PR middle-end/57147
4017         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4018         the edge is also fallthru, preserve it and just clear the
4019         abnormal flag.
4020         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4021         also complex, preserve that and just clear the fallthru flag.
4022         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4023         update virtual operands.
4025 2013-05-06  Alan Modra  <amodra@gmail.com>
4027         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4028         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4029         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4030         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4031         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4032         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4034 2013-05-06  Alan Modra  <amodra@gmail.com>
4036         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4037         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4038         (DEFAULT_ASM_ENDIAN): Define.
4039         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4040         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4041         Update -K PIC clause from sysv4.h.
4042         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4043         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4045 2013-05-06  Alan Modra  <amodra@gmail.com>
4047         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4048         twice for little-endian.
4049         (ashrdi3_no_power, ashrdi3): Support little-endian.
4051 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4053         PR target/55303
4054         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4055         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4056         related expanders.
4057         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4058         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4059         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4060         New predicates.
4062 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4063             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4065         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4066         * config/pa/pa.opt: Make mbig-switch a no-op.
4067         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4068         (CASE_VECTOR_MODE): Always return SImode.
4069         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4070         for the !TARGET_BIG_SWITCH case.
4071         * config/pa/pa-linux.h: Likewise.
4072         * config/pa/pa-openbsd.h: Likewise.
4073         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4074         * config/pa/pa.md (short_jump): Remove define_insn.
4075         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4076         (casesi0): Remove define_insn.
4077         (type): Remove btable_branch.
4078         (pa_combine_type): Likewise.
4079         (in_nullified_branch_delay): Likewise.
4080         (in_call_delay): Likewise.
4081         (define_delay): Likewise.
4082         (define_insn_reservation "Z3"): Likewise.
4083         (define_insn_reservation "Z4"): Likewise.
4084         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4085         (pa_adjust_insn_length): Remove adjustment for btable branches.
4086         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4087         and mno-big-switch
4089 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4091         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4092         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4093         Add m->r,x alternatives.
4094         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4095         splitters using SWI48x mode iterator.
4096         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4097         TARGET_64BIT.  Add m->x alternative.
4098         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4099         Add o->x alternative.  Enable for TARGET_SSE.
4100         (sse_storeq): Remove expander.
4101         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4102         with memory input operand.
4103         (*vec_extractv2di_1 splitter): New.
4104         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4105         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4107 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4109         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4110         (INT_LOWPART): Delete.
4111         (extract_MB): Adjust.
4112         (extract_ME): Adjust.
4113         (print_operand): Adjust.
4115 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4117         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4118         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4119         (reg_or_logical_cint_operand, easy_fp_constant,
4120         logical_const_operand): Delete "CONST_DOUBLE" case.
4121         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4122         "HOST_BITS_PER_WIDE_INT == 64" test.
4123         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4124         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4125         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4126         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4127         test.
4128         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4129         CONST_DOUBLE DImode/VOIDmode case.
4130         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4131         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4132         CONST_DOUBLE VOIDmode case.
4133         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4134         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4135         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4136         Delete CONST_DOUBLE case.
4137         (splitters for mov FMOVE64 const_double): Delete
4138         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4139         "HOST_BITS_PER_WIDE_INT >= 64" test.
4140         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4141         case.
4142         (mov DI const_double): Delete.
4144 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4146         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4147         on op shows all bits zero in mode of a lowpart subreg, return zero.
4149 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4151         PR target/57150
4152         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4153         to save TFmode registers and DImode to save TImode registers for
4154         caller save operations.
4155         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4156         mark being partially clobbered since they only use the first
4157         double word.
4159         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4160         and TDmode only use the upper 64-bits of each VSX register.
4162 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4164         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4165         (find_candidates_in_block): Disable slsr_process_phi.
4167 2013-05-03  Guozhi Wei  <carrot@google.com>
4169         * coverage.c (coverage_obj_init): Move the construction of gcov
4170         constructor to ...
4171         (build_init_ctor): ... here.
4173 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4175         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4176         (slsr_cand_d): Redefine def_phi.
4177         (stride_status, phi_adjust_status, count_phis_status): New enums.
4178         (find_phi_def): New.
4179         (find_basis_for_base_expr): New.
4180         (find_basis_for_candidate): Handle hidden bases.
4181         (alloc_cand_and_find_basis): Handle phi candidates.
4182         (slsr_process_phi): New.
4183         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4184         (create_mul_imm_cand): Likewise.
4185         (create_add_ssa_cand): Exclude phi base candidates.
4186         (create_add_imm_cand): Likewise.
4187         (slsr_process_cast): Likewise.
4188         (slsr_process_copy): Likewise.
4189         (find_candidates_in_block): Handle phi candidates.
4190         (dump_candidate): Likewise.
4191         (unconditional_cands): Delete.
4192         (unconditional_cands_with_known_stride_p): Delete.
4193         (phi_dependent_cand_p): New.
4194         (cand_increment): Handle phi-dependent candidates.
4195         (replace_dependent): Delete.
4196         (replace_mult_candidate): New.
4197         (replace_unconditional_candidate): New.
4198         (incr_vec_index): Move to avoid forward reference.
4199         (create_add_on_incoming_edge): New.
4200         (create_phi_basis): New.
4201         (replace_dependents): Delete.
4202         (replace_conditional_candidate): New.
4203         (phi_add_costs): New.
4204         (replace_uncond_cands_and_profitable_phis): New.
4205         (record_increment): Handle phi adjustments.
4206         (record_phi_increments): New.
4207         (record_increments): Handle phi adjustments.
4208         (phi_incr_cost): New.
4209         (lowest_cost_path): Handle phis.
4210         (total_savings): Likewise.
4211         (analyze_increments): Likewise.
4212         (ncd_with_phi): New.
4213         (ncd_of_cand_and_phis): New.
4214         (nearest_common_dominator_for_cands): Handle phi increments.
4215         (all_phi_incrs_profitable): New.
4216         (replace_profitable_candidates): Handle phi-dependent candidates.
4217         (analyze_candidates_and_replace): Likewise.
4219 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4221         PR bootstrap/57154
4222         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4223         do not exceed REG_BR_PROB_BASE.
4225 2013-05-03  Jeff Law  <law@redhat.com>
4227         PR tree-optimization/57144
4228         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4229         operand of the condition will bit into the new type when eliminating
4230         a cast feeding a condition.
4232 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4234         PR rtl-optimization/57130
4235         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4236         of COMPARE as in_code to the recursive call if needed.
4238 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4240         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4241         (enabled): Handle new members.
4242         * config/i386/sse.md (*vec_concatv2si): Merge from
4243         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4244         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4246 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4248         PR tree-optimization/57027
4249         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4250         for fnms opportunity, check we got the prerequisite kind
4251         of tree / gimple before using accessor functions.
4253 2013-05-03  Richard Biener  <rguenther@suse.de>
4255         * double-int.h (lshift): New overload without precision
4256         and arith argument.
4257         (operator *=, operator +=, operator -=): Move ...
4258         * double-int.c (operator *=, operator +=, operator -=): ... here
4259         and implement more efficiently.
4260         (mul_double_with_sign): Remove.
4261         (lshift_double): Adjust to take unsinged shift argument, push
4262         dispatching code to callers.
4263         (mul_double_wide_with_sign): Add early out for callers that
4264         are not interested in high parts or overflow.
4265         (lshift): New function.
4266         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4267         dispatch code here.
4268         (lrotate, rrotate): Use logical shifts.
4269         * expr.c (get_inner_reference): Use lshift.
4270         * fixed-value.c (do_fixed_divide): Likewise.
4271         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4272         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4273         (indirect_refs_may_alias_p): Likewise.
4274         (stmt_kills_ref_p_1): Likewise.
4276 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4278         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4280 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4282         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4283         scalar form of FABD instruction.
4285 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4287         * lra-constraints.c (process_alt_operands): Add checking alt
4288         number to choose the best alternative.
4290 2013-05-02  Richard Biener  <rguenther@suse.de>
4292         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4293         bitmap and its handling.
4294         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4296 2013-05-02  Richard Biener  <rguenther@suse.de>
4298         PR middle-end/57140
4299         * tree-inline.c (copy_loops): Properly handle removed loops.
4300         (copy_cfg_body): Mark destination loops for fixup if source
4301         loops needed fixup.
4303 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4305         PR target/56732
4306         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4307         generating simple_return for naked functions.
4309 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4311         PR middle-end/56988
4312         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4313         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4314         flags match.
4315         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4316         ipa_agg_replacement_value structures.
4317         (known_aggs_to_agg_replacement_list): Likewise.
4318         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4319         (read_agg_replacement_chain): Likewise.
4320         (ipcp_transform_function): Also check that by_ref flags match.
4322 2013-05-02  Richard Biener  <rguenther@suse.de>
4324         * graphds.h (struct graph): Add obstack member.
4325         * graphds.c (new_graph): Initialize obstack and allocate
4326         vertices from it.
4327         (add_edge): Allocate edge from the obstack.
4328         (free_graph): Free the obstack instead of all edges and vertices.
4330 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4332         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4333         divides.
4334         * cfg.c (update_bb_profile_for_threading): Ditto.
4335         * tree-inline.c (copy_bb): Ditto.
4336         (copy_edges_for_bb): Ditto.
4337         (initialize_cfun): Ditto.
4338         (copy_cfg_body): Ditto.
4339         (expand_call_inline): Ditto.
4340         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4341         (estimate_node_size_and_time): Ditto.
4342         (inline_merge_summary): Ditto.
4343         * cgraphclones.c (cgraph_clone_edge): Ditto.
4344         (cgraph_clone_node): Ditto.
4345         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4346         (compute_trg_info): Ditto.
4348 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4350         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4351         S reg when fp attribute set.
4352         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4354 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4356         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4357         New pattern.
4358         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4359         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4360         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4362 2013-05-02  Richard Biener  <rguenther@suse.de>
4364         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4365         (struct instantiate_cache_entry): New type.
4366         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4367         (struct instantiate_cache_type): New type.
4368         (set_instantiated_value, get_instantiated_value): Remove.
4369         (get_instantiated_value_entry): New function.
4370         (instantiate_scev_name): Use the new cache and adjust.
4371         (instantiate_scev_poly): Adjust.
4372         (instantiate_scev_binary): Likewise.
4373         (instantiate_array_ref): Likewise.
4374         (instantiate_scev_convert): Likewise.
4375         (instantiate_scev_not): Likewise.
4376         (instantiate_scev_3): Likewise.
4377         (instantiate_scev_2): Likewise.
4378         (instantiate_scev_r): Likewise.
4379         (instantiate_scev): Likewise.
4380         (resolve_mixers): Likewise.
4382 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4384         PR target/57091
4385         * lra-constraints.c (best_small_class_operands_num): Remove.
4386         (process_alt_operands): Remove small_class_operands_num.  Take
4387         small classes operands into losers and only if the operand is not
4388         matched.  Modify debugging output.
4389         (curr_insn_transform): Remove best_small_class_operands_num.
4390         Print insn name.
4392 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4394         * config/aarch64/aarch64-builtins.c
4395         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4396         * config/aarch64/aarch64-simd-builtins.def
4397         (reduc_splus_): Add new modes.
4398         (reduc_uplus_): New.
4399         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4400         (reduc_uplus_v4sf): Likewise.
4401         (reduc_splus_v4sf): Likewise.
4402         (aarch64_addv<mode>): Likewise.
4403         (reduc_uplus_<mode>): Likewise.
4404         (reduc_splus_<mode>): Likewise.
4405         (aarch64_addvv2di): Likewise.
4406         (reduc_uplus_v2di): Likewise.
4407         (reduc_splus_v2di): Likewise.
4408         (aarch64_addvv2si): Likewise.
4409         (reduc_uplus_v2si): Likewise.
4410         (reduc_splus_v2si): Likewise.
4411         (reduc_<sur>plus_<mode>): New.
4412         (reduc_<sur>plus_v2di): Likewise.
4413         (reduc_<sur>plus_v2si): Likewise.
4414         (reduc_<sur>plus_v4sf): Likewise.
4415         (aarch64_addpv4sf): Likewise.
4416         * config/aarch64/arm_neon.h
4417         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4418         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4419         add UNSPEC_SADDV, UNSPEC_UADDV.
4420         (SUADDV): New.
4421         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4423 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4425         * config/aarch64/arm_neon.h
4426         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4428 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4430         * config/aarch64/aarch64-builtins
4431         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4433 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4435         * config/aarch64/aarch64-simd-builtins.def
4436         (reduc_smax_): New.
4437         (reduc_smin_): Likewise.
4438         (reduc_umax_): Likewise.
4439         (reduc_umin_): Likewise.
4440         (reduc_smax_nan_): Likewise.
4441         (reduc_smin_nan_): Likewise.
4442         (fmax): Remove.
4443         (fmin): Likewise.
4444         (smax): Update for V2SF, V4SF and V2DF modes.
4445         (smin): Likewise.
4446         (smax_nan): New.
4447         (smin_nan): Likewise.
4448         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4449         (<su><maxmin><mode>3): ...This, refactor.
4450         (s<maxmin><mode>3): New.
4451         (<maxmin_uns><mode>3): Likewise.
4452         (reduc_<maxmin_uns>_<mode>): Refactor.
4453         (reduc_<maxmin_uns>_v4sf): Likewise.
4454         (reduc_<maxmin_uns>_v2si): Likewise.
4455         (aarch64_<fmaxmin><mode>: Remove.
4456         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4457         new builtin names.
4458         (vmin<q>_f<32,64>): Likewise.
4459         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4460         (FMAXMIN): New.
4461         (su): Add mappings for smax, smin, umax, umin.
4462         (maxmin): New.
4463         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4464         (FMAXMIN): Rename as...
4465         (FMAXMIN_UNS): ...This.
4466         (maxminv): Remove.
4467         (fmaxminv): Likewise.
4468         (fmaxmin): Likewise.
4469         (maxmin_uns): New.
4470         (maxmin_uns_op): Likewise.
4472 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4474         * config/aarch64/arm_neon.h
4475         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4476         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4477         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4479 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4481         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4482         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4484 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4486         * config/aarch64/aarch64-simd.md
4487         (vcond<mode>_internal): Handle special cases for constant masks.
4488         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4489         (vcondu<mode><mode>): Likewise.
4490         (vcond<v_cmp_result><mode>): New.
4492 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4494         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4495         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4496         * config/aarch64/aarch64-simd-builtins.def
4497         (cmeq): Update to BUILTIN_VALLDI.
4498         (cmgt): Likewise.
4499         (cmge): Likewise.
4500         (cmle): Likewise.
4501         (cmlt): Likewise.
4502         * config/aarch64/arm_neon.h
4503         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4504         to builtins or C as appropriate.
4506 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4508         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4509         (cmgeu): ...This.
4510         (cmhi): Rename to...
4511         (cmgtu): ...This.
4512         * config/aarch64/aarch64-simd.md
4513         (simd_mode): Add SF.
4514         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4515         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4516         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4517         (cstore<mode>_neg): ...This.
4518         * config/aarch64/iterators.md
4519         (VALLF): new.
4520         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4521         (COMPARISONS): New.
4522         (UCOMPARISONS): Likewise.
4523         (optab): Add missing comparisons.
4524         (n_optab): New.
4525         (cmp_1): Likewise.
4526         (cmp_2): Likewise.
4527         (CMP): Likewise.
4528         (cmp): Remove.
4529         (VCMP_S): Likewise.
4530         (VCMP_U): Likewise.
4531         (V_cmp_result): Add DF, SF modes.
4532         (v_cmp_result): Likewise.
4533         (v): Likewise.
4534         (vmtype): Likewise.
4535         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4537 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4539         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4540         define_insn to define_insn_and_split.
4541         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4542         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4543         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4544         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4545         (thumb2_negscc): Likewise.
4547 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4549         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4551 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4553         * config/arm/thumb2.md: Remove trailing whitespaces.
4555 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4557         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4558         Use gen_int_mode rather than GEN_INT.
4560 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4562         * value-prof.c (stream_in_histogram_value): Remove the strayed
4563         debug_gimple_stmt.
4565 2013-04-30  Richard Biener  <rguenther@suse.de>
4567         PR middle-end/57122
4568         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4570 2013-04-30  Richard Biener  <rguenther@suse.de>
4572         PR middle-end/57107
4573         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4575 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4577         PR rtl-optimization/56957
4578         PR rtl-optimization/57105
4579         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4580         variable.  Use just INSN_UID for determining whether an insn
4581         should be only disconnected from the insn stream.
4582         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4584 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4586         PR tree-optimization/57104
4587         * tsan.c (instrument_expr): Don't instrument accesses to
4588         DECL_HARD_REGISTER VAR_DECLs.
4590 2013-04-30  Richard Biener  <rguenther@suse.de>
4592         * function.h (loops_for_fn): New inline function.
4593         (set_loops_for_fn): Likewise.
4594         * cfgloop.h (place_new_loop): Add struct function parameter.
4595         (get_loop): Likewise.
4596         (get_loops): Likewise.
4597         (number_of_loops): Likewise.
4598         (fel_next): Adjust.
4599         (fel_init): Likewise.
4600         * cfg.c (get_loop_copy): Adjust.
4601         * cfgloop.c (flow_loops_dump): Likewise.
4602         (record_loop_exits): Likewise.
4603         (verify_loop_structure): Likewise.
4604         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4605         (estimate_reg_pressure_cost): Likewise.
4606         (mark_loop_exit_edges): Likewise.
4607         * cfgloopmanip.c (place_new_loop): Likewise.
4608         (add_loop): Likewise.
4609         (duplicate_loop): Likewise.
4610         * graph.c (draw_cfg_nodes): Likewise.
4611         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4612         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4613         (extract_affine_chrec): Likewise.
4614         (build_scop_iteration_domain): Likewise.
4615         * graphite.c (graphite_initialize): Likewise.
4616         * ira-build.c (create_loop_tree_nodes): Likewise.
4617         (more_one_region_p): Likewise.
4618         (rebuild_regno_allocno_maps): Likewise.
4619         (mark_loops_for_removal): Likewise.
4620         (mark_all_loops_for_removal): Likewise.
4621         (remove_unnecessary_regions): Likewise.
4622         (ira_build): Likewise.
4623         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4624         * loop-init.c (fix_loop_structure): Likewise.
4625         (gate_rtl_move_loop_invariants): Likewise.
4626         (gate_rtl_unswitch): Likewise.
4627         (gate_rtl_unroll_and_peel_loops): Likewise.
4628         (rtl_doloop): Likewise.
4629         * lto-streamer-in.c (input_cfg): Likewise.
4630         * lto-streamer-out.c (output_cfg): Likewise.
4631         * modulo-sched.c (sms_schedule): Likewise.
4632         * predict.c (tree_estimate_probability): Likewise.
4633         (tree_estimate_probability_driver): Likewise.
4634         (estimate_loops): Likewise.
4635         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4636         (move_sese_region_to_fn): Likewise.
4637         (debug_loop_num): Likewise.
4638         * tree-chrec.c (chrec_evaluate): Likewise.
4639         (hide_evolution_in_other_loops_than_loop): Likewise.
4640         (chrec_component_in_loop_num): Likewise.
4641         (reset_evolution_in_loop): Likewise.
4642         (evolution_function_is_invariant_rec_p): Likewise.
4643         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4644         * tree-inline.c (copy_loops): Likewise.
4645         (copy_cfg_body): Likewise.
4646         (tree_function_versioning): Likewise.
4647         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4648         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4649         Likewise.
4650         (add_to_evolution_1): Likewise.
4651         (scev_const_prop): Likewise.
4652         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4653         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4654         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4655         (tree_ssa_lim_initialize): Likewise.
4656         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4657         (verify_loop_closed_ssa): Likewise.
4658         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4659         (tree_ssa_loop_im): Likewise.
4660         (tree_ssa_loop_unswitch): Likewise.
4661         (tree_vectorize): Likewise.
4662         (check_data_deps): Likewise.
4663         (tree_ssa_loop_ivcanon): Likewise.
4664         (tree_ssa_loop_bounds): Likewise.
4665         (tree_complete_unroll): Likewise.
4666         (tree_complete_unroll_inner): Likewise.
4667         (tree_parallelize_loops): Likewise.
4668         (tree_ssa_loop_prefetch): Likewise.
4669         (tree_ssa_loop_ivopts): Likewise.
4670         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4671         * tree-vectorizer.c (vectorize_loops): Likewise.
4673 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4675         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4676         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4677         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4678         with EABI_LINK_SPEC.
4680 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4682         PR target/44578
4683         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4684         alternative.
4686 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4688         PR target/57097
4689         * lra-constraints.c (process_alt_operands): Discourage a bit more
4690         using memory for pseudos.  Print cost dump for alternatives.
4691         Modify cost values for conflicts with early clobbers.
4692         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4694 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4696         PR target/57098
4697         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4699 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4701         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4702         from/to S register.
4703         (movdi_aarch64): Support LDR/STR from/to D register.
4705 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4707         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4708         or higher by default.
4710 2013-04-29  Richard Biener  <rguenther@suse.de>
4712         PR middle-end/57075
4713         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4714         even if not adding abnormal edges for calls that can make
4715         abnormal gotos.
4717 2013-04-29  Richard Biener  <rguenther@suse.de>
4719         PR middle-end/57103
4720         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4721         TREE_BLOCK.
4722         (move_stmt_r): Remove redundant checking.
4724 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4726         PR bootstrap/57077
4727         * basic-block.h (apply_scale): New function.
4728         (apply_probability): Use apply_scale.
4729         * gimple-streamer-in.c (input_bb): Ditto.
4730         * lto-streamer-in.c (input_cfg): Ditto.
4731         * lto-cgraph.c (merge_profile_summaries): Ditto.
4732         * tree-optimize.c (execute_fixup_cfg): Ditto.
4733         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4734         (copy_edges_for_bb): Ditto.
4735         (copy_cfg_body): Ditto.
4737 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4739         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4740         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4741         (tail_merge_optimize): Handle current_loops == NULL.
4743 2013-04-26  Jeff Law  <law@redhat.com>
4745         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4746         (simplify_cond_using_ranges): Generalize code to simplify
4747         COND_EXPRs where one argument is a constant and the other
4748         is an SSA_NAME created by an integral type conversion.
4750 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4752         * config/arm/arm.md (store_minmaxsi): Use only when
4753         optimize_insn_for_size_p.
4755 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4757         PR target/57108
4758         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4760 2013-04-29  Richard Biener  <rguenther@suse.de>
4762         PR middle-end/57089
4763         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4764         loop tree make sure to schedule a fixup for the child as well.
4765         (expand_omp_for_generic): Properly add loops.
4766         (expand_omp_for_static_nochunk): Likewise.
4767         (expand_omp_for_static_chunk): Likewise.
4768         (expand_omp_for): For the degenerate case fixup loops.
4769         (expand_omp_sections): Fix default bb placement in loops.
4770         (expand_omp_atomic_pipeline): Properly add loops.
4772 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4774         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4776 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4778         * tree-ssa-tail-merge.c: Update header comment.
4780 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4782         * config/aarch64/arm_neon.h
4783         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4784         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4785         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4786         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4787         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4788         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4789         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4790         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4792 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4794         * config/aarch64/aarch64-simd.md
4795         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4796         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4797         fix_trunc, fixuns_trunc.
4798         (ftrunc<VDQF:mode>2): New.
4799         * config/aarch64/iterators.md (optab): Add fix, fixuns.
4800         (fix_trunc_optab): New.
4802 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4804         * config/aarch64/aarch64-builtins.c
4805         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4806         iceilf, lround, iroundf.
4808 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4810         PR target/54349
4811         * config/i386/i386.h (enum ix86_tune_indices)
4812         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4813         New, split from X86_TUNE_INTER_UNIT_MOVES.
4814         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4815         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4816         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4817         (TARGET_INTER_UNIT_MOVES): Remove.
4818         * config/i386/i386.c (initial_ix86_tune_features): Update.
4819         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4820         (ix86_expand_convert_uns_didf_sse): Use
4821         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4822         (ix86_expand_vector_init_one_nonzero): Ditto.
4823         (ix86_expand_vector_init_interleave): Ditto.
4824         (inline_secondary_memory_needed): Return true for moves from SSE class
4825         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4826         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4827         * config/i386/constraints.md (Yi, Ym): Depend on
4828         TARGET_INTER_UNIT_MOVES_TO_VEC.
4829         (Yj, Yn): New constraints.
4830         * config/i386/i386.md (*movdi_internal): Change constraints of
4831         operand 1 from Yi to Yj and from Ym to Yn.
4832         (*movsi_internal): Ditto.
4833         (*movdf_internal): Ditto.
4834         (*movsf_internal): Ditto.
4835         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4836         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4837         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4838         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4839         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4840         * config/i386/sse.md (movdi_to_sse): Ditto.
4841         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4842         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4843         TARGET_INTER_UNIT_MOVES.
4844         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4845         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4846         instead of TARGET_INTER_UNIT_MOVES.
4847         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4848         operand 1 from Yi to Yj and from Ym to Yn.
4850 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4852         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4853         (float_truncate_hi_): Likewise.
4854         (float_extend_lo_): Likewise.
4855         (float_truncate_lo_): Likewise.
4856         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4857         (aarch64_float_extend_lo_v2df): Likewise.
4858         (vec_unpacks_hi_v4sf): Likewise.
4859         (aarch64_float_truncate_lo_v2sf): Likewise.
4860         (aarch64_float_truncate_hi_v4sf): Likewise.
4861         (vec_pack_trunc_v2df): Likewise.
4862         (vec_pack_trunc_df): Likewise.
4864 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4866         * config/aarch64/aarch64-builtins.c
4867         (aarch64_fold_builtin): Fold float conversions.
4868         * config/aarch64/aarch64-simd-builtins.def
4869         (floatv2si, floatv4si, floatv2di): New.
4870         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4871         * config/aarch64/aarch64-simd.md
4872         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4873         * config/aarch64/iterators.md (FLOATUORS): New.
4874         (optab): Add float, floatuns.
4875         (su_optab): Likewise.
4877 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4879         * config/aarch64/aarch64-builtins.c
4880         (aarch64_builtin_vectorized_function): Use new names for
4881         fcvt builtins.
4882         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4883         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4884         (fcvtzu): Split as...
4885         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4886         (fcvtas): Split as...
4887         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4888         (fcvtau): Split as...
4889         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4890         (fcvtps): Split as...
4891         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4892         (fcvtpu): Split as...
4893         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4894         (fcvtms): Split as...
4895         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4896         (fcvtmu): Split as...
4897         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4898         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4899         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4900         (lfrintnusf, lfrintnudf): Likewise.
4901         * config/aarch64/aarch64-simd.md
4902         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4903         define_insn.
4904         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4905         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4906         (fcvt_pattern): Likewise.
4908 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4910         * config/aarch64/aarch64-simd.md
4911         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4912         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4914 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4916         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4917         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4918         (vrnd<a,m,n,p>_f32): Implement using builtins.
4919         (vrnd<i,x><q>_f<32, 64>): New.
4921 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4923         * config/aarch64/aarch64-builtins.c
4924         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4925         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4926         (frintz): Rename to...
4927         (btrunc): ...this.
4928         (frintp): Rename to...
4929         (ceil): ...this.
4930         (frintm): Rename to...
4931         (floor): ...this.
4932         (frinti): Rename to...
4933         (nearbyint): ...this.
4934         (frintx): Rename to...
4935         (rint): ...this.
4936         (frinta): Rename to...
4937         (round): ...this.
4938         * config/aarch64/aarch64-simd.md
4939         (aarch64_frint<frint_suffix><mode>): Delete.
4940         (<frint_pattern><mode>2): Convert to insn.
4941         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4942         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4943         (frint_pattern): Likewise.
4944         (frint_suffix): Likewise.
4946 2013-04-29  Richard Biener  <rguenther@suse.de>
4948         PR tree-optimization/57081
4949         * loop-init.c: Include tree-flow.h.
4950         (loop_optimizer_finalize): Free number of iteration estimates.
4951         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4953 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
4955         PR tree-optimization/57083
4956         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4957         non-singleton shift count range, zero extend low_bound for uns case.
4959         * config/i386/predicates.md (general_vector_operand): New predicate.
4960         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4961         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4962         if they aren't nonimmediate operands.  If their original values
4963         satisfy const_vector_equal_evenodd_p, don't shift them.
4964         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4965         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
4966         if not nonimmediate_operand.
4967         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4968         instead of register_operand.
4969         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4971 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4973         * stor-layout.c (finalize_size_functions): Allocate a structure and
4974         reset cfun before dumping the functions.
4976 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
4978         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4980         PR target/56866
4981         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4982         use xop_pmacsdqh if uns_p.
4983         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4984         the immediate rotate count.
4986 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
4988         * rtl.h (struct rtx_def): Add comment for field jump.
4989         (LRA_SUBREG_P): New macro.
4990         * recog.c (register_operand): Check LRA_SUBREG_P.
4991         * lra.c (lra): Add note at the end of RTL code. Align non-empty
4992         stack frame.
4993         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4994         (lra_final_code_change): Skip subreg change for operators.
4995         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4996         if there are no operand changes.
4997         * lra-constraints.c (curr_insn_set): New.
4998         (match_reload): Set LRA_SUBREG_P.
4999         (emit_spill_move): Ditto.
5000         (check_and_process_move): Use curr_insn_set. Process only single
5001         set insns.  Don't initialize sec_mem_p and change_p.
5002         (simplify_operand_subreg): Use LRA_SUBREG_P.
5003         (reg_in_class_p): New function.
5004         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5005         of #ifdef.  Add code to remove cycling.
5006         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5007         non-null disp.  Reload inner instead of disp when base and index
5008         are null.  Try to put lo_sum into register.
5009         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5010         (check_and_process_move): Move code for move cost check to
5011         simple_move_p.  Remove equiv_substitution.
5012         (simple_move_p): New function.
5013         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5014         curr_insn_set.  Call check_and_process_move only for single set
5015         insns.  Use the new function.  Move call of check_and_process_move
5016         after operand equiv substitution and address process.
5018 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5020         PR go/57045
5021         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5022         with nonlocal goto receivers or returns twice calls, ignore
5023         unininitialized values from abnormal edges to nl goto receiver
5024         or returns twice call.
5026 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5028         PR tree-optimization/57051
5029         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5030         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5031         bitsize.
5033 2013-04-26  Richard Biener  <rguenther@suse.de>
5035         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5036         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5037         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5038         (fixup_loop_arrays_after_move): New function.
5039         (move_sese_region_to_fn): Properly outline the loop tree parts
5040         of the SESE region.
5042 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5044         * config/i386/i386.md (type, unit): Fix long lines.
5046 2013-04-26  Richard Biener  <rguenther@suse.de>
5048         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5049         (lto-streamer-out.o): Likewise.
5050         * cfgloop.c (init_loops_structure): Export, add struct function
5051         argument and adjust.
5052         (flow_loops_find): Adjust.
5053         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5054         (init_loops_structure): Declare.
5055         * lto-streamer-in.c: Include cfgloop.h.
5056         (input_cfg): Input the loop tree.
5057         * lto-streamer-out.c: Include cfgloop.h.
5058         (output_cfg): Output the loop tree.
5059         (output_struct_function_base): Do not drop PROP_loops.
5061 2013-03-26  Richard Biener  <rguenther@suse.de>
5063         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5064         (pass_build_cfg): Provide PROP_loops.
5065         (move_sese_region_to_fn): Remove loops that are outlined into fn
5066         for now.
5067         * tree-inline.c: Include cfgloop.h.
5068         (initialize_cfun): Do not drop PROP_loops.
5069         (copy_loops): New function.
5070         (copy_cfg_body): Copy loop structure.
5071         (tree_function_versioning): Initialize destination loop tree.
5072         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5073         (pass_parallelize_loops): Do IL verification.
5074         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5075         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5076         the CFG make sure we fixup loops as well.
5077         * tree-ssa-tail-merge.c: Include cfgloop.h.
5078         (replace_block_by): When merging loop latches mark loops for fixup.
5079         * lto-streamer-out.c (output_struct_function_base): Drop
5080         PROP_loops for now.
5081         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5082         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5083         * ipa-split.c: Include cfgloop.h.
5084         (split_function): Add the new return block to the loop tree root.
5085         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5086         whether we have removed the forwarder block.
5087         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5088         * cfgloop.h (place_new_loop): Declare.
5089         * cfgloopmanip.c (place_new_loop): Export.
5090         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5091         (tree-switch-conversion.o): Likewise.
5092         (tree-complex.o): Likewise.
5093         (tree-inline.o): Likewise.
5094         (tree-ssa-tailmerge.o): Likewise.
5095         (ipa-split.o): Likewise.
5096         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5097         (tree-ssa-copy.o): Likewise.
5098         * tree-switch-conversion.c: Include cfgloop.h
5099         (process_switch): If we emit a bit-test cascade, schedule loops
5100         for fixup.
5101         * tree-complex.c: Include cfgloop.h.
5102         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5103         * asan.c: Include cfgloop.h.
5104         (create_cond_insert_point): Properly add new basic-blocks to
5105         loops, schedule loop fixup.
5106         * cfgloop.c (verify_loop_structure): Check that looks are not
5107         marked for fixup.
5108         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5109         to loops.
5110         (expand_omp_for_generic): Likewise.
5111         (expand_omp_sections): Likewise.
5112         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5113         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5114         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5115         is initialized, not when loops are present.
5116         * tree-parloops.c (parallelize_loops): Remove checking here.
5117         * passes.c (init_optimization_passes): Schedule a copy-propagation
5118         pass before complete unrolling of inner loops.
5120 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5122         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5123         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5124         (colorize_init): Add argument to _WIN32 version.
5125         * toplev.c: Include diagnostic-color.h.
5126         (process_options): Default to -fdiagnostics-color=auto if
5127         GCC_COLORS env var is in the environment.
5128         * common.opt (fdiagnostics-color=): Add Var and Init.
5129         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5130         env var is in the environment, the default is auto rather than never.
5132         * diagnostic.h (file_name_as_prefix): Add context argument.
5133         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5134         the string as locus.
5135         * langhooks.c (lhd_print_error_function): Adjust caller.
5137 2013-04-25  Lawrence Crowl  <crowl@google.com>
5139         * var-tracking.c (shared_hash_def::htab):
5140         Change type to hash_table.  Update dependent calls and types.
5142 2013-04-25  Lawrence Crowl  <crowl@google.com>
5144         * Makefile.in: Update as needed below.
5146         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5147         Move declaration to after the type's method definitons.
5149         * attribs.c (htab_t scoped_attributes::attribute_hash):
5150         Change type to hash_table.  Update dependent calls and types.
5152         * bitmap.c (htab_t bitmap_desc_hash):
5153         Change type to hash_table.  Update dependent calls and types.
5155         * cselib.c (htab_t cselib_hash_table):
5156         Change type to hash_table.  Update dependent calls and types.
5158         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5159         (hash_string_slot_node): Move implementation into lto-streamer.h
5160         struct string_slot_hasher.
5161         (eq_string_slot_node): Likewise.
5163         * data-streamer-out.c: Update output_block::string_hash_table
5164         dependent calls and types.
5166         * dwarf2cfi.c (htab_t trace_index):
5167         Change type to hash_table.  Update dependent calls and types.
5169         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5170         Change type to hash_table.  Update dependent calls and types.
5171         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5172         (htab_t optimize_external_refs::map): Likewise.
5173         (htab_t output_comp_unit::extern_map): Likewise.
5174         (htab_t output_comdat_type_unit::extern_map): Likewise.
5175         (htab_t output_macinfo::macinfo_htab): Likewise.
5176         (htab_t optimize_location_lists::htab): Likewise.
5177         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5179         * except.c (htab_t ehspec_hash_type):
5180         Change type to hash_table.  Update dependent calls and types.
5181         (assign_filter_values::ttypes): Likewise.
5182         (assign_filter_values::ehspec): Likewise.
5183         (sjlj_assign_call_site_values::ar_hash): Likewise.
5184         (convert_to_eh_region_ranges::ar_hash): Likewise.
5186         * gcse.c (htab_t pre_ldst_table):
5187         Change type to hash_table.  Update dependent calls and types.
5189         * ggc-common.c (htab_t saving_htab):
5190         Change type to hash_table.  Update dependent calls and types.
5191         (htab_t loc_hash): Likewise.
5192         (htab_t ptr_hash): Likewise.
5193         (call_count): Rename ggc_call_count.
5194         (call_alloc): Rename ggc_call_alloc.
5195         (loc_descriptor): Rename make_loc_descriptor.
5196         (add_statistics): Rename ggc_add_statistics.
5198         * ggc-common.c (saving_htab):
5199         Change type to hash_table.  Update dependent calls and types.
5201         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5202         (push_gimplify_context): Likewise.
5203         (pop_gimplify_context): Likewise.
5204         (struct gimple_temp_hash_elt): Added.
5205         (struct gimplify_hasher): Likewise.
5206         (struct gimplify_ctx.temp_htab):
5207         Change type to hash_table.  Update dependent calls and types.
5209         * gimple-fold.c: Include gimplify-ctx.h.
5211         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5212         Change type to hash_table.  Update dependent calls and types.
5213         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5214         avoid potential global name collision.
5216         * gimplify.c: Include gimplify-ctx.h.
5217         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5218         (htab_t gimplify_ctx::temp_htab):
5219         Update dependent calls and types for new type hash_table.
5220         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5221         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5223         * gimplify-ctx.h: New.
5224         (struct gimple_temp_hash_elt): Move from gimplify.c.
5225         (class gimplify_hasher): New.
5226         (struct gimplify_ctx): Move from gimple.h.
5227         (htab_t gimplify_ctx::temp_htab):
5228         Change type to hash_table.  Update dependent calls and types.
5230         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5231         (htab_t ivs_params::newivs_index):
5232         Change type to hash_table.  Update dependent calls and types.
5233         (htab_t ivs_params::params_index): Likewise.
5234         (htab_t print_generated_program::params_index): Likewise.
5235         (htab_t gloog::newivs_index): Likewise.
5236         (htab_t gloog::params_index): Likewise.
5238         * graphite.c: Include graphite-htab.h.
5239         4htab_t graphite_transform_loops::bb_pbb_mapping):
5240         Change type to hash_table.  Update dependent calls and types.
5242         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5243         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5244         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5246         * graphite-dependences.c: Include graphite-htab.h.
5247         (loop_is_parallel_p): Change hash table type of parameter.
5249         * graphite-htab.h: New.
5250         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5251         (extern find_pbb_via_hash): Move from graphite-poly.h.
5252         (extern loop_is_parallel_p): Move from graphite-poly.h.
5253         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5255         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5256         (extern loop_is_parallel_p): Move to graphite-htab.h.
5257         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5259         * haifa-sched.c (htab_t delay_htab):
5260         Change type to hash_table.  Update dependent calls and types.
5261         (htab_t delay_htab_i2): Likewise.
5263         * ira-color.c (htab_t allocno_hard_regs_htab):
5264         Change type to hash_table.  Update dependent calls and types.
5266         * ira-costs.c (htab_t cost_classes_htab):
5267         Change type to hash_table.  Update dependent calls and types.
5269         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5270         Change type to hash_table.  Update dependent calls and types.
5272         * loop-iv.c (htab_t bivs):
5273         Change type to hash_table.  Update dependent calls and types.
5275         * loop-unroll.c (htab_t opt_info::insns_to_split):
5276         Change type to hash_table.  Update dependent calls and types.
5277         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5279         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5280         (struct string_slot_hasher): New.
5281         (htab_t output_block::string_hash_table):
5282         Change type to hash_table.  Update dependent calls and types.
5284         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5285         (htab_t file_name_hash_table):
5286         Change type to hash_table.  Update dependent calls and types.
5288         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5289         calls and types.
5291         * lto-streamer.c (htab_t tree_htab):
5292         Change type to hash_table.  Update dependent calls and types.
5294         * omp-low.c: Include gimplify-ctx.h.
5296         * passes.c (htab_t name_to_pass_map):
5297         Change type to hash_table.  Update dependent calls and types.
5298         (pass_traverse): Rename to passes_pass_traverse.
5300         * plugin.c (htab_t event_tab):
5301         Change type to hash_table.  Update dependent calls and types.
5303         * postreload-gcse.c (htab_t expr_table):
5304         Change type to hash_table.  Update dependent calls and types.
5305         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5307         * sese.c (debug_rename_map_1): Make extern.
5308         (htab_t copy_bb_and_scalar_dependences::rename_map):
5309         Change type to hash_table.  Update dependent calls and types.
5311         * sese.h (extern debug_rename_map): Move to .c file.
5313         * store-motion.c (htab_t store_motion_mems_table):
5314         Change type to hash_table.  Update dependent calls and types.
5316         * trans-mem.c (htab_t tm_new_mem_hash):
5317         Change type to hash_table.  Update dependent calls and types.
5319         * tree-browser.c (htab_t TB_up_ht):
5320         Change type to hash_table.  Update dependent calls and types.
5322         * tree-cfg.c (htab_t discriminator_per_locus):
5323         Change type to hash_table.  Update dependent calls and types.
5325         * tree-complex.c: Include tree-hasher.h
5326         (htab_t complex_variable_components):
5327         Change type to hash_table.  Update dependent calls and types.
5329         * tree-eh.c (htab_t finally_tree):
5330         Change type to hash_table.  Update dependent calls and types.
5332         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5333         struct int_tree_hasher.
5334         (extern int_tree_map_eq): Likewise.
5335         (uid_decl_map_hash): Removed.
5336         (extern decl_tree_map_eq): Likewise.
5338         * tree-hasher.h: New.
5339         (struct int_tree_hasher): New.
5340         (typedef int_tree_htab_type): New.
5342         * tree-inline.c: Include gimplify-ctx.h.
5344         * tree-mudflap.c: Include gimplify-ctx.h.
5346         * tree-parloops.c: Include tree-hasher.h.
5347         (htab_t eliminate_local_variables_stmt::decl_address):
5348         Change type to hash_table.  Update dependent calls and types.
5349         (htab_t separate_decls_in_region::decl_copies): Likewise.
5351         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5352         Change type to hash_table.  Update dependent calls and types.
5354         * tree-sra.c (candidates):
5355         Change type to hash_table.  Update dependent calls and types.
5357         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5358         in tree-flow.h.
5359         (int_tree_map_hash): Likewise.
5361         * tree-ssa-dom.c (htab_t avail_exprs):
5362         Change type to hash_table.  Update dependent calls and types.
5364         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5365         Change type to hash_table.  Update dependent calls and types.
5367         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5368         Change type to hash_table.  Update dependent calls and types.
5370         * tree-ssa-phiopt.c (seen_ssa_names):
5371         Change type to hash_table.  Update dependent calls and types.
5373         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5374         Change type to hash_table.  Update dependent calls and types.
5376         * tree-ssa-uncprop.c (equiv):
5377         Change type to hash_table.  Update dependent calls and types.
5379 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5381         PR rtl-optimization/57003
5382         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5383         call note_stores with kill_clobbered_value callback again after
5384         killing regs_invalidated_by_call.
5386 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5388         * config/aarch64/aarch64-simd.md
5389         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5390         (aarch64_simd_bsl<mode>): Likewise.
5391         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5393 2013-04-25  Marek Polacek  <polacek@redhat.com>
5395         PR tree-optimization/57066
5396         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5398 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5400         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5402 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5404         * config/aarch64/aarch64-builtins.c
5405         (aarch64_fold_builtin): New.
5406         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5407         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5408         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5409         * config/aarch64/arm_neon.h
5410         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5412 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5413             Tejas Belagod  <tejas.belagod@arm.com>
5415         * config/aarch64/aarch64-builtins.c
5416         (aarch64_gimple_fold_builtin): New.
5417         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5418         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5419         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5420         (addvv4sf): Update.
5421         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5423 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5425         * config/aarch64/aarch64.md
5426         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5428 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5430         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5431         (*ngcsi_uxtw): New pattern.
5433 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5434             Julian Brown  <julian@codesourcery.com>
5436         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5437         (TB_DREG): Add T_V4HF.
5438         (v4hf_UP): New macro.
5439         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5440         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5441         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5442         built-ins.
5443         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5444         (arm_vector_mode_supported_p): Handle V4HF.
5445         (arm_mangle_map): Handle V4HFmode.
5446         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5447         * config/arm/arm_neon_builtins.def: Add entries for
5448         vcvtv4hfv4sf, vcvtv4sfv4hf.
5449         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5450         (neon_vcvtv4hfv4sf): Likewise.
5451         * config/arm/neon-gen.ml: Handle half-precision floating point
5452         features.
5453         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5454         * config/arm/arm_neon.h: Regenerate.
5455         * config/arm/neon.ml (type elts): Add F16.
5456         (type vectype): Add T_float16x4, T_floatHF.
5457         (type vecmode): Add V4HF.
5458         (type features): Add Requires_FP_bit feature.
5459         (elt_width): Handle F16.
5460         (elt_class): Likewise.
5461         (elt_of_class_width): Likewise.
5462         (mode_of_elt): Refactor.
5463         (type_for_elt): Handle F16, fix error messages.
5464         (vectype_size): Handle T_float16x4.
5465         (vcvt_sh): New function.
5466         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5467         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5468         (string_of_mode): Handle V4HF.
5469         * doc/arm-neon-intrinsics.texi: Regenerate.
5471 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5473         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5474         format specifier in 'X' case.
5476 2013-04-25  Alan Modra  <amodra@gmail.com>
5478         PR target/57052
5479         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5480         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5481         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5482         Repeat for many other rotate/shift and mask patterns using subregs.
5483         Name lshiftrt insns.
5484         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5485         on WORDS_BIG_ENDIAN.
5487 2013-04-25  Alan Modra  <amodra@gmail.com>
5489         * config.gcc: Support little-endian powerpc-linux targets.
5490         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5491         (LINK_OS_LINUX_SPEC): Define.
5492         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5493         Preserve MASK_LITTLE_ENDIAN.
5494         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5495         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5496         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5497         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5498         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5499         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5500         Correct fp word order for little-endian.  Don't shift toc entries
5501         smaller than a word for little-endian.
5502         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5503         (bswapdi2 splits): Correct low-part subreg for little-endian.
5504         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5505         low/high where such is correct only for be.
5506         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5507         little-endian for -mcall-aixdesc.
5509 2013-04-25  Alan Modra  <amodra@gmail.com>
5511         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5512         replace_equiv_address_nv.
5514 2013-04-25  Alan Modra  <amodra@gmail.com>
5516         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5518 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5520         Revert:
5521         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5522         * rtl.h (struct rtx_def): ...
5524 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5526         PR rtl-optimizations/57046
5527         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5528         for multi-reg splits.
5530 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5532         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5534 2013-04-24  Sterling Augustine  <saugustine@google.com>
5536         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5537         (comp_dir_string, debug_str_dwo_section): New.
5538         (DEBUG_STR_DWO_SECTION): Rename to ...
5539         (DEBUG_DWO_STR_SECTION): ... this.
5540         (DEBUG_NORM_STR_SECTION): Delete.
5541         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5542         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5543         (find_AT_string): Move most logic to ...
5544         (find_AT_string_in_table): ... here.  New.
5545         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5546         add_skeleton_AT_string.  Delete logic.
5547         (output_skeleton_debug_sections): Remove call to
5548         add_top_level_skeleton_die_attrs.
5549         (add_comp_dir_attribute): Move logic to comp_dir_string.
5550         (dwarf2out_init): Initialize debug_str_dwo_section.
5551         (output_indirect_string): Call find_string_form.
5552         (output_indirect_strings): Rewrite.
5553         (prune_unused_types): Empty skeleton_debug_str_hash.
5554         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5555         (dwarf2out_finish):  Call output_indirect_strings.
5557 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5559         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5561 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5563         * rtl.h (struct rtx_def): Add comment for field jump.
5564         (LRA_SUBREG_P): New macro.
5565         * recog.c (register_operand): Check LRA_SUBREG_P.
5566         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5567         stack frame.
5568         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5569         (lra_final_code_change): Skip subreg change for operators.
5570         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5571         if there are no operand changes.
5572         * lra-constraints.c (curr_insn_set): New.
5573         (match_reload): Set LRA_SUBREG_P.
5574         (emit_spill_move): Ditto.
5575         (check_and_process_move): Use curr_insn_set. Process only single
5576         set insns.  Don't initialize sec_mem_p and change_p.
5577         (simplify_operand_subreg): Use LRA_SUBREG_P.
5578         (reg_in_class_p): New function.
5579         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5580         of #ifdef.  Add code to remove cycling.
5581         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5582         non-null disp.  Reload inner instead of disp when base and index
5583         are null.  Try to put lo_sum into register.
5584         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5585         (check_and_process_move): Move code for move cost check to
5586         simple_move_p.  Remove equiv_substitution.
5587         (simple_move_p): New function.
5588         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5589         curr_insn_set.  Call check_and_process_move only for single set
5590         insns.  Use the new function.  Move call of check_and_process_move
5591         after operand equiv substitution and address process.
5593 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5595         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5596         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5597         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5599 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5601         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5603 2013-04-24  Marek Polacek  <polacek@redhat.com>
5605         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5606         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5607         (select_loops_exit_conditions): Likewise.
5608         (number_of_iterations_for_all_loops): Likewise.
5609         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5610         (scev_analysis): Likewise.
5612 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5613             Chao-ying Fu <fu@mips.com>
5615         * config/mips/micromips.md (jraddiusp): New pattern.
5616         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5617         instruction if possible.
5619 2013-04-24  Alan Modra  <amodra@gmail.com>
5621         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5623 2013-04-24  Julian Brown  <julian@codesourcery.com>
5624             Chung-Lin Tang  <cltang@codesourcery.com>
5626         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5627         dependency behavior in enumeration type DIE generation. Add TODO note
5628         to comments about future DW_FORM_sdata/udata re-work of related code.
5630 2013-04-23  Lawrence Crowl  <crowl@google.com>
5632         * Makefile.in: Update as needed below.
5634         * hash-table.h (class hash_table):
5635         Correct many methods with parameter types compare_type to the correct
5636         value_type.  (Correct code was unlikely to notice the change.)
5637         (hash_table::elements_with_deleted) New.
5638         (class hashtable::iterator): New.
5639         (hashtable::begin()): New.
5640         (hashtable::end()): New.
5641         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5643         * statistics.c (statistics_hashes):
5644         Change type to hash_table.  Update dependent calls and types.
5646         * tree-into-ssa.c (var_infos):
5647         Change type to hash_table.  Update dependent calls and types.
5649         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5650         Change type to hash_table.  Update dependent calls and types.
5652         * tree-ssa-loop-im.c (struct mem_ref.refs):
5653         Change type to hash_table.  Update dependent calls and types.
5655         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5656         Change type to hash_table.  Update dependent calls and types.
5658         * tree-ssa-sccvn.c (vn_tables_s::nary):
5659         Change type to hash_table.  Update dependent calls and types.
5660         (vn_tables_s::phis): Likewise.
5661         (vn_tables_s::references): Likewise.
5663         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5664         (vn_reference_eq): Update parameter and return types.
5666         * tree-ssa-structalias.c (pointer_equiv_class_table):
5667         Change type to hash_table.  Update dependent calls and types.
5668         (location_equiv_class_table): Likewise.
5670         * tree-vect-data-refs.c: Consequential changes for making
5671         peeling a hash_table.
5673         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5674         (destroy_loop_vec_info): Dependent hash_table update.
5676         * tree-vectorizer.h (peeling_htab):
5677         Change type to hash_table.  Update dependent calls and types.
5679 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5681         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5682         to check the register content is equal or not.
5683         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5684         to assign register content record.
5685         * lra-eliminations.c (update_reg_eliminate): Use
5686         lra_update_reg_val_offset to update register content offset.
5687         * lra-int.h (struct lra_reg): Add offset member.
5688         (lra_reg_val_equal_p): New static inline function.
5689         (lra_update_reg_val_offset): New static inline function.
5690         (lra_assign_reg_val): New static inline function.
5691         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5692         to assign register content record.
5693         (initialize_lra_reg_info_element): Initial offset to zero.
5695 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5697         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5698         operands.  Record compression.
5700 2013-04-23  Xinliang David Li  <davidxl@google.com>
5702         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5704 2013-04-23  Richard Biener  <rguenther@suse.de>
5706         PR middle-end/57036
5707         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5708         parameter, only add abnormal goto edges from the copied body
5709         if the call could perform abnormal gotos.
5710         (copy_cfg_body): Adjust.
5712 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5714         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5716 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5718         * coretypes.h (gimple_stmt_iterator): Add struct to make
5719         compatible with C.
5721 2013-04-23  Richard Biener  <rguenther@suse.de>
5723         PR tree-optimization/57026
5724         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5725         from SSA names occuring in abnormal PHI nodes.
5727 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5729         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5731 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5733         * lto/lto.c (print_lto_report_1): Declare early.
5734         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5736 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5738         * common.opt (-flto-report-wpa): Add.
5739         * doc/invoke.texi (-flto-report-wpa): Add.
5740         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5741         (lto_main): dito.
5743 2013-04-22  Xinliang David Li  <davidxl@google.com>
5745         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5746         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5747         * Makefile.in: New dependency
5749             David Daney <ddaney.cavm@gmail.com>
5751         * configure.ac (gcc_cv_as_micromips_support):  Use the
5752         --fatal-warnings option.
5753         * configure: Regenerate.
5755 2013-04-22  Marek Polacek  <polacek@redhat.com>
5757         PR sanitizer/56990
5758         * tsan.c (instrument_expr): Don't instrument expression
5759         in case its size is zero.
5761 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
5763         PR target/57032
5764         Revert:
5765         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5767         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5769 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5771         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5772         (gimple_stmt_iterator): New typedef.
5773         * gimple.h (gimple_stmt_iterator): Rename to...
5774         (gimple_stmt_iterator_d): ... This.
5775         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5776         trees be valid for GIMPLE and GENERIC.
5777         (TARGET_GIMPLE_FOLD_BUILTIN): New.
5778         * gimple-fold.c (gimple_fold_call): Call target hook
5779         gimple_fold_builtin.
5780         * hooks.c (hook_bool_gsiptr_false): New.
5781         * hooks.h (hook_bool_gsiptr_false): New.
5782         * target.def (fold_stmt): New.
5783         * doc/tm.texi: Regenerate.
5785 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
5787         PR target/57018
5788         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5789         a set sp if no stack realignment.
5791 2013-04-22  Nick Clifton  <nickc@redhat.com>
5793         * config.gcc (tilegx-linux): Extend extra_objs rather than
5794         overwriting it.
5795         (tilepro-linux): Likewise.
5797 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5799         * config/aarch64/aarch64-builtins.c
5800         (CF): Remove.
5801         (CF0, CF1, CF2, CF3, CF4, CF10): New.
5802         (VAR<1-12>): Add MAP parameter.
5803         (BUILTIN_*): Likewise.
5804         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5805         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5806         (aarch64_ushl_n<mode>): Likewise.
5807         (aarch64_sshr_n<mode>): Likewise.
5808         (aarch64_ushr_n<mode>): Likewise.
5809         (aarch64_<maxmin><mode>): Likewise.
5810         (aarch64_sqrt<mode>): Likewise.
5811         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5812         (vshr<q>_n_*): Likewise.
5814 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5816         * config/aarch64/aarch64-builtins.c
5817         (aarch64_simd_builtin_type_mode): Handle SF types.
5818         (sf_UP): Define.
5819         (BUILTIN_GPF): Define.
5820         (aarch64_init_simd_builtins): Handle SF types.
5821         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5822         (frecps): Likewise.
5823         (frecpx): Likewise.
5824         * config/aarch64/aarch64-simd.md
5825         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5826         (aarch64_frecpe<mode>): New.
5827         (aarch64_frecps<mode>): Likewise.
5828         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5829         (v8type): Add frecp<esx>.
5830         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5831         (aarch64_frecps<mode>): Likewise.
5832         * config/aarch64/iterators.md (FRECP): New.
5833         (frecp_suffix): Likewise.
5834         * config/aarch64/arm_neon.h
5835         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5837 2013-04-22  Christian Bruel  <christian.bruel@st.com>
5839         PR target/56995
5840         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5841         (REG_CLASS_NAMES): Idem.
5842         (REG_CLASS_CONTENTS): Idem.
5843         (REGCLASS_HAS_FP_REG): Idem.
5844         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5845         (sh_conditional_register_usage): Idem.
5847 2013-04-21  Jeff Law  <law@redhat.com>
5849         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5850         (ssa_forward_propagate_and_combine): Use it.
5852 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5854         * lra.c: Update the flow chart diagram.
5856 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5858         PR rtl-optimization/56847
5859         * lra-constraints.c (process_alt_operands): Discourage alternative
5860         with non-matche doffsettable memory constraint fro memory with
5861         known offset.
5863 2013-04-19  Richard Biener  <rguenther@suse.de>
5865         PR tree-optimization/56982
5866         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5867         function.
5868         * gimplify.c (gimplify_call_expr): Notice special calls.
5869         (gimplify_modify_expr): Likewise.
5870         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5871         abnormal control flow receivers.
5872         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5873         in the same way as cfun->has_nonlocal_labels.
5874         (gimple_purge_dead_abnormal_call_edges): Likewise.
5875         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5876         receivers start a basic-block.
5878 2013-04-19  Richard Biener  <rguenther@suse.de>
5880         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5881         member ...
5882         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
5883         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5884         (SLP_TREE_LOAD_PERMUTATION): Add.
5885         (vect_transform_slp_perm_load): Adjust prototype.
5886         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5887         (vect_free_slp_instance): Likewise.
5888         (vect_create_new_slp_node): Likewise.
5889         (vect_supported_slp_permutation_p): Remove.
5890         (vect_slp_rearrange_stmts): Adjust.
5891         (vect_supported_load_permutation_p): Likewise.  Inline
5892         vect_supported_slp_permutation_p here.
5893         (vect_analyze_slp_instance): Compute load permutations per
5894         slp node instead of per instance.
5895         (vect_get_slp_defs): Adjust.
5896         (vect_transform_slp_perm_load): Likewise.
5897         (vect_schedule_slp_instance): Remove redundant code.
5898         (vect_schedule_slp): Remove hack for PR56270, add it ...
5899         * tree-vect-stmts.c (vectorizable_load): ... here, do not
5900         CSE loads for SLP.  Adjust.
5902 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5904         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5905         spelling in two comments.
5907 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5909         PR target/56797
5910         * config/arm/arm.c (load_multiple_sequence): Require SP
5911         as base register for loads if SP is in the register list.
5913 2013-04-19  Martin Jambor  <mjambor@suse.cz>
5915         PR tree-optimization/56718
5916         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5917         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5918         and made public.  Adjusted all callers.
5919         (ipa_intraprocedural_devirtualization): New function.
5920         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5921         (ipa_intraprocedural_devirtualization): Likewise.
5922         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5924 2013-04-19  Richard Biener  <rguenther@suse.de>
5926         PR tree-optimization/57000
5927         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5929 2013-04-19  Terry Guo  <terry.guo@arm.com>
5931         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5932         Replace with ...
5933         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
5934         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5935         (cortex_m4_fmacs): Use new reservations.
5936         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5938 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5940         PR rtl-optimization/56999
5941         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5942         related code.
5943         (lra_coalesce): Remove split_origin_bitmap and related code.
5944         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
5945         ranges if necessary.
5947 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
5949         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5950         New array.
5951         (ix86_expand_call): Remove clobbered_registers array and use
5952         x86_64_ms_sysv_extra_clobbered_registers instead.
5953         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5954         Declare here.
5955         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5956         predicate.
5957         * config/i386/i386.md (*call_rex64_ms_sysv): Use
5958         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
5959         (*call_value_rex64_ms_sysv): Ditto.
5961 2013-04-18  Cary Coutant  <ccoutant@google.com>
5963         * dwarf2out.c (output_pubnames): Check die_perennial_p of
5964         parent instead of die_mark.
5966 2013-04-18  Diego Novillo  <dnovillo@google.com>
5968         * gimple.c (create_gimple_tmp): New.
5969         (get_expr_type): New.
5970         (build_assign): New.
5971         (build_type_cast): New.
5972         * gimple.h (enum ssa_mode): Define.
5973         (gimple_seq_set_location): New.
5974         * asan.c (build_check_stmt): Change some gimple_build_* calls
5975         to use build_assign and build_type_cast.
5977 2013-04-18  Richard Biener  <rguenther@suse.de>
5979         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5980         handle negative step.  Remove redundant checks.
5981         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5982         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5983         for negative step and grouped loads fail to vectorize.
5985 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5987         * emit-rtl.c (reset_insn_used_flags): New function.
5988         (reset_all_used_flags): Use it.
5989         (verify_insn_sharing): New function.
5990         (verify_rtl_sharing): Fix verification for SEQUENCEs.
5992 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
5994         PR tree-optimization/56984
5995         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5996         and (x >> M) >= N don't register any assertion if N << M is the
5997         minimum value.
5999 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6001         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6002         do not delete_insn insns that have not yet been emitted, only
6003         unlink them with remove_insn.
6004         * df-scan.c (df_insn_delete): Revert r197492.
6006 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6008         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6009         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6011 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6013         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6014         define_insn_and_split.
6015         (and_scc,ior_scc,negscc): Likewise.
6016         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6018 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6020         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6021         can benefit from using a sequence of LDRD instructions in epilogue
6022         instead of a single LDM instruction.
6024 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6026         PR 45688
6027         * doc/extend.texi: Fix typo.
6029 2013-04-17  Richard Biener  <rguenther@suse.de>
6031         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6032         (vect_build_slp_tree): ... here.
6033         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6034         match.  Remove special-casing of mismatched complex loads.
6035         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6036         re-try the match with swapped commutative operands.
6037         (vect_supported_load_permutation_p): Remove special-casing of
6038         mismatched complex loads.
6039         (vect_analyze_slp_instance): Adjust.
6041 2013-04-17  Richard Biener  <rguenther@suse.de>
6043         PR rtl-optimization/56921
6044         * cfgloop.h (struct loop): Add simple_loop_desc member.
6045         (struct niter_desc): Mark with GTY(()).
6046         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6047         * loop-iv.c (get_simple_loop_desc): Likewise.
6048         (free_simple_loop_desc): Likewise.
6050         Revert
6051         2013-04-16  Richard Biener  <rguenther@suse.de>
6053         PR rtl-optimization/56921
6054         * loop-init.c (pass_rtl_move_loop_invariants): Add
6055         TODO_do_not_ggc_collect to todo_flags_finish.
6056         (pass_rtl_unswitch): Same.
6057         (pass_rtl_unroll_and_peel_loops): Same.
6058         (pass_rtl_doloop): Same.
6060 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6062         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6063         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6064         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6065         references.
6066         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6067         * tree-streamer.c (record_common_node): Adjust reference in comment.
6069 2013-04-17  Terry Guo  <terry.guo@arm.com>
6071         * config/arm/cortex-m4.md: Add a new bypass.
6073 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6075         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6076         New pattern.
6077         (*subs_<optab><mode>_multp2): New pattern.
6078         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6079         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6081 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6083         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6084         (*subs_mul_imm_<mode>): New pattern.
6086 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6088         PR target/56948
6089         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6090         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6091         (vsx_movti_32bit): Change j->wa to O->wa.
6093 2013-04-16  Richard Biener  <rguenther@suse.de>
6095         PR rtl-optimization/56921
6096         * loop-init.c (pass_rtl_move_loop_invariants): Add
6097         TODO_do_not_ggc_collect to todo_flags_finish.
6098         (pass_rtl_unswitch): Same.
6099         (pass_rtl_unroll_and_peel_loops): Same.
6100         (pass_rtl_doloop): Same.
6102 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6104         * config/arm/arm.c (emit_multi_reg_push): New declaration
6105         for an existing function.
6106         (arm_emit_strd_push): New function.
6107         (arm_expand_prologue): Used here.
6108         (arm_emit_ldrd_pop): New function.
6109         (arm_expand_epilogue): Used here.
6110         (arm_get_frame_offsets): Update condition.
6111         (arm_emit_multi_reg_pop): Add a special case for load of a single
6112         register with writeback.
6114 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6116         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6117         description.
6119 2013-04-16  Richard Biener  <rguenther@suse.de>
6121         PR tree-optimization/56756
6122         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6123         (first_mem_ref_loc): New.
6124         (execute_sm): Place the load temporarily before a previous
6125         access instead of in the latch edge to ensure its SSA dependencies
6126         are defined at points dominating the load.
6128 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6130         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6131         correct fix by moving header and footer insn to the footer of
6132         the merged basic block.  Clear BB_END of the merged-away block.
6134         PR middle-end/43631
6135         * emit-rtl.c (make_note_raw): New function.
6136         (link_insn_into_chain): New static inline function.
6137         (add_insn): Use it.
6138         (add_insn_before, add_insn_after): Factor insn chain linking code...
6139         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6140         using link_insn_into_chain.
6141         (note_outside_basic_block_p): New helper function for emit_note_after
6142         and emit_note_before.
6143         (emit_note_after): Use nobb variant of add_insn_after if the note
6144         should not be contained in a basic block.
6145         (emit_note_before): Use nobb variant of add_insn_before if the note
6146         should not be contained in a basic block.
6147         (emit_note_copy): Use make_note_raw.
6148         (emit_note): Likewise.
6149         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6150         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6151         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6152         the moved barrier the tail of the basic block it follows.
6153         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6155 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6157         PR tree-optimization/56962
6158         * gimple-ssa-strength-reduction.c (record_increment): Only set
6159         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6160         either rhs1 or rhs2 is equal to c->base_expr.
6162 2013-04-15  Richard Biener  <rguenther@suse.de>
6164         PR tree-optimization/56933
6165         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6166         member.
6167         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6168         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6169         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6170         dependence check ...
6171         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6172         ... here.
6173         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6174         GROUP_READ_WRITE_DEPENDENCE.
6176 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6178         * emit-rtl.c (reset_all_used_flags): New function.
6179         (verify_rtl_sharing): Call reset_all_used_flags before and after
6180         performing the checks.
6182 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6184         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6185         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6186         * config/arm/constraints.md (De): New constraint.
6187         * config/arm/neon.md (anddi3_neon): Delete.
6188         (neon_vand<mode>): Expand to standard anddi3 pattern.
6189         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6190         Move earlier in the file.
6191         (neon_inv_logic_op2): Likewise.
6192         (arm_anddi_operand_neon): New predicate.
6194 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6196         * configure.ac (gcc_cv_ld_as_needed): Set
6197         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6198         Use -z ignore, -z record on *-*-solaris2*.
6199         (HAVE_LD_AS_NEEDED): Update comment.
6200         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6201         * configure: Regenerate.
6202         * config.in: Regenerate.
6203         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6204         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6205         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6206         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6207         equivalents.  Fix markup.
6208         * doc/tm.texi: Regenerate.
6210 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6212         * config/i386/i386.opt: New option mstack-protector-guard=.
6213         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6214         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6215         TARGET_SSP_TLS_GUARD.
6216         * config/i386/i386.c (ix86_option_override_internal): Set
6217         ix86_stack_protector_guard.
6218         * config/i386/i386.md (stack_protect_set): Enable for
6219         TARGET_SSP_TLS_GUARD only.
6220         (stack_protect_set_<mode>): Ditto.
6221         (stack_protect_test): Ditto.
6222         (stack_protect_test_<mode>): Ditto.
6223         * doc/invoke.texi (i386 Option): Document.
6225 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6227         PR target/56890
6228         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6229         (S_MODES): Set H_MODE bit.
6230         (SF_MODES): Set only S_MODE and SF_MODE bits.
6231         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6232         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6233         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6234         <MODE_FLOAT>: Likewise.
6236 2013-04-15  Joey Ye  <joey.ye@arm.com>
6238         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6240 2013-04-15  Joey Ye  <joey.ye@arm.com>
6242         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6243         for real far jump.
6244         (thumb_far_jump_used_p): Count instruction size and set
6245         far_jump_used.
6247 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6249         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6250         * resource.c (mark_target_live_regs): Reformat conditional block.
6252 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6254         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6255         notes, they are emitted only just before final.
6256         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6258 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6260         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6261         * cfgrtl.c (delete_insn): Call it here instead.
6262         * lra-spills.c (lra_final_code_change): Use delete_insn.
6263         * haifa-sched.c (sched_remove_insn): Likewise.
6264         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6265         returning to the nop pool.
6266         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6267         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6269 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6271         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6272         * doc/tm.texi: Regenerated.
6274 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6276         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6277         QImode checks.
6279 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6281         * df-core.c (df_find_def): Compare register numbers.
6282         (df_find_use): Likewise.
6284 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6286         PR target/56903
6287         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6288         lra_in_progress for return.
6290 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6292         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6293         define_insn into define_insn_and_split and emit movsicc patterns.
6295 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6297         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6299 2013-04-12  Richard Biener  <rguenther@suse.de>
6301         * tree-pass.h (TODO_do_not_ggc_collect): New.
6302         * passes.c (execute_one_ipa_transform_pass): Honor
6303         TODO_do_not_ggc_collect.
6304         (execute_one_pass): Likewise.
6306         Revert
6307         2013-04-10  Richard Biener  <rguenther@suse.de>
6309         * passes.c (init_optimization_passes): Remove reload pass.
6310         * ira.c (do_reload): Merge into ...
6311         (ira): ... this.
6312         (rest_of_handle_reload): Remove.
6313         (pass_reload): Likewise.
6314         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6315         of reload for vzeroupper pass placement.
6317 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6319         PR tree-optimization/56918
6320         PR tree-optimization/56920
6321         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6322         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6323         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6324         use wide_mul_with_sign method.
6326 2013-04-12  Richard Biener  <rguenther@suse.de>
6328         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6329         not be considered a gimple constant.
6331 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6333         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6334         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6335         operations.
6337 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6338             Jakub Jelinek  <jakub@redhat.com>
6340         * opts.c: Include diagnostic-color.h.
6341         (common_handle_option): Handle OPT_fdiagnostics_color_.
6342         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6343         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6344         (diagnostic-color.o): New.
6345         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6346         (diagnostic_color_rule): New enum.
6347         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6348         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6349         the location string.
6350         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6351         either NULL, or color kind.
6352         * diagnostic-color.c: New file.
6353         * diagnostic-color.h: New file.
6354         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6355         arguments.
6356         * doc/invoke.texi (-fdiagnostics-color): Document.
6357         * pretty-print.h (pp_show_color): Define.
6358         (struct pretty_print_info): Add show_color field.
6359         * diagnostic.c: Include diagnostic-color.h.
6360         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6361         macros.  Colorize error:, warning: etc. strings and also the location
6362         string.
6363         (diagnostic_show_locus): Colorize the caret line.
6364         * pretty-print.c: Include diagnostic-color.h.
6365         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6366         inside of %< %> quotes or quoted through q format modifier.
6368 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6370         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6372 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6374         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6375         code in CC_NZ mode.
6376         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6377         pattern.
6379 2013-04-11  Marek Polacek  <polacek@redhat.com>
6381         PR tree-optimization/48184
6382         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6384 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6386         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6387         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6388         (skip_simple_arithmetic): Tidy up.
6389         * tree.h (skip_simple_constant_arithmetic): Declare.
6391 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6393         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6395 2013-04-11  Richard Biener  <rguenther@suse.de>
6397         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6398         generate vector constants.
6400 2013-04-11  Richard Biener  <rguenther@suse.de>
6402         PR tree-optimization/56878
6403         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6404         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6405         New function.
6406         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6407         Prefer to align the DR with the most invariant base address.
6409 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6411         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6412         comment.
6414 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6416         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6417         floating-point vector comparisons against 0.
6419 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6421         PR tree-optimization/56899
6422         * fold-const.c (extract_muldiv_1): Apply distributive law
6423         only if TYPE_OVERFLOW_WRAPS (ctype).
6425 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6427         PR target/56124
6428         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6429         loading has side effect.
6431 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6433         * config/sparc/sparc.c: Include tree-pass.h.
6434         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6435         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6436         head of file.  Change return type.  Split off gate function.
6437         (sparc_gate_work_around_errata): New function.
6438         (pass_work_around_errata): New pass definition.
6439         (insert_pass_work_around_errata) New pass insert definition to
6440         insert pass_work_around_errata just after delayed-branch scheduling.
6441         (sparc_option_override): Insert the pass.
6442         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6444 2013-04-10  David S. Miller  <davem@davemloft.net>
6446         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6447         or -mcpu=hypersparc.
6449         * target.def (cstore_mode): New hook.
6450         * target.h: Include insn-codes.h
6451         * targhooks.c: Likewise.
6452         (default_cstore_mode): New function.
6453         * targhooks.h: Declare it.
6454         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6455         * doc/tm.texi: Rebuild.
6456         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6457         target hook, rather than inspecting the insn_data.
6458         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6459         (TARGET_CSTORE_MODE): Redefine.
6460         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6461         result patterns.
6462         * config/sparc/predicates.md (cstore_result_operand): New special
6463         predicate.
6464         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6465         Use it for operand 0.
6466         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6467         (*snesi_special): Likewise.
6468         (*snesi_zero): Likewise.
6469         (*seqsi_zero): Likewise.
6470         (*sltu_insn): Likewise.
6471         (*sgeu_insn): Likewise.
6472         (*seqdi_special): Make operand 0 and comparison operation be of
6473         DImode.
6474         (*snedi_special): Likewise.
6475         (*snedi_special_vis3): Likewise.
6476         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6477         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6478         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6479         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6480         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6481         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6482         (*sltu_extend_sp64): Likewise.
6483         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6484         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6485         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6486         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6487         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6489 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6491         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6492         (aarch64_start_file): Use the new function.
6494 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6495             Jason Merrill  <jason@redhat.com>
6497         * common.opt: Add -gdwarf.
6498         * opts.c (common_handle_option): Handle it.
6499         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6501 2013-04-10  Richard Biener  <rguenther@suse.de>
6503         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6504         (execute_one_ipa_transform_pass): But unconditionally here.
6505         (execute_one_pass): And here.
6506         (init_optimization_passes): Remove reload pass.
6507         * tree-pass.h (TODO_ggc_collect): Remove.
6508         (pass_reload): Likewise.
6509         * ira.c (do_reload): Merge into ...
6510         (ira): ... this.
6511         (rest_of_handle_reload): Remove.
6512         (pass_reload): Likewise.
6513         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6514         of reload for vzeroupper pass placement.
6515         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6516         and todo_flags_finish of all passes.
6518 2013-04-10  Richard Biener  <rguenther@suse.de>
6520         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6521         first_const_oprnd field, rename first_def_type to first_op_type.
6522         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6523         (vect_get_and_check_slp_defs): Always use the type of the
6524         operand.  Allow mixed vect_external_def, vect_constant_def types.
6525         (vect_get_constant_vectors): Handle mixed vect_external_def,
6526         vect_constant_def types.
6528 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6530         PR tree-optimization/55524
6531         * tree-ssa-math-opts.c
6532         (convert_mult_to_fma): Don't use an fms construct
6533         when we don't have an fms operation, but fnma, and it looks
6534         likely that we'll be able to use the latter.
6536 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6538         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6539         function.
6540         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6541         inline fail caused by overwritable functions.
6543 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6545         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6546         unnecessary bits in the constant power of two case.
6548 2013-04-10  Richard Biener  <rguenther@suse.de>
6550         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6551         broken code swapping operands.
6552         (vect_build_slp_tree): Do not compute load permutations here.
6553         (vect_analyze_slp_instance): Compute load permutations here,
6554         after building the SLP tree.
6556 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6558         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6559         of next/prev_real_insn.
6561 2013-04-09  Jan Hubicka  <jh@suse.cz>
6563         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6564         Drop aliased parameter.
6565         (function_and_variable_visibility): Do not handle alias pairs.
6566         * cgraph.c (varpool_externally_visible_p): Update prototype.
6567         * varpool.c (varpool_add_new_variable): Update.
6569 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6571         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6573 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6575         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6577         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6579 2013-04-09  Marek Polacek  <polacek@redhat.com>
6581         PR tree-optimization/48762
6582         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6584 2013-04-09  Richard Biener  <rguenther@suse.de>
6586         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6587         dealing with cost.
6588         (vect_build_slp_tree): Likewise.
6589         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6590         calculating the cost of a SLP instance.
6591         (vect_analyze_slp_instance): Use it from here, after building
6592         the SLP tree.
6594 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6596         PR middle-end/56883
6597         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6598         expand_omp_for_static_chunk): Use simple_p = true in
6599         force_gimple_operand_gsi calls when assigning to addressable decls.
6601 2013-04-09  Jeff Law  <law@redhat.com>
6603         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6604         when the boolean was created by converting a wider object which
6605         had a boolean range.
6607 2013-04-09  Richard Biener  <rguenther@suse.de>
6609         * tree-vectorizer.h (slp_void_p): Remove.
6610         (slp_tree): Typedef before _slp_tree declaration.
6611         (struct _slp_tree): Use a vector of slp_tree as children.
6612         (vect_get_place_in_interleaving_chain): Remove.
6613         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6614         Move ...
6615         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6616         and make static.
6617         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6618         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6619         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6620         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6621         Use slp_node instead of slp_void_p and adjust.
6623 2013-04-09  Richard Biener  <rguenther@suse.de>
6625         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6626         work that is not necessary.
6628 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6630         PR tree-optimization/56854
6631         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6632         forward into clobber stmts if it would change MEM_REF lhs into
6633         non-MEM_REF.
6635 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6637         * tree.c (type_hash_lookup, type_hash_add): Make static.
6638         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6640 2013-04-09  Richard Biener  <rguenther@suse.de>
6642         * tree.h (unsave_expr_now): Remove.
6643         * tree-inline.c (mark_local_for_remap_r): Remove.
6644         (unsave_expr_1): Likewise.
6645         (unsave_r): Likewise.
6646         (unsave_expr_now): Likewise.
6647         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6648         (propagate_tree_value): Likewise.
6650 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6652         * doc/rtl.texi (sequence): Rewrite documentation to match the
6653         current use of SEQUENCE rtl objects.
6654         * rtl.def (SEQUENCE): Likewise.
6656         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6657         Update documentation.
6658         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6659         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6661         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6663 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6665         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6666         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6667         methods.
6668         (estimate_edge_size_and_time): Add comment to suggest using rounding
6669         methods.
6670         (estimate_node_size_and_time): Ditto.
6671         (remap_edge_change_prob): Use helper rounding divide methods.
6672         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6673         (gimple_mod_pow2_value_transform): Ditto.
6674         (gimple_mod_subtract_transform): Ditto.
6675         (gimple_ic_transform): Ditto.
6676         (gimple_stringops_transform): Ditto.
6677         * stmt.c (conditional_probability): Ditto.
6678         (emit_case_dispatch_table): Ditto.
6679         * lto-cgraph.c (merge_profile_summaries): Ditto.
6680         * tree-optimize.c (execute_fixup_cfg): Ditto.
6681         * cfgcleanup.c (try_forward_edges): Ditto.
6682         * cfgloopmanip.c (scale_loop_profile): Ditto.
6683         (loopify): Ditto.
6684         (duplicate_loop_to_header_edge): Ditto.
6685         (lv_adjust_loop_entry_edge): Ditto.
6686         * tree-vect-loop.c (vect_transform_loop): Ditto.
6687         * profile.c (compute_branch_probabilities): Ditto.
6688         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6689         * lto-streamer-in.c (input_cfg): Ditto.
6690         * gimple-streamer-in.c (input_bb): Ditto.
6691         * ipa-cp.c (update_profiling_info): Ditto.
6692         (update_specialized_profile): Ditto.
6693         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6694         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6695         rounding methods.
6696         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6697         (compute_trg_info): Ditto.
6698         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6699         (purge_dead_edges): Ditto.
6700         * loop-unswitch.c (unswitch_loop): Ditto.
6701         * cgraphclones.c (cgraph_clone_edge): Ditto.
6702         (cgraph_clone_node): Ditto.
6703         * tree-inline.c (copy_bb): Ditto.
6704         (copy_edges_for_bb): Ditto.
6705         (initialize_cfun): Ditto.
6706         (copy_cfg_body): Ditto.
6707         (expand_call_inline): Ditto.
6709 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6711         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6712         TARGET_CYGWIN64 by TARGET_64BIT.
6714 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6716         * config/epiphany/epiphany.md (GPR_1): New constant.
6717         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6718         * config/epiphany/epiphany.c (gen_compare_reg):
6719         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6720         is already in place.
6721         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6722         Don't require being called during rtl expansion; If y operlaps r0,
6723         return 0.
6724         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6725         (epiphany_expand_epilogue): Likewise.
6727         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6728         Don't use CC_FPmode for ORDERED / UNORDERED.
6729         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6731         * config/epiphany/constraints.md (CnL): New constraint.
6732         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6733         * config/epiphany/predicates.md (add_operand): Allow 1024.
6735         * config/epiphany/epiphany.md (logical_op): New code iterator.
6736         (op_mnc): New code attribute.
6737         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6738         (mov_f+1, mov_f+2): New peephole2 patterns.
6740         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6741         (cstoresi4): Also allow re-use of zero result when doing a NE
6742         comparison to a non-zero operand.
6743         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6745         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6746         Use gen_addsi3_i / gen_subsi3_i.
6748 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6750         PR c++/34949
6751         PR c++/50243
6752         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6753         contain anything but clobbers, at most one __builtin_stack_restore,
6754         optionally debug stmts and final resx, and if it has at least one
6755         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6756         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6757         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6758         which isn't defaut definition, remove them.
6759         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6760         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6761         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6762         with MEM_REF LHS with SSA_NAME address.
6764 2013-04-08  Jeff Law  <law@redhat.com>
6766         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6768 2013-04-08  Richard Biener  <rguenther@suse.de>
6770         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6771         extra newline.
6772         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6773         determined vector type.
6774         (vect_analyze_data_refs): Likewise.
6775         (vect_get_new_vect_var): Adjust.
6776         (vect_create_destination_var): Preserve SSA name versions.
6777         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6778         not dump anything here.
6780 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6782         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6783         Add member lr_slot_known.
6784         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6785         if necessary.
6786         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6787         Remove code that sets lr_slot_offset according to what a previous
6788         version of epiphany_emit_save_restore used to do.
6789         (epiphany_emit_save_restore): When doing an lr save or restore,
6790         set/verify lr_slot_known and lr_slot_offset.
6792 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
6794         PR target/54338
6795         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6796         in ALL_REGS.
6798 2013-04-08  Richard Biener  <rguenther@suse.de>
6800         * alias.c (find_base_term): Fix thinko in previous change.
6802 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6804         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6805         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6806         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
6807         if possible to compute val.
6808         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6809         For QImode integers don't require anything about precision.  Use
6810         const_with_all_bytes_same to find out if the constant doesn't have
6811         repeated bytes in it.
6813 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6815         * config/s390/s390.c (s390_expand_insv): Only accept insertions
6816         within mode size.
6818 2013-04-08  Marek Polacek  <polacek@redhat.com>
6820         PR rtl-optimization/48182
6821         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6822         value to 1.
6824 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6826         PR target/55487
6827         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6828         nuses, make sure we have a label.
6830 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6832         PR target/56843
6833         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6834         (rs6000_emit_swdiv_low_precision): Remove.
6835         (rs6000_emit_swdiv): Rewrite to handle between one and four
6836         iterations of Newton-Raphson generally; modify required number of
6837         iterations for some cases.
6838         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6840 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6842         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6843         set-but-unused variable.
6845         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6846         basic blocks of released function bodies garbage-collectable.
6848         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6849         (struct rtl_opt_pass): Add TODO_df_finish.
6851         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6853 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6855         * config/arm/constraints.md (q): New constraint.
6856         * config/arm/ldrdstrd.md: New file.
6857         * config/arm/arm.md (ldrdstrd.md) New include.
6858         (arm_movdi): Use "q" instead of "r" constraint
6859         for double-word memory access.
6860         (movdf_soft_insn): Likewise.
6861         * config/arm/vfp.md (movdi_vfp): Likewise.
6862         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6863         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6864         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6865         (mem_ok_for_ldrd_strd): Likewise.
6866         (output_move_double): Update assertion.
6868 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6870         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6872 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6874         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6875         define_insn_and_split.
6876         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6878 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6880         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6881         define_insn_and_split.
6882         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6883         (shiftsi3_compare): New pattern.
6884         (rrx): New pattern.
6885         * config/arm/unspecs.md (UNSPEC_RRX): New.
6887 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6889         * config/arm/arm.md (negdi_extendsidi): New pattern.
6890         (negdi_zero_extendsidi): Likewise.
6892 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6894         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6895         define_insn_and_split.
6896         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6897         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6899 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6901         * config/arm/arm.md (arm_subdi3): Convert define_insn into
6902         define_insn_and_split.
6903         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6904         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6906 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6908         * config/arm/arm.md (subsi3_carryin): New pattern.
6909         (subsi3_carryin_const): Likewise.
6910         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6911         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6913 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6915         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6917 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6919         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6920         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6922 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6924         * config/arm/arm.c (arm_expand_builtin): Change fcode
6925         type to unsigned int.
6927 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6929         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6931 2013-04-04  Ian Lance Taylor  <iant@google.com>
6933         * doc/standards.texi (Standards): The Go frontend supports the Go 1
6934         language standard.
6936 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6938         PR middle-end/56729
6939         * df-scan.c (df_insn_delete): Disable failing assert.
6941 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6943         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6944         New function prototype.
6945         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6946         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6947         (arm_builtin_vectorized_function): New function.
6949 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6951         * config/arm/arm_neon_builtins.def: New file.
6952         * config/arm/arm.c (neon_builtin_data): Move contents to
6953         arm_neon_builtins.def.
6954         (enum arm_builtins): Include neon builtin definitions.
6955         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6956         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6958 2013-04-04  Marek Polacek  <polacek@redhat.com>
6960         PR tree-optimization/48186
6961         * predict.c (maybe_hot_frequency_p): Return false if
6962         HOT_BB_FREQUENCY_FRACTION is 0.
6963         (cgraph_maybe_hot_edge_p): Likewise.
6965 2013-04-04  Richard Biener  <rguenther@suse.de>
6967         PR tree-optimization/56826
6968         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6969         more accurately.
6971 2013-04-04  Richard Biener  <rguenther@suse.de>
6973         PR tree-optimization/56213
6974         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6975         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6977 2013-04-04  Richard Biener  <rguenther@suse.de>
6979         PR tree-optimization/56837
6980         * tree-loop-distribution.c (classify_partition): For non-zero
6981         values require that the value has the same precision as its
6982         mode to be useful as memset value.
6984 2013-04-03  Nick Clifton  <nickc@redhat.com>
6986         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6987         (fmssf4): Use fmsf.s on E3V5 architectures.
6988         (fnmasf4): Use fnmaf.s on E3V5 architectures.
6989         (fnmssf4): Use fnmsf.s on E3V5 architectures.
6991 2013-04-03  Jeff Law  <law@redhat.com>
6993         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6994         (lra-eliminations.o): Likewise.
6996 2013-04-03  Teresa Johnson  <tejohnson@google.com>
6998         * gcov-io.c (compute_working_sets): Moved most of body of old
6999         compute_working_sets here from profile.c.
7000         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7001         (gcov_working_set_t): Moved typedef here from basic-block.h
7002         (compute_working_set): Declare.
7003         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7004         (get_working_sets): Renamed from compute_working_set,
7005         replace most of body with call to new compute_working_sets.
7006         (get_exec_counts): Replace call to compute_working_sets
7007         to get_working_sets.
7008         * profile.h (get_working_sets): Renamed from compute_working_set.
7009         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7010         to get_working_sets.
7011         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7012         * gcov-dump.c (dump_working_sets): New function.
7014 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7016         * hwint.c (sext_hwi, zext_hwi): New functions.
7017         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7018         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7019         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7020         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7021         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7022         (sext_hwi, zext_hwi): New functions.
7024 2013-04-03  Jeff Law  <law@redhat.com>
7026         PR tree-optimization/56799
7027         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7028         back test for widening conversion erroneously dropped in prior change.
7030 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7032         PR target/56809
7033         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7034         instead of next_real_insn.
7036 2013-04-03  Marek Polacek  <polacek@redhat.com>
7038         PR sanitizer/55702
7039         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7041 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7043         PR target/56809
7044         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7045         next_real_insn.
7046         (thumb1_output_casesi): Likewise.
7047         (thumb2_output_casesi): Likewise.
7049 2013-04-03  Richard Biener  <rguenther@suse.de>
7051         PR tree-optimization/56817
7052         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7053         Split out ...
7054         (tree_unroll_loops_completely_1): ... new function to manually
7055         walk the loop tree, properly defering outer loops of unrolled
7056         loops to later iterations.
7058 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7060         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7061         (vectorizable_load): Likewise.
7062         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7063         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7065 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7067         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7068         BIT_FIELD_REF.
7070 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7072         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7074 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7076         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7078 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7080         PR tree-optimization/56790
7081         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7082         folding.
7084 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7086         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7087         Handle VEC_MERGE.
7088         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7089         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7090         equal arguments.
7092 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7094         PR c/19449
7095         * tree.h (force_folding_builtin_constant_p): New decl.
7096         * builtins.c (force_folding_builtin_constant_p): New variable.
7097         (fold_builtin_constant_p): Fold immediately also if
7098         force_folding_builtin_constant_p.
7100 2013-04-03  Richard Biener  <rguenther@suse.de>
7102         PR tree-optimization/56812
7103         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7104         DRs of the same interleaving chain are independent.
7106 2013-04-02  Jason Merrill  <jason@redhat.com>
7108         * gdbinit.in (pbb): Use debug fn.
7110 2013-04-02  Lawrence Crowl  <crowl@google.com>
7112         * sese.h (struct ivtype_map_elt_s): Remove unused.
7113         (extern debug_ivtype_map): Remove unused.
7114         (extern eq_ivtype_map_elts): Remove unused.
7115         * sese.c (debug_ivtype_map): Removed unused.
7116         (debug_ivtype_map_1): Removed unused.
7117         (debug_ivtype_elt): Remove unused.
7118         (eq_ivtype_map_elts): Remove unused.
7121 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7123         PR target/52790
7124         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7125         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7126         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7127         function.
7128         (legitimize_pe_coff_symbol): Likewise.
7129         (is_imported_p): New helper-function.
7130         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7131         for Windows x64 targets.
7132         (ix86_expand_prologue): Optimize for pe-coff targets.
7133         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7134         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7135         medium/large code-model.
7136         (legitimize_pic_address): Likewise.
7137         (legitimize_tls_address): Likewise.
7138         (ix86_expand_call): Likewise.
7139         (x86_output_mi_thunk): Likewise.
7140         (get_dllimport_decl): Add new beimport argument.
7141         (construct_plt_address): Don't assert for x64 pe-coff targets.
7142         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7143         targets.
7144         (SYMBOL_FLAG_STUBVAR): New macro.
7145         (SYMBOL_REF_STUBVAR_P): Likewise.
7146         * config/i386/winnt.c (stub_list): New structure.
7147         (stub_head): New local variable.
7148         (i386_pe_record_stub): New function.
7149         (i386_pe_file_end): Emit refptr-stubs.
7151 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7153         PR rtl-optimization/56745
7154         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7155         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7157         PR c++/34949
7158         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7159         and both of them are MEM_REFs, just compare first argument for
7160         equality and attempt to deal even with differing offsets.
7162         PR c++/34949
7163         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7164         of gimple_clobber_p to be MEM_REF.
7165         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7166         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7167         after gimplification.
7168         * asan.c (get_mem_ref_of_assignment): Don't instrument
7169         gimple_clobber_p stmts.
7170         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7171         gimple_clobber_p stmt if they have MEM_REF lhs and
7172         are dead because of another gimple_clobber_p stmt.
7173         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7174         gimple_clobber_p stmts like debug stmts.
7175         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7176         that refer to unused VAR_DECLs or uninitialized values.
7177         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7178         gimple_clobber_p stmts if they refer to removed parameters.
7179         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7180         formatting.
7182 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7184         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7185         using SWI48 mode attribute.
7187 2013-04-02  Wei Mi  <wmi@google.com>
7189         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7190         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7191         *<rotate_insn><mode>3_mask in i386.md.
7193 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7195         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7197 2013-04-02  Richard Biener  <rguenther@suse.de>
7199         PR tree-optimization/56778
7200         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7201         Runtime alias tests are not supported for gather loads.
7202         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7203         stmts referenced from SSA operands before updating SSA form.
7205 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7206             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7208         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7209         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7210         * config/arm/cortex-a53.md: New file.
7211         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7212         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7213         * config/arm/arm.c (arm_issue_rate): Likewise.
7214         * config/arm/arm-tune.md: Regenerate
7215         * config/arm/arm-tables.opt: Regenerate.
7216         * config/arm/arm-cores.def: Add cortex-a53.
7218 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7220         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7221         non-static link.
7223 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7225         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7226         scalar load/store operations using B/H registers.
7227         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7229 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7231         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7232         scalar move.
7233         * config/aarch64/aarch64.c
7234         (aarch64_simd_scalar_immediate_valid_for_move): New.
7235         * config/aarch64/aarch64-protos.h
7236         (aarch64_simd_scalar_immediate_valid_for_move): New.
7237         * config/aarch64/constraints.md (Dh, Dq): New.
7238         * config/aarch64/iterators.md (hq): New.
7240 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7242         * reorg.c (get_branch_condition): Deal with conditional returns.
7243         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7245 2013-04-01  Wei Mi  <wmi@google.com>
7247         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7248         Truncate operand 2 using %b asm operand modifier.
7249         (*<shift_insn><mode>3_mask): Ditto.
7250         (*<rotate_insn><mode>3_mask): Ditto.
7252 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7254         PR middle-end/56798
7255         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7257 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7259         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7260         of next_real_insn.
7261         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7263 2013-03-30  Lawrence Crowl  <crowl@google.com>
7265         * dse.c (clear_alias_sets): Remove never set.
7266         (disqualified_clear_alias_sets): Remove never set.
7267         (clear_alias_mode_pool): Remove never set.
7268         (dse_step0): Remove condition that is never true.
7269         (canon_address): Remove condition that is never true.
7270         (dse_step7): Remove condition that is never true.
7271         (rest_of_handle_dse): Remove condition that is never true.
7272         (rest_of_handle_dse::did_global): Remove never read from above.
7273         (dse_step2_spill): Remove never called from above.
7274         (dse_step5_spill): Remove never called from above.
7276 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7278         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7279         JUMP_TABLE_DATA changes.
7280         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7281         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7282         (Insns) <jump_table_data>: New entry.
7283         * doc/tm.texi: Regenerate.
7285         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7287         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7288         for table jump at the end of a basic block using tablejump_p.
7289         * targhooks.c (default_invalid_within_doloop): Likewise.
7290         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7291         target hook implementation that is identical to the default hook.
7292         (rs6000_invalid_within_doloop): Remove.
7294         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7295         unused variable from tablejump_p call.
7297         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7298         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7299         (INSN_DELETED_P): Likewise.
7300         (emit_jump_table_data): New prototype.
7301         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7302         after 4th as unused.
7303         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7304         * sched-vis.c (print_insn): Likewise.
7305         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7306         insn for compatibility with back ends that use next_active_insn to
7307         identify jump table data.
7308         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7309         (remove_insn): Likewise.
7310         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7311         to be emitted.
7312         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7313         (emit_jump_table_data): New function.
7315         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7316         basic block, a JUMP_TABLE_DATA never is.
7317         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7318         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7319         off from code handling real insns.
7320         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7321         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7322         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7323         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7324         is not a NONDEBUG_INSN_P.
7325         * ira-costs.c (scan_one_insn): Likewise.
7326         * jump.c (mark_all_labels): Likewise.
7327         (mark_jump_label_1): Likewise.
7328         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7329         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7330         a basic block.
7331         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7332         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7333         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7334         JUMP_TABLE_DATA_P insns.
7335         (calculate_elim_costs_all_insns): Likewise.
7336         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7337         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7338         (delete_output_reload): Code style fixups.
7339         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7340         insn flags on this non-insn.
7341         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7342         as scheduling barriers, for pre-change compatibility.
7343         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7344         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7346         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7347         redundant JUMP_TABLE_DATA_P test.
7348         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7349         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7350         (frv_for_each_packet): Likewise.
7351         * config/i386/i386.c (min_insn_size): Likewise.
7352         (ix86_avoid_jump_mispredicts): Likewise.
7353         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7354         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7355         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7356         (mips16_insn_length): Robustify.
7357         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7358         (mips16_split_long_branches): Likewise.
7359         * config/pa/pa.c (pa_combine_instructions): Likewise.
7360         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7361         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7362         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7363         as contributing to pool range lengths.
7364         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7365         Remove redundant JUMP_TABLE_DATA_P test.
7366         (sh_loop_align): Likewise.
7367         (split_branches): Likewise.
7368         (sh_insn_length_adjustment): Likewise.
7369         * config/spu/spu.c (get_branch_target): Likewise.
7371 2013-03-29  Jan Hubicka  <jh@suse.cz>
7373         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7374         gcov streaming; stream hot bb threshold to ltrans.
7375         * predict.c (get_hot_bb_threshold): Break out from ....
7376         (maybe_hot_count_p): ... here.
7377         (set_hot_bb_threshold): New function.
7378         * lto-section-in.c (lto_section_name): Add profile.
7379         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7380         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7381         and data-streamer.h
7382         (histogram_entry): New structure.
7383         (histogram, histogram_pool): New global vars.
7384         (histogram_hash): New structure.
7385         (histogram_hash::hash): New method.
7386         (histogram_hash::equal): Likewise.
7387         (account_time_size): New function.
7388         (cmp_counts): New function.
7389         (dump_histogram): New function.
7390         (ipa_profile_generate_summary): New function.
7391         (ipa_profile_write_summary): New function.
7392         (ipa_profile_read_summary): New function.
7393         (ipa_profile): Decide on threshold.
7394         (pass_ipa_profile): Add ipa_profile_write_summary and
7395         ipa_profile_read_summary.
7396         * Makefile.in (ipa.o): Update dependencies.
7397         * lto-streamer.h (LTO_section_ipa_profile): New section.
7399 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7401         * tree.h (VAR_P): New.
7403 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7405         PR lto/56777
7406         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7408 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7410         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7411         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7412         (control_flow_insn_p): Likewise.
7413         * cfgrtl.c (duplicate_insn_chain): Likewise.
7414         * final.c (get_attr_length_1): Likewise.
7415         (shorten_branches): Likewise.
7416         (final_scan_insn): Likewise.
7417         * function.c (instantiate_virtual_regs): Likewise.
7418         * gcse.c (insert_insn_end_basic_block): Likewise.
7419         * ira-costs.c (scan_one_insn): Likewise.
7420         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7421         * lra.c (check_rtl): Likewise.
7422         * reload1.c (elimination_costs_in_insn): Likewise.
7423         * reorg.c (follow_jumps): Likewise.
7425         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7426         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7427         (thumb_far_jump_used_p): Likewise.
7428         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7429         (workaround_speculation): Likewise.
7430         (add_sched_insns_for_speculation): Likewise.
7431         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7432         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7433         (frv_for_each_packet): Likewise.
7434         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7435         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7436         (final_emit_insn_group_barriers): Likewise.
7437         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7438         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7439         (mips16_insn_length): Likewise.
7440         * config/pa/pa.c (pa_reorg): Likewise.
7441         (pa_combine_instructions): Likewise.
7442         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7443         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7444         (sh_reorg): Likewise.
7445         (split_branches): Likewise.
7446         * config/spu/spu.c (get_branch_target): Likewise.
7448         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7449         JUMP_TABLE_DATA_P.
7451 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7453         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7454         Fix declaration name.
7456 2013-03-28  Lawrence Crowl  <crowl@google.com>
7458         * graphds.h (struct graph.indicies): Remove unused.
7459         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7460         (SCOP_ORIGINAL_PDDRS): Remove unused.
7461         * sese.h (extern insert_loop_close_phis): Removed unused.
7462         (extern insert_guard_phis): Removed unused.
7463         (extern ivtype_map_elt_info): Removed unused.
7464         (new_ivtype_map_elt): Removed unused.
7465         * sese.c (ivtype_map_elt_info): Removed unused.
7467 2013-03-28  Lawrence Crowl  <crowl@google.com>
7469         * Makefile.in: Add several missing include dependences.
7470         (DUMPFILE_H): New.
7471         (test-dump.o): New.  This object is not added to any executable,
7472         but is present for ad-hoc testing.
7473         * bitmap.c
7474         (debug (const bitmap_head_def &)): New.
7475         (debug (const bitmap_head_def *)): New.
7476         * bitmap.h
7477         (extern debug (const bitmap_head_def &)): New.
7478         (extern debug (const bitmap_head_def *)): New.
7479         * cfg.c
7480         (debug (edge_def &)): New.
7481         (debug (edge_def *)): New.
7482         * cfghooks.c
7483         (debug (basic_block_def &)): New.
7484         (debug (basic_block_def *)): New.
7485         * dumpfile.h
7486         (dump_node (const_tree, int, FILE *)): Correct source file.
7487         * dwarf2out.c
7488         (debug (die_struct &)): New.
7489         (debug (die_struct *)): New.
7490         * dwarf2out.h
7491         (extern debug (die_struct &)): New.
7492         (extern debug (die_struct *)): New.
7493         * gimple-pretty-print.c
7494         (debug (gimple_statement_d &)): New.
7495         (debug (gimple_statement_d *)): New.
7496         * gimple-pretty-print.h
7497         (extern debug (gimple_statement_d &)): New.
7498         (extern debug (gimple_statement_d *)): New.
7499         * ira-build.c
7500         (debug (ira_allocno_copy &)): New.
7501         (debug (ira_allocno_copy *)): New.
7502         (debug (ira_allocno &)): New.
7503         (debug (ira_allocno *)): New.
7504         * ira-int.h
7505         (extern debug (ira_allocno_copy &)): New.
7506         (extern debug (ira_allocno_copy *)): New.
7507         (extern debug (ira_allocno &)): New.
7508         (extern debug (ira_allocno *)): New.
7509         * ira-lives.c
7510         (debug (live_range &)): New.
7511         (debug (live_range *)): New.
7512         * lra-int.h
7513         (debug (lra_live_range &)): New.
7514         (debug (lra_live_range *)): New.
7515         * lra-lives.c
7516         (debug (lra_live_range &)): New.
7517         (debug (lra_live_range *)): New.
7518         * omega.c
7519         (debug (omega_pb_d &)): New.
7520         (debug (omega_pb_d *)): New.
7521         * omega.h
7522         (extern debug (omega_pb_d &)): New.
7523         (extern debug (omega_pb_d *)): New.
7524         * print-rtl.c
7525         (debug (const rtx_def &)): New.
7526         (debug (const rtx_def *)): New.
7527         * print-tree.c
7528         (debug_tree (tree): Move within file.
7529         (debug_raw (const tree_node &)): New.
7530         (debug_raw (const tree_node *)): New.
7531         (dump_tree_via_hooks (const tree_node *, int)): New.
7532         (debug (const tree_node &)): New.
7533         (debug (const tree_node *)): New.
7534         (debug_verbose (const tree_node &)): New.
7535         (debug_verbose (const tree_node *)): New.
7536         (debug_head (const tree_node &)): New.
7537         (debug_head (const tree_node *)): New.
7538         (debug_body (const tree_node &)): New.
7539         (debug_body (const tree_node *)): New.
7540         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7541         (debug (vec<tree, va_gc> &)): New.
7542         (debug (vec<tree, va_gc> *)): New.
7543         * rtl.h
7544         (extern debug (const rtx_def &)): New.
7545         (extern debug (const rtx_def *)): New.
7546         * sbitmap.c
7547         (debug_raw (simple_bitmap_def &)): New.
7548         (debug_raw (simple_bitmap_def *)): New.
7549         (debug (simple_bitmap_def &)): New.
7550         (debug (simple_bitmap_def *)): New.
7551         * sbitmap.h
7552         (extern debug (simple_bitmap_def &)): New.
7553         (extern debug (simple_bitmap_def *)): New.
7554         (extern debug_raw (simple_bitmap_def &)): New.
7555         (extern debug_raw (simple_bitmap_def *)): New.
7556         * sel-sched-dump.c
7557         (debug (vinsn_def &)): New.
7558         (debug (vinsn_def *)): New.
7559         (debug_verbose (vinsn_def &)): New.
7560         (debug_verbose (vinsn_def *)): New.
7561         (debug (expr_def &)): New.
7562         (debug (expr_def *)): New.
7563         (debug_verbose (expr_def &)): New.
7564         (debug_verbose (expr_def *)): New.
7565         (debug (vec<rtx> &)): New.
7566         (debug (vec<rtx> *)): New.
7567         * sel-sched-dump.h
7568         (extern debug (vinsn_def &)): New.
7569         (extern debug (vinsn_def *)): New.
7570         (extern debug_verbose (vinsn_def &)): New.
7571         (extern debug_verbose (vinsn_def *)): New.
7572         (extern debug (expr_def &)): New.
7573         (extern debug (expr_def *)): New.
7574         (extern debug_verbose (expr_def &)): New.
7575         (extern debug_verbose (expr_def *)): New.
7576         (extern debug (vec<rtx> &)): New.
7577         (extern debug (vec<rtx> *)): New.
7578         * sel-sched-ir.h
7579         (_list_iter_cond_expr): Make inline instead of static.
7580         * sreal.c
7581         (debug (sreal &)): New.
7582         (debug (sreal *)): New.
7583         * sreal.h
7584         (extern debug (sreal &)): New.
7585         (extern debug (sreal *)): New.
7586         * tree.h
7587         (extern debug_raw (const tree_node &)): New.
7588         (extern debug_raw (const tree_node *)): New.
7589         (extern debug (const tree_node &)): New.
7590         (extern debug (const tree_node *)): New.
7591         (extern debug_verbose (const tree_node &)): New.
7592         (extern debug_verbose (const tree_node *)): New.
7593         (extern debug_head (const tree_node &)): New.
7594         (extern debug_head (const tree_node *)): New.
7595         (extern debug_body (const tree_node &)): New.
7596         (extern debug_body (const tree_node *)): New.
7597         (extern debug (vec<tree, va_gc> &)): New.
7598         (extern debug (vec<tree, va_gc> *)): New.
7599         * tree-cfg.c
7600         (debug (struct loop &)): New.
7601         (debug (struct loop *)): New.
7602         (debug_verbose (struct loop &)): New.
7603         (debug_verbose (struct loop *)): New.
7604         * tree-dump.c: Add header dependence.
7605         * tree-flow.h
7606         (extern debug (struct loop &)): New.
7607         (extern debug (struct loop *)): New.
7608         (extern debug_verbose (struct loop &)): New.
7609         (extern debug_verbose (struct loop *)): New.
7610         * tree-data-ref.c
7611         (debug (data_reference &)): New.
7612         (debug (data_reference *)): New.
7613         (debug (vec<data_reference_p> &)): New.
7614         (debug (vec<data_reference_p> *)): New.
7615         (debug (vec<ddr_p> &)): New.
7616         (debug (vec<ddr_p> *)): New.
7617         * tree-data-ref.h
7618         (extern debug (data_reference &)): New.
7619         (extern debug (data_reference *)): New.
7620         (extern debug (vec<data_reference_p> &)): New.
7621         (extern debug (vec<data_reference_p> *)): New.
7622         (extern debug (vec<ddr_p> &)): New.
7623         (extern debug (vec<ddr_p> *)): New.
7624         * tree-ssa-alias.c
7625         (debug (pt_solution &)): New.
7626         (debug (pt_solution *)): New.
7627         * tree-ssa-alias.h
7628         (extern debug (pt_solution &)): New.
7629         (extern debug (pt_solution *)): New.
7630         * tree-ssa-alias.c
7631         (debug (_var_map &)): New.
7632         (debug (_var_map *)): New.
7633         (debug (tree_live_info_d &)): New.
7634         (debug (tree_live_info_d *)): New.
7635         * tree-ssa-alias.h
7636         (extern debug (_var_map &)): New.
7637         (extern debug (_var_map *)): New.
7638         (extern debug (tree_live_info_d &)): New.
7639         (extern debug (tree_live_info_d *)): New.
7641 2013-03-28  Jan Hubicka  <jh@suse.cz>
7643         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7645 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7647         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7648         record only when desired or required.
7650 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7652         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7653         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7655 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7657         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7658         (*andsi3_compare0_uxtw): New pattern.
7659         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7660         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7662 2013-03-28  Jan Hubicka  <jh@suse.cz>
7664         * data-streamer-in.c (streamer_read_gcov_count): New function.
7665         * gimple-streamer-out.c: Include value-prof.h.
7666         (output_gimple_stmt): Output histogram.
7667         (output_bb): Use streamer_write_gcov_count.
7668         * value-prof.c: Include data-streamer.h
7669         (dump_histogram_value): Add HIST_TYPE_MAX.
7670         (stream_out_histogram_value): New function.
7671         (stream_in_histogram_value): New function.
7672         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7673         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7674         * data-streamer-out.c (streamer_write_gcov_count): New function.
7675         (streamer_write_gcov_count_stream): New function.
7676         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7677         (lto_output_node): Likewise.
7678         (input_node, input_edge): Likewise.
7679         * lto-streamer-out.c (output_cfg): Update streaming.
7680         * lto-streamer-in.c (input_cfg): Likewise.
7681         * data-streamer.h (streamer_write_gcov_count,
7682         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7683         * gimple-streamer-in.c: Include value-prof.h
7684         (input_gimple_stmt): Input histograms.
7685         (input_bb): Update profile streaming.
7687 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7689         * genmodes.c (emit_max_int): New function.
7690         (emit_insn_modes_h): Added call to emit_max_function.
7691         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7692         Added doc.
7693         * machmode.def: Fixed comment.
7695 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7697         * combine.c (try_combine): Removed useless assert.
7698         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7700 2013-03-28  Marek Polacek  <polacek@redhat.com>
7701             Richard Biener  <rguenther@suse.de>
7703         PR tree-optimization/56695
7704         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7705         build signed result of a vector comparison.
7706         * tree-cfg.c (verify_gimple_comparison): Check that a result
7707         of a vector comparison has signed type.
7709 2013-03-28  Richard Biener  <rguenther@suse.de>
7711         PR tree-optimization/37021
7712         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7713         do not restrict gaps between groups.
7714         * tree-vect-stmts.c (vectorizable_load): Properly account for
7715         a gap between groups.
7717 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7719         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7720         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7721         is not enabled.
7723 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7725         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7726         * doc/extend.texi (Named Address Spaces): Ditto.
7727         (Variable Attributes): Ditto.
7729 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7731         * config.build: Add support for cygwin x64 target.
7732         * config.gcc: Likewise.
7733         * config.host: Likewise.
7734         * configure.ac: Likewise
7735         * configure: Regenerated.
7737 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7739         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7740         * config/i386/t-cygwin-w64: New file.
7741         * config/i386/cygwin-w64.h: New file.
7742         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7743         and add support for x64-cygwin target.
7744         (CPP_SPEC): Likewise.
7745         (CXX_WRAP_SPEC_LIST): Undefine before define.
7746         (LIBGCJ_SONAME): Use 15 as version.
7748 2013-03-27  Richard Biener  <rguenther@suse.de>
7750         PR tree-optimization/56716
7751         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7752         dumping for ref nodes.
7754 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7756         PR tree-optimization/55334
7757         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7758         restricted pointers to arrays.
7760 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7762         * Makefile.in (.SUFFIXES): Add .cc.
7763         (.c.o): Apply same recipe for implicit rule .cc.o.
7765 2013-03-27  Richard Biener  <rguenther@suse.de>
7767         PR tree-optimization/37021
7768         * tree-vect-data-refs.c (vect_check_strided_load): Allow
7769         REALPART/IMAGPART_EXPRs around the supported refs.
7770         * tree-ssa-structalias.c (find_func_aliases): Assume that
7771         floating-point values are not used to transfer pointers.
7773 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7775         * target.def (TARGET_HAS_IFUNC_P): New target hook.
7776         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7777         * doc/tm.texi: Regenerate.
7778         * targhooks.h (default_has_ifunc_p): New.
7779         * targhooks.c (default_has_ifunc_p): Ditto.
7780         * config/linux-protos.h: New file.
7781         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7782         this hook for linux which disables support of indirect functions in
7783         android.
7784         * config/linux-android.c: New file.
7785         * config/t-linux-android.c: Ditto.
7786         * config.gcc: Added new object file linux-android.o.
7787         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7788         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7789         * varasm.c (do_assemble_alias): Likewise.
7790         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7791         doesn't support indirect functions.
7792         * configure: Regenerate.
7794 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
7796         PR target/56102
7797         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7798         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7799         mult-word mode.
7801 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7803         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7805 2013-03-27  Terry Guo  <terry.guo@arm.com>
7807         * config/arm/arm-cores.def: Added core cortex-r7.
7808         * config/arm/arm-tune.md: Regenerated.
7809         * config/arm/arm-tables.opt: Regenerated.
7810         * doc/invoke.texi: Added entry for core cortex-r7.
7812 2013-03-27  Walter Lee  <walt@tilera.com>
7814         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7815         double-decrement of next_scratch_regno.
7817 2013-03-27  Walter Lee  <walt@tilera.com>
7819         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7820         input operands.
7821         (insn_v1mulus): Ditto.
7822         (insn_v2muls): Ditto.
7824 2013-03-27  Walter Lee  <walt@tilera.com>
7826         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7827         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7829 2013-03-27  Walter Lee  <walt@tilera.com>
7831         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7832         (*sibcall_value): Ditto.
7834 2013-03-27  Walter Lee  <walt@tilera.com>
7836         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7837         (insn_mnz_v8qi): ... this ...
7838         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
7839         vector equivalent.
7840         (insn_v<n>mnz): Replaced by ...
7841         (insn_v1mnz): ... this ...
7842         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
7843         equivalent.
7844         (insn_mz_<mode>): Replaced by ...
7845         (insn_mz_v8qi): ... this ...
7846         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
7847         vector equivalent.
7848         (insn_v<n>mz): Replaced by ...
7849         (insn_v1mz): ... this ...
7850         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
7851         equivalent.
7853 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7855         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7857 2013-03-26  Roland McGrath  <mcgrathr@google.com>
7859         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7860         than fprintf with a non-constant, non-format string.
7862 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7864         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7865         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
7866         operand 0 predicate.
7867         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7868         attribute.  Use general_x64nomem_operand as operand 1 predicate.
7869         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7870         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7871         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7872         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7873         (mov<mode>_insv_1): Remove expander.  Merge insn with
7874         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7875         Use general_x64nomem_operand as operand 1 predicate.
7876         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7877         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7878         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7879         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7880         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
7881         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7882         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7883         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7884         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
7885         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7886         (general_x64nomem_operand): Ditto.
7888 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7890         * config/rtems.opt: Add -pthread option.
7892 2013-03-26  Richard Biener  <rguenther@suse.de>
7894         * alias.c (find_base_term): Avoid redundant and not used recursion.
7895         (base_alias_check): Get the initial base term from the caller.
7896         (true_dependence_1): Compute and pass base terms to base_alias_check.
7897         (write_dependence_p): Likewise.
7898         (may_alias_p): Likewise.
7900 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
7902         * config/aarch64/aarch64.c (aarch64_classify_address): Support
7903         PC-relative load in SI modes and above only.
7905 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
7907         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7908         * config/arm/iwmmxt.md (WCGR0): Update.
7909         (WCGR1, WCGR2, WCGR3): Likewise.
7911 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7913         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7914         Use x64 and nox64 isa attributes.
7916 2013-03-26  Richard Biener  <rguenther@suse.de>
7918         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7919         alignment computations and rely on get_object_alignment_1
7920         for the !TYPE_P case.
7921         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7923 2013-03-26  Walter Lee  <walt@tilera.com>
7925         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7926         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7928 2013-03-25  Jeff Law  <law@redhat.com>
7930         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7931         check for INTEGRAL_TYPE_P that was missing due to checking in
7932         wrong version of prior patch.
7934 2013-03-25  Walter Lee  <walt@tilera.com>
7936         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7937         TILEGX_INSN_SHUFFLEBYTES1.
7938         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7939         shufflebytes1.
7940         (tilegx_builtins): Ditto.
7941         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7943 2013-03-25  Walter Lee  <walt@tilera.com>
7945         * config/tilegx/tilegx.md (floatsisf2): New pattern.
7946         (floatunssisf2): New pattern.
7947         (floatsidf2): New pattern.
7948         (floatunssidf2): New pattern.
7950 2013-03-25  Walter Lee  <walt@tilera.com>
7952         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7953         tests for constraint J, K, N, P.
7955 2013-03-25  Walter Lee  <walt@tilera.com>
7957         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7958         Use indirect/pcrel encoding.
7959         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7960         Ditto.
7962 2013-03-25  Steve Ellcey  <sellcey@mips.com>
7964         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7965         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7966         * config/mips/mips.c (mips_option_override): Set IMADD default.
7967         * config/mips/mips.h (PTF_AVOID_IMADD): New.
7968         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7969         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7970         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7971         * doc/invoke.texi (-mimadd/-mno-imadd): New.
7973 2013-03-25  Jeff Law  <law@redhat.com>
7975         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7976         slightly to avoid creating and folding useless trees.  Simplify
7977         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7979 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
7981         * config/i386/i386.md (*zero_extendsidi2): Merge with
7982         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
7983         * config/i386/predicates.md (x86_64_zext_operand): Rename from
7984         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
7985         targets.  Clarify comment.
7987 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7989         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7990         pass-through jump functions differently.
7991         (ipa_read_jump_function): Likewise.  Also use setter functions to set
7992         up jump functions.
7994 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7996         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7997         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7998         process it.
7999         (ipa_get_indirect_edge_target): New function.
8000         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8001         ipa_get_indirect_edge_target.  Update all callers.
8002         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8003         ipa_get_indirect_edge_target_1 instead of calling
8004         ipa_get_indirect_edge_target.
8005         (create_specialized_node): Pass aggvlas to
8006         ipcp_discover_new_direct_edges.
8008 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8010         * config/arm/arm.md (f_sels, f_seld): New types.
8011         (*cmov<mode>): New pattern.
8012         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8013         predicate.
8015 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8017         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8018         POSIX-printf for mingw-hosted  builds.
8020 2013-03-25  Richard Biener  <rguenther@suse.de>
8022         PR middle-end/56694
8023         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8024         must-not-throw stmt location.
8026 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8028         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8029         Emit load-acquire versions when acq is true.
8030         (arm_emit_store_exclusive): Add rel parameter.
8031         Emit store-release versions when rel is true.
8032         (arm_split_compare_and_swap): Use acquire-release instructions
8033         instead.
8034         of barriers when appropriate.
8035         (arm_split_atomic_op): Likewise.
8036         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8037         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8038         (VUNSPEC_SLX): Likewise.
8039         (VUNSPEC_LDA): Likewise.
8040         (VUNSPEC_STL): Likewise.
8041         * config/arm/sync.md (atomic_load<mode>): New pattern.
8042         (atomic_store<mode>): Likewise.
8043         (arm_load_acquire_exclusive<mode>): Likewise.
8044         (arm_load_acquire_exclusivesi): Likewise.
8045         (arm_load_acquire_exclusivedi): Likewise.
8046         (arm_store_release_exclusive<mode>): Likewise.
8048 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8050         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8051         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8052         * config/mip/predicates.md (lwsp_swsp_operand,
8053         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8054         sb16_operand, db4_operand, db7_operand, ib3_operand,
8055         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8056         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8057         andi16_operand): New predicates.
8058         * config/mips/mips.md (compression): New attribute.
8059         (enabled): New attribute.
8060         (length): Consider compression in computing length.
8061         (shift_compression): New code attribute.
8062         (*add<mode>3): New operands. Record compression.
8063         (sub<mode>3): Likewise.
8064         (one_cmpl<mode>2): Likewise.
8065         (*and<mode>3): Likewise.
8066         (*ior<mode>3): Likewise.
8067         (unnamed pattern for xor): Likewise.
8068         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8069         (*<optab><mode>3): Likewise.
8070         (*mov<mode>_internal: Likewise.
8071         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8072         (mips_unsigned_immediate_p): New.
8073         (umips_lwsp_swsp_address_p): New.
8074         (m16_based_address_p): New.
8075         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8076         (mips_unsigned_immediate_p): New prototype.
8077         (lwsp_swsp_address_p): New prototype.
8078         (m16_based_address_p): New prototype.
8079         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8080         (mips_signed_immediate_p): New function.
8081         (m16_based_address_p): New function.
8082         (lwsp_swsp_address_p): New function.
8083         (mips_print_operand_punctuation): Recognize short delay slot insns
8084         for microMIPS.add<mode>3"
8086 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8088         PR target/56720
8089         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8090         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8092 2013-03-25  Richard Biener  <rguenther@suse.de>
8094         PR tree-optimization/56689
8095         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8096         any edge.
8098 2013-03-25  Richard Biener  <rguenther@suse.de>
8100         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8101         of bitmap.
8102         (memory_references): Likewise.
8103         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8104         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8105         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8106         (gather_mem_refs_in_loops): Fold into ...
8107         (analyze_memory_references): ... this.  Move initialization
8108         to tree_ssa_lim_initialize.
8109         (fill_always_executed_in): Rename to ...
8110         (fill_always_executed_in_1): ... this.
8111         (fill_always_executed_in): Move contains_call computation to
8112         this new function from ...
8113         (tree_ssa_lim_initialize): ... here.
8114         (tree_ssa_lim): Call fill_always_executed_in.
8116 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8118         * postreload.c (reload_combine): Fix code detecting returns.
8120 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8122         * function.c (emit_use_return_register_into_block): On cc0 targets,
8123         do not emit the sequence between cc0 setter and user.
8125 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8127         * config/i386/predicates.md (local_symbolic_operand): Interpret
8128         dll-imported symbols as none-local.
8130 2013-03-25  Richard Biener  <rguenther@suse.de>
8132         * tree-ssa-loop-im.c (struct depend): Remove.
8133         (struct lim_aux_data): Make depends a vec of gimples.
8134         (free_lim_aux_data): Adjust.
8135         (add_dependency): Likewise.
8136         (set_level): Likewise.
8138 2013-03-25  Richard Biener  <rguenther@suse.de>
8140         PR middle-end/56434
8141         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8142         the pointer returned by calls with ECF_MALLOC set.
8144 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8146         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8148 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8150         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8151         using MMXMODE mode iterator.
8152         (*move<mode>_internal): Merge with *movv2sf_internal and
8153         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8155 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8157         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8158         (record_last_mem_set_info): Likewise.
8160         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8161         of XNEWVEC followed by memset.
8162         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8164 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8166         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8167         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8168         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8169         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8170         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8171         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8172         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8173         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8174         BARRIER_P instead of GET_CODE.
8176 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8178         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8179         inaccuracy in the probing code.
8181         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8182         (ctrapdi4): Likewise.
8184 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8186         * calls.c (expand_call): Add missing guard to code handling return
8187         of non-BLKmode structures in MSB.
8188         * function.c (expand_function_end): Likewise.
8190 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8192         * combine.c (try_combine): Adjust comment.  Do not add the set of
8193         insn #0 if the destination indirectly is set or dies in insn #2.
8194         Tidy up code to distribute a new note.
8196 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8198         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8199         also for alternatives 16 and 17.
8201 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8203         * config/i386/sse.md (*mov<mode>_internal): Merge with
8204         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8205         Emit insn template depending on type attribute.  Use
8206         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8207         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8208         attribute calculation.  Remove unit attribute calculation.
8209         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8210         Set prefix_data16 attribute for DImode ssemov types.
8211         Use Ym instead of y for SSE-MMX conversion alternatives.
8212         Reorder operand constraints.
8214 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8216         * df.h (df_insn_delete): Adjust prototype.
8217         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8218         and let it decide whether mark the basic block dirty.
8219         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8220         * df-scan.c (df_insn_info_delete): New helper function, split
8221         off from df_insn_delete.
8222         (df_scan_free_bb_info): Use it.
8223         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8224         Likewise.
8225         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8226         that the insn is actually an insn and it has a non-NULL basic block.
8227         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8229 2013-03-22  Richard Biener  <rguenther@suse.de>
8231         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8232         dep_ref members.
8233         (mem_ref_alloc): Do not allocate them.
8234         (refs_independent_p): Do not query or maintain a cache.
8236 2013-03-22  Richard Biener  <rguenther@suse.de>
8238         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8239         (gather_mem_refs_in_loops): Do not compute it.
8240         (analyze_memory_references): Do not allocate it.
8241         (tree_ssa_lim_finalize): Do not free it.
8242         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8244 2013-03-22  Richard Biener  <rguenther@suse.de>
8246         * is-a.h (as_a): Use gcc_checking_assert.
8248 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8250         * config/aarch64/aarch64.c (aarch64_print_operand): New
8251         format specifier for printing a constant in hex.
8252         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8253         format specifier for printing second operand.
8255 2013-03-22  Richard Biener  <rguenther@suse.de>
8257         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8258         bitmaps.
8259         (gather_mem_refs_in_loops): Perform store accumulation here.
8260         (create_vop_ref_mapping_loop): Remove.
8261         (create_vop_ref_mapping): Likewise.
8262         (analyze_memory_references): Initialize refs_stored_in_loop.
8263         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8264         (record_indep_loop): Remove.
8265         (record_dep_loop): New function.
8266         (ref_indep_loop_p_1): Adjust to only walk over references
8267         in the loop, not its subloops.
8268         (ref_indep_loop_p): Rename to ...
8269         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8270         maintaining a more fine-grained cache.
8271         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8272         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8274 2013-03-22  Richard Biener  <rguenther@suse.de>
8276         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8277         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8278         aggregate mem_ref_loc.
8279         (free_mem_ref_locs): Inline into ...
8280         (memref_free): ... this and adjust.
8281         (mem_ref_alloc): Adjust.
8282         (mem_ref_locs_alloc): Remove.
8283         (record_mem_ref_loc): Adjust.
8284         (get_all_locs_in_loop): Rewrite into ...
8285         (for_all_locs_in_loop): ... this iterator.
8286         (rewrite_mem_ref_loc): New functor.
8287         (rewrite_mem_refs): Use for_all_locs_in_loop.
8288         (sm_set_flag_if_changed): New functor.
8289         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8290         (ref_always_accessed): New functor.
8291         (ref_always_accessed_p): Use for_all_locs_in_loop.
8293 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8295         * tree-pass.h (PROP_gimple_lvec): New.
8296         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8297         (init_optimization_passes): Move pass_lower_vector.
8298         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8299         PROP_gimple_lvec.
8300         (pass_lower_vector): Provide PROP_gimple_lvec.
8301         (pass_lower_vector_ssa): Likewise.
8302         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8304 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8306         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8308 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8310         * config/i386/i386.md (*movdi_internal): Disparage slightly
8311         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8312         conversion alternatives.
8314 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8316         PR middle-end/48087
8317         * diagnostic.def (DK_WERROR): New kind.
8318         * diagnostic.h (werrorcount): Define.
8319         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8320         promoted to DK_ERROR, increment DK_WERROR counter instead of
8321         DK_ERROR counter.
8322         * toplev.c (toplev_main): Call print_ignored_options even if
8323         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8324         even if just werrorcount is non-zero.
8326         PR debug/55608
8327         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8328         on failure.
8329         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8330         (string_cst_pool_decl): New function.
8331         (optimize_one_addr_into_implicit_ptr): New function.
8332         (resolve_addr_in_expr): Optimize DWARF location expression
8333         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8334         which doesn't live in memory, but has DW_AT_location or
8335         DW_AT_const_value, or refers to a string literal, into
8336         DW_OP_GNU_implicit_pointer.
8337         (optimize_location_into_implicit_ptr): New function.
8338         (resolve_addr): If removing DW_AT_location of a variable because
8339         it was DW_OP_addr of address of the variable, but the variable doesn't
8340         live in memory, try to emit const value attribute for the initializer.
8342 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8344         * tree.h (VECTOR_TYPE_P): New macro.
8345         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8346         TYPE_MODE): Use it.
8347         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8348         VEC_COND_EXPR cannot be lvalues.
8349         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8351 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8353         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8354         Restrict the transformation to equal modes.
8356 2013-03-21  Richard Biener  <rguenther@suse.de>
8358         PR tree-optimization/39326
8359         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8360         (MEM_ANALYZABLE): Adjust.
8361         (record_mem_ref_loc): Move bitmap ops ...
8362         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8363         unanalyzable refs, do not record locations for it.
8364         (analyze_memory_references): Allocate ref zero as shared
8365         unanalyzable ref.
8366         (refs_independent_p): Do not test for unanalyzed mems here.
8367         (ref_indep_loop_p_1): Special-case disambiguation against
8368         the unanalyzed ref.
8369         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8371 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8373         * config/arm/arm-protos.h (tune_params): Add
8374         prefer_neon_for_64bits field.
8375         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8376         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8377         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8378         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8379         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8380         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8381         (arm_option_override): Handle -mneon-for-64bits new option.
8382         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8383         (prefer_neon_for_64bits): Declare new variable.
8384         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8385         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8386         (arch_enabled): Handle new arch types. Remove support for onlya8
8387         and nota8.
8388         (one_cmpldi2): Use new arch names.
8389         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8390         * config/arm/arm.opt (mneon-for-64bits): Add option.
8391         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8392         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8393         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8394         of onlya8.
8395         * doc/invoke.texi (-mneon-for-64bits): Document.
8397 2013-03-21  Richard Biener  <rguenther@suse.de>
8399         PR tree-optimization/39326
8400         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8401         (sort_bbs_in_loop_postorder_cmp): New function.
8402         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8404 2013-03-21  Richard Biener  <rguenther@suse.de>
8406         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8407         (vect_insert_into_interleaving_chain): Likewise.
8408         (vect_drs_dependent_in_basic_block): Inline ...
8409         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8410         split out from ...
8411         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8412         (vect_check_interleaving): Simplify.
8413         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8414         (vect_slp_analyze_data_ref_dependences): ... this new function.
8415         (dr_group_sort_cmp): New function.
8416         (vect_analyze_data_ref_accesses): Compute data-reference groups
8417         here instead of in vect_analyze_data_ref_dependence.  Use
8418         a more efficient algorithm.
8419         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8420         vect_slp_analyze_data_ref_dependences.  Call
8421         vect_analyze_data_ref_accesses earlier.
8422         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8423         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8424         (vect_slp_analyze_data_ref_dependences): New prototype.
8426 2013-03-21  Richard Biener  <rguenther@suse.de>
8428         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8429         ref is stored in the loop.
8430         (find_refs_for_sm): Walk only over all stores.
8431         (store_motion_loop): Allocate from lim_bitmap_obstack.
8432         (store_motion): Likewise.
8434 2013-03-21  Richard Biener  <rguenther@suse.de>
8436         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8437         Update virtual SSA form.
8439 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8441         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8442         * configure: Regenerate.
8443         * config.in: Regenerate.
8444         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8445         if !HAVE_LD_EH_FRAME_CIEV3.
8447 2013-03-21  Richard Biener  <rguenther@suse.de>
8449         * tree-cfg.c (verify_expr_no_block): New function.
8450         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8451         nor DECL_VALUE_EXPR have locations with associated blocks.
8452         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8453         (clear_unused_block_pointer): Remove code dealing with
8454         blocks in DECL_DEBUG_EXPR locations.
8456 2013-03-21  Richard Biener  <rguenther@suse.de>
8458         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8459         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8460         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8461         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8462         instead of DECL_DEBUG_EXPR_IS_FROM.
8463         * gimplify.c (gimplify_modify_expr): Likewise.
8464         * tree-cfg.c (verify_expr_location_1): Likewise.
8465         * tree-complex.c (create_one_component_var): Likewise.
8466         * tree-sra.c (create_access_replacement): Likewise.
8467         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8468         (clear_unused_block_pointer): Likewise.
8469         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8470         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8471         * var-tracking.c (var_debug_decl): Likewise.
8472         (track_expr_p): Likewise.
8473         * tree-inline.c (add_local_variables): Likewise.  Set
8474         DECL_HAS_DEBUG_EXPR_P after copying it.
8475         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8476         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8478 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8480         PR bootstrap/56656
8481         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8482         * configure: Regenerate.
8483         * config.in: Regenerate.
8484         * config/i386/i386.md (*movdf_internal): Use
8485         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8486         movd instead of movq mnemonic for interunit moves.
8487         (*movdi_internal): Ditto.
8489 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8491         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8492         (abd<mode>_3): New pattern.
8493         (aba<mode>_3): New pattern.
8494         (fabd<mode>_3): New pattern.
8496 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8498         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8499         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8500         occurrence of REGISTER_PREFIX as its empty string.
8502 2013-03-20  Jeff Law  <law@redhat.com>
8504         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8505         addititional equivalences for equality comparisons between an SSA_NAME
8506         and a constant where the SSA_NAME was set from a widening conversion.
8508 2013-03-20  Walter Lee  <walt@tilera.com>
8510         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8512 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8514         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8515         depending on type attribute.
8516         (*movti_internal): Ditto.
8517         (*movtf_internal): Ditto.
8518         (*movxf_internal): Ditto.
8519         (*movdf_internal): Ditto.
8520         (*movsf_internal): Ditto.
8522 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8524         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8525         maybe_vex for sselog1 and ssemov types.
8526         (*movdi_internal): Reorder operand constraints.
8527         (*movsi_internal): Ditto.  Set prefix attribute to
8528         maybe_vex for sselog1 and ssemov types.
8529         (*movtf_internal): Set prefix attribute to maybe_vex
8530         for sselog1 and ssemov types.
8531         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8532         DImode ssemov types.  Reorder operand constraints.
8533         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8534         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8535         attribute for SImode ssemov types.  Reorder operand constraints.
8537 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8539         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8540         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8542 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8544         * config/rs6000/predicates.md (indexed_address, update_address_mem
8545         update_indexed_address_mem): New predicates.
8546         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8547         attribute for load/store instructions.
8548         * config/rs6000/dfp.md (movsd_store): Likewise.
8549         (movsd_load): Likewise.
8550         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8551         (unnamed HI->DI extend define_insn): Likewise.
8552         (unnamed SI->DI extend define_insn): Likewise.
8553         (unnamed QI->SI extend define_insn): Likewise.
8554         (unnamed QI->HI extend define_insn): Likewise.
8555         (unnamed HI->SI extend define_insn): Likewise.
8556         (unnamed HI->SI extend define_insn): Likewise.
8557         (extendsfdf2_fpr): Likewise.
8558         (movsi_internal1): Likewise.
8559         (movsi_internal1_single): Likewise.
8560         (movhi_internal): Likewise.
8561         (movqi_internal): Likewise.
8562         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8563         attribute for load/store instructions.
8564         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8565         instructions.
8566         (mov<mode>_softfloat): Likewise.
8567         (mov<mode>_hardfloat32): Likewise.
8568         (mov<mode>_hardfloat64): Likewise.
8569         (mov<mode>_softfloat64): Likewise.
8570         (movdi_internal32): Likewise.
8571         (movdi_internal64): Likewise.
8572         (probe_stack_<mode>): Likewise.
8574 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8576         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8577         floating point, and decimal floating point to reload iterator.
8579         * config/rs6000/constraints.md (wl constraint): New constraints to
8580         return FLOAT_REGS if certain options are used to reduce the number
8581         of separate patterns that exist in the file.
8582         (wx constraint): Likewise.
8583         (wz constraint): Likewise.
8585         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8586         -mdebug=reg, print wg, wl, wx, and wz constraints.
8587         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8588         Initialize the reload functions for 64-bit binary/decimal floating
8589         point types.
8590         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8591         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8592         create the buffer on the stack to overcome not having a 32-bit
8593         load and store.
8594         (rs6000_emit_move): Likewise.
8595         (rs6000_secondary_memory_needed_rtx): Likewise.
8596         (rs6000_alloc_sdmode_stack_slot): Likewise.
8597         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8598         via xxlxor, just like DFmode 0.0.
8600         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8601         define as 1 if we are running on a power7 or newer.
8602         (enum r6000_reg_class_enum): Add new constraints.
8604         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8605         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8606         with other moves by using conditional constraits (wg).  Use LFIWZX
8607         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8608         (movsd splitter): Likewise.
8609         (movsd_hardfloat): Likewise.
8610         (movsd_softfloat): Likewise.
8612         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8613         binary and decimal floating point moves.
8614         (fmove_ok): New attributes to combine binary and decimal floating
8615         point moves, and to combine power6x (mfpgpr) moves along normal
8616         floating moves.
8617         (real_value_to_target): Likewise.
8618         (f32_lr): Likewise.
8619         (f32_lm): Likewise.
8620         (f32_li): Likewise.
8621         (f32_sr): Likewise.
8622         (f32_sm): Likewise.
8623         (f32_si): Likewise.
8624         (movsf): Combine binary and decimal floating point moves.  Combine
8625         power6x (mfpgpr) moves with other moves by using conditional
8626         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8627         (mov<mode> for SFmode/SDmode); Likewise.
8628         (SFmode/SDmode splitters): Likewise.
8629         (movsf_hardfloat): Likewise.
8630         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8631         (movsf_softfloat): Likewise.
8632         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8634         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8635         wx and wz constraints.
8637         * config/rs6000/constraints.md (wg constraint): New constraint to
8638         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8640         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8641         constraint.
8643         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8644         -mdebug=reg, print wg, wl, wx, and wz constraints.
8645         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8646         Initialize the reload functions for 64-bit binary/decimal floating
8647         point types.
8648         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8649         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8650         create the buffer on the stack to overcome not having a 32-bit
8651         load and store.
8652         (rs6000_emit_move): Likewise.
8653         (rs6000_secondary_memory_needed_rtx): Likewise.
8654         (rs6000_alloc_sdmode_stack_slot): Likewise.
8655         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8656         via xxlxor, just like DFmode 0.0.
8658         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8659         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8660         with other moves by using conditional constraits (wg).  Use LFIWZX
8661         and STFIWX for loading SDmode on power7.
8662         (movdd splitters): Likewise.
8663         (movdd_hardfloat32): Likewise.
8664         (movdd_softfloat32): Likewise.
8665         (movdd_hardfloat64_mfpgpr): Likewise.
8666         (movdd_hardfloat64): Likewise.
8667         (movdd_softfloat64): Likewise.
8669         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8670         64-bit binary and decimal floating point moves.
8671         (FMOVE64X): Likewise.
8672         (movdf): Combine 64-bit binary and decimal floating point moves.
8673         Combine power6x (mfpgpr) moves with other moves by using
8674         conditional constraits (wg).
8675         (mov<mode> for DFmode/DDmode): Likewise.
8676         (DFmode/DDmode splitters): Likewise.
8677         (movdf_hardfloat32): Likewise.
8678         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8679         (movdf_softfloat32): Likewise.
8680         (movdf_hardfloat64_mfpgpr): Likewise.
8681         (movdf_hardfloat64): Likewise.
8682         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8683         (movdf_softfloat64): Likewise.
8684         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8685         (reload_<mode>_load): Move to later in the file so they aren't in
8686         the middle of the floating point move insns.
8687         (reload_<mode>_store): Likewise.
8689         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8690         constraint.
8692         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8693         constraint if -mdebug=reg.
8694         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8695         Enable using dd reload support if needed.
8697         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8698         binary and decimal floating point moves in rs6000.md.
8699         (movtd_internal): Likewise.
8701         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8702         decimal floating point moves.
8703         (movtf): Likewise.
8704         (movtf_internal): Likewise.
8705         (mov<mode>_internal, TDmode/TFmode): Likewise.
8706         (movtf_softfloat): Likewise.
8707         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8709         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8710         movdi_internal64, using wg constraint for move direct operations.
8711         (movdi_internal64): Likewise.
8713         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8714         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8715         the various virtual registers. Use GPR/FPR first/last values,
8716         instead of hard coding the register numbers.  Print which modes
8717         have reload functions registered.
8718         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8719         settings before/after setting cpu, target and subtarget settings.
8720         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8721         and for secondary reload failures in rs6000_secondary_reload_inner.
8722         (rs6000_secondary_reload_fail): Likewise.
8723         (rs6000_secondary_reload_inner): Likewise.
8725         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8726         macros for first/last GPR and FPR registers.
8727         (LAST_GPR_REGNO): Likewise.
8728         (FIRST_FPR_REGNO): Likewise.
8729         (LAST_FPR_REGNO): Likewise.
8731         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8732         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8733         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8734         (vcond<mode><mode>): Likewise.
8735         (vcondu<mode><mode>): Likewise.
8736         (vector_gtu<mode>): Likewise.
8737         (vector_gte<mode>): Likewise.
8738         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8739         to prevent the compiler from converting DImode operations to TImode.
8740         (ior<mode>3): Likewise.
8741         (and<mode>3): Likewise.
8742         (one_cmpl<mode>2): Likewise.
8743         (nor<mode>3): Likewise.
8744         (andc<mode>3): Likewise.
8746         * config/rs6000/constraints.md (wt constraint): New constraint
8747         that returns VSX_REGS if TImode is allowed in VSX registers.
8749         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8750         constant under VSX.
8752         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8753         similar to TImode, but it is restricted to being in the GPRs.
8755         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8756         TImode to occupy a single VSX register.
8758         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8759         -mvsx-timode for power7/power8.
8760         (power7 cpu): Likewise.
8761         (power8 cpu): Likewise.
8763         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8764         sure that TFmode/TDmode take up two registers if they are ever
8765         allowed in the upper VSX registers.
8766         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8767         registers.
8768         (rs6000_init_hard_regno_mode_ok): Likewise.
8769         (rs6000_debug_reg_global): Add debugging for PTImode and wt
8770         constraint.  Print if LRA is turned on.
8771         (rs6000_option_override_internal): Give an error if -mvsx-timode
8772         and VSX is not enabled.
8773         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
8774         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8775         to reg+offset addressing.  Use PTImode when checking offset
8776         addresses for validity.
8777         (reg_offset_addressing_ok_p): Likewise.
8778         (rs6000_legitimate_offset_address_p): Likewise.
8779         (rs6000_legitimize_address): Likewise.
8780         (rs6000_legitimize_reload_address): Likewise.
8781         (rs6000_legitimate_address_p): Likewise.
8782         (rs6000_eliminate_indexed_memrefs): Likewise.
8783         (rs6000_emit_move): Likewise.
8784         (rs6000_secondary_reload): Likewise.
8785         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
8786         reloads to fpr registers to continue to use reg+offset addressing,
8787         but 64-bit reloads to altivec registers need reg+reg addressing.
8788         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8789         it.  Treat LO_SUM like a PLUS operation.
8790         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8791         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8792         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8793         registers to share a register with a smaller sized type, since VSX
8794         puts scalars in the upper 64-bits.
8795         (print_operand): Add support for PTImode.
8796         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8797         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8798         registers, but don't have arithmetic support.
8799         (rs6000_memory_move_cost): Add test for VSX.
8800         (rs6000_opt_masks): Add -mvsx-timode.
8802         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8803         for TImode.
8804         (VSs): Likewise.
8805         (VSr): Use wt constraint for TImode.
8806         (VSv): Drop TImode support.
8807         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8808         (vsx_movti_64bit): Likewise.
8809         (vsx_movti_32bit): Likewise.
8810         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8811         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8812         one '?' on the appropriate output constraint.  Do not allow TImode
8813         logical operations on 32-bit systems.
8814         (vsx_ior<mode>3): Likewise.
8815         (vsx_xor<mode>3): Likewise.
8816         (vsx_one_cmpl<mode>2): Likewise.
8817         (vsx_nor<mode>3): Likewise.
8818         (vsx_andc<mode>3): Likewise.
8819         (vsx_concat_<mode>): Likewise.
8820         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8822         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8823         OPTION_MASK_VSX_TIMODE.
8824         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8825         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8827         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8828         (TI2 iterator): New iterator for TImode, PTImode.
8829         (wd mode attribute): Add values for vector types.
8830         (movti_string): Replace TI move operations with operations for TImode
8831         and PTImode.  Add support for TImode being allowed in VSX registers.
8832         (mov<mode>_string, TImode/PTImode): Likewise.
8833         (movti_ppc64): Likewise.
8834         (mov<mode>_ppc64, TImode/PTImode): Likewise.
8835         (TI mode splitters): Likewise.
8837         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8838         constraint.
8840 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
8842         PR tree-optimization/56355
8843         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8844         Also handle integers with undefined overflow.
8846 2013-03-20  Catherine Moore  <clm@codesourcery.com>
8847             Maciej W. Rozycki  <macro@codesourcery.com>
8848             Tom de Vries  <tom@codesourcery.com>
8849             Nathan Sidwell <nathan@codesourcery.com>
8850             Iain Sandoe  <iain@codesourcery.com>
8851             Nathan Froyd  <froydnj@codesourcery.com>
8852             Chao-ying Fu <fu@mips.com>
8854         * doc/extend.texi: (micromips, nomicromips, nocompression):
8855         Document new function attributes.
8856         * doc/invoke.texi (minterlink-compressed, mmicromips,
8857         m14k, m14ke, m14kec): Document new options.
8858         (minterlink-mips16): Update documentation.
8859         * doc/md.texi (ZC, ZD): Document new constraints.
8860         * configure.ac (gcc_cv_as_micromips): Check if linker
8861         supports the .set micromips directive.
8862         * configure: Regenerate.
8863         * config.in: Regenerate.
8864         * config/mips/mips-tables.opt: Regenerate.
8865         * config/mips/micromips.md: New file.
8866         * constraints.md (ZC, ZD): New constraints.
8867         * config/mips/predicates.md (movep_src_register): New predicate.
8868         (movep_src_operand): New predicate.
8869         (non_volatile_mem_operand): New predicate.
8870         * config/mips/mips.md (multimem): New type.
8871         (length): Differentiate between 17-bit and 18-bit branch offsets.
8872         (MOVEP1, MOVEP2): New mode iterator.
8873         (mov_<load>l): Use ZC constraint.
8874         (mov_<load>r): Likewise.
8875         (mov_<store>l): Likewise.
8876         (mov_<store>r): Likewise.
8877         (*branch_equality<mode>_inverted): Add microMIPS support.
8878         (*branch_equality<mode>): Likewise.
8879         (*jump_absolute): Likewise.
8880         (indirect_jump_<mode>): Likewise.
8881         (tablejump_<mode>): Likewise.
8882         (<optab>_internal): Likewise.
8883         (sibcall_internal): Likewise.
8884         (sibcall_value_internal): Likewise.
8885         (prefetch): Use constraint ZD.
8886         * config/mips/mips.opt (minterlink-compressed): New option.
8887         (minterlink-mips16): Now an alias for minterlink-compressed.
8888         (mmicromips): New option.
8889         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8890         (compare_and_swap_12): Likewise.
8891         (sync_add<mode>): Likewise.
8892         (sync_<optab>_12): Likewise.
8893         (sync_old_<optab>_12): Likewise.
8894         (sync_new_<optab>_12): Likewise.
8895         (sync_nand_12): Likewise.
8896         (sync_old_nand_12): Likewise.
8897         (sync_new_nand_12): Likewise.
8898         (sync_sub<mode>): Likewise.
8899         (sync_old_add<mode>): Likewise.
8900         (sync_old_sub<mode>): Likewise.
8901         (sync_new_add<mode>): Likewise.
8902         (sync_new_sub<mode>): Likewise.
8903         (sync_<optab><mode>): Likewise.
8904         (sync_old_<optab><mode>): Likewise.
8905         (sync_new_<optab><mode>): Likewise.
8906         (sync_nand<mode>): Likewise.
8907         (sync_old_nand<mode>): Likewise.
8908         (sync_new_nand<mode>): Likewise.
8909         (sync_lock_test_and_set<mode>): Likewise.
8910         (test_and_set_12): Likewise.
8911         (atomic_compare_and_swap<mode>): Likewise.
8912         (atomic_exchange<mode>_llsc): Likewise.
8913         (atomic_fetch_add<mode>_llsc): Likewise.
8914         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8915         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8916         (umips_save_restore_pattern_p): Likewise.
8917         (umips_load_store_pair_p): Likewise.
8918         (umips_output_load_store_pair): Likewise.
8919         (umips_movep_target_p): Likewise.
8920         (umips_12bit_offset_address_p): Likewise.
8921         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8922         (mips_base_mips16): Rename this...
8923         (mips_base_compression_flags): ...to this. Update all uses.
8924         (mips_attribute_table): Add micromips, nomicromips and nocompression.
8925         (mips_mips16_decl_p): Delete.
8926         (mips_nomips16_decl_p): Delete.
8927         (mips_get_compress_on_flags): New function.
8928         (mips_get_compress_off_flags): New function.
8929         (mips_get_compress_mode): New function.
8930         (mips_get_compress_on_name): New function.
8931         (mips_get_compress_off_name): New function.
8932         (mips_insert_attributes): Support multiple compression types.
8933         (mips_merge_decl_attributes): Likewise.
8934         (umips_12bit_offset_address_p): New function.
8935         (mips_start_function_definition): Emit .set micromips directive.
8936         (mips_call_may_need_jalx_p): New function.
8937         (mips_function_ok_for_sibcall): Add microMIPS support.
8938         (mips_print_operand_punctuation): Support short delay slots and
8939         compact jumps.
8940         (umips_swm_mask, umips_swm_encoding): New.
8941         (umips_build_save_restore): New function.
8942         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8943         (was_mips16_p): Remove.
8944         (old_compression_mode): New.
8945         (mips_set_compression_mode): New function.
8946         (mips_set_current_function): Add microMIPS support.
8947         (mips_option_override): Likewise.
8948         (umips_save_restore_pattern_p): New function.
8949         (umips_output_save_restore): New function.
8950         (umips_load_store_pair_p_1): New function.
8951         (umips_load_store_pair_p): New function.
8952         (umips_output_load_store_pair_1): New function.
8953         (umips_output_load_store_pair): New function.
8954         (umips_movep_target_p) New function.
8955         (mips_prepare_pch_save): Add microMIPS support.
8956         * config/mips/mips.h (TARGET_COMPRESSION): New.
8957         (TARGET_CPU_CPP_BUILTINS): Update macro
8958         to use new compression flags and to support microMIPS.
8959         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8960         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8961         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8962         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8963         (ASM_SPEC): Support mmicromips and mno-micromips.
8964         (M16STORE_REG_P): New macro.
8965         (MIPS_CALL): Support TARGET_MICROMIPS.
8966         (MICROMIPS_J): New macro.
8967         (mips_base_mips16): Rename this...
8968         (mips_base_compression_flags): ...to this.
8969         (UMIPS_12BIT_OFFSET_P): New macro.
8970         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8971         (MULTILIB_DIRNAMES): Likewise.
8972 2013-03-20  Richard Biener  <rguenther@suse.de>
8974         PR tree-optimization/56661
8975         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8976         the result does not have to be distinct.
8978 2013-03-20  Richard Biener  <rguenther@suse.de>
8980         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8981         remap_gimple_op_r.
8983 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8984             Steven Bosscher <steven@gcc.gnu.org>
8986         PR rtl-optimization/56605
8987         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8989 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8991         PR bootstrap/56656
8992         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8993         that require movd instead of movq.
8995 2013-03-20  Richard Biener  <rguenther@suse.de>
8997         * tree-ssa-structalias.c (struct variable_info): Add pointer
8998         to the first field of an aggregate with sub-vars.  Make
8999         this and the pointer to the next subfield its ID.
9000         (vi_next): New function.
9001         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9002         storedanything_id, integer_id): Increment by one.
9003         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9004         get_call_clobber_vi): Adjust.
9005         (solution_set_expand): Simplify and speedup.
9006         (solution_set_add): Inline into ...
9007         (set_union_with_increment): ... this.  Adjust accordingly.
9008         (do_sd_constraint): Likewise.
9009         (do_ds_constraint): Likewise.
9010         (do_complex_constraint): Simplify.
9011         (build_pred_graph): Adjust.
9012         (solve_graph): Likewise.  Simplify and speedup.
9013         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9014         get_constraint_for_component_ref, get_constraint_for_1,
9015         first_vi_for_offset, first_or_preceding_vi_for_offset,
9016         create_function_info_for, create_variable_info_for_1,
9017         create_variable_info_for, intra_create_variable_infos): Adjust.
9018         (init_base_vars): Push NULL for ID zero.
9019         (compute_points_to_sets): Adjust.
9021 2013-03-20  Richard Biener  <rguenther@suse.de>
9023         * cfgloop.c (verify_loop_structure): Streamline and avoid
9024         ICEing on corrupt loop tree.
9025         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9026         loop tree.
9028 2013-03-20  Richard Biener  <rguenther@suse.de>
9030         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9031         check whether an SSA update is needed.
9033 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9035         * config/mips/constraints.md (T): Rename to...
9036         (Yf): ...this.
9037         (U): Rename to...
9038         (Yd): ...this.
9039         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9040         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9042 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9044         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9045         (*subsi3_carryin_uxtw): Likewise.
9047 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9049         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9050         (*rorsi3_insn_uxtw): Likewise.
9052 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9054         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9055         (*extrsi5_insn_uxtw): Likewise.
9057 2013-03-19  Richard Biener  <rguenther@suse.de>
9059         PR tree-optimization/56273
9060         * passes.c (init_optimization_passes): Move second VRP after DOM.
9062 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9064         * config/i386/i386.md (*movti_internal): Merge from
9065         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9066         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9067         nox64 isa attributes.
9069 2013-03-18  Richard Biener  <rguenther@suse.de>
9071         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9072         (unite): Likewise.
9073         (merge_node_constraints): Likewise.
9074         (build_succ_graph): Likewise.
9075         (valid_graph_edge): Inline into single caller.
9076         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9077         and cache varinfo.
9078         (scc_visit): Fix formatting and variable use.
9079         (do_sd_constraint): Use gcc_checking_assert.
9080         (do_ds_constraint): Likewise.
9081         (do_complex_constraint): Likewise.
9082         (condense_visit): Likewise.  Cleanup.
9083         (dump_pred_graph): New function.
9084         (perform_var_substitution): Dump the pred-graph before
9085         variable substitution.
9086         (find_equivalent_node): Use gcc_checking_assert.
9087         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9089 2013-03-18  Richard Biener  <rguenther@suse.de>
9091         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9092         Remove cond_expr_stmt_list argument and do not gimplify the
9093         built expression.
9094         (vect_loop_versioning): Adjust.
9095         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9096         Cleanup to use less temporaries.
9097         (vect_create_data_ref_ptr): Cleanup.
9099 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9101         PR tree-optimization/56635
9102         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9103         require types_compatible_p types.
9105 2013-03-18  Nick Clifton  <nickc@redhat.com>
9107         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9108         spurious backslash.
9110         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9111         Add missing line to comment describing function.
9113 2013-03-18  Richard Biener  <rguenther@suse.de>
9115         PR tree-optimization/56210
9116         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9117         Handle string / character search functions.
9118         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9120 2013-03-18  Richard Biener  <rguenther@suse.de>
9122         PR middle-end/56483
9123         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9124         and implement properly.
9125         * gimple.h (gimple_cond_single_var_p): Remove.
9127 2013-03-18  Richard Biener  <rguenther@suse.de>
9129         * tree-data-ref.h (find_data_references_in_loop): Declare.
9130         * tree-data-ref.c (get_references_in_stmt): Use a stack
9131         vector pre-allocated in the callers.
9132         (find_data_references_in_stmt): Adjust.
9133         (graphite_find_data_references_in_stmt): Likewise.
9134         (create_rdg_vertices): Likewise.
9135         (find_data_references_in_loop): Export.
9136         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9137         Compute dependences here...
9138         (vect_analyze_data_refs): ...not here.  When we encounter
9139         a non-vectorizable data reference in basic-block vectorization
9140         truncate the data reference vector.  Do not bother to
9141         fixup data-dependence information for gather loads.
9142         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9143         of data references, as reported.
9145 2013-03-18  Richard Biener  <rguenther@suse.de>
9147         PR tree-optimization/3713
9148         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9149         has_constants and expr.
9150         (stmt_has_constants): Properly valueize SSA names when deciding
9151         whether the stmt has constants.
9153 2013-03-18  Richard Biener  <rguenther@suse.de>
9155         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9156         whole function when there is nothing to do.
9157         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9158         * tree-vectorizer.c (vectorize_loops): Update virtual and
9159         loop-closed SSA once.
9160         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9162 2013-03-18  Richard Biener  <rguenther@suse.de>
9164         PR middle-end/56113
9165         * domwalk.c (bb_postorder): New global static.
9166         (cmp_bb_postorder): New function.
9167         (walk_dominator_tree): Replace scheme imposing an order for
9168         visiting dominator sons by one sorting them at the time they
9169         are pushed on the stack.
9171 2013-03-18  Richard Biener  <rguenther@suse.de>
9173         PR tree-optimization/39326
9174         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9175         (struct mem_ref): Replace mem member with ao_ref typed member.
9176         (MEM_ANALYZABLE): Adjust.
9177         (memref_eq): Likewise.
9178         (mem_ref_alloc): Likewise.
9179         (gather_mem_refs_stmt): Likewise.
9180         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9181         (execute_sm_if_changed_flag_set): Adjust.
9182         (execute_sm): Likewise.
9183         (ref_always_accessed_p): Likewise.
9184         (refs_independent_p): Likewise.
9185         (can_sm_ref_p): Likewise.
9187 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9189         PR c/56566
9190         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9191         return 1 even for !unsignedp.
9193 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9195         * config/i386/i386.md (isa): Add x64 and nox64.
9196         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9197         (*pushtf): Enable *roF alternative for x64 isa only.
9198         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9199         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9200         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9201         (*movtf_internal): Merge from *movtf_internal_rex64 and
9202         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9203         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9204         nox64 isa attributes.
9205         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9206         nox64 isa attributes.
9207         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9209 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9211         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9213 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9215         PR target/56640
9216         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9217         class names.  Remove trailing comma after "ALL_REGS".
9219 2013-03-16  Jan Hubicka  <jh@suse.cz>
9221         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9222         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9223         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9224         of cgraph_get_create_node.
9225         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9227 2013-03-16  Jason Merrill  <jason@redhat.com>
9229         PR debug/49090
9230         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9231         with DW_AT_default_value.
9233 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9235         * BASE-VER: Set to 4.9.0.
9237 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9239         PR target/56619
9240         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9241         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9242         Document _x* TSX intrinsics.
9244 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9245             David Holsgrove  <david.holsgrove@xilinx.com>
9247         * configure.ac: Add MicroBlaze TLS support detection.
9248         * configure: Regenerate.
9249         * config/microblaze/microblaze-protos.h
9250         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9251         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9252         * config/microblaze/microblaze.c (microblaze_address_type): Add
9253         ADDRESS_TLS and tls_reloc address types.
9254         (microblaze_address_info): Add tls_reloc.
9255         (TARGET_HAVE_TLS): Define.
9256         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9257          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9258          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9259         load_tls_operand,  microblaze_call_tls_get_addr,
9260         microblaze_legitimize_tls_address): New functions.
9261         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9262         (get_base_reg): Use microblaze_tls_symbol_p.
9263         (microblaze_classify_address): Handle TLS.
9264         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9265         label_mentioned_p and microblaze_tls_referenced_p.
9266         (microblaze_legitimize_address): Handle TLS.
9267         (microblaze_address_insns): Handle ADDRESS_TLS.
9268         (pic_address_needs_scratch): Handle TLS.
9269         (print_operand_address): Handle TLS.
9270         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9271         (microblaze_expand_move): Handle TLS.
9272         (microblaze_legitimate_constant_p): Check
9273         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9274         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9275         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9276         (PIC_OFFSET_TABLE_REGNUM): Set.
9277         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9278         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9279         (addsi3, movsi_internal2, movdf_internal): Update constraints
9280         * config/microblaze/predicates.md (arith_plus_operand): Define
9281         (move_operand): Redefine as move_src_operand,
9282         check microblaze_tls_referenced_p.
9284 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9286         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9287         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9289 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9291         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9292         CC mode for AND.
9294 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9296         PR tree-optimization/53265
9297         * common.opt (Waggressive-loop-optimizations): New option.
9298         * tree-ssa-loop-niter.c: Include tree-pass.h.
9299         (do_warn_aggressive_loop_optimizations): New function.
9300         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9301         if number_of_latch_executions returned constant.
9302         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9303         early.  If number_of_latch_executions returned constant, set
9304         nb_iterations_upper_bound back to it.
9305         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9306         field.
9307         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9308         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9310         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9311         (MULTILIB_OSDIRNAMES): Set.
9312         * genmultilib: If defaultosdirname doesn't start with :: , set
9313         defaultosdirname2 instead, clear it and emit two . multilib_raw
9314         entries instead of just one.
9316 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9318         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9319         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9320         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9321         (SUBTARGET_OVERRIDE_OPTIONS): New.
9323 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9325         PR target/49880
9326         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9327         (musermode): Convert to Var(TARGET_USERMODE).
9328         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9329         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9330         * config/sh/sh.c (sh_option_override): Use
9331         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9332         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9333         condition.
9334         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9335         TARGET_SH4.
9336         (udivsi3_i4_single, divsi3_i4_single): Use
9337         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9339 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9341         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9342         default setting.
9344 2013-03-13  Richard Biener  <rguenther@suse.de>
9346         PR tree-optimization/56608
9347         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9348         calls when vectorizing basic-blocks.
9350 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9352         PR plugins/45078
9353         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9354         tm_file.
9356 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9358         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9360 2013-03-11  Jan Hubicka  <jh@suse.cz>
9362         PR lto/56557
9363         * lto-streamer-out.c (output_symbol_p): Skip references from
9364         constructors of external variables.
9366 2013-03-11  Jan Hubicka  <jh@suse.cz>
9368         PR middle-end/56571
9369         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9370         from pseudos.
9371         * emit-rtl.c (verify_rtx_sharing): Likewise.
9372         (copy_insn_1): Likewise.
9373         * rtl.c (copy_rtx): Likewise.
9375 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9377         PR target/56591
9378         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9379         output_operand_lossage message.
9381 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9383         PR target/56470
9384         * arm.c (shift_op): Validate RTL pattern on the fly.
9385         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9386         the RTL.
9388 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9390         PR target/56347
9391         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9392         new call patterns that clobber %fr12.
9393         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9394         split and postreload patterns.
9395         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9396         registers %fr12 and %fr12R as call used.
9398 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9400         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9401         (canon_address, record_store, replace_read, check_mem_read_rtx,
9402         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9403         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9404         rest_of_handle_dse): Likewise.
9406 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9408         PR middle-end/56524
9409         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9410         Add base_optabs.
9411         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9412         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9413         (save_optabs_if_changed): Replace with...
9414         (init_tree_optimization_optabs): ...this.
9415         * optabs.c (save_optabs_if_changed): Rename to...
9416         (init_tree_optimization_optabs): ...this.  Take the optimization node
9417         as argument.  Do nothing if the base optabs are already correct.
9418         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9419         to recompute optabs.
9420         * function.h (function): Remove optabs field.
9421         * function.c (invoke_set_current_function_hook): Call
9422         init_tree_optimization_optabs.  Use the result to initialize
9423         this_fn_optabs.
9425 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9427         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9428         if GTMA_HAS_NO_INSTRUMENTATION.
9429         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9430         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9431         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9432         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9433         GTMA_HAS_NO_INSTRUMENTATION.
9435 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9437         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9438         libasan_preinit.o.
9440 2013-03-08  Marek Polacek  <polacek@redhat.com>
9441             Jakub Jelinek  <jakub@redhat.com>
9443         PR tree-optimization/56478
9444         * predict.c (is_comparison_with_loop_invariant_p): Change the
9445         type of loop_step to tree.
9446         (predict_loops): Adjust.
9447         (predict_iv_comparison): Perform the computations on double_ints.
9449 2013-03-08  Richard Biener  <rguenther@suse.de>
9451         PR tree-optimization/56570
9452         * tree-cfg.c (verify_expr_location_1): Verify locations for
9453         DECL_DEBUG_EXPR.
9454         * tree-sra.c (create_access_replacement): Strip locations
9455         from DECL_DEBUG_EXPRs.
9457 2013-03-08  Richard Biener  <rguenther@suse.de>
9459         * tree-inline.c (expand_call_inline): Do not associate
9460         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9461         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9463 2013-03-08  Richard Biener  <rguenther@suse.de>
9465         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9466         or block changes with -Og.  Fix for location / block encoding
9467         changes and PHI arguments with locations.
9469 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9471         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9472         for all counters.
9473         (struct output_info): Likewise.
9474         (register_overhead): Remove bad gcc_assert.
9475         (bitmap_find_bit): If there is only a single bitmap element, do not
9476         count a miss as a search.
9477         (print_statistics): Update for counter type changes.
9478         (dump_bitmap_statistics): Likewise.  Print headers such that they
9479         are properly lined up with the printed counters.
9481 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9483         PR tree-optimization/56559
9484         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9485         check that it has only a single use.
9487 2013-03-07  Richard Biener  <rguenther@suse.de>
9489         * doc/invoke.texi (fwhole-program): Discourage use in combination
9490         with -flto.
9492 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9494         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9496         PR tree-optimization/56539
9497         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9498         instead of GSI_CONTINUE_LINKING as last argument to
9499         force_gimple_operand_gsi.  Adjust function comment.
9501         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9502         aarch64-cores.def.
9504         PR middle-end/56548
9505         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9506         promoted mode, convert the result back to the original mode.
9508 2013-03-06  Richard Biener  <rguenther@suse.de>
9510         PR middle-end/56294
9511         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9512         (insert_updated_phi_nodes_compare_uids): New function.
9513         (update_ssa): Sort symbols_to_rename after UID before
9514         traversing it to insert PHI nodes.
9516 2013-03-06  Richard Biener  <rguenther@suse.de>
9518         PR middle-end/50494
9519         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9520         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9522         Revert
9523         2013-02-13  Richard Biener  <rguenther@suse.de>
9525         PR lto/50494
9526         * varasm.c (output_constant_def_1): Get the decl representing
9527         the constant as argument.
9528         (output_constant_def): Wrap output_constant_def_1.
9529         (make_decl_rtl): Use output_constant_def_1 with the decl
9530         representing the constant.
9531         (build_constant_desc): Optionally re-use a decl already
9532         representing the constant.
9533         (tree_output_constant_def): Adjust.
9535 2013-03-06  Joey Ye  <joey.ye@arm.com>
9537         PR lto/50293
9538         * gcc.c (convert_white_space): New function.
9539         (main): Handles white space in function name.
9541 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9543         PR target/56529
9544         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9545         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9546         to SH_DIV_CALL_TABLE for TARGET_SH2.
9547         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9548         list.
9549         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9550         call-table options.
9552 2013-03-05  Sterling Augustine  <saugustine@google.com>
9553             Cary Coutant  <ccoutant@google.com>
9555         PR debug/55364
9556         * dwarf2out.c (resolve_addr): Don't call
9557         remove_loc_list_addr_table_entries a second time for the same
9558         expression.
9560 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9562         PR debug/56510
9563         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9564         (avoid_complex_debug_insns): New function.
9565         (expand_debug_locations): Call it.
9567         PR rtl-optimization/56484
9568         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9569         lifetimes of hard registers on small register class machines.
9571 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9573         * config/microblaze/microblaze-protos.h: Rename
9574         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9575         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9576         fast_interrupt.
9577         (microblaze_fast_interrupt_function_p): New function.
9578         (microblaze_is_interrupt_handler): Rename to
9579         microblaze_is_interrupt_variant and add fast_interrupt check.
9580         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9581         (save_restore_insns): Likewise.
9582         (compute_frame_size): Likewise.
9583         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9584         (microblaze_globalize_label): Likewise.
9585         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9586         * config/microblaze/microblaze.md: Use wrapper
9587         microblaze_is_interrupt_variant.
9589 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9591         * sdbout.c (sdbout_one_type): Switch to current function's section
9592         supporting cold/hot.
9594 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9596         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9597         -mxl-reorder.
9599 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9601         PR middle-end/56461
9602         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9603         if VALGRIND_GET_VBITS is defined, temporarily make object
9604         memory all defined, and restore previous valgrind addressability
9605         and definability afterwards.  Free this_object at the end.
9607         PR middle-end/56461
9608         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9609         right before calling lra_create_live_ranges, also call it
9610         when clearing live_p.  Only call lra_clear_live_ranges
9611         at the end if live_p.
9613         PR middle-end/56461
9614         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9616 2013-03-05  Richard Biener  <rguenther@suse.de>
9618         PR tree-optimization/56521
9619         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9620         value-id.
9622 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9624         PR c++/55135
9625         * except.h (remove_unreachable_eh_regions): New prototype.
9626         * except.c (remove_eh_handler_splicer): New function, split out
9627         of remove_eh_handler.
9628         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9629         warning about running it on many EH regions one at a time.
9630         (remove_unreachable_eh_regions_worker): New function, walk the
9631         EH tree in depth-first order and remove non-marked regions.
9632         (remove_unreachable_eh_regions): New function.
9633         * tree-eh.c (mark_reachable_handlers): New function, split out
9634         from remove_unreachable_handlers.
9635         (remove_unreachable_handlers): Use mark_reachable_handlers and
9636         remove_unreachable_eh_regions.
9637         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9638         and remove_unreachable_eh_regions.
9640 2013-03-05  Richard Biener  <rguenther@suse.de>
9642         PR middle-end/56525
9643         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9644         not freeing them until the end.
9646 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9648         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9650 2013-03-05  Richard Biener  <rguenther@suse.de>
9652         PR tree-optimization/56270
9653         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9654         of loads after scheduling an SLP instance.
9656 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9658         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9659         tic6x.exp.
9660         (check_gcc_parallelize): Run guality.exp as a separate job from
9661         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9662         struct-layout-1.exp with stackalign.exp.
9664         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9666         PR middle-end/56461
9667         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9668         load_index sbitmap even if some bit in it isn't set.
9670         PR middle-end/56461
9671         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9672         (discover_iteration_bound_by_body_walk): Change queues to
9673         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9674         spelling in comment.  Call safe_push on queues[bound_index] directly.
9675         Release queues[queue_index] in every iteration unconditionally.
9676         Release bounds vector.
9678         PR middle-end/56461
9679         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9680         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9681         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9682         inner_phis vector.
9684 2013-03-05  Richard Biener  <rguenther@suse.de>
9686         PR lto/56515
9687         * tree-inline.c (remap_blocks_to_null): New function.
9688         (expand_call_inline): When expanding a call stmt without
9689         an associated block inline remap all callee blocks to NULL.
9691 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9693         PR rtl-optimization/56494
9694         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9695         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9696         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9698         PR middle-end/56461
9699         * sel-sched-ir.c (free_sched_pools): Release
9700         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9701         if succs_info_pool.max_top isn't -1.
9703         PR bootstrap/56509
9704         * opts.c (opts_obstack, opts_concat): Moved to...
9705         * opts-common.c (opts_obstack, opts_concat): ... here.
9707 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9709         PR middle-end/56461
9710         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9712 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9714         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9715         all appropriate places.
9717 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9719         PR tree-optimization/56424
9720         * ipa-split.c (split_function): Do not set the RSO flag if result is
9721         not by reference and its type is a register type.
9723 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9725         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9726         (microblaze_legitimate_pic_operand): Likewise
9727         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9728         new function microblaze_legitimate_pic_operand
9729         * config/microblaze/microblaze-protos.h
9730         (microblaze_legitimate_pic_operand): Declare.
9732 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9734         * config/microblaze/predicates.md (call_insn_simple_operand):
9735         New predicate for supported rtx code types.
9736         * config/microblaze/microblaze.md (call_internal1): Use
9737         call_insn_simple_operand predicate.
9739 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9741         PR middle-end/56461
9742         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9743         partitions.ordered_remove.
9745         PR middle-end/56461
9746         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9747         vec_oprnds0.create (1) for modifier == NONE.
9749         PR middle-end/56461
9750         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9751         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9752         vec_oprnds1 right before pushing anything to it for
9753         scalar_shift_arg.
9755         PR middle-end/56461
9756         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9757         set nbbs to 0 instead of having separate code path.
9758         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9759         instead of false as last argument if returning NULL.
9761 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
9763         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9764         the attribute is now called "target" instead of "option".
9765         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9766         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
9767         attribute/pragma name for TARGET_OPTION_VALID_P and
9768         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9769         * doc/tm.texi: Regenerated.
9771 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
9773         * config/microblaze/microblaze.c:
9774         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9775         * config/microblaze/microblaze.h: Add -mxl-reorder to
9776         DRIVER_SELF_SPECS.
9777         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9778         instructions emitted if TARGET_REORDER.
9779         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9780         or 0 for -m/-mno case, but initialises as 2 to detect default use case
9781         separately.
9783 2013-03-01  Xinliang David Li  <davidxl@google.com>
9785         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9786         walk length.
9788 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
9790         PR middle-end/56461
9791         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9792         vector even when returning true.  Fix up function comment formatting.
9794         PR middle-end/56461
9795         * ira-build.c (ira_loop_nodes_count): New variable.
9796         (create_loop_tree_nodes): Initialize it.
9797         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9799         PR middle-end/56461
9800         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9801         method on dr_chain and result_chain.
9802         * tree-vect-stmts.c (vectorizable_store): Only call
9803         result_chain.create if j == 0.
9805         PR middle-end/56461
9806         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9807         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9808         before overwriting it.
9810 2013-03-01  Tobias Burnus  <burnus@net-b.de>
9812         * doc/extended.texi (C Extensions): Change order in @menu
9813         to match @node.
9814         (Other MIPS Built-in Functions): Move last MIPS entry before
9815         "picoChip Built-in Functions".
9816         (SH Built-in Functions): Move after RX Built-in Functions.
9817         * doc/gcc.texi (Introduction): Change order in @menu
9818         to match @node.
9819         * doc/md.texi (Constraints): Ditto.
9820         * gty.texi (Type Information): Ditto.
9821         (User-provided marking routines for template types): Make
9822         subsection.
9823         * doc/invoke.texi (AArch64 Options): Move before
9824         "Adapteva Epiphany Options".
9826 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
9827             Jakub Jelinek  <jakub@redhat.com>
9829         PR sanitizer/56454
9830         * asan.c (gate_asan): Lookup no_sanitize_address instead of
9831         no_address_safety_analysis attribute.
9832         * doc/extend.texi (no_address_safety_attribute): Rename to
9833         no_sanitize_address attribute, mention no_address_safety_analysis
9834         attribute as deprecated alias.
9836 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
9838         PR middle-end/56461
9839         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9840         type to vec<vec<tree> > *.
9841         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
9842         to be vec<tree> instead of vec<tree> *, set vec_defs
9843         to vNULL and call vec_defs.create (number_of_vects), adjust other
9844         uses of vec_defs.
9845         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9846         vectorizable_condition): Adjust vect_get_slp_defs callers.
9848 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9850         * config/aarch64/aarch64.c
9851         (aarch64_float_const_representable): Remove unused variable.
9853 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9855         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9857 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9859         * config/aarch64/aarch64-builtins.c
9860         (aarch64_init_simd_builtins): Make static.
9862 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9864         * config/aarch64/aarch64.c
9865         (aarch64_simd_make_constant): Make static.
9867 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9869         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9870         with no initialization to the RHS of debug statements.
9872 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9874         PR tree-optimization/56294
9875         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9876         Adjust dumping.
9877         (get_access_replacement): Do not call create_access_replacement.
9878         Assert a replacement exists.
9879         (get_repl_default_def_ssa_name): Create the replacement declaration
9880         itself.
9882 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9884         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9885         final_end_function.
9887 2013-02-28  Marek Polacek  <polacek@redhat.com>
9889         PR rtl-optimization/56466
9890         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9891         if we're changing a loop.
9892         (peel_loops_completely): Likewise.
9894 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
9896         PR c++/55813
9897         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9899 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9901         PR target/56445
9902         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9903         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9904         INTX_FTYPE_FX, FX_FTYPE_INTX.
9905         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9907 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9909         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9910         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9911         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9912         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9913         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9914         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9915         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9916         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9917         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9918         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9919         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9920         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9921         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9922         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9923         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9924         (avrxmega6): Increase max flash segments from 5 to 6.
9925         * config/avr/t-multilib: Regenerate.
9926         * config/avr/avr-tables.opt: Regenerate.
9927         * doc/avr-mmcu.texi: Regenerate.
9929 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9931         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9932         (avr_device_to_arch): Rename to avr_device_to_ld.
9933         (avr_device_to_as): New prototype.
9934         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9935         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9936         * config/avr/driver-avr.c (avr_device_to_as): New.
9937         (avr_device_to_arch): Rename to avr_device_to_ld.
9939 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9941         PR middle-end/56461
9942         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9943         method on dr_chain and result_chain.
9945         PR middle-end/56461
9946         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9947         pointer_set_destroy on not_executed_last_iteration.
9949         PR middle-end/56461
9950         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9952         PR middle-end/56461
9953         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9954         FOR_EACH_DEFINED_FUNCTION when freeing state.
9956         PR middle-end/56461
9957         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9958         pool_free.
9959         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9960         overwriting it.
9962         PR middle-end/56461
9963         * ipa-cp.c (decide_whether_version_node): Call vec_free on
9964         known_aggs[i].items and release known_aggs vector.
9966         PR middle-end/56461
9967         * ipa-reference.c (propagate): Free node_info even for alias nodes.
9969 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9971         * config/microblaze/microblaze.c (microblaze_emit_compare):
9972         Use xor for EQ/NE comparisions.
9973         * config/microblaze/microblaze.md (cstoresf4): Add constraints
9974         (cbranchsf4): Adjust operator to comparison_operator.
9976 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9978         PR middle-end/56461
9979         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9980         vector.
9981         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9982         vec_safe_push, always update *slot.
9983         (redirect_edge_var_map_clear): Use vec_free.
9984         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9985         (free_var_map_entry): Use vec_free.
9986         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9987         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9989 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
9991         PR middle-end/45472
9992         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9993         when the may_trap_p bit of the exprs being merged differs.
9994         Reorder tests for speculativeness in the logical and operator.
9996 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9998         * incpath.c (add_standard_paths): Use reconcat instead of concat
9999         where appropriate and avoid leaking memory.
10001         * opts.h: Include obstack.h.
10002         (opts_concat): New prototype.
10003         (opts_obstack): New declaration.
10004         * opts.c (opts_concat): New function.
10005         (opts_obstack): New variable.
10006         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10007         (finish_options): Use opts_concat instead of concat
10008         and XOBNEWVEC instead of XNEWVEC.
10009         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10010         generate_option): Likewise.
10011         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10012         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10014         PR target/56455
10015         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10016         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10018 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10020         PR middle-end/56461
10021         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10023 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10025         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10026         (arm_block_move_unaligned_straight): Likewise.
10027         (arm_adjust_block_mem): Likewise.
10029 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10031         PR target/48901
10032         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10033         temp, cond and label.
10034         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10036         PR target/52500
10037         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10038         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10040         PR target/52501
10041         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10042         of prologue/epilogue functions.
10044         PR target/52550
10045         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10046         Remove unused variable cfa_offset.
10047         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10049         PR target/54639
10050         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10051         type promotion to unsigned.
10053         PR target/54640
10054         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10055         for HOST_WIDE_INT of 32 bit / same size as int.
10056         (arm_block_move_unaligned_straight): Likewise.
10057         (arm_adjust_block_mem): Likewise.
10059         PR target/54662
10060         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10061         ALL_CFLAGS.
10063 2013-02-26  Marek Polacek  <polacek@redhat.com>
10065         PR tree-optimization/56426
10066         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10068 2013-02-26  Richard Biener  <rguenther@suse.de>
10070         PR target/56444
10071         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10072         unused variable loops.
10074 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10076         PR tree-optimization/56448
10077         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10078         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10079         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10080         later operands of the references, or even first operand for
10081         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10083         PR tree-optimization/56443
10084         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10085         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10086         to type_for_mode langhook.
10088 2013-02-25  Matt Turner  <mattst88@gmail.com>
10090         * doc/invoke.texi: Document r4700.
10092 2013-02-25  Richard Biener  <rguenther@suse.de>
10094         PR tree-optimization/56175
10095         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10096         split out from ...
10097         (simplify_bitwise_binary): ... here.  Also guard the conversion
10098         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10100 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10102         Revert:
10103         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10104             Maciej W. Rozycki  <macro@codesourcery.com>
10105             Tom de Vries  <tom@codesourcery.com>
10106             Nathan Sidwell  <nathan@codesourcery.com>
10107             Iain Sandoe  <iain@codesourcery.com>
10108             Nathan Froyd  <froydnj@codesourcery.com>
10109             Chao-ying Fu  <fu@mips.com>
10111         * doc/extend.texi: (micromips, nomicromips, nocompression):
10112         Document new function attributes.
10113         * doc/invoke.texi (minterlink-compressed, mmicromips,
10114         m14k, m14ke, m14kec): Document new options.
10115         (minterlink-mips16): Update documentation.
10116         * doc/md.texi (ZC, ZD): Document new constraints.
10117         * configure.ac (gcc_cv_as_micromips): Check if linker
10118         supports the .set micromips directive.
10119         * configure: Regenerate.
10120         * config.in: Regenerate.
10121         * config/mips/mips-tables.opt: Regenerate.
10122         * config/mips/micromips.md: New file.
10123         * constraints.md (ZC, AD): New constraints.
10124         * config/mips/predicates.md (movep_src_register): New predicate.
10125         (movep_src_operand): New predicate.
10126         (non_volatile_mem_operand): New predicate.
10127         * config/mips/mips.md (multimem): New type.
10128         (length): Differentiate between 17-bit and 18-bit branch offsets.
10129         (MOVEP1, MOVEP2): New mode iterator.
10130         (mov_<load>l): Use ZC constraint.
10131         (mov_<load>r): Likewise.
10132         (mov_<store>l): Likewise.
10133         (mov_<store>r): Likewise.
10134         (*branch_equality<mode>_inverted): Add microMIPS support.
10135         (*branch_equality<mode>): Likewise.
10136         (*jump_absolute): Likewise.
10137         (indirect_jump_<mode>): Likewise.
10138         (tablejump_<mode>): Likewise.
10139         (<optab>_internal): Likewise.
10140         (sibcall_internal): Likewise.
10141         (sibcall_value_internal): Likewise.
10142         (prefetch): Use constraint ZD.
10143         * config/mips/mips.opt (minterlink-compressed): New option.
10144         (minterlink-mips16): Now an alias for minterlink-compressed.
10145         (mmicromips): New option.
10146         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10147         (compare_and_swap_12): Likewise.
10148         (sync_add<mode>): Likewise.
10149         (sync_<optab>_12): Likewise.
10150         (sync_old_<optab>_12): Likewise.
10151         (sync_new_<optab>_12): Likewise.
10152         (sync_nand_12): Likewise.
10153         (sync_old_nand_12): Likewise.
10154         (sync_new_nand_12): Likewise.
10155         (sync_sub<mode>): Likewise.
10156         (sync_old_add<mode>): Likewise.
10157         (sync_old_sub<mode>): Likewise.
10158         (sync_new_add<mode>): Likewise.
10159         (sync_new_sub<mode>): Likewise.
10160         (sync_<optab><mode>): Likewise.
10161         (sync_old_<optab><mode>): Likewise.
10162         (sync_new_<optab><mode>): Likewise.
10163         (sync_nand<mode>): Likewise.
10164         (sync_old_nand<mode>): Likewise.
10165         (sync_new_nand<mode>): Likewise.
10166         (sync_lock_test_and_set<mode>): Likewise.
10167         (test_and_set_12): Likewise.
10168         (atomic_compare_and_swap<mode>): Likewise.
10169         (atomic_exchange<mode>_llsc): Likewise.
10170         (atomic_fetch_add<mode>_llsc): Likewise.
10171         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10172         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10173         (umips_save_restore_pattern_p): Likewise.
10174         (umips_load_store_pair_p): Likewise.
10175         (umips_output_load_store_pair): Likewise.
10176         (umips_movep_target_p): Likewise.
10177         (umips_12bit_offset_address_p): Likewise.
10178         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10179         (mips_base_mips16): Rename this...
10180         (mips_base_compression_flags): ...to this. Update all uses.
10181         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10182         (mips_mips16_decl_p): Delete.
10183         (mips_nomips16_decl_p): Delete.
10184         (mips_get_compress_on_flags): New function.
10185         (mips_get_compress_off_flags): New function.
10186         (mips_get_compress_mode): New function.
10187         (mips_get_compress_on_name): New function.
10188         (mips_get_compress_off_name): New function.
10189         (mips_insert_attributes): Support multiple compression types.
10190         (mips_merge_decl_attributes): Likewise.
10191         (umips_12bit_offset_address_p): New function.
10192         (mips_start_function_definition): Emit .set micromips directive.
10193         (mips_call_may_need_jalx_p): New function.
10194         (mips_function_ok_for_sibcall): Add microMIPS support.
10195         (mips_print_operand_punctuation): Support short delay slots and
10196         compact jumps.
10197         (umips_swm_mask, umips_swm_encoding): New.
10198         (umips_build_save_restore): New function.
10199         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10200         (was_mips16_p): Remove.
10201         (old_compression_mode): New.
10202         (mips_set_compression_mode): New function.
10203         (mips_set_current_function): Add microMIPS support.
10204         (mips_option_override): Likewise.
10205         (umips_save_restore_pattern_p): New function.
10206         (umips_output_save_restore): New function.
10207         (umips_load_store_pair_p_1): New function.
10208         (umips_load_store_pair_p): New function.
10209         (umips_output_load_store_pair_1): New function.
10210         (umips_output_load_store_pair): New function.
10211         (umips_movep_target_p) New function.
10212         (mips_prepare_pch_save): Add microMIPS support.
10213         * config/mips/mips.h (TARGET_COMPRESSION): New.
10214         (TARGET_CPU_CPP_BUILTINS): Update macro
10215         to use new compression flags and to support microMIPS.
10216         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10217         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10218         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10219         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10220         (ASM_SPEC): Support mmicromips and mno-micromips.
10221         (M16STORE_REG_P): New macro.
10222         (MIPS_CALL): Support TARGET_MICROMIPS.
10223         (MICROMIPS_J): New macro.
10224         (mips_base_mips16): Rename this...
10225         (mips_base_compression_flags): ...to this.
10226         (UMIPS_12BIT_OFFSET_P): New macro.
10227         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10228         (MULTILIB_DIRNAMES): Likewise.
10230 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10232         PR rtl-optimization/56131
10233         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10234         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10235         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10237 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10239         * doc/invoke.texi (-fsanitize=): Move from optimization
10240         to debugging options.
10242 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10244         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10246 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10247             Alexander Monakov  <amonakov@ispras.ru>
10249         PR middle-end/56077
10250         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10251         flush pending lists also on non-jumps.  Adjust comment.
10253 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10254             Maciej W. Rozycki  <macro@codesourcery.com>
10255             Tom de Vries  <tom@codesourcery.com>
10256             Nathan Sidwell  <nathan@codesourcery.com>
10257             Iain Sandoe  <iain@codesourcery.com>
10258             Nathan Froyd  <froydnj@codesourcery.com>
10259             Chao-ying Fu  <fu@mips.com>
10261         * doc/extend.texi: (micromips, nomicromips, nocompression):
10262         Document new function attributes.
10263         * doc/invoke.texi (minterlink-compressed, mmicromips,
10264         m14k, m14ke, m14kec): Document new options.
10265         (minterlink-mips16): Update documentation.
10266         * doc/md.texi (ZC, ZD): Document new constraints.
10267         * configure.ac (gcc_cv_as_micromips): Check if linker
10268         supports the .set micromips directive.
10269         * configure: Regenerate.
10270         * config.in: Regenerate.
10271         * config/mips/mips-tables.opt: Regenerate.
10272         * config/mips/micromips.md: New file.
10273         * constraints.md (ZC, AD): New constraints.
10274         * config/mips/predicates.md (movep_src_register): New predicate.
10275         (movep_src_operand): New predicate.
10276         (non_volatile_mem_operand): New predicate.
10277         * config/mips/mips.md (multimem): New type.
10278         (length): Differentiate between 17-bit and 18-bit branch offsets.
10279         (MOVEP1, MOVEP2): New mode iterator.
10280         (mov_<load>l): Use ZC constraint.
10281         (mov_<load>r): Likewise.
10282         (mov_<store>l): Likewise.
10283         (mov_<store>r): Likewise.
10284         (*branch_equality<mode>_inverted): Add microMIPS support.
10285         (*branch_equality<mode>): Likewise.
10286         (*jump_absolute): Likewise.
10287         (indirect_jump_<mode>): Likewise.
10288         (tablejump_<mode>): Likewise.
10289         (<optab>_internal): Likewise.
10290         (sibcall_internal): Likewise.
10291         (sibcall_value_internal): Likewise.
10292         (prefetch): Use constraint ZD.
10293         * config/mips/mips.opt (minterlink-compressed): New option.
10294         (minterlink-mips16): Now an alias for minterlink-compressed.
10295         (mmicromips): New option.
10296         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10297         (compare_and_swap_12): Likewise.
10298         (sync_add<mode>): Likewise.
10299         (sync_<optab>_12): Likewise.
10300         (sync_old_<optab>_12): Likewise.
10301         (sync_new_<optab>_12): Likewise.
10302         (sync_nand_12): Likewise.
10303         (sync_old_nand_12): Likewise.
10304         (sync_new_nand_12): Likewise.
10305         (sync_sub<mode>): Likewise.
10306         (sync_old_add<mode>): Likewise.
10307         (sync_old_sub<mode>): Likewise.
10308         (sync_new_add<mode>): Likewise.
10309         (sync_new_sub<mode>): Likewise.
10310         (sync_<optab><mode>): Likewise.
10311         (sync_old_<optab><mode>): Likewise.
10312         (sync_new_<optab><mode>): Likewise.
10313         (sync_nand<mode>): Likewise.
10314         (sync_old_nand<mode>): Likewise.
10315         (sync_new_nand<mode>): Likewise.
10316         (sync_lock_test_and_set<mode>): Likewise.
10317         (test_and_set_12): Likewise.
10318         (atomic_compare_and_swap<mode>): Likewise.
10319         (atomic_exchange<mode>_llsc): Likewise.
10320         (atomic_fetch_add<mode>_llsc): Likewise.
10321         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10322         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10323         (umips_save_restore_pattern_p): Likewise.
10324         (umips_load_store_pair_p): Likewise.
10325         (umips_output_load_store_pair): Likewise.
10326         (umips_movep_target_p): Likewise.
10327         (umips_12bit_offset_address_p): Likewise.
10328         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10329         (mips_base_mips16): Rename this...
10330         (mips_base_compression_flags): ...to this. Update all uses.
10331         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10332         (mips_mips16_decl_p): Delete.
10333         (mips_nomips16_decl_p): Delete.
10334         (mips_get_compress_on_flags): New function.
10335         (mips_get_compress_off_flags): New function.
10336         (mips_get_compress_mode): New function.
10337         (mips_get_compress_on_name): New function.
10338         (mips_get_compress_off_name): New function.
10339         (mips_insert_attributes): Support multiple compression types.
10340         (mips_merge_decl_attributes): Likewise.
10341         (umips_12bit_offset_address_p): New function.
10342         (mips_start_function_definition): Emit .set micromips directive.
10343         (mips_call_may_need_jalx_p): New function.
10344         (mips_function_ok_for_sibcall): Add microMIPS support.
10345         (mips_print_operand_punctuation): Support short delay slots and
10346         compact jumps.
10347         (umips_swm_mask, umips_swm_encoding): New.
10348         (umips_build_save_restore): New function.
10349         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10350         (was_mips16_p): Remove.
10351         (old_compression_mode): New.
10352         (mips_set_compression_mode): New function.
10353         (mips_set_current_function): Add microMIPS support.
10354         (mips_option_override): Likewise.
10355         (umips_save_restore_pattern_p): New function.
10356         (umips_output_save_restore): New function.
10357         (umips_load_store_pair_p_1): New function.
10358         (umips_load_store_pair_p): New function.
10359         (umips_output_load_store_pair_1): New function.
10360         (umips_output_load_store_pair): New function.
10361         (umips_movep_target_p) New function.
10362         (mips_prepare_pch_save): Add microMIPS support.
10363         * config/mips/mips.h (TARGET_COMPRESSION): New.
10364         (TARGET_CPU_CPP_BUILTINS): Update macro
10365         to use new compression flags and to support microMIPS.
10366         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10367         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10368         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10369         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10370         (ASM_SPEC): Support mmicromips and mno-micromips.
10371         (M16STORE_REG_P): New macro.
10372         (MIPS_CALL): Support TARGET_MICROMIPS.
10373         (MICROMIPS_J): New macro.
10374         (mips_base_mips16): Rename this...
10375         (mips_base_compression_flags): ...to this.
10376         (UMIPS_12BIT_OFFSET_P): New macro.
10377         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10378         (MULTILIB_DIRNAMES): Likewise.
10380 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10382         PR target/52555
10383         * target-globals.c (save_target_globals): For init_reg_sets and
10384         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10386 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10388         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10389         * config/aarch64/t-aarch64
10390         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10392 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10394         PR inline-asm/56148
10395         * lra-constraints.c (process_alt_operands): Reload operand
10396         conflicting with earlier clobber only if no more other conflicting
10397         operands.
10399 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10401         PR sanitizer/56393
10402         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10403         if not linking a shared library.
10405 2013-02-22  Seth LaForge  <sethml@google.com>
10407         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10409 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10411         * config/arm/arm.md (split for extendsidi): Update condition.
10412         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10413         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10414         (qhs_zextenddi_cstr): Likewise.
10416 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10418         PR middle-end/56420
10419         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10420         avoid signed wrapping.
10421         (expand_mult): Handle properly multiplication by
10422         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10423         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10424         in the compiler if coeff is HOST_WIDE_INT_MIN.
10425         (expand_divmod): Don't make ext_op1 static, change it's type to
10426         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10428         PR rtl-optimization/50339
10429         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10430         field.
10431         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10432         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10433         into splitting_ashiftrt field.
10434         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10435         ASHIFTRT.
10436         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10437         choices.
10439 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10441         PR middle-end/56108
10442         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10443         are sure to go irrevocable.
10445 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10447         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10448         scalars are valid operands.
10450 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10452         PR tree-optimization/56310
10453         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10454         only matching indices and non-negative final offsets.
10455         (intersect_aggregates_with_edge): Pass src_idx to
10456         agg_replacements_to_vector.  Pass src_idx insstead of index to
10457         intersect_with_agg_replacements.
10459 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10461         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10462         instead of hard-wired defaults.
10464 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10466         * doc/invoke.texi (MIPS Options): Update documentation of the
10467         floating-point multiply-accumulate instruction restrictions.
10469 2013-02-21  Kostya Serebryany  <kcc@google.com>
10471         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10472         asan_shadow_offset on x86_64 linux.
10474 2013-02-21  Richard Biener  <rguenther@suse.de>
10476         PR tree-optimization/56415
10477         Revert
10478         2013-02-11  Richard Biener  <rguenther@suse.de>
10480         PR tree-optimization/56273
10481         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10482         first VRP run.
10484 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10486         PR bootstrap/56258
10487         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10488         instead of @itemx.
10490         PR inline-asm/56405
10491         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10492         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10494 2013-02-20  Jan Hubicka  <jh@suse.cz>
10496         PR tree-optimization/56265
10497         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10498         when target is referenced for first time.
10500 2013-02-20  Richard Biener  <rguenther@suse.de>
10502         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10503         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10504         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10505         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10506         not return anything.
10507         (rename_ssa_copies): Do not remove unused locals.
10508         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10509         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10510         * passes.c (execute_function_todo): Do not schedule unused locals
10511         removal if cleanup_tree_cfg did something.
10512         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10513         about the number of removed locals.
10515 2013-02-20  Richard Biener  <rguenther@suse.de>
10517         PR tree-optimization/56398
10518         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10520 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10522         PR tree-optimization/55334
10523         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10524         restricted pointers to arrays.
10526 2013-02-20  Richard Biener  <rguenther@suse.de>
10527             Jakub Jelinek  <jakub@redhat.com>
10529         PR tree-optimization/56396
10530         * tree-ssa-ccp.c (n_const_val): New static variable.
10531         (get_value): Return NULL for SSA names we don't have a lattice
10532         entry for.
10533         (ccp_initialize): Initialize n_const_val.
10534         * tree-ssa-copy.c (n_copy_of): New static variable.
10535         (init_copy_prop): Initialize n_copy_of.
10536         (get_value): Return NULL_TREE for SSA names we don't have a
10537         lattice entry for.
10539 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10541         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10543 2013-02-20  Richard Biener  <rguenther@suse.de>
10545         * genpreds.c (write_lookup_constraint): Do not compare first
10546         letter of the constraint again.
10548 2013-02-20  Richard Biener  <rguenther@suse.de>
10550         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10551         and ceil_log2.
10552         (get_use_iv_cost): Terminate hashtable walk when coming across
10553         an empty entry.
10555 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10557         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10558         reassociation for avx2 targets.
10560 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10562         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10563         Add version check for v8.10.a to enable microblaze_has_clz
10564         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10565         version and TARGET_PATTERN_COMPARE check
10566         * config/microblaze/microblaze.md: New clzsi2 instruction
10568 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10570         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10571         function before branching.
10573 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10575         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10576         DUMP_INSN_RTX_UID.
10577         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10579 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10581         PR middle-end/55889
10582         * sel-sched.c: Include ira.h.
10583         (implicit_clobber_conflict_p): New function.
10584         (moveup_expr): Use it.
10585         * Makefile.in (sel-sched.o): Depend on ira.h.
10587 2013-02-19  Richard Biener  <rguenther@suse.de>
10589         PR tree-optimization/56384
10590         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10591         (vn_hash_type): Split out from ...
10592         (vn_hash_constant_with_type): ... here.
10593         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10594         (vn_phi_eq): Compare types from vn_phi_s structure.
10595         (vn_phi_lookup): Populate vn_phi_s type.
10596         (vn_phi_insert): Likewise.
10598 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10600         PR tree-optimization/56350
10601         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10602         if haven't found reduction or nested cycle operand, rather than
10603         asserting we must find it.
10605         PR tree-optimization/56381
10606         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10607         to fold_build3.
10609 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10610             Jakub Jelinek  <jakub@redhat.com>
10612         PR target/52555
10613         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10614         (swap_optab_enable): Same.
10615         (init_all_optabs): Use argument instead of global.
10616         * tree.h (struct tree_optimization_option): New field target_optabs.
10617         * expr.h (init_all_optabs): Add argument to prototype.
10618         (TREE_OPTIMIZATION_OPTABS): New.
10619         (save_optabs_if_changed): Protoize.
10620         * optabs.h: Declare this_fn_optabs.
10621         * optabs.c (save_optabs_if_changed): New.
10622         Declare this_fn_optabs.
10623         (init_optabs): Add argument to init_all_optabs() call.
10624         * function.c (invoke_set_current_function_hook): Handle per
10625         function optabs.
10626         * function.h (struct function): New field optabs.
10627         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10628         optimization_current_node has changed.
10629         * target-globals.h (save_target_globals_default_opts): Protoize.
10630         * target-globals.c (save_target_globals_default_opts): New.
10632 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10634         PR target/56347
10635         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10636         registers %fr12 and %fr12R as call used.
10638         PR target/56214
10639         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10640         and HImode, require all displacements to be an integer multiple of
10641         their mode size.
10642         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10643         only allow QImode and HImode when reload is in progress and strict is
10644         true.  Likewise for symbolic addresses.  Use base14_operand to check
10645         displacements in REG+BASE addresses.
10647 2013-02-18  Richard Biener  <rguenther@suse.de>
10649         PR tree-optimization/56366
10650         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10651         handle sign-conversion of outer-loop initial induction value.
10653 2013-02-18  Richard Biener  <rguenther@suse.de>
10655         PR middle-end/56349
10656         * cfghooks.c (merge_blocks): If we merge a latch into another
10657         block adjust references to it.
10658         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10659         (verify_loop_structure): Verify that a recorded latch is in fact
10660         a latch.
10662 2013-02-18  Richard Biener  <rguenther@suse.de>
10664         PR tree-optimization/56321
10665         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10666         order SSA name release and virtual operand unlinking.
10668 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10670         * config/microblaze/microblaze.md (save_stack_block): Define.
10671         (restore_stack_block): Likewise.
10673 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10675         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10676         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10677         * config/microblaze/microblaze.c (microblaze_option_override):
10678         Bail out early for PIC modes when target does not support PIC.
10680 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10682         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10683         Replace with a microblaze version.
10684         (microblaze_trampoline_init): Adapt for microblaze.
10685         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10686         microblaze.
10688 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10689             Dodji Seketeli  <dodji@redhat.com>
10691         PR asan/56330
10692         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10693         (instrument_mem_region_access): Do not forget to always put
10694         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10695         0) statement, even for cases where either 'base' or 'base + len'
10696         are not instrumented -- because they have been previously
10697         instrumented.  Simplify the logic by putting all the statements
10698         instrument 'base + len' inside a sequence, and then insert that
10699         sequence right before the current insertion point.  Then, to
10700         instrument 'base + len', just get an iterator on that statement.
10701         And do not forget to update the pointer to iterator the function
10702         received as argument.
10704 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10706         PR rtl-optimization/56348
10707         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10709 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10711         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10712         (clean_graph_dump_file): Pass base to start_graph_dump.
10714 2013-02-14  Richard Henderson  <rth@redhat.com>
10716         PR target/55941
10717         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10719 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10721         * collect2-aix.h: Define F_LOADONLY.
10723 2013-02-14  Richard Biener  <rguenther@suse.de>
10725         PR lto/50494
10726         * varasm.c (output_constant_def_1): Get the decl representing
10727         the constant as argument.
10728         (output_constant_def): Wrap output_constant_def_1.
10729         (make_decl_rtl): Use output_constant_def_1 with the decl
10730         representing the constant.
10731         (build_constant_desc): Optionally re-use a decl already
10732         representing the constant.
10733         (tree_output_constant_def): Adjust.
10735 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10737         Fix an asan crash
10738         * asan.c (instrument_builtin_call):  Really put the length of the
10739         second source argument into src1_len.
10741 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10743         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10744         argument.  If it is false, don't create edge from then_bb to
10745         fallthru_bb.
10746         (insert_if_then_before_iter): Pass true to it.
10747         (build_check_stmt): Pass false to it.
10748         (transform_statements): Flush hash table only on extended basic
10749         block boundaries, rather than at the beginning of every bb.
10750         Don't flush hash table on nonfreeing_call_p calls.
10751         * tree-flow.h (nonfreeing_call_p): New prototype.
10752         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10754 2013-02-13  David S. Miller  <davem@davemloft.net>
10756         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10758 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10760         PR target/56184
10761         * ira.c (max_regno_before_ira): Move from ...
10762         (ira): ... here.
10763         (fix_reg_equiv_init): Use max_regno_before_ira instead of
10764         vec_safe_length.
10766 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10768         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10770 2013-02-13  Richard Biener  <rguenther@suse.de>
10772         PR lto/56295
10773         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10774         globals in MEM_REFs.
10776 2013-02-13  Richard Biener  <rguenther@suse.de>
10778         * loop-init.c (loop_optimizer_init): Clear loop state when
10779         re-initializing preserved loops.
10780         * loop-unswitch.c (unswitch_single_loop): Return whether
10781         we unswitched the loop.  Do not verify loop state here.
10782         (unswitch_loops): When we unswitched a loop discover new loops.
10784 2013-02-13  Kostya Serebryany  <kcc@google.com>
10786         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10787         on x86_64 linux.
10788         * sanitizer.def: Rename __asan_init to __asan_init_v1.
10790 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
10792         Avoid instrumenting duplicated memory access in the same basic block
10793         * Makefile.in (asan.o): Add new dependency on hash-table.h
10794         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10795         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10796         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10797         (free_mem_ref_resources, has_mem_ref_been_instrumented)
10798         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10799         (get_mem_ref_of_assignment): New functions.
10800         (get_mem_refs_of_builtin_call): Extract from
10801         instrument_builtin_call and tweak a little bit to make it fit with
10802         the new signature.
10803         (instrument_builtin_call): Use the new
10804         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
10805         of is_gimple_builtin_call.
10806         (instrument_derefs, instrument_mem_region_access): Insert the
10807         instrumented memory reference into the hash table.
10808         (maybe_instrument_assignment): Renamed instrument_assignment into
10809         this, and change it to advance the iterator when instrumentation
10810         actually happened and return true in that case.  This makes it
10811         homogeneous with maybe_instrument_assignment, and thus give a
10812         chance to callers to be more 'regular'.
10813         (transform_statements): Clear the memory reference hash table
10814         whenever we enter a new BB, when we cross a function call, or when
10815         we are done transforming statements.  Use
10816         maybe_instrument_assignment instead of instrumentation.  No more
10817         need to special case maybe_instrument_assignment and advance the
10818         iterator after calling it; it's now handled just like
10819         maybe_instrument_call.  Update comment.
10821 2013-02-13  Richard Biener  <rguenther@suse.de>
10823         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10824         Fix loop discovery code.
10826 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
10828         PR inline-asm/56148
10829         * lra-constraints.c (process_alt_operands): Match early clobber
10830         operand with itself.  Check conflicts with earlyclobber only if
10831         the operand is not reloaded.  Prefer to reload conflicting operand
10832         if earlyclobber and matching operands are the same.
10834 2013-02-12  Richard Biener  <rguenther@suse.de>
10836         PR lto/56297
10837         * lto-streamer-out.c (write_symbol): Do not output symbols
10838         for hard register variables.
10840 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
10842         PR target/54222
10843         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10844         (umulsidi3_insn, mulsidi3_insn): New insns.
10846 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
10848         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10849         (struct tune_params): Add vec_costs field.
10850         * config/arm/arm.c (arm_builtin_vectorization_cost)
10851         (arm_add_stmt_cost): New functions.
10852         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10853         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10854         (arm_default_vec_cost): New struct of type cpu_vec_costs.
10855         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10856         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10857         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10858         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10860 2013-02-12  Richard Biener  <rguenther@suse.de>
10862         PR lto/56295
10863         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10864         decls again if possible.
10866 2013-02-12  Richard Biener  <rguenther@suse.de>
10868         PR middle-end/56288
10869         * tree-ssa.c (verify_ssa_name): Fix check, move
10870         SSA_NAME_IN_FREE_LIST check up.
10872 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
10873             Steven Bosscher   <steven@gcc.gnu.org>
10875         PR rtl-optimization/56151
10876         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10877         equal to op0 or op1, and last_insn pattern is CODE operation
10878         with MEM dest and one of the operands matches that MEM.
10880 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
10882         * doc/extend.texi: Document Function Multiversioning and "default"
10883         parameter string to target attribute.
10884         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10885         target attribute parameter is "default".
10886         (ix86_compare_version_priority): Remove checks for target attribute.
10887         (ix86_mangle_function_version_assembler_name): Change error to sorry.
10888         Remove check for target attribute equal to NULL. Add assert.
10889         (ix86_generate_version_dispatcher_body): Change error to sorry.
10891 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
10892             Jack Howarth  <howarth@bromo.med.uc.edu>
10893             Patrick Marlier  <patrick.marlier@gmail.com>
10895         PR libitm/55693
10896         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10897         define ENDFILE_SPEC as TM_DESTRUCTOR.
10898         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10900 2013-02-11  Alexander Potapenko  <glider@google.com>
10901             Jack Howarth  <howarth@bromo.med.uc.edu>
10902             Jakub Jelinek  <jakub@redhat.com>
10904         PR sanitizer/55617
10905         * config/darwin.c (cdtor_record): Rename ctor_record.
10906         (sort_cdtor_records): Rename sort_ctor_records.
10907         (finalize_dtors): New routine to sort destructors by
10908         priority before use in assemble_integer.
10909         (machopic_asm_out_destructor): Use finalize_dtors if needed.
10911 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
10913         PR rtl-optimization/56275
10914         * simplify-rtx.c (avoid_constant_pool_reference): Check that
10915         offset is non-negative and less than cmode size before
10916         calling simplify_subreg.
10918 2013-02-11  Richard Biener  <rguenther@suse.de>
10920         PR tree-optimization/56264
10921         * cfgloop.h (fix_loop_structure): Adjust prototype.
10922         * loop-init.c (fix_loop_structure): Return the number of
10923         newly discovered loops.
10924         * tree-cfgcleanup.c (repair_loop_structures): When new loops
10925         are discovered, do a full loop-closed SSA rewrite.
10927 2013-02-11  Richard Biener  <rguenther@suse.de>
10929         PR tree-optimization/56273
10930         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10931         first VRP run.
10932         (check_array_ref): Fix missing newline in dumps.
10933         (search_for_addr_array): Likewise.
10935 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
10937         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10939 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
10941         PR target/56256
10942         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10944 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
10946         PR rtl-optimization/56246
10947         * lra-constraints.c (simplify_operand_subreg): Try to reuse
10948         reload pseudo.
10949         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10950         constraints are satisfied.
10952 2013-02-08  Jeff Law  <law@redhat.com>
10954         PR debug/53948
10955         * emit-rtl.c (reg_is_parm_p): New function.
10956         * regs.h (reg_is_parm_p): New prototype.
10957         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10958         callee-clobbered registers.
10960 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10962         PR target/56043
10963         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10964         If there is no implicit builtin declaration, just return NULL.
10966 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10968         * config/i386/sse.md (FMAMODEM): New mode iterator.
10969         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10970         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10972 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10974         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10975         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10976         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10978 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10980         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10981         (microblaze*-*-elf): Likewise.
10982         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10983         LINK_SPEC.
10984         * config/microblaze/microblaze-c.c: Add builtin defines for
10985         _LITTLE_ENDIAN and _BIG_ENDIAN.
10986         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10987         add to TARGET_DEFAULT flags.
10988         Expand ASM_SPEC and LINK_SPEC.
10989         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10990         * config/microblaze/microblaze.md: Update extendsidi2 and
10991         movdi_internal instructions to use low-order / high-order reg
10992         print_operands.
10993         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10994         options and inversemask / mask of LITTLE_ENDIAN.
10995         * config/microblaze/t-microblaze: Expand multilib options to
10996         include mlittle-endian (le) and update exceptions patterns.
10998 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11000         PR rtl-optimization/56195
11001         * lra-constraints.c (get_reload_reg): Don't reuse regs
11002         if they have smaller mode than requested, if they have
11003         wider mode than requested, try to return a SUBREG.
11005         PR tree-optimization/56250
11006         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11007         if type is unsigned and code isn't MULT_EXPR.
11009 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11011         PR tree-optimization/56064
11012         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11013         bits according to mode.
11014         * fixed-value.h (fixed_from_double_int)
11015         (const_fixed_from_double_int): Adjust comments.
11017 2013-02-08  Richard Biener  <rguenther@suse.de>
11019         PR lto/56231
11020         * lto-streamer.h (struct data_in): Remove current_file, current_line
11021         and current_col members.
11022         * lto-streamer-out.c (lto_output_location): Stream changed bits
11023         en-block for efficiency.
11024         * lto-streamer-in.c (clear_line_info): Remove.
11025         (lto_input_location): Cache current file, line and column
11026         globally via local statics.  Read changed bits en-block.
11027         (input_function): Do not call clear_line_info.
11028         (lto_read_body): Likewise.
11029         (lto_input_toplevel_asms): Likewise.
11031 2013-02-08  Michael Matz  <matz@suse.de>
11033         PR tree-optimization/52448
11034         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11035         (nt_call_phase): New static.
11036         (add_or_mark_expr): Only mark accesses with newer phase than any
11037         call seen.
11038         (nonfreeing_call_p): New.
11039         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11040         (nt_fini_block): Keep blocks marked as visited.
11041         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11043 2013-02-08  Richard Biener  <rguenther@suse.de>
11045         * ira.c (ira): Free broken dominator information.
11047 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11049         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11051 2013-02-08  Marek Polacek  <polacek@redhat.com>
11053         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11055 2013-02-08  Richard Biener  <rguenther@suse.de>
11057         PR middle-end/56181
11058         * cfgloop.h (flow_loops_find): Adjust.
11059         (bb_loop_header_p): Declare.
11060         * cfgloop.c (bb_loop_header_p): New function split out from ...
11061         (flow_loops_find): ... here.  Adjust function signature,
11062         support incremental loop structure update.
11063         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11064         * cfgloopmanip.c (fix_loop_structure): Move ...
11065         * loop-init.c (fix_loop_structure): ... here.
11066         (apply_loop_flags): Split out from ...
11067         (loop_optimizer_init): ... here.
11068         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11069         in incremental mode, only remove dead loops here.
11071 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11073         PR target/54222
11074         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11075         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11076         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11077         (*round<mode>3.libgcc): New insns for fixed-modes.
11078         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11079         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11080         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11081         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11082         implementations.  Define to __builtin_avr_absFX,
11083         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11084         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11085         __builtin_avr_countlsFX, respectively.
11086         * config/avr/avr-c.c (target.h): Include it.
11087         (enum avr_builtin_id): New enum.
11088         (avr_resolve_overloaded_builtin): New static function.
11089         (avr_register_target_pragmas): Use it to set
11090         targetm.resolve_overloaded_builtin.
11091         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11092         tree nodes used by DEF_BUILTIN.
11093         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11094         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11095         <AVR_BUILTIN_xxBITS>: Same.
11097 2013-02-08  Richard Biener  <rguenther@suse.de>
11099         * cfgloop.c (verify_loop_structure): Properly handle
11100         a loop exiting to another loop header.
11101         * ira-int.h (ira_loops): Remove.
11102         * ira.c (ira_loops): Remove.
11103         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11104         (do_reload): Use loop_optimizer_finalize.
11105         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11106         number_of_loops to access the loop tree.
11107         (more_one_region_p): Likewise.
11108         (finish_loop_tree_nodes): Likewise.
11109         (rebuild_regno_allocno_maps): Likewise.
11110         (mark_loops_for_removal): Likewise.
11111         (mark_all_loops_for_removal): Likewise.
11112         (remove_unnecessary_regions): Likewise.
11113         (ira_build): Likewise.
11114         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11116 2013-02-08  Richard Biener  <rguenther@suse.de>
11118         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11119         * ipa-pure-const.c (analyze_function): Avoid calling
11120         mark_irreducible_loops twice.
11121         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11123 2013-02-07  David S. Miller  <davem@davemloft.net>
11125         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11126         on 'reg'.
11127         * var-tracking.c (vt_add_function_parameter): Test the presence of
11128         HAVE_window_save properly and do not remap argument registers when
11129         we have a leaf function.
11131 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11133         PR bootstrap/56227
11134         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11135         instead of "ll".
11136         * config/i386/i386.c (ix86_print_operand): Ditto.
11138 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11140         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11142 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11144         PR rtl-optimization/56225
11145         * lra-constraints.c (process_alt_operands): Check that reload hard
11146         reg can hold value for strict_low_part.
11148 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11150         PR debug/56154
11151         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11152         dwarf2out_end_function.
11153         (in_first_function_p, maybe_at_text_label_p,
11154         first_loclabel_num_not_at_text_label): New variables.
11155         (dwarf2out_var_location): In the first function find out
11156         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11157         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11158         functions.
11160 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11162         PR rtl-optimization/56178
11163         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11164         SUBREG of a register.  Tidy up related block of code.
11165         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11166         note if the source is a register or a SUBREG of a register.
11168 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11170         PR target/56228
11171         * config/rs6000/rs6000.md (ptrm): New mode attr.
11172         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11173         call_value_indirect_aix<pttrsize>,
11174         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11175         m in constraints.
11177 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11179         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11180         if -bnortl. Convert to strcmp and strncmp.
11182 2013-02-07  Alan Modra  <amodra@gmail.com>
11184         PR target/54009
11185         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11186         addresses won't wrap when offsetting.
11187         (rs6000_secondary_reload): Provide secondary reloads needed for
11188         wrapping LO_SUM addresses.
11190 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11192         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11193         MACH, just __MACH__.
11195 2013-02-06  Richard Biener  <rguenther@suse.de>
11197         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11198         instead of calling fix_loop_structure.
11200 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11202         PR middle-end/56217
11203         * omp-low.c (use_pointer_for_field): Return false if
11204         lower_send_shared_vars doesn't generate any copy-out code.
11206 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11208         PR rtl-optimization/56131
11209         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11210         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11211         of the label is NULL.  Add comment.
11213 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11215         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11217         PR sanitizer/55374
11218         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11219         (STATIC_LIBTSAN_LIBS): Likewise.
11220         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11221         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11222         is defined, don't add anything else beyond that.
11223         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11224         (LINK_COMMAND_SPEC): Use them.
11226         PR tree-optimization/56205
11227         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11228         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11229         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11231 2013-02-05  Richard Biener  <rguenther@suse.de>
11233         PR tree-optimization/53342
11234         PR tree-optimization/53185
11235         * tree-vectorizer.h (vect_check_strided_load): Remove.
11236         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11237         not disallow peeling for vectorized strided loads.
11238         (vect_check_strided_load): Make static and simplify.
11239         (vect_analyze_data_refs): Adjust.
11240         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11241         correctly when vectorizing strided loads.
11243 2013-02-05  Richard Biener  <rguenther@suse.de>
11245         * doc/install.texi: Refer to ISL, not PPL.
11247 2013-02-05  Jan Hubicka  <jh@suse.cz>
11249         PR tree-optimization/55789
11250         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11252 2013-02-05  Jan Hubicka  <jh@suse.cz>
11254         PR tree-optimization/55789
11255         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11256         the dead call anyway.
11258 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11260         PR sanitizer/55374
11261         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11263 2013-02-04  Alexander Potapenko  <glider@google.com>
11264             Jack Howarth  <howarth@bromo.med.uc.edu>
11265             Jakub Jelinek  <jakub@redhat.com>
11267         PR sanitizer/55617
11268         * config/darwin.c (sort_ctor_records): Stabilized qsort
11269         on constructor priority by using original position.
11270         (finalize_ctors): New routine to sort constructors by
11271         priority before use in assemble_integer.
11272         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11274 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11276         PR libstdc++/54314
11277         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11278         about visibility on artificial decls.
11279         * config/sol2.c (solaris_assemble_visibility): Likewise.
11281 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11283         PR target/56186
11284         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11285         argument and improve checking of return-argument types for 16-byte
11286         modes.
11287         (ix86_function_value_1): Add additional valtype argument on call
11288         of function_value_64.
11289         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11290         handling infunction_value_64 function.
11292 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11294         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11296 2013-02-04  Richard Biener  <rguenther@suse.de>
11298         PR tree-optimization/56188
11299         * tree-ssa-structalias.c (label_visit): Consider case with
11300         initially non-empty points-to set.
11301         (perform_var_substitution): Dump node mapping and clean up.
11303 2013-02-04  Richard Guenther  <rguenther@suse.de>
11305         PR lto/56168
11306         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11307         node prevail as last resort.
11308         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11309         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11311 2013-02-04  Richard Biener  <rguenther@suse.de>
11313         PR tree-optimization/56113
11314         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11315         Merge into ...
11316         (equiv_class_lookup_or_add): ... this.
11317         (label_visit): Adjust and fix error in previous patch.
11318         (perform_var_substitution): Adjust.
11320 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11322         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11323         * config/sh/sh4-300.md: Likewise.
11324         * config/sh/sh4a.md: Likewise.
11325         * config/sh/constraints.md: Likewise.
11326         * config/sh/sh.md: Likewise.
11327         * config/sh/netbsd-elf.h: Likewise.
11328         * config/sh/predicates.md: Likewise.
11329         * config/sh/sh-protos.h: Likewise.
11330         * config/sh/ushmedia.h: Likewise.
11331         * config/sh/linux.h: Likewise.
11332         * config/sh/sh.c: Likewise.
11333         * config/sh/superh.h: Likewise.
11334         * config/sh/elf.h: Likewise.
11335         * config/sh/sh4.md: Likewise.
11336         * config/sh/sh.h: Likewise.
11338 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11340         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11341         constraint to match_test floating_point_store_memory_operand().
11342         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11343         (base14_operand): New.
11344         (floating_point_store_memory_operand): New.
11345         (integer_store_memory_operand): Revise to use base14_operand and
11346         reg_plus_base_memory_operand.
11347         (move_dest_operand): Allow symbolic_memory_operands.
11348         (symbolic_memory_operand): Check for LO_SOM.
11349         (symbolic_operand): Change default case to break.
11350         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11351         CONST_DOUBLE values to be reloaded by putting them into memory when
11352         the destination is a floating point register.
11353         (movdf): Remove code to handle CONST_DOUBLE.
11354         (movsf): Likewise.
11355         (reload_indf_r1): New.
11356         (reload_insf_r1): New.
11357         Consistently use "Q" and "T" constraints with integer and floating
11358         point move instructions, respectively.
11359         (movdi): Remove FAIL.
11360         Change predicate for source operand unamed DImode move from
11361         general_operand to move_src_operand.
11362         (umulsidi3): Change predicate for destination operand to
11363         register_operand.
11364         Likewise for similar unamed patterns.
11365         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11366         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11367         (hppa_legitimize_address): Simplify mask calculation.
11368         (pa_emit_move_sequence): Revised handling of secondary reloads from
11369         REG+D addresses for floating point loads and stores.  Directly handle
11370         loading CONST0_RTX (mode) to a floating point register.
11371         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11372         to floating point registers.  Don't restrict secondary reloads to
11373         floating point registers to integer modes.  Revise some comments and
11374         cleanup some code.
11375         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11376         (pa_legitimate_address_p): New.
11377         (pa_legitimize_reload_address): New.
11378         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11379         (STRICT_REG_OK_FOR_BASE_P): New.
11380         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11381         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11383 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11384             Andrew Dixie  <andrewd@gentrack.com>
11386         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11387         flag set.
11389 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11391         * expmed.c (extract_bit_field_1): Pass the full width of the
11392         structure to get_best_reg_extraction_insn.
11394 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11396         PR target/54601
11397         * configure.ac (use_cxa_atexit): Add AIX.
11398         * configure: Regenerate.
11400         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11402 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11404         PR debug/54793
11405         * final.c (need_profile_function): New variable.
11406         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11407         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11408         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11409         notes, targetm.asm_out.function_prologue doesn't emit anything,
11410         HAVE_prologue and profiler should be emitted before prologue,
11411         set need_profile_function instead of emitting it.
11412         (final_scan_insn): If need_profile_function, emit
11413         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11414         NOTE_INSN_FUNCTION_BEG note.
11416 2013-02-01  Richard Henderson  <rth@redhat.com>
11418         * config/rs6000/rs6000.md (smulditi3): New.
11419         (umulditi3): New.
11421         * config/alpha/alpha.md (umulditi3): New.
11423 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11425         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11426         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11428 2013-02-01  Richard Biener  <rguenther@suse.de>
11430         PR tree-optimization/56113
11431         * tree-ssa-structalias.c (label_visit): Reduce work for
11432         single-predecessor nodes.
11434 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11436         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11437         range isn't testing for zero.
11439 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11441         PR middle-end/56113
11442         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11444 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11445             Nick Clifton  <nickc@redhat.com>
11447         * config/v850/constraints.md (Q): Define as a memory constraint.
11448         * config/v850/predicates.md (label_ref_operand): New predicate.
11449         (e3v5_shift_operand): New predicate.
11450         (ior_operator): New predicate.
11451         * config/v850/t-v850: Add e3v5 multilib.
11452         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11453         (v850_gen_movdi): Prototype.
11454         * config/v850/v850.c: Add support for e3v5 architecture.
11455         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11456         TARGET_V850E_UP.
11457         (construct_save_jarl): Add e3v5 long JARL support.
11458         (v850_adjust_insn_length): New function.  Adjust length of call
11459         insns when using e3v5 instructions.
11460         (v850_gen_movdi): New function: Generate instructions to move a
11461         DImode value.
11462         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11463         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11464         (TARGET_USE_FPU): Enable for e3v5.
11465         (CONST_OK_FOR_W): New macro.
11466         (ADJUST_INSN_LENGTH): Define.
11467         * config/v850/v850.md (UNSPEC_LOOP): Define.
11468         (attr cpu): Add v850e3v5.
11469         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11470         (movdi): New pattern.
11471         (movdi_internal): New pattern.
11472         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11473         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11474         (cstoresf4): Likewise.
11475         (cstoredf4): Likewise.
11476         (insv): New pattern.
11477         (rotlso3_a): New pattern.
11478         (rotlsi3_b): New pattern
11479         (rotlsi3_v850e3v5): New pattern.
11480         (doloop_begin): New pattern.
11481         (fix_loop_counter): New pattern.
11482         (doloop_end): New pattern.
11483         (branch_normal): Add e3v5 long branch support.
11484         (branch_invert): Likewise.
11485         (branch_z_normal): Likewise.
11486         (branch_z_invert): Likewise.
11487         (branch_nz_normal): Likewise.
11488         (branch_nz_invert): Likewise.
11489         (call_internal_short): Add e3v5 register-indirect JARL support.
11490         (call_internal_long): Likewise.
11491         (call_value_internal_short): Likewise.
11492         (call_value_internal_long): Likewise.
11493         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11494         (mloop): New option.
11495         * config.gcc: Add support for configuring v840e3v5 target.
11496         * doc/invoke.texi: Document new v850 specific command line options.
11498 2013-01-31  Paul Koning  <ni1d@arrl.net>
11500         PR debug/55059
11501         PR debug/54508
11502         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11503         children if parent is a class.
11504         (prune_unused_types_prune): Don't add DW_AT_declaration.
11506 2013-01-31  Richard Biener  <rguenther@suse.de>
11508         PR tree-optimization/56157
11509         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11510         match up operand with SLP child.
11512 2013-01-31  Jason Merrill  <jason@redhat.com>
11514         PR debug/54410
11515         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11516         parameters the first time.
11517         (gen_scheduled_generic_parms_dies): Check completeness here.
11519 2013-01-31  Richard Biener  <rguenther@suse.de>
11521         PR middle-end/53073
11522         * common.opt (faggressive-loop-optimizations): New flag,
11523         enabled by default.
11524         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11525         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11526         infer_loop_bounds_from_undefined by it.
11528 2013-01-31  Richard Biener  <rguenther@suse.de>
11530         PR tree-optimization/56150
11531         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11532         visit virtual operands.
11533         (find_uses_to_rename_bb): Likewise.
11535 2013-01-31  Richard Biener  <rguenther@suse.de>
11537         PR tree-optimization/56150
11538         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11539         mixed store non-store stmts.
11541 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11543         PR sanitizer/55374
11544         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11545         LIBASAN_EARLY_SPEC is defined.
11546         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11547         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11548         before %o.
11549         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11551         PR c++/55742
11552         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11553         invalid args instead of ICEing on it.
11554         (ix86_valid_target_attribute_tree): Return error_mark_node if
11555         ix86_valid_target_attribute_inner_p failed.
11556         (ix86_valid_target_attribute_p): Return false only if
11557         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11558         target("default") attribute.
11559         (sorted_attr_string): Change argument from const char * to tree,
11560         merge in all target attribute arguments rather than just one.
11561         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11562         instead of free.  Avoid using strcat.
11563         (ix86_mangle_function_version_assembler_name): Mangle
11564         target("default") as if no target attribute is present.  Adjust
11565         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11566         instead of xmalloc and XDELETEVEC instead of free.
11567         (ix86_function_versions): Don't return true if one of the decls
11568         doesn't have target attribute.  If they don't and one of the decls
11569         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11570         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11571         (ix86_supports_function_versions): Remove.
11572         (make_name): Fix up formatting.
11573         (make_dispatcher_decl): Remove resolver_name and its initialization.
11574         Avoid leaking memory.
11575         (is_function_default_version): Return true if there is
11576         target("default") attribute rather than no target attribute at all.
11577         (make_resolver_func): Avoid leaking memory.
11578         (ix86_generate_version_dispatcher_body): Likewise.
11579         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11580         * target.def (supports_function_versions): Remove.
11581         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11582         * doc/tm.texi: Regenerated.
11584 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11586         PR rtl-optimization/56144
11587         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11588         for values with side effects.
11590 2013-01-30  Richard Biener  <rguenther@suse.de>
11592         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11593         (sparseset_pop): Likewise.
11594         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11595         to be able to use quick_push in the worker loop.
11597 2013-01-30  Marek Polacek  <polacek@redhat.com>
11599         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11601 2013-01-30  Richard Biener  <rguenther@suse.de>
11603         PR lto/56147
11604         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11606 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11608         PR tree-optimization/56064
11609         * fixed-value.c (fixed_from_double_int): New function.
11610         * fixed-value.h (fixed_from_double_int): New prototype.
11611         (const_fixed_from_double_int): New static inline function.
11612         * fold-const.c (native_interpret_fixed): New static function.
11613         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11614         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11615         (native_encode_fixed): New static function.
11616         (native_encode_expr) <FIXED_CST>: Use it.
11617         (native_interpret_int): Move double_int worker code to...
11618         * double-int.c (double_int::from_buffer): ...this new static method.
11619         * double-int.h (double_int::from_buffer): Prototype it.
11621 2013-01-30  Richard Biener  <rguenther@suse.de>
11623         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11624         New pointer-map and obstack.
11625         (init_alias_vars): Allocate pointer-map and obstack.
11626         (delete_points_to_sets): Free them.
11627         (find_what_var_points_to): Cache result.
11628         (find_what_p_points_to): Adjust for changed interface of
11629         find_what_var_points_to.
11630         (compute_points_to_sets): Likewise.
11631         (ipa_pta_execute): Likewise.
11633 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11635         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11636         * configure: Regenerate.
11637         * config.in: Regenerate.
11638         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11639         #nobits/#progbits if supported.
11641 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11643         PR target/56121
11644         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11645         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11646         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11648 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11650         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11651         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11653 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11655         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11656         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11658 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11660         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11661         declaration.
11662         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11663         * config/arm/cortex-a7.md: New bypasses using
11664         arm_mac_accumulator_is_result.
11666 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11668         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11669         (cortex_a7_neon_mla): Likewise.
11670         (cortex_a7_fpfmad): New reservation.
11671         (cortex_a7_fpmacs): Use ffmas and update required units.
11672         (cortex_a7_fpmuld): Update required units and latency.
11673         (cortex_a7_fpmacd): Likewise.
11674         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11675         (cortex_a7_neon). Likewise.
11676         (bypass) Update participating units.
11678 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11680         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11681         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11682         from fmac to ffma.
11683         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11684         (vfp_fmul): Use ffmad.
11685         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11686         (cortex_r4_fmacd): Use ffmad.
11687         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11688         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11689         (cortex_a9_fmacd): Use ffmad.
11690         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11691         (cortex_a8_vfp_macd): Use ffmad.
11692         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11693         (cortex_a5_fpmacd): Use ffmad.
11694         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11695         (cortex_a15_vfp_macd): Use ffmad.
11696         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11698 2013-01-29  Jason Merrill  <jason@redhat.com>
11700         PR libstdc++/54314
11701         * varasm.c (default_assemble_visibility): Don't warn about
11702         visibility on artificial decls.
11704 2013-01-29  Richard Biener  <rguenther@suse.de>
11706         PR tree-optimization/56113
11707         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11708         the bitmap leader.
11709         (label_visit): Free duplicate bitmaps and record the leader instead.
11710         (perform_var_substitution): Adjust.
11712 2013-01-29  Richard Biener  <rguenther@suse.de>
11714         PR tree-optimization/55270
11715         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11716         the CFG, schedule loops for fixup.
11718 2013-01-29  Nick Clifton  <nickc@redhat.com>
11720         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11721         SP_REG.
11723 2013-01-28  Leif Ekblad  <leif@rdos.net>
11725         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11726         * config/i386/i386.h (TARGET_RDOS): New macro.
11727         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11728         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11729         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11730         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11731         DEFAULT_LARGE_SECTION_THRESHOLD.
11732         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11733         * config/i386/rdos.h: New file.
11734         * config/i386/rdos64.h: New file.
11736 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11738         PR other/54814
11739         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11740         TEST_HARD_REG_BIT.
11742 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11744         PR rtl-optimization/56117
11745         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11746         call cselib_lookup_from_insn on the MEM before calling
11747         add_insn_mem_dependence.
11749 2013-01-28  Richard Biener  <rguenther@suse.de>
11751         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11752         to a stmt that didn't have one.
11753         (copy_phis_for_bb): Likewise for PHI arguments.
11754         (copy_debug_stmt): Likewise for debug stmts.
11756 2013-01-28  Richard Biener  <rguenther@suse.de>
11758         PR tree-optimization/56034
11759         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11760         (partition_builtin_p): Adjust.
11761         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
11762         it is the last partition.
11763         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11764         up the vertex for the definition.
11765         (classify_partition): Classify whether a partition is a
11766         PKIND_REDUCTION, thus has uses outside of the loop.
11767         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11768         Merge all PKIND_REDUCTION partitions into the last partition.
11769         (tree_loop_distribution): Seed partitions from reductions as well.
11771 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11773         PR tree-optimization/56125
11774         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11775         pow(x,c) into sqrt(x) * powi(x, n/2) or
11776         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11777         optimizing for size.
11778         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11779         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11780         integer.
11782         PR tree-optimization/56094
11783         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11784         to UNKNOWN_LOCATION while gimplifying expr.
11786 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
11788         PR target/56114
11789         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11790         operand 0 in movabs insn template for -masm=intel asm alternative.
11791         (*movabs<mode>_2): Ditto for operand 1.
11793 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
11795         PR target/54663
11796         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11797         of microblaze-c.o
11799 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11801         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11802         tm_file.
11804 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11806         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11807         Undef to avoid warning.
11809 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11811         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11812         * configure: Regenerate.
11814 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
11816         PR tree-optimization/56098
11817         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11818         for stmts with volatile ops.
11819         (cond_store_replacement): Don't optimize if assign has volatile ops.
11820         (cond_if_else_store_replacement_1): Don't optimize if either
11821         then_assign or else_assign have volatile ops.
11822         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11823         volatile ops.
11825 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11827         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11829 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11831         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11832         missing ':' in asm example.
11834 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
11836         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11837         entries into lane and laneq entries.
11838         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11839         Remove AdvSIMD scalar modes.
11840         (aarch64_sq<r>dmulh_laneq<mode>): New.
11841         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11842         modes.
11843         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11844         builtin implementations to relfect changes in RTL in aarch64-simd.md.
11845         * config/aarch64/iterators.md (VCOND): New.
11846         (VCONQ): New.
11848 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11850         PR target/54222
11851         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11852         Add NULL LIBNAME argument to existing definitions.
11853         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11854         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11855         * config/avr/avr.c (DEF_BUILTIN): Same.
11856         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11857         (avr_expand_builtin): Expand to a vanilla call if a libgcc
11858         implementation is available (DECL_ASSEMBLER_NAME is set).
11859         (avr_fold_absfx): New static function.
11860         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11861         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11862         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11863         AVR_BUILTIN_ABSLLK.
11864         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11865         (abshk, absk, abslk, absllk): Provide as static inline functions.
11867 2013-01-25  Marek Polacek  <polacek@redhat.com>
11869         PR tree-optimization/56035
11870         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11872 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
11874         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11875         (*movtf_internal_rex64): Add (!o,C) alternative
11876         (*movxf_internal_rex64): Ditto.
11877         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11879 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
11881         * doc/invoke.texi: fix typo.
11882         * doc/objc.texi: fix typo.
11884 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
11886         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11887         for the first two alternatives.
11889 2013-01-24  Diego Novillo  <dnovillo@google.com>
11891         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
11892         (ggc-zone.o): Remove.
11893         * configure.ac: Remove option --with-gc.
11894         * configure: Re-generate.
11895         * doc/install.texi: Remove documentation for --with-gc.
11896         * gengtype.c (write_enum_defn): Remove.  Update all users.
11897         (write_Types_process_field): Remove generation of gt_e_* argument.
11898         (output_type_enum): Remove.  Update all users.
11899         (write_enum_defn): Remove.  Update all users.
11900         (enum alloc_zone): Remove.  Update all users.
11901         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11902         * ggc-common.c (ggc_splay_alloc): Remove first argument.
11903         Update all callers.
11904         (struct ptr_data): Remove field TYPE.  Update all users.
11905         (gt_pch_note_object): Remove argument TYPE.  Update all users.
11906         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11907         Update all users.
11908         * ggc-none.c (ggc_alloc_typed_stat): Remove.
11909         (struct alloc_zone): Remove.
11910         (ggc_internal_alloc_zone_stat): Remove.
11911         (ggc_internal_cleared_alloc_zone_stat): Remove.
11912         * ggc-page.c (ggc_alloc_typed_stat): Remove.
11913         (ggc_pch_count_object): Remove last argument.  Update all users.
11914         (ggc_pch_alloc_object): Remove last argument.  Update all users.
11915         (struct alloc_zone): Remove.
11916         * ggc-zone.c: Remove.
11917         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
11918         (struct alloc_zone): Remove.
11919         (ggc_alloc_typed_stat): Remove.
11920         (ggc_alloc_typed): Remove.
11921         (ggc_splay_alloc): Remove first argument.
11922         (rtl_zone): Remove.  Update all users.
11923         (tree_zone): Remove.  Update all users.
11924         (tree_id_zone): Remove.  Update all users.
11925         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
11926         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
11927         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
11928         * tree-ssanames.c: Remove references to zone allocator in comments.
11930 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
11932         * config/avr/avr.c (avr_out_fract): Make register numbers that
11933         might be outside of source operand signed.
11935 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
11937         * config/i386/constraints.md (Yf): New constraint.
11938         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11939         of f constraint to conditionaly disable x87 register preferences.
11940         (*movdf_internal): Ditto.
11941         (*movsf_internal): Ditto.
11943 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
11945         PR inline-asm/55934
11946         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11947         that have operands with impossible constraints.
11948         Add a FIXME for a speed-up opportunity.
11949         * lra-constraints.c (process_alt_operands): Verify that a class
11950         selected from constraints on asms is valid for the operand mode.
11951         (curr_insn_transform): Remove incorrect comment.
11953 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
11955         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11956         TOC operand is a valid symbol ref in the constant pool.
11958 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11960         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11962 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
11964         PR target/54222
11965         * config/avr/stdfix.h: New file.
11966         * t-avr (stdfix-gcc.h): New rule to build it.
11967         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11969 2013-01-23  Kostya Serebryany  <kcc@google.com>
11971         * config/darwin.h: remove dependency on
11972         CoreFoundation (asan on Mac OS).
11974 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
11976         PR target/49069
11977         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11978         instead of cmpdi_operand for first comparison operand.
11979         Don't assert that comparison operands aren't both constants.
11981 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11983         * doc/install.texi (Downloading the Source): Update references to
11984         downloading separate components.
11986 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11988         * doc/extend.texi (__int128): Improve grammar.
11990 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
11992         PR target/56028
11993         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11994         alternative to (o,r).
11995         (*movdi_internal_rex64): Remove (!o,n) alternative.
11996         (DImode immediate->memory splitter): Remove.
11997         (DImode immediate->memory peephole2): Remove.
11998         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11999         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12000         alternative to (!o,*r).
12001         (*movtf_internal_sse): New pattern.
12002         (*movxf_internal_rex64): New pattern.
12003         (*movxf_internal): Disable for TARGET_64BIT.
12004         (*movdf_internal_rex64): Remove (!o,F) alternative.
12006 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12008         PR middle-end/56074
12009         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12010         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12011         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12012         stmt locations where LOCATION_LOCUS of the stmt location is
12013         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12015         PR target/55686
12016         * config/i386/i386.md (UNSPEC_STOS): New.
12017         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12018         *strsetqi_1): Add UNSPEC_STOS.
12020 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12022         PR c++/56067
12023         * doc/invoke.texi: Remove left over -Wsynth example.
12025 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12027         PR tree-optimization/56051
12028         * fold-const.c (fold_binary_loc): Don't fold
12029         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12030         a narrowing conversion, or widening conversion from signed
12031         to unsigned.
12033 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12035         PR rtl-optimization/56023
12036         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12037         dependent on debug instruction.
12039 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12041         PR middle-end/56022
12042         * function.c (allocate_struct_function): Call
12043         invoke_set_current_function_hook earlier.
12045 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12047         * reload1.c (init_reload): Only initialize reload_obstack
12048         during the first call.
12050 2013-01-21  Marek Polacek  <polacek@redhat.com>
12052         * cfgloop.c (verify_loop_structure): Fix up grammar.
12054 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12056         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12057         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12059 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12061         PR target/56058
12062         * config/arm/marvell-pj4.md: Update copyright year.
12063         Fix up use of alu to alu_reg and simple_alu_imm.
12065 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12067         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12069 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12071         PR target/55433
12072         * lra-constraints.c (curr_insn_transform): Don't reuse original
12073         insn for secondary memory move when memory mode should be different.
12075 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12077         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12078         atomic_storedi_1): New patterns.
12080 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12082         btver2 pipeline descriptions.
12083         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12084         descriptions.
12085         * config/i386/i386.md (btver2_decode): New type attributes.
12086         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12087         type attributes.
12088         * config/i386/btver2.md: New file describing btver2 pipelines.
12090 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12092         PR tree-optimization/52631
12093         * tree-ssa-sccvn (visit_use): Before looking up the original
12094         statement, try looking up the simplified expression.
12096 2013-01-19  Anthony Green  <green@moxielogic.com>
12098         * config/moxie/moxie.c (moxie_expand_prologue): Set
12099         current_function_static_stack_size.
12101 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12103         PR tree-optimization/56029
12104         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12105         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12107 2013-01-18  Sharad Singhai  <singhai@google.com>
12109         PR tree-optimization/55995
12110         * dumpfile.c (dump_loc): Print location only if available.
12111         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12113 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12115         PR target/55433
12116         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12117         secondary memory move.
12118         (inherit_reload_reg): Use rclass instead of cl for
12119         check_secondary_memory_needed_p.
12121 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12123         PR middle-end/56015
12124         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12125         the case where writing real complex part of target modifies op1.
12127 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12129         * config/aarch64/aarch64-simd.md
12130         (aarch64_vcond_internal<mode>): Handle unordered cases.
12131         * config/aarch64/iterators.md (v_cmp_result): New.
12133 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12134             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12136         * config/arm/marvell-pj4.md: New file.
12137         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12138         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12139         (generic_vfp): Likewise.
12140         * config/arm/arm-cores.def: Add marvell-pj4.
12141         * config/arm/arm-tune.md: Regenerate.
12142         * config/arm/arm-tables.opt: Regenerate.
12143         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12144         * doc/invoke.texi: Document marvell-pj4.
12146 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12148         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12150 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12152         PR debug/54114
12153         PR debug/54402
12154         PR debug/49888
12155         * var-tracking.c (negative_power_of_two_p): New.
12156         (global_get_addr_cache, local_get_addr_cache): New.
12157         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12158         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12159         heading comment.
12160         (vt_stack_offset_p): Remove.
12161         (vt_canon_true_dep): Always canonicalize loc's address.
12162         (clobber_overlapping_mems): Make sure we have a MEM.
12163         (local_get_addr_clear_given_value): New.
12164         (val_reset): Clear local cached entries.
12165         (compute_bb_dataflow): Create and release the local cache.
12166         Disable duplicate MEMs clobbering.
12167         (emit_notes_in_bb): Clobber MEMs likewise.
12168         (vt_emit_notes): Create and release the local cache.
12169         (vt_initialize, vt_finalize): Create and release the global
12170         cache, respectively.
12171         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12173 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12175         PR libmudflap/53359
12176         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12177         not found in the symtab.
12179 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12181         PR debug/56006
12182         PR rtl-optimization/55547
12183         PR rtl-optimization/53827
12184         PR debug/53671
12185         PR debug/49888
12186         * alias.c (offset_overlap_p): New, factored out of...
12187         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12188         the conservative special case for symbolic constants.  Don't
12189         adjust zero sizes on alignment.
12191 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12193         PR rtl-optimization/52573
12194         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12195         REG_UNUSED for the same register.
12197 2013-01-17  Richard Biener  <rguenther@suse.de>
12198             Marek Polacek  <polacek@redhat.com>
12200         PR rtl-optimization/55833
12201         * loop-unswitch.c (unswitch_loops): Move loop verification...
12202         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12203         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12204         Set it to true when we're removing a loop from hierarchy tree in
12205         an irreducible region.
12206         (fix_bb_placements): Adjust caller.
12207         (fix_loop_placements): Likewise.
12209 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12211         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12212         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12213         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12214         Remove ID.  Adjust comments.
12215         * config/avr/avr-c.c (avr_builtin_name): Remove.
12216         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12217         * config/avr/avr.c (avr_tolower): New static function.
12218         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12219         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12220         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12221         default expansion.
12223 2013-01-17  Jan Hubicka  <jh@suse.cz>
12225         PR tree-optimization/55273
12226         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12228 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12230         PR target/55981
12231         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12232         store through atomic_store<mode>_1.
12233         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12235 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12237         PR tree-optimizations/55264
12238         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12239         for virtual methods.
12240         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12241         virtual methods before inlining is over.
12242         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12243         virtual functions.
12244         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12245         non-virtual.
12247 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12249         PR rtl-optimization/56005
12250         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12251         pending reads for prefetch.
12253 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12255         * config/aarch64/aarch64.md
12256         (*cstoresi_neg_uxtw): New pattern.
12257         (*cmovsi_insn_uxtw): New pattern.
12258         (*<optab>si3_uxtw): New pattern.
12259         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12260         (*<optab>si3_insn_uxtw): New pattern.
12261         (*bswapsi2_uxtw): New pattern.
12263 2013-01-16  Richard Biener  <rguenther@suse.de>
12265         * tree-inline.c (tree_function_versioning): Remove set but
12266         never used variable.
12268 2013-01-16  Richard Biener  <rguenther@suse.de>
12270         PR tree-optimization/55964
12271         * tree-flow.h (rename_variables_in_loop): Remove.
12272         (rename_variables_in_bb): Likewise.
12273         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12274         (copy_loop_before): Adjust and delete update-ssa status.
12275         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12276         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12277         (rename_variables_in_loop): Remove.
12278         (slpeel_update_phis_for_duplicate_loop): Likewise.
12279         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12280         use available cfg machinery instead of duplicating it.
12281         Update PHI nodes and perform poor-mans SSA update here.
12282         (slpeel_tree_peel_loop_to_edge): Adjust.
12284 2013-01-16  Richard Biener  <rguenther@suse.de>
12286         PR tree-optimization/54767
12287         PR tree-optimization/53465
12288         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12289         (vrp_visit_phi_node): For PHI arguments coming via backedges
12290         drop all symbolical range information.
12291         (execute_vrp): Compute backedges.
12293 2013-01-16  Richard Biener  <rguenther@suse.de>
12295         * doc/install.texi: Update CLooG and ISL requirements to
12296         0.18.0 and 0.11.1.
12298 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12300         PR target/55301
12301         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12302         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12303         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12305 2013-01-16  DJ Delorie  <dj@redhat.com>
12307         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12308         (UNSPECV_SP_SWITCH_E): New.
12309         (sp_switch_1): Change to an unspec.
12310         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12311         replace $r15.
12313 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12315         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12316         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12317         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12318         (expand_mem_thread_fence): Ditto.
12319         (expand_mem_signal_fence): Ditto.
12320         (expand_atomic_load): Ditto.
12321         (expand_atomic_store): Ditto.
12323 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12325         PR rtl-optimization/55547
12326         PR rtl-optimization/53827
12327         PR debug/53671
12328         PR debug/49888
12329         * alias.c (memrefs_conflict_p): Set sizes to negative after
12330         AND adjustments.
12332 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12334         PR target/55940
12335         * function.c (thread_prologue_and_epilogue_insns): Always
12336         add crtl->drap_reg to set_up_by_prologue.set, even if
12337         stack_realign_drap is false.
12339 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12341         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12342         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12343         *call): Fix indention.
12345 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12347         PR target/55876
12348         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12349         Update comment.
12351 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12353         PR rtl-optimization/55153
12354         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12356 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12358         PR tree-optimization/55920
12359         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12360         accesses as grp_to_be_debug_replaced.
12362 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12364         PR tree-optimization/55920
12365         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12366         there is non-useless type conversion needed from debug rhs to lhs,
12367         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12369 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12370             Mikael Pettersson  <mikpe@it.uu.se>
12372         PR target/43961
12373         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12374         Thumb.
12375         (ASM_OUTPUT_CASE_LABEL): Remove.
12376         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12377         * final.c (shorten_branches): Update alignment of labels before
12378         jump tables if CASE_VECTOR_SHORTEN_MODE.
12380 2013-01-15  Richard Biener  <rguenther@suse.de>
12382         PR bootstrap/55961
12383         * system.h: Do not include gmp.h for building host tools.
12385 2013-01-15  Richard Biener  <rguenther@suse.de>
12387         PR middle-end/55882
12388         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12389         account for bitpos when computing alignment.
12391 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12393         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12394         (ix86_target_macros_internal): Likewise.
12396         * config/i386/i386.c (m_CORE2I7): Removed.
12397         (m_CORE_HASWELL): New macro.
12398         (m_CORE_ALL): Likewise.
12399         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12400         (initial_ix86_arch_features): Likewise.
12401         (processor_target_table): Initializations for Core avx2.
12402         (cpu_names): New names "core-avx2".
12403         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12404         PROCESSOR_CORE_HASWELL.
12405         (ix86_issue_rate): New case.
12406         (ia32_multipass_dfa_lookahead): Likewise.
12407         (ix86_sched_init_global): Likewise.
12409         * config/i386/i386.h (TARGET_HASWELL): New macro.
12410         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12411         (processor_type): New PROCESSOR_HASWELL.
12413 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12415         PR tree-optimization/55955
12416         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12417         *SHIFT_EXPR and *ROTATE_EXPR codes.
12419         PR tree-optimization/48766
12420         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12421         -ftrapv disable -fwrapv.
12423 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12425         PR target/55974
12426         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12427         etc. to 1 and not to __flash.
12428         Use LL suffix for __INT24_MAX__ with -mint8.
12429         Use ULL suffix for __UINT24_MAX__ with -mint8.
12431 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12433         * config/avr/avr-arch.h
12434         (struct base_arch_s): Use typedef avr_arch_t instead.
12435         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12436         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12437         * config/avr/avr.c: Same.
12438         * config/avr/avr-devices.c: Same.
12439         * config/avr/driver-avr.c: Same.
12440         * config/avr/gen-avr-mmcu-texi.c: Same.
12441         * config/avr/avr-mcus.def: Adjust comment.
12443 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12445         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12446         * config/aarch64/iterators.md (VALLDI): New.
12448 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12449             Andi Kleen  <ak@linux.intel.com>
12451         PR target/55948
12452         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12453         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12454         memmodel flag.
12456 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12458         * config/avr/avr-stdint.h: Remove trailing blanks.
12459         * config/avr/avr-log.h: Same.
12460         * config/avr/avr-arch.h: Same.
12461         * config/avr/avr-devices.c: Same.
12462         * config/avr/avr-dimode.md: Same.
12463         * config/avr/predicates.md: Same.
12464         * config/avr/avr-c.c: Same.  And fix typo.
12466         * config/avr/avr-protos.h: Same.  And:
12467         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12468         (init_cumulative_args): Rename to avr_init_cumulative_args.
12469         (expand_prologue): Rename to avr_expand_prologue.
12470         (expand_epilogue): Rename to avr_expand_epilogue.
12471         (adjust_insn_length): Rename to avr_adjust_insn_length.
12472         (notice_update_cc): Rename to avr_notice_update_cc.
12473         (final_prescan_insn): Rename to avr_final_prescan_insn.
12474         * config/avr/avr.c: Same.
12475         * config/avr/avr.h: Same.
12476         * config/avr/avr.md: Remove trailing blanks.
12477         (prologue): Use avr_expand_prologue.
12478         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12480 2013-01-14  Richard Biener  <rguenther@suse.de>
12482         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12483         verify_location, collect_subblocks): New functions.
12484         (verify_gimple_in_cfg): Verify that locations only reference
12485         BLOCKs in the functions BLOCK tree.
12487 2013-01-14  Richard Biener  <rguenther@suse.de>
12489         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12490         PHI argument.
12491         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12492         unshare reference.
12493         (insert_out_of_ssa_copy_on_edge): Likewise.
12494         (rewrite_close_phi_out_of_ssa): Likewise.
12495         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12496         debug expressions.
12497         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12498         propagated constants.
12499         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12500         can not be shared.
12502 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12504         * config/avr/avr-modes.def: Add GPL copyright notice.
12506 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12508         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12509         MEMMODEL_MASK to determine memory model.
12510         (atomic_store<mode>): Ditto from operands[2].
12511         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12513 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12515         PR fortran/55935
12516         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12517         (fold_gimple_assign): Don't call unshare_expr here.
12518         (fold_ctor_reference): Call unshare_expr.
12520 2013-01-13  Terry Guo  <terry.guo@arm.com>
12522         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12523         * doc/fragments.texi: Document MULTILIB_REUSE.
12524         * gcc.c (multilib_reuse): New internal spec.
12525         (set_multilib_dir): Also search multilib from multilib_reuse.
12526         * genmultilib (tmpmultilib3): Refactor code.
12527         (tmpmultilib4): Ditto.
12528         (multilib_reuse): New multilib argument.
12530 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12532         * Makefile.in: Update copyright.
12534 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12536         PR middle-end/55890
12537         * calls.c (expand_call): Check if arg_nr is valid.
12539 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12541         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12542         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12543         documentation.  Add missing '__' in front of
12544         __builtin_ia32_packssdw256.
12546 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12548         PR target/55719
12549         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12550         NO_REGS for larl operands.
12551         (s390_reload_larl_operand): Use s390_load_address instead of
12552         emit_move_insn.
12554 2013-01-11  Richard Biener  <rguenther@suse.de>
12556         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12557         (verify_node_sharing): ... here.
12558         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12560 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12562         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12563         Substitute TREECHECKING.
12564         * configure: Regenerate.
12565         * Makefile.in (TREECHECKING): New.
12567 2013-01-11  Richard Guenther  <rguenther@suse.de>
12569         PR tree-optimization/44061
12570         * tree-vrp.c (extract_range_basic): Compute zero as
12571         value-range for __builtin_constant_p of function parameters.
12573 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12575         Update copyright years.
12577 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12579         PR rtl-optimization/55672
12580         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12581         const to be eliminable.
12583 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12585         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12586         * configure: Regenerate.
12588 2013-01-10  Richard Biener  <rguenther@suse.de>
12590         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12592 2013-01-10  Richard Biener  <rguenther@suse.de>
12594         PR bootstrap/55792
12595         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12596         locations for virtual PHI arguments.
12597         (rewrite_update_phi_arguments): Likewise.
12599 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12601         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12602         on to assembler.
12604 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12606         PR tree-optimization/55921
12607         * tree-complex.c (expand_complex_asm): New function.
12608         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12610 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12612         PR target/55718
12613         * config/s390/s390.c (s390_symref_operand_p)
12614         (s390_loadrelative_operand_p): Merge the two functions.
12615         (s390_check_qrst_address, print_operand_address): Add parameters
12616         to s390_loadrelative_operand_p invokation.
12617         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12618         (s390_reload_larl_operand, s390_secondary_reload): Use
12619         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12620         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12622 2013-01-09  Mike Stump  <mikestump@comcast.net>
12624         * dse.c (record_store): Remove unnecessary assert.
12626 2013-01-09  Jan Hubicka  <jh@suse.cz>
12628         PR tree-optimization/55569
12629         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12630         * cfgloop.h (scale_loop_profile): Likewise.
12632 2013-01-09  Jan Hubicka  <jh@suse.cz>
12634         PR lto/45375
12635         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12636         functions.
12637         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12639 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12641         PR middle-end/55114
12642         * expr.h (maybe_emit_group_store): Declare.
12643         * expr.c (maybe_emit_group_store): New function.
12644         * builtins.c (expand_builtin_int_roundingfn): Call it.
12645         (expand_builtin_int_roundingfn_2): Likewise.
12647 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12649         PR rtl-optimization/55829
12650         * lra-constraints.c (match_reload): Add code for absent output.
12651         (curr_insn_transform): Add code for reloads of matched inputs
12652         without output.
12654 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12656         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12657         attribute of movddup insn to DF.
12658         (*vec_interleave_lowv2df): Ditto.
12659         (vec_dupv2df): Ditto.
12661 2013-01-09  Jan Hubicka  <jh@suse.cz>
12663         PR tree-optimiation/55875
12664         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12665         EVERY_ITERATION parameter.
12666         (number_of_iterations_exit): Check if exit is executed every iteration.
12667         (idx_infer_loop_bounds): Similarly here.
12668         (n_of_executions_at_most): Simplify
12669         to only test for cases where statement is dominated by the
12670         particular bound; handle correctly the "postdominance" test.
12671         (scev_probably_wraps_p): Use max loop iterations info
12672         as a global bound first.
12674 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12675             Nick Clifton  <nickc@redhat.com>
12677         * config/v850/v850.md (cbranchsf4): New pattern.
12678         (cstoresf4): New pattern.
12679         (cbranchdf4): New pattern.
12680         (cstoredf4): New pattern.
12681         (movsicc): Disallow floating point comparisons.
12682         (cmpsf_le_insn): Fix order of operators.
12683         (cmpsf_lt_insn): Likewise.
12684         (cmpsf_eq_insn): Likewise.
12685         (cmpdf_le_insn): Likewise.
12686         (cmpdf_lt_insn): Likewise.
12687         (cmpdf_eq_insn): Likewise.
12688         (cmpsf_ge_insn): Use LE comparison.
12689         (cmpdf_ge_insn): Likewise.
12690         (cmpsf_gt_insn): Use LT comparison.
12691         (cmpdf_gt_insn): Likewise.
12692         (cmpsf_ne_insn): Delete pattern.
12693         (cmpdf_ne_insn): Delete pattern.
12694         * config/v850/v850.c (v850_gen_float_compare): Use
12695         gen_cmpdf_eq_insn for NE comparison.
12696         (v850_float_z_comparison_operator)
12697         (v850_float_nz_comparison_operator): Move from here ...
12698         * config/v850/predicates.md: ... to here.  Move GT and GE
12699         comparisons into v850_float_z_comparison_operator.
12700         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12701         Delete prototype.
12702         (v850_float_nz_comparison_operator): Likewise.
12704 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12706         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12707         with calls to gen_insvsi/gen_insvdi.
12709 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12711         * config/i386/i386.c (initial_ix86_tune_features): Set up
12712         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12714 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12715             Jakub Jelinek  <jakub@redhat.com>
12717         PR tree-optimization/48189
12718         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12719         If nitercst is 0, don't predict the exit edge.
12721 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12723         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12724         in asm_fprintf with reg_names.
12725         (aarch64_print_operand_address): Likewise.
12726         (aarch64_return_addr): Likewise.
12727         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12729 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12731         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12732         (INT_U6_BITS): Likewise.
12733         * config/pa/predicates.md (uint6_operand): New predicate.
12734         (shift5_operand, shift6_operand): Likewise.
12735         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12736         arith32_operand.
12737         (lshrdi3): Use shift6_operand.
12738         (shrpsi4, shrpdi4): New insn patterns.
12739         (extzv): Delete expander.
12740         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12741         predicates in unamed zero extract patterns.  Tighten common constraint.
12742         (extv): Delete expander.
12743         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12744         predicates in unamed sign extract patterns.  Tighten common constraint.
12745         (insv): Delete expander.
12746         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12747         predicates in unamed insert patterns.  Tighten common constraint.
12748         Change uint32_operand predicate to uint6_operand predicate in unamed
12749         DImode pattern to insert constant values of type 1...1xxxx.
12751 2013-01-04  Jan Hubicka  <jh@suse.cz>
12753         PR tree-optimization/55823
12754         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12755         issue.
12757 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12758             Uros Bizjak  <ubizjak@gmail.com>
12760         PR rtl-optimization/55845
12761         * df-problems.c (can_move_insns_across): Stop scanning at
12762         volatile_insn_p source instruction or give up if
12763         across_from .. across_to range contains any volatile_insn_p
12764         instructions.
12766 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12768         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12769         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12770         Declare.
12771         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12772         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12774 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12776         PR fortran/55341
12777         * asan.c (asan_clear_shadow): New function.
12778         (asan_emit_stack_protection): Use it.
12780 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12782         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12783         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12784         with tab instead of space.
12786 2013-01-08  Nick Clifton  <nickc@redhat.com>
12788         * config/rl78/rl78.c (rl78_expand_prologue): Always select
12789         register bank 0 at the start of an interrupt handler.
12790         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12791         MDBH registers.
12793 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12795         * config/aarch64/aarch64-simd.md
12796         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12797         (aarch64_simd_bsl): Likewise.
12798         (aarch64_vcond_internal<mode>): Likewise.
12799         (vcond<mode><mode>): Likewise.
12800         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12801         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12803 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12805         * config/aarch64/aarch64-builtins.c
12806         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12808 2013-01-08  Martin Jambor  <mjambor@suse.cz>
12810         PR debug/55579
12811         * tree-sra.c (analyze_access_subtree): Return true also after
12812         potentially creating a debug-only replacement.
12814 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12816         PR middle-end/55890
12817         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12819         PR tree-optimization/54120
12820         * tree-vrp.c (range_fits_type_p): Don't allow
12821         src_precision < precision from signed vr to unsigned_p
12822         if vr->min or vr->max is negative.
12823         (simplify_float_conversion_using_ranges): Test can_float_p
12824         against CODE_FOR_nothing.
12826 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12827             Richard Biener  <rguenther@suse.de>
12829         PR middle-end/55851
12830         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12831         types instead of just INTEGER_TYPE types.
12833 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
12835         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12836         TF_SIZE): Define.
12838 2013-01-07  Steve Ellcey  <sellcey@mips.com>
12840         PR target/42661
12841         * config/mips/mips.opt: Change mad to mmad to match documentation.
12843 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12845         PR target/55897
12846         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12847         .progmemx.data now.
12849 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12851         PR target/55897
12852         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12853         (avr_addrspace_t): Add .section_name field.
12854         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12855         array size.
12856         (avr_addrspace): Same.  Initialize .section_name.  Remove last
12857         NULL entry.  Put __memx into .progmemx.data.
12858         (progmem_section_prefix): Remove.
12859         (avr_asm_init_sections): No need to initialize progmem_section.
12860         (avr_asm_named_section): Use avr_addrspace[].section_name to get
12861         section name prefix.
12862         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
12863         retrieve the progmem section.
12864         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12865         boundary to run over avr_addrspace[].
12866         (avr_register_target_pragmas): Ditto.
12868 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
12870         * varasm.c (output_constant_def_contents): For asan_protect_global
12871         protected strings, adjust DECL_ALIGN if needed, before testing for
12872         anchored symbols.
12873         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12874         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
12875         normal decls.
12876         (output_object_block): For asan protected decls, emit asan padding
12877         after their contents.
12878         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12879         (asan_finish_file): Test it here instead.
12881 2013-01-07  Nick Clifton  <nickc@redhat.com>
12882             Matthias Klose  <doko@debian.org>
12883             Doug Kwan  <dougkwan@google.com>
12884             H.J. Lu  <hongjiu.lu@intel.com>
12886         PR driver/55470
12887         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12889         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12891         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12893         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12895         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12897 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12899         PR target/54461
12900         * doc/install.texi (Cross-Compiler-Specific Options): Document
12901         --with-avrlibc.
12903 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
12905         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12906         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12907         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12908         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12909         vqmovun_high_s64): Fix source operand number and update copyright.
12911 2013-01-07  Richard Biener  <rguenther@suse.de>
12913         PR middle-end/55890
12914         * gimple.h (gimple_call_builtin_p): New overload.
12915         * gimple.c (validate_call): New function.
12916         (gimple_call_builtin_p): Likewise.
12917         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12918         Use gimple_call_builtin_p.
12919         (find_func_clobbers): Likewise.
12920         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12921         (strlen_optimize_stmt): Likewise.
12923 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12925         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12926         (vld1q_dup_*): Likewise.
12927         (vld1_*): Likewise.
12928         (vld1q_*): Likewise.
12929         (vld1_lane_*): Likewise.
12930         (vld1q_lane_*): Likewise.
12932 2013-01-07  Richard Biener  <rguenther@suse.de>
12934         * lto-streamer.h (LTO_minor_version): Bump to 2.
12936 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12938         * config/aarch64/aarch64-protos.h
12939         (aarch64_const_double_zero_rtx_p): Rename to...
12940         (aarch64_float_const_zero_rtx_p): ...this.
12941         (aarch64_float_const_representable_p): New.
12942         (aarch64_output_simd_mov_immediate): Likewise.
12943         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12944         move immediate case.
12945         * config/aarch64/aarch64.c
12946         (aarch64_const_double_zero_rtx_p): Rename to...
12947         (aarch64_float_const_zero_rtx_p): ...this.
12948         (aarch64_print_operand): Allow printing of new constants.
12949         (aarch64_valid_floating_const): New.
12950         (aarch64_legitimate_constant_p): Check for valid floating-point
12951         constants.
12952         (aarch64_simd_valid_immediate): Likewise.
12953         (aarch64_vect_float_const_representable_p): New.
12954         (aarch64_float_const_representable_p): Likewise.
12955         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12956         (aarch64_output_simd_mov_immediate): New.
12957         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12958         (*movdf_aarch64): Likewise.
12959         * config/aarch64/constraints.md (Ufc): New.
12960         (Y): call aarch64_float_const_zero_rtx.
12961         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12963 2013-01-07  Richard Biener  <rguenther@suse.de>
12965         PR tree-optimization/55888
12966         PR tree-optimization/55862
12967         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12968         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12969         not if it is contained therein.
12971 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12973         * config/avr/t-avr: Typo.
12975 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12977         PR55243
12978         * config/avr/t-avr: Don't automatically rebuild
12979         $(srcdir)/config/avr/t-multilib
12980         $(srcdir)/config/avr/avr-tables.opt
12981         $(srcdir)/doc/avr-mmcu.texi
12982         (avr-mcus): New phony target to build them on request.
12983         (s-avr-mlib, s-avr-mmcu-texi): Remove.
12984         * avr/avr-mcus.def: Adjust comments.
12986 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
12988         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12990 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12992         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12994 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12996         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12998 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13000         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13001         to generate profiling.
13002         * config/rs6000/aix64.h (LIB_SPEC): Same.
13004 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13006         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13007         New function.
13008         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13010 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13012         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13013         unconditionally.
13014         (ix86_expand_move): Ditto.
13015         (ix86_zero_extend_to_Pmode): Ditto.
13016         (ix86_expand_call): Ditto.
13017         (ix86_expand_special_args_builtin): Ditto.
13018         (ix86_expand_builtin): Ditto.
13020 2013-01-04  Richard Biener  <rguenther@suse.de>
13022         PR tree-optimization/55862
13023         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13024         translating them through PHI nodes.
13026 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13028         PR tree-optimization/55755
13029         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13030         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13032 2013-01-04  Marek Polacek  <polacek@redhat.com>
13034         PR middle-end/55859
13035         * opts.c (default_options_optimization): Clarify error message.
13037 2013-01-04  Richard Biener  <rguenther@suse.de>
13039         PR middle-end/55863
13040         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13041         reassociation.
13043 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13045         PR target/53789
13046         * config/pa/pa.md (movsi): Revert previous change.
13047         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13048         references.
13050 2013-01-03  Richard Henderson  <rth@redhat.com>
13052         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13053         after eliminating TLS symbols.
13055 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13057         PR bootstrap/50167
13058         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13059         * graphite-poly.c (debug_gmp_value): Likewise.
13061 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13063         PR target/55712
13064         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13065         selected code model, define __code_mode_small__, __code_model_medium__,
13066         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13067         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13068         xchg temporary register with %k.  Declare temporary register as
13069         early clobbered.
13070         [__x86_64__]: For medium and large code models, preserve %rbx register.
13072 2013-01-03  Richard Biener  <rguenther@suse.de>
13074         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13075         (dump_subscript): Adjust.
13076         (finalize_ddr_dependent): Do not dump redundant info.
13077         (analyze_siv_subscript): Adjust.
13078         (subscript_dependence_tester): Likewise.
13079         (compute_affine_dependence): Likewise.
13081 2013-01-03  Richard Biener  <rguenther@suse.de>
13083         Revert
13084         2013-01-03  Richard Biener  <rguenther@suse.de>
13086         PR tree-optimization/55857
13087         * tree-vect-stmts.c (vectorizable_load): Do not setup
13088         re-alignment for invariant loads.
13090         2013-01-02  Richard Biener  <rguenther@suse.de>
13092         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13093         invariant load do not generate a vector load from the scalar location.
13095 2013-01-03  Richard Biener  <rguenther@suse.de>
13097         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13098         for not vectorizing.
13099         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13100         not build INDIRECT_REFs, call get_name once only.
13101         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13102         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13104 2013-01-03  Richard Biener  <rguenther@suse.de>
13106         PR tree-optimization/55857
13107         * tree-vect-stmts.c (vectorizable_load): Do not setup
13108         re-alignment for invariant loads.
13110 2013-01-03  Richard Biener  <rguenther@suse.de>
13112         PR lto/55848
13113         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13114         prefer a built-in decl.
13116 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13118         * gcc.c (process_command): Update copyright notice dates.
13119         * gcov.c (print_version): Likewise.
13120         * gcov-dump.c (print_version): Likewise.
13122         PR rtl-optimization/55838
13123         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13124         iv0.step, iv1.step and step.
13126 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13127             Marc Glisse  <marc.glisse@inria.fr>
13129         PR tree-optimization/55832
13130         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13131         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13132         integer_{one,zero}_node.
13134 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13136         PR debug/54402
13137         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13138         * var-tracking.c (reverse_op): Don't add reverse ops to
13139         VALUEs that have already
13140         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13142 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13144         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13146 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13148         * dumpfile.c (dump_loc): Print filename with location.
13149         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13150         new location_t parameter to emit complete unroll message with
13151         new dump framework.
13152         (canonicalize_loop_induction_variables): Compute loops location
13153         and pass to try_unroll_loop_completely.
13154         * loop-unroll.c (report_unroll_peel): New function.
13155         (peel_loops_completely): Use new dump format with location
13156         for main dumpfile message, and invoke report_unroll_peel on success.
13157         (decide_unrolling_and_peeling): Ditto.
13158         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13159         by report_unroll_peel.
13160         (decide_peel_completely): Ditto.
13161         (decide_unroll_constant_iterations): Ditto.
13162         (decide_unroll_runtime_iterations): Ditto.
13163         (decide_peel_simple): Ditto.
13164         (decide_unroll_stupid): Ditto.
13165         * cfgloop.c (get_loop_location): New function.
13166         * cfgloop.h (get_loop_location): Declare.
13168 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13170         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13171         NULL.
13173 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13175         PR middle-end/55198
13176         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13177         BLKmode objects when EXPAND_MEMORY is specified.
13179 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13181         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13182         in loop predicate.
13183         (fold_builtin_cpu): Do not share cpu model decls across statements.
13185 2013-01-02  Jason Merrill  <jason@redhat.com>
13187         PR c++/55804
13188         * tree.c (build_array_type_1): Revert earlier change.
13190 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13192         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13193         "cortex-a57".
13194         * config/aarch64/aarch64-tune.md: Re-generate.
13196 2013-01-02  Richard Biener  <rguenther@suse.de>
13198         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13199         invariant load do not generate a vector load from the scalar location.
13201 2013-01-02  Richard Biener  <rguenther@suse.de>
13203         PR bootstrap/55784
13204         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13205         * configure: Regenerate.
13207 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13209         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13210         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13211         (expand_builtin_int_roundingfn_2): Keep the original target around
13212         for the fallback case.
13214 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13216         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13217         to be clear for sign changes.
13219 2013-01-01  Jan Hubicka  <jh@suse.cz>
13221         * ipa-inline-analysis.c: Fix formatting.
13223 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13225         PR tree-optimization/55831
13226         * tree-vect-loop.c (get_initial_def_for_induction): Use
13227         gsi_after_labels instead of gsi_start_bb.
13229 Copyright (C) 2013 Free Software Foundation, Inc.
13231 Copying and distribution of this file, with or without modification,
13232 are permitted in any medium without royalty provided the copyright
13233 notice and this notice are preserved.