2013-06-18 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob7e771b5ebe5e875e907323a876d6e84a8def6786
1 2013-06-18  Richard Biener  <rguenther@suse.de>
3         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
4         * lto-streamer.h: Include pointer-set.h.
5         (struct lto_decl_slot): Remove.
6         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
7         Remove next_index entry.
8         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
9         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
10         (lto_init_tree_ref_encoder): Adjust.
11         (lto_destroy_tree_ref_encoder): Likewise.
12         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
13         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
14         (lto_output_decl_index): Adjust.
15         (lto_new_out_decl_state): Likewise.
16         (lto_record_function_out_decl_state): Likewise.
17         * lto-streamer-out.c (copy_function): Likewise.
19 2013-06-18  Richard Biener  <rguenther@suse.de>
21         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
22         * cgraphunit.c: Include cfgloop.h.
23         (init_lowered_empty_function): Initialize the loop tree.
24         (assemble_thunk): Insert new BBs into loops.
26 2013-06-18  Richard Biener  <rguenther@suse.de>
28         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
29         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
30         the map from cache entry to cache index optional.
31         (streamer_tree_cache_replace_tree): Adjust accordingly.
32         (streamer_tree_cache_append): Likewise.
33         (streamer_tree_cache_delete): Likewise.
34         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
35         streamer cache map from cache entry to cache index.
36         * lto-streamer-out.c (create_output_block): Adjust.
38 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
40         * config/arm/arm.md (attribute "insn"): Move multiplication and division
41         attributes to...
42         (attribute "type"): ... here.  Remove mult.
43         (attribute "mul32"): New attribute.
44         (attribute "mul64"): Add umaal.
45         (*arm_mulsi3): Update attributes.
46         (*arm_mulsi3_v6): Likewise.
47         (*thumb_mulsi3): Likewise.
48         (*thumb_mulsi3_v6): Likewise.
49         (*mulsi3_compare0): Likewise.
50         (*mulsi3_compare0_v6): Likewise.
51         (*mulsi_compare0_scratch): Likewise.
52         (*mulsi_compare0_scratch_v6): Likewise.
53         (*mulsi3addsi): Likewise.
54         (*mulsi3addsi_v6): Likewise.
55         (*mulsi3addsi_compare0): Likewise.
56         (*mulsi3addsi_compare0_v6): Likewise.
57         (*mulsi3addsi_compare0_scratch): Likewise.
58         (*mulsi3addsi_compare0_scratch_v6): Likewise.
59         (*mulsi3subsi): Likewise.
60         (*mulsidi3adddi): Likewise.
61         (*mulsi3addsi_v6): Likewise.
62         (*mulsidi3adddi_v6): Likewise.
63         (*mulsidi3_nov6): Likewise.
64         (*mulsidi3_v6): Likewise.
65         (*umulsidi3_nov6): Likewise.
66         (*umulsidi3_v6): Likewise.
67         (*umulsidi3adddi): Likewise.
68         (*umulsidi3adddi_v6): Likewise.
69         (*smulsi3_highpart_nov6): Likewise.
70         (*smulsi3_highpart_v6): Likewise.
71         (*umulsi3_highpart_nov6): Likewise.
72         (*umulsi3_highpart_v6): Likewise.
73         (mulhisi3): Likewise.
74         (*mulhisi3tb): Likewise.
75         (*mulhisi3bt): Likewise.
76         (*mulhisi3tt): Likewise.
77         (maddhisi4): Likewise.
78         (*maddhisi4tb): Likewise.
79         (*maddhisi4tt): Likewise.
80         (maddhidi4): Likewise.
81         (*maddhidi4tb): Likewise.
82         (*maddhidi4tt): Likewise.
83         (divsi3): Likewise.
84         (udivsi3): Likewise.
85         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
86         (thumb2_mulsi_short_compare0): Likewise.
87         (thumb2_mulsi_short_compare0_scratch): Likewise.
88         * config/arm/arm1020e.md (1020mult1): Update attribute change.
89         (1020mult2): Likewise.
90         (1020mult3): Likewise.
91         (1020mult4): Likewise.
92         (1020mult5): Likewise.
93         (1020mult6): Likewise.
94         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute change.
95         (cortex_a15_mult64): Likewise.
96         (cortex_a15_sdiv): Likewise.
97         (cortex_a15_udiv): Likewise.
98         * config/arm/arm1026ejs.md (mult1): Update attribute change.
99         (mult2): Likewise.
100         (mult3): Likewise.
101         (mult4): Likewise.
102         (mult5): Likewise.
103         (mult6): Likewise.
104         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
105         (pj4_ir_div): Likewise.
106         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
107         (11_mult2): Likewise.
108         (11_mult3): Likewise.
109         (11_mult4): Likewise.
110         (11_mult5): Likewise.
111         (11_mult6): Likewise.
112         (11_mult7): Likewise.
113         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
114         (cortex_a8_mla): Likewise.
115         (cortex_a8_mull): Likewise.
116         (cortex_a8_smulwy): Likewise.
117         (cortex_a8_smlald): Likewise.
118         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
119         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
120         (cortex_r4_mul_3): Likewise.
121         (cortex_r4_mla_4): Likewise.
122         (cortex_r4_mla_3): Likewise.
123         (cortex_r4_smlald): Likewise.
124         (cortex_r4_mull): Likewise.
125         (cortex_r4_sdiv): Likewise.
126         (cortex_r4_udiv): Likewise.
127         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
128         (cortex_a7_idiv): Likewise.
129         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
130         (9_mult2): Likewise.
131         (9_mult3): Likewise.
132         (9_mult4): Likewise.
133         (9_mult5): Likewise.
134         (9_mult6): Likewise.
135         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
136         (cortex_a53_sdiv): Likewise.
137         (cortex_a53_udiv): Likewise.
138         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
139         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
140         (mp626_mult2): Likewise.
141         (mp626_mult3): Likewise.
142         (mp626_mult4): Likewise.
143         * config/arm/fa526.md (526_mult1): Update attribute change.
144         (526_mult2): Likewise.
145         * config/arm/arm-generic.md (mult): Update attribute change.
146         (mult_ldsched_strongarm): Likewise.
147         (mult_ldsched): Likewise.
148         (multi_cycle): Likewise.
149         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
150         * config/arm/fa606te.md (606te_mult1): Update attribute change.
151         (606te_mult2): Likewise.
152         (606te_mult3): Likewise.
153         (606te_mult4): Likewise.
154         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
155         (cortex_a9_mac16): Likewise.
156         (cortex_a9_multiply): Likewise.
157         (cortex_a9_mac): Likewise.
158         (cortex_a9_multiply_long): Likewise.
159         * config/arm/fa626te.md (626te_mult1): Update attribute change.
160         (626te_mult2): Likewise.
161         (626te_mult3): Likewise.
162         (626te_mult4): Likewise.
164 2013-06-18  Richard Biener  <rguenther@suse.de>
166         PR lto/57334
167         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
169 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
171         PR target/57609
172         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
173         with next_active_insn.
175 2013-06-18  Alan Modra  <amodra@gmail.com>
177         * config/rs6000/rs6000.h (enum data_align): New.
178         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
179         (DATA_ABI_ALIGNMENT): Define.
180         (CONSTANT_ALIGNMENT): Correct comment.
181         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
182         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
184 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
186         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
187         ATTRIBUTE_UNUSED marking.
189 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
191         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
192         alternative and update.
193         (aarch64_dup_lanedi): Delete.
194         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
195         * config/aarch64/aarch64-simd-builtins.def: Update.
197 2013-06-17  Richard Biener  <rguenther@suse.de>
199         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
200         (lto_input_scc): Declare.
201         (lto_input_tree_1): Likewise.
202         (struct lto_stats_d): Add num_tree_bodies_output and
203         num_pickle_refs_output.
204         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
205         (lto_read_tree_1): Split out from ...
206         (lto_read_tree): ... this.
207         (lto_input_scc): New function.
208         (lto_input_tree_1): Split out from ...
209         (lto_input_tree): ... this.  Handle LTO_tree_scc.
210         (lto_data_in_create): Create the streamer cache without hashes.
211         * lto-streamer-out.c (create_output_block): Create the streamer
212         cache with hashes when not doing WPA.
213         (lto_write_tree_1): Split out from ...
214         (lto_write_tree): ... this.
215         (get_symbol_initial_value): New function.
216         (lto_output_tree_1): Split out from ...
217         (lto_output_tree): ... this.  Write trees as series of SCCs
218         using a DFS walk via DFS_write_tree.
219         (struct sccs, struct scc_entry): New types.
220         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
221         (DFS_write_tree_body): New function.
222         (DFS_write_tree): Likewise.
223         (hash_tree): Likewise.
224         (scc_entry_compare): Likewise.
225         (hash_scc): Likewise.
226         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
227         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
228         TREE_CHAIN as regular reference.
229         (streamer_read_integer_cst): Remove.
230         (streamer_get_pickled_tree): Adjust.
231         * tree-streamer-out.c (streamer_write_chain): Disable streaming
232         of DECL_EXTERNALs in BLOCK_VARS for now.
233         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
234         reference.
235         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
236         Add hash value argument and record that if hashes are recorded
237         in the cache.
238         (streamer_tree_cache_insert_1): Adjust.
239         (streamer_tree_cache_insert): Likewise.
240         (streamer_tree_cache_insert_at): Rename to ...
241         (streamer_tree_cache_replace_tree): ... this and adjust.
242         (streamer_tree_cache_append): Adjust.
243         (record_common_node): Likewise.
244         (streamer_tree_cache_create): Add argument whether to
245         record hash values together with trees.
246         (streamer_tree_cache_delete): Adjust.
247         * tree-streamer.h (struct streamer_tree_cache_d): Add
248         vector of hashes.
249         (streamer_read_integer_cst): Remove.
250         (streamer_tree_cache_insert): Adjust.
251         (streamer_tree_cache_append): Likewise.
252         (streamer_tree_cache_insert_at): Rename to ...
253         (streamer_tree_cache_replace_tree): ... this and adjust.
254         (streamer_tree_cache_create): Add argument whether to record hashes.
255         (streamer_tree_cache_get): Rename to ...
256         (streamer_tree_cache_get_tree): ... this.
257         (streamer_tree_cache_get_hash): New function.
258         * tree.c (cache_integer_cst): New function.
259         * tree.h (cache_integer_cst): Declare.
260         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
261         * lto-symtab.c (lto_varpool_replace_node): Only release
262         DECL_INITIAL of non-prevailing decls.
263         * varpool.c (varpool_remove_initializer): Do not release
264         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
266 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
268         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
269         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
270         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
271         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
272         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
273         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
274         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
275         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
276         instead of TARGET_64BIT.
277         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
278         Require ISA_HAS_<D>DIV.
280 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
282         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
283         (mips*-*-linux*): Move default with_llsc setting to where other
284         defaults are set.
285         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
286         with_arch block.
287         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
288         Likewise.  Remove default with_tune setting.  Move default float
289         setting to its own block.  Handle with_llsc in the same block as above.
291 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
293         PR rtl-optimization/57425
294         PR rtl-optimization/57569
295         * alias.c (write_dependence_p): Add new parameters mem_size,
296         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
297         Changed all callers.
298         (canon_anti_dependence): New function.
299         * cse.c (check_dependence): Use canon_anti_dependence.
300         * cselib.c (cselib_invalidate_mem): Likewise.
301         * rtl.h (canon_anti_dependence): Declare.
303 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
305         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
306         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
307         ".set mips3" for 64-bit targets.
309 2013-06-15  Dehao Chen  <dehao@google.com>
311         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
312         * gimple-low.c (gimple_check_call_matching_types): Likewise.
313         (gimple_check_call_args): Likewise.
314         * value-prof.c (check_ic_target): Likewise.
315         * ipa-inline.c (early_inliner): Likewise.
316         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
317         * cgraph.c (cgraph_create_edge_1): Likewise.
318         (cgraph_make_edge_direct): Likewise.
320 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
322         PR target/57615
323         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
324         rs6000_output_move_128bit to handle emitting quad memory
325         operations.  Set attribute length to 8 bytes.
327 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
329         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
330         New pattern.
331         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
332         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
333         (aarch64_<su>mlsl<mode>): Likewise.
335 2013-06-14  Mike Stump  <mikestump@comcast.net>
337         * Makefile.in (TARGET_H): Add insn-codes.h.
339 2013-06-14  Alan Modra  <amodra@gmail.com>
341         PR middle-end/57134
342         PR middle-end/57586
343         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
344         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
345         bitfield expansion when EXPAND_MEMORY.
346         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
348 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
350         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
351         test for clearing quad memory on 32-bit later.
353 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
355         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
356         (fold_negate_expr): Likewise.
357         (fold_real_zero_addition_p): Handle vectors.
358         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
360 2013-06-14  Alan Modra  <amodra@gmail.com>
362         * varasm.c (force_const_mem): Revert 2013-06-07 change.
364 2013-06-13  Jan Hubicka  <jh@suse.cz>
366         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
367         Local comdats are not externally visible.
368         * symtab.c (dump_symtab_base): Dump externally visible.
369         (verify_symtab_base): Verify back links in the symtab hash.
371 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
373         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
374         CONVERT_EXPR as equal nodes.
376 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
378         * rtlanal.c (noop_move_p): Check the code to be executed for
379         COND_EXEC.
381 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
383         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
384         Generalize to complex and vector.
385         * tree.c (build_all_ones_cst): New function.
386         * tree.h (build_all_ones_cst): Declare it.
388 2013-06-13  Alan Modra  <amodra@gmail.com>
390         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
391         * config/rs6000/rs6000.md (signbittf2): New insn.
392         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
393         (abstf2_internal, cmptf_internal2): Likewise.
394         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
396 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
397             Pat Haugen <pthaugen@us.ibm.com>
398             Peter Bergner <bergner@vnet.ibm.com>
400         * config/rs6000/rs6000.c (emit_load_locked): Add support for
401         power8 byte, half-word, and quad-word atomic instructions.
402         (emit_store_conditional): Likewise.
403         (rs6000_expand_atomic_compare_and_swap): Likewise.
404         (rs6000_expand_atomic_op): Likewise.
406         * config/rs6000/sync.md (larx): Add new modes for power8.
407         (stcx): Likewise.
408         (AINT): New mode iterator to include TImode as well as normal
409         integer modes on power8.
410         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
411         that VSX registers are not considered.  Use AINT mode iterator
412         instead of INT1 to allow inclusion of quad word atomic operations
413         on power8.
414         (load_locked<mode>): Likewise.
415         (store_conditional<mode>): Likewise.
416         (atomic_compare_and_swap<mode>): Likewise.
417         (atomic_exchange<mode>): Likewise.
418         (atomic_nand<mode>): Likewise.
419         (atomic_fetch_<fetchop_name><mode>): Likewise.
420         (atomic_nand_fetch<mode>): Likewise.
421         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
422         each type.
423         (ATOMIC): On power8, add QImode, HImode modes.
424         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
425         modes that promote to SImode.
426         (load_lockedti): Convert TImode arguments to PTImode, so that we
427         get a guaranteed even/odd register pair.
428         (load_lockedpti): Likewise.
429         (store_conditionalti): Likewise.
430         (store_conditionalpti): Likewise.
432         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
433         atomic load/store instructions.
434         (HSI): Likewise.
436 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
438         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
439         loads.
440         (insn_count): New attribute, with most cases extracted from...
441         (length): ...here.  Redefine most cases in terms of insn_count.
442         (single_insn): Delete.
443         (can_delay): Use insn_count to check for single instructions.
444         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
445         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
446         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
447         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
448         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
449         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
450         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
451         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
452         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
453         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
454         rather than "length".
455         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
456         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
457         Use "insn_count" rather than "length".
458         * config/mips/mips-dsp.md
459         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
460         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
461         length attributes.
463 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
465         PR tree-optimization/57361
466         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
468 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
470         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): convert to split.
471         (aarch64_simd_combine<mode>): New instruction expansion.
472         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
473         function prototype.
474         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
475         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
477 2013-06-12  Jan Hubicka  <jh@suse.cz>
479         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
480         decl has when in streaming stage.
481         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
482         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
484 2013-06-12  Roland Stigge <stigge@antcom.de>
486         PR target/57578
487         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
489 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
491         PR tree-optimization/57537
492         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
493         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
495 2013-06-12  Richard Biener  <rguenther@suse.de>
497         * data-streamer.h (streamer_write_char_stream): CSE
498         obs->current_pointer.
499         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
500         streamer_write_char_stream manually and optimize the resulting loop.
501         (streamer_write_hwi_stream): Likewise.
503 2013-06-12  Jan Hubicka  <jh@suse.cz>
505         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
506         * cgraph.h (varpool_create_empty_node): Declare.
507         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
508         duplicated nodes.
509         * symtab.c (symtab_unregister_node): Be lax about missin entries
510         in node hash.
511         (symtab_get_node): Update comment.
512         * varpool.c (varpool_create_empty_node): Break out from ...
513         (varpool_node_for_decl): ... here.
514         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
516 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
518         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
519         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
520         part.  Use straight-line flow at the end.
521         <COMPONENT_REF>: Remove superfluous else.
522         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
524 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
526         PR target/56564
527         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
528         target hook even for !TREE_PUBLIC decls.  If no resolution info
529         is available, return false for common and external decls.
531 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
533         * config/rl78/constraints.md (U): New constraint.
534         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
535         valloc attribute.
537 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
539         PR target/57589
540         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
541         to allow returning address to AT_PLATFORM name.
543 2013-06-11  Jan Hubicka  <jh@suse.cz>
545         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
546         * cgraph.h (symtab_node_base): Add weakref flag.
547         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
548         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
549         (output_weakrefs): Use weakref flag.
550         * fold-const.c (simple_operand_p): Handle WEAK.
551         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
552         * ipa.c (varpool_externally_visible_p): Drop weakref.
553         (function_and_variable_visibility): Update comment; fix weakref
554         sanity checks; do not clear DECL_WEAK on them.
555         * lto-cgraph.c (lto_output_node): update.
556         (lto_output_varpool_node): Update.
557         (input_overwrite_node): Update.
558         (input_node): Update.
559         (input_varpool_node): Update.
560         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
561         (lto_symtab_merge_symbols): Add sanity check.
562         (lto_symtab_prevailing_decl): Do not special case weakrefs.
563         * passes.c (rest_of_decl_compilation): Set static flag, too.
564         * symtab.c (dump_symtab_base): Dump weakref.
565         (verify_symtab_base): Sanity check weakrefs.
566         (symtab_make_decl_local): Remove duplicated code.
567         (symtab_alias_ultimate_target): Simplify.
568         * varpool.c (varpool_create_variable_alias): Set weakref flag.
570 2013-06-11  DJ Delorie  <dj@redhat.com>
572         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
573         (rl78_unwind_word_mode): New.
575 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
577         * final.c (debug_prefix_maps): Make static.
579 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
581         * function.c (initial_trampoline): Remove stray copy.
583 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
585         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
587 2013-06-11  Martin Jambor  <mjambor@suse.cz>
589         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
590         within bounds at the beginning of the function.
592 2013-06-11  Alan Modra  <amodra@gmail.com>
594         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
595         reporting.
596         (get_named_section): Don't NULL !DECL_P decl.
598 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
600         * doc/invoke.texi (core-avx2): Document.
601         (slm): Likewise.
602         (atom): Updated with MOVBE.
604 2013-06-11  Richard Biener  <rguenther@suse.de>
606         * collect2.c (main): Do not redirect ld stdout/stderr when
607         debugging.
609 2013-06-11  Anton Blanchard  <anton@samba.org>
611         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
612         correct shift value in little-endian mode.
614 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
616         PR target/56564
617         * varasm.c (get_variable_align): Move #endif to the right place.
619 2013-06-10  Cary Coutant  <ccoutant@google.com>
621         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
622         for hash so that hash table traversal order is deterministic.
624 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
625             Pat Haugen <pthaugen@us.ibm.com>
626             Peter Bergner <bergner@vnet.ibm.com>
628         * config/rs6000/vector.md (GPR move splitter): Do not split moves
629         of vectors in GPRS if they are direct moves or quad word load or
630         store moves.
632         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
633         declaration.
634         (direct_move_p): Likewise.
635         (quad_load_store_p): Likewise.
637         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
638         classes into bins based on the physical register type.
639         (reg_class_to_reg_type): Likewise.
640         (IS_STD_REG_TYPE): Likewise.
641         (IS_FP_VECT_REG_TYPE): Likewise.
642         (reload_fpr_gpr): Arrays to determine what insn to use if we can
643         use direct move instructions.
644         (reload_gpr_vsx): Likewise.
645         (reload_vsx_gpr): Likewise.
646         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
647         information that is a simplification of register classes.  Also
648         precalculate direct move reload helpers.
649         (direct_move_p): New function to return true if the operation can
650         be done as a direct move instruciton.
651         (quad_load_store_p): New function to return true if the operation
652         is a quad memory operation.
653         (rs6000_legitimize_address): If quad memory, only allow register
654         indirect for TImode addresses.
655         (rs6000_legitimate_address_p): Likewise.
656         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
657         (rs6000_reload_register_type): Likewise.
658         (register_to_reg_type): Return register type.
659         (rs6000_secondary_reload_simple_move): New helper function for
660         secondary reload and secondary memory needed to identify anything
661         that is a simple move, and does not need reloading.
662         (rs6000_secondary_reload_direct_move): New helper function for
663         secondary reload to identify cases that can be done with several
664         instructions via the direct move instructions.
665         (rs6000_secondary_reload_move): New helper function for secondary
666         reload to identify moves between register types that can be done.
667         (rs6000_secondary_reload): Add support for quad memory operations
668         and for direct move.
669         (rs6000_secondary_memory_needed): Likewise.
670         (rs6000_debug_secondary_memory_needed): Change argument names.
671         (rs6000_output_move_128bit): New function to return the move to
672         use for 128-bit moves, including knowing about the various
673         limitations of quad memory operations.
675         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
676         memory operations.  call rs6000_output_move_128bit for the actual
677         instruciton(s) to generate.
678         (vsx_movti_64bit): Likewise.
680         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
681         (UNSPEC_P8V_MTVSRWZ): Likewise.
682         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
683         (UNSPEC_P8V_MTVSRD): Likewise.
684         (UNSPEC_P8V_XXPERMDI): Likewise.
685         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
686         (UNSPEC_FUSION_GPR): Likewise.
687         (FMOVE128_GPR): New iterator for direct move.
688         (f32_lv): New mode attribute for load/store of SFmode/SDmode
689         values.
690         (f32_sv): Likewise.
691         (f32_dm): Likewise.
692         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
693         loads and direct move instructions.
694         (zero_extendsidi2_lfiwzx): Likewise.
695         (extendsidi2_lfiwax): Likewise.
696         (extendsidi2_nocell): Likewise.
697         (floatsi<mode>2_lfiwax): Likewise.
698         (lfiwax): Likewise.
699         (floatunssi<mode>2_lfiwzx): Likewise.
700         (lfiwzx): Likewise.
701         (fix_trunc<mode>_stfiwx): Likewise.
702         (fixuns_trunc<mode>_stfiwx): Likewise.
703         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
704         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
705         (parity<mode>2_cmpb): Set length/type attr.
706         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
707         for 'mr.' to fast_compare.
708         (bpermd_<mode>): Change type attr to popcnt.
709         (p8_fmrgow_<mode>): New insns for power8 direct move support.
710         (p8_mtvsrwz_1): Likewise.
711         (p8_mtvsrwz_2): Likewise.
712         (reload_fpr_from_gpr<mode>): Likewise.
713         (p8_mtvsrd_1): Likewise.
714         (p8_mtvsrd_2): Likewise.
715         (p8_xxpermdi_<mode>): Likewise.
716         (reload_vsx_from_gpr<mode>): Likewise.
717         (reload_vsx_from_gprsf): Likewise.
718         (p8_mfvsrd_3_<mode>): LIkewise.
719         (reload_gpr_from_vsx<mode>): Likewise.
720         (reload_gpr_from_vsxsf): Likewise.
721         (p8_mfvsrd_4_disf): Likewise.
722         (multi-word GPR splits): Do not split direct moves or quad memory
723         operations.
725 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
727         * tree-into-ssa.c (interesting_blocks): Make static.
729 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
731         PR target/56564
732         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
733         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
734         Use DATA_ABI_ALIGNMENT for that case instead if defined.
735         (get_variable_align): New function.
736         (get_variable_section, emit_bss, emit_common,
737         assemble_variable_contents, place_block_symbol): Use
738         get_variable_align instead of DECL_ALIGN.
739         (assemble_noswitch_variable): Add align argument, use it
740         instead of DECL_ALIGN.
741         (assemble_variable): Adjust caller.  Use get_variable_align
742         instead of DECL_ALIGN.
743         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
744         caller.
745         (DATA_ABI_ALIGNMENT): Define.
746         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
747         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
748         opt is false, only return the psABI mandated alignment increase.
749         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
750         (DATA_ABI_ALIGNMENT): ... this.
751         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
752         (DATA_ABI_ALIGNMENT): ... this.
753         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
754         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
755         (DATA_ABI_ALIGNMENT): ... this.
756         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
757         * doc/tm.texi: Regenerated.
759 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
761         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
762         cmp_code to construct REG_EQUAL note.
764 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
766         PR target/57568
767         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
768         that operands[2] doesn't overlap with operands[0].
770 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
771             Jan Hubicka  <jh@suse.cz>
773         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
774         hack to mark symbols as used.
776 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
778         PR rtl-optimization/57559
779         * lra-constraints.c (process_alt_operands): Don't discourage
780         memory with known offset for offsetable memory constraint.
781         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
783 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
785         * varasm.c (struct oc_local_state): Reorder fields.
786         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
787         and adjust accordingly.
788         (output_constructor): Reorder initialization code and adjust call to
789         output_constructor_bitfield.
791 2013-06-07  Jan Hubicka  <jh@suse.cz>
793         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
795 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
797         * tree-object-size.c (unknown): Make const.
799 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
801         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
802         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
803         for last alternative in the cpu_facility attribute.
805 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
807         PR target/56315
808         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
809         (xordi3): Change operand 2 constraint to arm_xordi_operand.
810         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
811         * config/arm/constraints.md (Dg): New constraint.
812         * config/arm/neon.md (xordi3_neon): Remove.
813         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
814         * config/arm/predicates.md (arm_xordi_operand): New predicate.
816 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
818         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
819         Clean up alternatives.
821 2013-06-07  Alan Modra  <amodra@gmail.com>
823         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
824         va_list_gpr_size.
826 2013-06-07  Alan Modra  <amodra@gmail.com>
828         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
830 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
832         * config/arm/constraints.md (Df): New constraint.
833         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
834         Correct length attribute for last two alternatives.
836 2013-06-07  Alan Modra  <amodra@gmail.com>
838         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
839         override user -mfp-in-toc.
840         (offsettable_ok_by_alignment): Consider just the current access
841         rather than the whole object, unless BLKmode.  Handle
842         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
843         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
844         for -mcmodel=medium.
845         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
846         override user -mfp-in-toc or -msum-in-toc.  Default to
847         -mno-fp-in-toc for -mcmodel=medium.
849 2013-06-06  DJ Delorie  <dj@redhat.com>
851         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
852         TARGET_VALID_POINTER_MODE.
854 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
855             Pat Haugen <pthaugen@us.ibm.com>
856             Peter Bergner <bergner@vnet.ibm.com>
858         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
859         Document new power8 builtins.
861         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
862         condition code register, to allow 128-bit logical operations to be
863         done in the VSX or GPR registers.
864         (nor<mode>3): Use the canonical form for nor.
865         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
866         vclz*, and vpopcnt* vector instructions.
867         (nand<mode>3): Likewise.
868         (orc<mode>3): Likewise.
869         (clz<mode>2): LIkewise.
870         (popcount<mode>2): Likewise.
872         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
873         that only the GPRs are recognized.
875         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
876         support for new power8 builtins.
878         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
879         builtin functions.
880         (xscvdpspn): Likewise.
881         (vclz): Likewise.
882         (vclzb): Likewise.
883         (vclzh): Likewise.
884         (vclzw): Likewise.
885         (vclzd): Likewise.
886         (vpopcnt): Likewise.
887         (vpopcntb): Likewise.
888         (vpopcnth): Likewise.
889         (vpopcntw): Likewise.
890         (vpopcntd): Likewise.
891         (vgbbd): Likewise.
892         (vmrgew): Likewise.
893         (vmrgow): Likewise.
894         (eqv): Likewise.
895         (eqv_v16qi3): Likewise.
896         (eqv_v8hi3): Likewise.
897         (eqv_v4si3): Likewise.
898         (eqv_v2di3): Likewise.
899         (eqv_v4sf3): Likewise.
900         (eqv_v2df3): Likewise.
901         (nand): Likewise.
902         (nand_v16qi3): Likewise.
903         (nand_v8hi3): Likewise.
904         (nand_v4si3): Likewise.
905         (nand_v2di3): Likewise.
906         (nand_v4sf3): Likewise.
907         (nand_v2df3): Likewise.
908         (orc): Likewise.
909         (orc_v16qi3): Likewise.
910         (orc_v8hi3): Likewise.
911         (orc_v4si3): Likewise.
912         (orc_v2di3): Likewise.
913         (orc_v4sf3): Likewise.
914         (orc_v2df3): Likewise.
916         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
917         allow power8 quad mode in 64-bit.
918         (rs6000_builtin_vectorized_function): Add support to vectorize
919         ISA 2.07 count leading zeros, population count builtins.
920         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
921         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
922         (builtin_function_type): Add vgbbd builtin function which takes an
923         unsigned argument.
924         (altivec_expand_vec_perm_const): Add support for new power8 merge
925         instructions.
927         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
928         that does not include TImdoe for use with 32-bit.
929         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
930         instructions.
931         (UNSPEC_VSX_CVDPSPN): Likewise.
932         (vsx_xscvdpspn): Likewise.
933         (vsx_xscvspdpn): Likewise.
934         (vsx_xscvdpspn_scalar): Likewise.
935         (vsx_xscvspdpn_directmove): Likewise.
936         (vsx_and<mode>3): Split logical operations into 32-bit and
937         64-bit. Add support to do logical operations on TImode as well as
938         VSX vector types.  Allow logical operations to be done in either
939         VSX registers or in general purpose registers in 64-bit mode.  Add
940         splitters if GPRs were used. For AND, add clobber of CCmode to
941         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
942         encoding.
943         (vsx_and<mode>3_32bit): Likewise.
944         (vsx_and<mode>3_64bit): Likewise.
945         (vsx_ior<mode>3): Likewise.
946         (vsx_ior<mode>3_32bit): Likewise.
947         (vsx_ior<mode>3_64bit): Likewise.
948         (vsx_xor<mode>3): Likewise.
949         (vsx_xor<mode>3_32bit): Likewise.
950         (vsx_xor<mode>3_64bit): Likewise.
951         (vsx_one_cmpl<mode>2): Likewise.
952         (vsx_one_cmpl<mode>2_32bit): Likewise.
953         (vsx_one_cmpl<mode>2_64bit): Likewise.
954         (vsx_nor<mode>3): Likewise.
955         (vsx_nor<mode>3_32bit): Likewise.
956         (vsx_nor<mode>3_64bit): Likewise.
957         (vsx_andc<mode>3): Likewise.
958         (vsx_andc<mode>3_32bit): Likewise.
959         (vsx_andc<mode>3_64bit): Likewise.
960         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
961         and xxlorc instructions.
962         (vsx_eqv<mode>3_64bit): Likewise.
963         (vsx_nand<mode>3_32bit): Likewise.
964         (vsx_nand<mode>3_64bit): Likewise.
965         (vsx_orc<mode>3_32bit): Likewise.
966         (vsx_orc<mode>3_64bit): Likewise.
968         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
970         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
971         instruction.
972         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
973         (p8_vmrgow): Likewise.
974         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
975         GPRs to be split under VSX.
976         (p8v_clz<mode>2): Add power8 count leading zero support.
977         (p8v_popcount<mode>2): Add power8 population count support.
978         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
979         support.
981         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
982         instruction.
984         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
985         builtin functions.
986         (vec_nand): Likewise.
987         (vec_vclz): Likewise.
988         (vec_vclzb): Likewise.
989         (vec_vclzd): Likewise.
990         (vec_vclzh): Likewise.
991         (vec_vclzw): Likewise.
992         (vec_vgbbd): Likewise.
993         (vec_vmrgew): Likewise.
994         (vec_vmrgow): Likewise.
995         (vec_vpopcnt): Likewise.
996         (vec_vpopcntb): Likewise.
997         (vec_vpopcntd): Likewise.
998         (vec_vpopcnth): Likewise.
999         (vec_vpopcntw): Likewise.
1001 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1003         PR rtl-optimization/57468
1004         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1005         spilled pseudos.
1007 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1009         PR rtl-optimization/57459
1010         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1011         type when setting live regs.
1013 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1015         * config/s390/s390.opt (mlra): New option.
1016         * config/s390/s390.c (s390_decompose_address): Check displacement
1017         for all registers for LRA.
1018         (s390_secondary_reload): Don't used secondary reloads for LRA.
1019         (s390_lra_p): New function.
1020         (TARGET_LRA_P): Define.
1021         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1022         of attribute cpu_facility to zarch for the last alternative.
1023         (*cmpmem_short): Ditto.
1025 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1027         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1028         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1029         (arm_expand_prologue): Likewise.
1031 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1033         PR c++/53743
1034         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1035         as this is now done by redirect_edge_and_branch_force.
1036         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1037         barriers, and fix interaction with splitting.
1038         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1039         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1040         reflect changes made in the routine.
1041         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1042         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1043         since this is called in cfglayout mode, and replace partition fixup
1044         with assert as that is now done by force_nonfallthru_and_redirect.
1045         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1046         already be marked with region crossing note.
1047         (insert_section_boundary_note): Make non-static, gate on flag
1048         has_bb_partition, rewrite to also check for multiple partitions.
1049         (rest_of_handle_reorder_blocks): Remove call to
1050         insert_section_boundary_note, now done later during free_cfg.
1051         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1052         * bb-reorder.h (insert_section_boundary_note): Declare.
1053         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1054         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1055         invoke insert_section_boundary_note.
1056         (try_redirect_by_replacing_jump): Remove unnecessary
1057         check for region crossing note.
1058         (fixup_partition_crossing): New function.
1059         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1060         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1061         in non-cfglayout mode.
1062         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1063         remove old code that tried to do this. Emit barrier correctly
1064         when we are in cfglayout mode.
1065         (last_bb_in_partition): New function.
1066         (rtl_split_edge): Correctly fixup partition boundaries.
1067         (commit_one_edge_insertion): Remove old code that tried to
1068         fixup region crossing edge since this is now handled in
1069         split_block, and set up insertion point correctly since
1070         block may now end in a jump.
1071         (verify_hot_cold_block_grouping): Guard against checking when not in
1072         linearized RTL mode.
1073         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1074         notes.
1075         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1076         rtl_verify_flow_info, so not called in cfglayout mode.
1077         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1078         (fixup_reorder_chain): Remove old code that attempted to fixup region
1079         crossing note as this is now handled in force_nonfallthru_and_redirect.
1080         (duplicate_insn_chain): Don't duplicate switch section notes.
1081         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1082         note.
1083         * basic-block.h (emit_barrier_after_bb): Declare.
1085 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1087         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1088         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1089         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1091 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1093         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1094         where appropriate.
1095         * config/arm/ldmstm.md: Regenerate.
1097 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1099         * config/arm/sync.md (atomic_loaddi_1):
1100         Disable predication for arm_restrict_it.
1101         (arm_load_exclusive<mode>): Likewise.
1102         (arm_load_exclusivesi): Likewise.
1103         (arm_load_exclusivedi): Likewise.
1104         (arm_load_acquire_exclusive<mode>): Likewise.
1105         (arm_load_acquire_exclusivesi): Likewise.
1106         (arm_load_acquire_exclusivedi): Likewise.
1107         (arm_store_exclusive<mode>): Likewise.
1108         (arm_store_exclusive<mode>): Likewise.
1109         (arm_store_release_exclusivedi): Likewise.
1110         (arm_store_release_exclusive<mode>): Likewise.
1112 2013-06-06  Richard Biener  <rguenther@suse.de>
1114         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1115         after LTO_null.
1116         (lto_tag_is_tree_code_p): Adjust.
1117         (lto_tag_is_gimple_code_p): Likewise.
1118         (lto_gimple_code_to_tag): Likewise.
1119         (lto_tag_to_gimple_code): Likewise.
1120         (lto_tree_code_to_tag): Likewise.
1121         (lto_tag_to_tree_code): Likewise.
1122         * data-streamer.h (streamer_write_hwi_in_range): Use
1123         uhwi streaming to stream the normalized range.
1124         (streamer_read_hwi_in_range): Likewise.
1126 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1128         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1129         (predicable_short_it): Likewise.
1130         (predicated): Likewise.
1131         (enabled): Handle above.
1132         (define_cond_exec): Set predicated attribute to yes.
1134 2013-06-05  Mike Stump  <mikestump@comcast.net>
1136         * gdbinit.in (__FUNCTION__): Add.
1138 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1140         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1141         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1143 2013-06-05  Jan Hubicka  <jh@suse.cz>
1145         * varasm.c (mark_decl_referenced): Revert the removal until targets
1146         are fixed.
1148 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1150         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1151         instead of mark_decl_referenced.
1153 2013-06-05  Jan Hubicka  <jh@suse.cz>
1155         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1156         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1157         and symtab_used_from_object_file_p.
1158         (cgraph_make_node_local_1): Clear forced_by_abi.
1159         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1160         * cgraph.h (symtab_node_base): Add forced_by_abi.
1161         (decide_is_variable_needed): Remove.
1162         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1163         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1164         (decide_is_symbol_needed): ... this one; handle symbols in general;
1165         always analyze virtuals; honnor forced_by_abi.
1166         (cgraph_finalize_function): Update.
1167         (varpool_finalize_decl): Update.
1168         (symbol_defined_and_needed): Remove.
1169         (analyze_functions): Update.
1170         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1171         output_refs, input_overwrite_node): Handle forced_by_abi.
1172         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1173         (address_taken_from_non_vtable_p): ... this one.
1174         (comdat_can_be_unshared_p_1): New function.
1175         (cgraph_comdat_can_be_unshared_p): Rename to ...
1176         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1177         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1178         (function_and_variable_visibility): Clear forced_by_abi as needed.
1179         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1180         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1181         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1182         * varpool.c (decide_is_variable_needed): Remove.
1184 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1186         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1187         (arm_option_override): Override arm_restrict_it where appropriate.
1188         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1189         * config/arm/arm.opt (mrestrict-it): New command-line option.
1190         * doc/invoke.texi: Document -mrestrict-it.
1192 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1194         * tsan.c (tsan_atomic_table): Make const.
1196 2013-06-05  Richard Biener  <rguenther@suse.de>
1198         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1199         index associated with the tree we are supposed to replace.
1200         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1201         TREE_ASM_WRITTEN as zero for everything but SSA names.
1203 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1205         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1207 2013-06-04  Jan Hubicka  <jh@suse.cz>
1209         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1210         (input_node, input_varpool_node): Handle correctly external same
1211         body aliases.
1212         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1213         nodes at ltrans stage.
1215 2013-06-04  Jan Hubicka  <jh@suse.cz>
1217         * ipa-inline.c (update_caller_keys): Fix availability test.
1218         (update_callee_keys): Likewise.
1219         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1220         to follow ELF standard.
1222 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1224         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1225         (mips64r5900el-*-elf*): New configurations.
1226         * config/mips/mips-cpus.def (r5900): New processor.
1227         * config/mips/mips-tables.opt: Regenerate.
1228         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1229         (mips_issue_rate): Handle PROCESSOR_R5900.
1230         (mips_reorg_process_insns): Force reorder mode for the R5900.
1231         * config/mips/mips.h (TARGET_MIPS5900): Define.
1232         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1233         TARGET_MIPS5900.
1234         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1235         TARGET_MIPS5900.
1236         * config/mips/mips.md (processor): Add r5900.
1237         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1239 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1241         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1242         into function to generate MOVI instruction.
1243         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1244         (aarch64_preferred_simd_mode): Turn into wrapper.
1245         (aarch64_output_scalar_simd_mov_immediate): New function.
1246         * config/aarch64/aarch64-protos.h: Add prototype for above.
1248 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1250         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1251         element_char member.
1252         (sizetochar): Return signed char.
1253         (aarch64_simd_valid_immediate): Remove elchar and other
1254         unnecessary variables.
1255         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1256         Calculate element_char as required.
1257         * config/aarch64/aarch64-protos.h: Update and move prototype
1258         for aarch64_output_simd_mov_immediate.
1259         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1260         Update arguments.
1262 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1264         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1265         information completed by aarch64_simd_valid_immediate.
1266         (aarch64_legitimate_constant_p): Update arguments.
1267         (aarch64_simd_valid_immediate): Work with struct rather than many
1268         pointers.
1269         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1270         (aarch64_simd_make_constant): Update arguments.
1271         (aarch64_output_simd_mov_immediate): Work with struct rather than
1272         many pointers.  Output immediate directly rather than as operand.
1273         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1274         Update prototype.
1275         * config/aarch64/constraints.md (Dn): Update arguments.
1277 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1279         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1280         longer static.
1281         (aarch64_simd_immediate_valid_for_move): Remove.
1282         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1283         (aarch64_simd_make_constant): Update call.
1284         (aarch64_output_simd_mov_immediate): Update call.
1285         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1286         Add prototype.
1287         * config/aarch64/constraints.md (Dn): Update call.
1289 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1291         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1292         return type to bool for prototype.
1293         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1294         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1295         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1297 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1299         * config/mips/mips.opt (meva): New.
1300         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1301         (ASM_SPEC): Handle -meva.
1302         * doc/invoke.texi (meva):  Document.
1304 2013-06-04  Alan Modra  <amodra@gmail.com>
1306         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1307         constant output.
1309 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1311         * rtl.def: Add extra fourth optional field to define_cond_exec.
1312         * gensupport.c (process_one_cond_exec): Process attributes from
1313         define_cond_exec.
1314         * doc/md.texi: Document fourth field in define_cond_exec.
1316 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1318         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1319         out the processing order as in store_bit_field_1.
1321 2013-06-04  Jan Hubicka  <jh@suse.cz>
1323         PR middle-end/57500
1324         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1325         non-VAR_DECL node if it does not exist yet.
1327 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1329         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1330         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1331         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1332         target_cpu_default setting.
1334 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1336         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1337         default to -fopt-info=optimized instead of all.
1338         * doc/invoke.texi: Ditto.
1339         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1340         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1341         (execute_vect_slp): Emit BB vectorization success under
1342         MSG_OPTIMIZED_LOCATIONS.
1343         * tree-vect-slp.c (vect_slp_transform_bb): Change
1344         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1345         * tree-vect-loop.c (vect_transform_loop): Ditto.
1347 2013-06-03  Jason Merrill  <jason@redhat.com>
1349         PR c++/57415
1350         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1351         Use TARGET_EXPR for C++.
1353 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1355         PR rtl-optimization/57268
1356         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1357         if DEBUG_INSN_P (insn).
1359         Reapply
1360         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1362         PR rtl-optimization/57268
1363         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1364         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1366 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1368         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1369         (ix86_avoid_lea_for_addr): Likewise.
1370         (exact_dependency_1): Likewise.
1371         (ix86_adjust_cost): Likewise.
1372         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1373         removed.
1374         (do_reorder_for_imul): Fix typo, formatting and
1375         !reload_completed check removed.
1376         (ix86_sched_reorder): Fix typo and formatting.
1377         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1378         list.
1380 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1382         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1384 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1386         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1387         <STRING_CST>: Likewise.
1388         <VECTOR_CST>: Likewise.
1390 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1391             Mikael Morin  <mikael@gcc.gnu.org>
1393         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1394         * config.in: Regenerated.
1395         * configure: Regenerated.
1397 2013-06-01  Jan Hubicka  <jh@suse.cz>
1399         PR middle-end/57366
1400         * cgraphunit.c (compile): When weakref is not supported,
1401         set up transparent aliases before final output pass.
1402         * varasm.c (assemble_alias): Do not try to do it here.
1404 2013-06-01  Jan Hubicka  <jh@suse.cz>
1406         PR middle-end/57467
1407         * passes.c (for_per_function): Skip unanalyzed functions.
1409 2013-06-01  Jan Hubicka  <jh@suse.cz>
1411         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1412         (lto_symtab_merge_symbols_1): ... this one.
1413         (lto_symtab_merge_cgraph_nodes): Rename to ...
1414         (lto_symtab_merge_symbols): ... this one; simplify.
1415         * cgraph.c (same_body_aliases_done): Rename to ...
1416         (cpp_implicit_aliases_done): ... this one.
1417         (cgraph_create_function_alias): Update.
1418         (cgraph_same_body_alias): Update.
1419         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1420         (verify_edge_corresponds_to_fndecl): Simplify.
1421         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1422         (cgraph_node): Remove same_body_alias.
1423         (varpool_node): Remove alias_of and extra_name_alias.
1424         (same_body_aliases_done): Rename to ..
1425         (cpp_implicit_aliases_done): ... this one.
1426         (symtab_alias_ultimate_target): Add default parameter.
1427         (symtab_resolve_alias): New function.
1428         (fixup_same_cpp_alias_visibility): Declare.
1429         (cgraph_function_node): Add default parameter.
1430         (cgraph_node_asm_name): Likewise.
1431         (cgraph_function_or_thunk_node): Add default parameter; do
1432         not ICE when it is NULL.
1433         (varpool_variable_node): Likewise.
1434         * tree-emutls.c (create_emultls_var): Update.
1435         (ipa_lower_emutls): Update.
1436         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1437         (cgraph_reset_node): Reset alias info.
1438         (cgraph_finalize_function): Update.
1439         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1440         (analyze_function): Simplify.
1441         (cgraph_process_same_body_aliases): Simplify.
1442         (analyze_functions): Fixup same body aliases.
1443         (handle_alias_pairs): Simplify.
1444         (assemble_thunk): Update.
1445         (assemble_thunks_and_aliases): Update.
1446         (output_weakrefs): Rewrite.
1447         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1448         (lto_output_varpool_node): Likewise.
1449         (compute_ltrans_boundary): Remve assert.
1450         (get_alias_symbol): New functoin.
1451         (input_node): Rewrite alias handling.
1452         (input_varpool_node): Likewise.
1453         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1454         * ipa.c (process_references): Handle weakrefs correctly.
1455         (symtab_remove_unreachable_nodes): Likewise.
1456         * trans-mem.c (get_cg_data): Update.
1457         (ipa_tm_create_version_alias): Update.
1458         (ipa_tm_execute): Update.
1459         * symtab.c (dump_symtab_base): Dump aliases.
1460         (verify_symtab_base): Verify aliases.
1461         (symtab_node_availability): New function.
1462         (symtab_alias_ultimate_target): Simplify.
1463         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1464         handle all the fixup cases.
1465         (symtab_resolve_alias): New function.
1466         * passes.c (ipa_write_summaries): Handle weakrefs.
1467         * varpool.c (varpool_analyze_node): Simplify.
1468         (assemble_aliases): Update.
1469         (varpool_create_variable_alias): Simplify.
1470         (varpool_extra_name_alias): Simplify.
1471         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1472         (lto_symtab_merge_symbols): ... this one.
1474 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1476         Revert
1477         PR rtl-optimization/57268
1478         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1479         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1481 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1483         Partially reverted:
1484         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1486         PR middle-end/57073
1487         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1488         further up.
1490 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1492         PR rtl-optimization/57268
1493         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1494         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1496 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1498         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1499         unordered comparison operators when -fno-trapping-math is in effect
1500         on the e500.
1501         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1502         and implement unordered comparison operators properly on the e500.
1504 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1506         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1507         for constant scalar integers.
1508         (simplify_relational_operation_1): Likewise.
1510 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1512         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1513         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1514         Fix comment.
1516 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1517             Igor Zamyatin  <igor.zamyatin@intel.com>
1519         Silvermont (SLM) architecture performance tuning.
1520         * config/i386/i386.h (enum ix86_tune_indices): Add
1521         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1522         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1524         * config/i386/i386.c (initial_ix86_tune_features)
1525         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1526         (ix86_lea_outperforms): Handle Silvermont tuning.
1527         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1528         call.
1529         (ix86_use_lea_for_mov): Likewise.
1530         (ix86_avoid_lea_for_addr): Likewise.
1531         (ix86_lea_for_add_ok): Likewise.
1532         (exact_dependency_1): New function.
1533         (exact_store_load_dependency): Likewise.
1534         (ix86_adjust_cost): Handle Silvermont tuning.
1535         (do_reoder_for_imul): Likewise.
1536         (swap_top_of_ready_list): New function.
1537         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1539         * config/i386/i386.md (peepholes that split memory operand in fp
1540         converts): New.
1542 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1544         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1545         Remove un-necessary braces.
1547 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1549         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1550         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1552 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1554         PR middle-end/57073
1555         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1557 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1559         PR target/56315
1560         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1561         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1562         * config/arm/neon.md (iordi3_neon): Remove.
1563         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1564         * config/arm/predicates.md (imm_for_neon_logic_operand):
1565         Move to earlier in the file.
1566         (neon_logic_op2): Likewise.
1567         (arm_iordi_operand_neon): New predicate.
1569 2013-05-31  Richard Biener  <rguenther@suse.de>
1571         PR tree-optimization/57478
1572         PR tree-optimization/57453
1573         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1574         are life as well.
1576 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1578         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1579         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1581 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1582             Thomas Koenig  <tkoenig@gcc.gnu.org>
1584         PR middle-end/57073
1585         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1586         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1588 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1590         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1592 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1594         * target.def (register_usage_leveling_p): New hook.
1595         * targhooks.c (default_register_usage_leveling_p): New.
1596         * targhooks.h (default_register_usage_leveling_p): New prototype.
1597         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1598         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1599         * doc/tm.texi: Update.
1600         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1602 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1604         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1605         (*insv_reg<mode>): New define_insn.
1607 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1609         PR rtl-optimization/57439
1610         * postreload.c (move2add_valid_value_p): Check that we have
1611         a zero subreg_regno_offset when accessing the register in
1612         the requested mode.
1614 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1615             Igor Zamyatin  <igor.zamyatin@intel.com>
1617         Silvermont (SLM) architecture pipeline model, tuning and
1618         insn selection.
1619         * config.gcc: Add slm config options and target.
1621         * config/i386/slm.md: New.
1623         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1625         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
1626         PROCESSOR_SLM.
1627         (ix86_target_macros_internal): Likewise.
1629         * gcc/config/i386/i386.c (slm_cost): New cost.
1630         (m_SLM): New macro flag.
1631         (initial_ix86_tune_features): Set m_SLM.
1632         (x86_accumulate_outgoing_args): Likewise.
1633         (x86_arch_always_fancy_math_387): Likewise.
1634         (processor_target_table): Add slm cost.
1635         (cpu_names): Add slm cpu name.
1636         (x86_option_override_internal): Set SLM ISA.
1637         (ix86_issue_rate): New case PROCESSOR_SLM.
1638         (ia32_multipass_dfa_lookahead): Likewise.
1639         (fold_builtin_cpu): Add slm.
1641         * config/i386/i386.h (TARGET_SLM): New target macro.
1642         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1643         (processor_type): Add PROCESSOR_SLM.
1645         * config/i386/i386.md (cpu): Add new value "slm".
1646         (slm.md): Include slm.md.
1648 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
1649             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1651         * config/arm/arm-protos.h: Add and update function protos.
1652         * config/arm/arm.c (use_simple_return_p): New added.
1653         (thumb2_expand_return): Check simple_return flag.
1654         * config/arm/arm.md: Add simple_return and conditional simple_return.
1655         * config/arm/iterators.md: Add iterator for return and simple_return.
1657 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1659         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1660         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1661         (arm_emit_vfp_multi_reg_pop): Likewise.
1662         (thumb2_emit_ldrd_pop): Likewise.
1663         (arm_expand_epilogue): Add misc REG_CFA notes.
1664         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1666 2013-05-29  Lawrence Crowl  <crowl@google.com>
1668         * config/arm/t-arm: Update for below.
1670         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1671         Change type to hash_table.  Update dependent calls and types.
1673         * config/i386/t-cygming: Update for below.
1675         * config/i386/t-interix: Update for below.
1677         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1678         Change type to hash_table.  Update dependent calls and types.
1679         (i386_find_on_wrapper_list::wrappers): Likewise.
1681         * config/ia64/t-ia64: Update for below.
1683         * config/ia64/ia64.c (bundle_state_table):
1684         Change type to hash_table.  Update dependent calls and types.
1686         * config/mips/mips.c (mips_reorg_process_insns::htab):
1687         Change type to hash_table.  Update dependent calls and types.
1689         * config/sol2.c (solaris_comdat_htab):
1690         Change type to hash_table.  Update dependent calls and types.
1692         * config/t-sol2: Update for above.
1694 2013-05-29  Teresa Johnson  <tejohnson@google.com>
1696         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1697         functions are not yet marked as defined.
1699 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1700             Pat Haugen <pthaugen@us.ibm.com>
1701             Peter Bergner <bergner@vnet.ibm.com>
1703         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1704         instructions.
1705         (VEC_A): Likewise.
1706         (VEC_C): Likewise.
1707         (vrotl<mode>3): Likewise.
1708         (vashl<mode>3): Likewise.
1709         (vlshr<mode>3): Likewise.
1710         (vashr<mode>3): Likewise.
1712         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1713         support for power8 V2DI builtins.
1715         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1716         power8 V2DI builtins.
1717         (vupkhsw): Likewise.
1718         (vupklsw): Likewise.
1719         (vaddudm): Likewise.
1720         (vminsd): Likewise.
1721         (vmaxsd): Likewise.
1722         (vminud): Likewise.
1723         (vmaxud): Likewise.
1724         (vpkudum): Likewise.
1725         (vpksdss): Likewise.
1726         (vpkudus): Likewise.
1727         (vpksdus): Likewise.
1728         (vrld): Likewise.
1729         (vsld): Likewise.
1730         (vsrd): Likewise.
1731         (vsrad): Likewise.
1732         (vsubudm): Likewise.
1733         (vcmpequd): Likewise.
1734         (vcmpgtsd): Likewise.
1735         (vcmpgtud): Likewise.
1736         (vcmpequd_p): Likewise.
1737         (vcmpgtsd_p): Likewise.
1738         (vcmpgtud_p): Likewise.
1739         (vupkhsw): Likewise.
1740         (vupklsw): Likewise.
1741         (vaddudm): Likewise.
1742         (vmaxsd): Likewise.
1743         (vmaxud): Likewise.
1744         (vminsd): Likewise.
1745         (vminud): Likewise.
1746         (vpksdss): Likewise.
1747         (vpksdus): Likewise.
1748         (vpkudum): Likewise.
1749         (vpkudus): Likewise.
1750         (vrld): Likewise.
1751         (vsld): Likewise.
1752         (vsrad): Likewise.
1753         (vsrd): Likewise.
1754         (vsubudm): Likewise.
1756         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1757         support for power8 V2DI instructions.
1759         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1760         power8 V2DI instructions.  Combine pack and unpack insns to use an
1761         iterator for each mode.  Check whether a particular mode supports
1762         Altivec instructions instead of just checking TARGET_ALTIVEC.
1763         (UNSPEC_VPKUWUM): Likewise.
1764         (UNSPEC_VPKSHSS): Likewise.
1765         (UNSPEC_VPKSWSS): Likewise.
1766         (UNSPEC_VPKUHUS): Likewise.
1767         (UNSPEC_VPKSHUS): Likewise.
1768         (UNSPEC_VPKUWUS): Likewise.
1769         (UNSPEC_VPKSWUS): Likewise.
1770         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1771         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1772         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1773         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1774         (UNSPEC_VUPKHSB): Likewise.
1775         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1776         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1777         (UNSPEC_VUPKHSH): Likewise.
1778         (UNSPEC_VUPKLSB): Likewise.
1779         (UNSPEC_VUPKLSH): Likewise.
1780         (VI2): Likewise.
1781         (VI_char): Likewise.
1782         (VI_scalar): Likewise.
1783         (VI_unit): Likewise.
1784         (VP): Likewise.
1785         (VP_small): Likewise.
1786         (VP_small_lc): Likewise.
1787         (VU_char): Likewise.
1788         (add<mode>3): Likewise.
1789         (altivec_vaddcuw): Likewise.
1790         (altivec_vaddu<VI_char>s): Likewise.
1791         (altivec_vadds<VI_char>s): Likewise.
1792         (sub<mode>3): Likewise.
1793         (altivec_vsubcuw): Likewise.
1794         (altivec_vsubu<VI_char>s): Likewise.
1795         (altivec_vsubs<VI_char>s): Likewise.
1796         (altivec_vavgs<VI_char>): Likewise.
1797         (altivec_vcmpbfp): Likewise.
1798         (altivec_eq<mode>): Likewise.
1799         (altivec_gt<mode>): Likewise.
1800         (altivec_gtu<mode>): Likewise.
1801         (umax<mode>3): Likewise.
1802         (smax<mode>3): Likewise.
1803         (umin<mode>3): Likewise.
1804         (smin<mode>3): Likewise.
1805         (altivec_vpkuhum): Likewise.
1806         (altivec_vpkuwum): Likewise.
1807         (altivec_vpkshss): Likewise.
1808         (altivec_vpkswss): Likewise.
1809         (altivec_vpkuhus): Likewise.
1810         (altivec_vpkshus): Likewise.
1811         (altivec_vpkuwus): Likewise.
1812         (altivec_vpkswus): Likewise.
1813         (altivec_vpks<VI_char>ss): Likewise.
1814         (altivec_vpks<VI_char>us): Likewise.
1815         (altivec_vpku<VI_char>us): Likewise.
1816         (altivec_vpku<VI_char>um): Likewise.
1817         (altivec_vrl<VI_char>): Likewise.
1818         (altivec_vsl<VI_char>): Likewise.
1819         (altivec_vsr<VI_char>): Likewise.
1820         (altivec_vsra<VI_char>): Likewise.
1821         (altivec_vsldoi_<mode>): Likewise.
1822         (altivec_vupkhsb): Likewise.
1823         (altivec_vupkhs<VU_char>): Likewise.
1824         (altivec_vupkls<VU_char>): Likewise.
1825         (altivec_vupkhsh): Likewise.
1826         (altivec_vupklsb): Likewise.
1827         (altivec_vupklsh): Likewise.
1828         (altivec_vcmpequ<VI_char>_p): Likewise.
1829         (altivec_vcmpgts<VI_char>_p): Likewise.
1830         (altivec_vcmpgtu<VI_char>_p): Likewise.
1831         (abs<mode>2): Likewise.
1832         (vec_unpacks_hi_v16qi): Likewise.
1833         (vec_unpacks_hi_v8hi): Likewise.
1834         (vec_unpacks_lo_v16qi): Likewise.
1835         (vec_unpacks_hi_<VP_small_lc>): Likewise.
1836         (vec_unpacks_lo_v8hi): Likewise.
1837         (vec_unpacks_lo_<VP_small_lc>): Likewise.
1838         (vec_pack_trunc_v8h): Likewise.
1839         (vec_pack_trunc_v4si): Likewise.
1840         (vec_pack_trunc_<mode>): Likewise.
1842         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1843         V2DI builtins.
1844         (vec_vmaxsd): Likewise.
1845         (vec_vmaxud): Likewise.
1846         (vec_vminsd): Likewise.
1847         (vec_vminud): Likewise.
1848         (vec_vpksdss): Likewise.
1849         (vec_vpksdus): Likewise.
1850         (vec_vpkudum): Likewise.
1851         (vec_vpkudus): Likewise.
1852         (vec_vrld): Likewise.
1853         (vec_vsld): Likewise.
1854         (vec_vsrad): Likewise.
1855         (vec_vsrd): Likewise.
1856         (vec_vsubudm): Likewise.
1857         (vec_vupkhsw): Likewise.
1858         (vec_vupklsw): Likewise.
1860 2013-05-29  Jan Hubicka  <jh@suse.cz>
1862         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1863         flags; reorder rest of fields in more consistent way.
1864         (varpool_node): Remove analyzed, finalized and alias.
1865         (cgraph_ndoe): Likewise.
1866         (symtab_alias_ultimate_target): New function.
1867         (cgraph_function_node): Move offline.
1868         (cgraph_reset_node): Declare.
1869         (cgraph_comdat_can_be_unshared_p): Remove.
1870         (varpool_remove_initializer): Declare.
1871         (varpool_first_defined_variable, varpool_next_defined_variable
1872         cgraph_first_defined_function, cgraph_next_defined_function): Update.
1873         (cgraph_function_with_gimple_body_p): Update.
1874         (varpool_all_refs_explicit_p): Update.
1875         (symtab_alias_target): New function.
1876         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1877         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1878         (cgraph_function_or_thunk_node): Simplify using
1879         symtab_alias_ultimate_target.
1880         (varpool_variable_node): Likewise.
1881         * cgraph.c (cgraph_create_function_alias): Update.
1882         (cgraph_add_thunk): Update.
1883         (cgraph_remove_node): Update.
1884         (dump_cgraph_node): Do not dump removed flags.
1885         (cgraph_function_body_availability): Update.
1886         (cgraph_propagate_frequency): Update.
1887         (verify_cgraph_node): Check sanity of local flag.
1888         (cgraph_function_node): Move here from cgraph.h; revamp for
1889         cgraph_function_or_thunk_node.
1890         * lto-symtab.c (lto_varpool_replace_node): Update.
1891         (lto_symtab_resolve_can_prevail_p): Update.
1892         (lto_symtab_merge_cgraph_nodes): Update.
1893         * ipa-cp.c (determine_versionability, initialize_node_lattices,
1894         propagate_constants_accross_call, devirtualization_time_bonus,
1895         ipcp_propagate_stage): Update.
1896         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1897         * ipa-inline-transform.c (clone_inlined_nodes,
1898         preserve_function_body_p): Update.
1899         * ipa-reference.c (propagate): Update.
1900         (write_node_summary_p): Update.
1901         * toplev.c (wrapup_global_declaration_2): Update.
1902         * cgraphunit.c (cgraph_analyze_function): Rename to ...
1903         (analyze_function) ... this one.
1904         (cgraph_process_new_functions): Update.
1905         (cgraph_reset_node): Export.
1906         (cgraph_finalize_function): Update.
1907         (cgraph_add_new_function): Update.
1908         (process_function_and_variable_attributes): Update.
1909         (varpool_finalize_decl): Update.
1910         (symbol_finalized): Remove.
1911         (symbol_finalized_and_needed): Rename to ...
1912         (symbol_defined_and_needed): ... update.
1913         (cgraph_analyze_functions): Update.
1914         (handle_alias_pairs): Update.
1915         (mark_functions_to_output): Update.
1916         (assemble_thunk): Update.
1917         (output_in_order): Update.
1918         (output_weakrefs): Update.
1919         (finalize_compilation_unit): Update.
1920         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1921         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1922         input_node, input_varpool_node): Update.
1923         * dbxout.c (dbxout_expand_expr): Update.
1924         * cgraphclones.c (cgraph_clone_node): Update.
1925         (cgraph_copy_node_for_versioning): Update.
1926         (cgraph_materialize_clone): Update.
1927         (cgraph_materialize_all_clones): Update.
1928         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1929         propagate_pure_const, propagate_nothrow): Update.
1930         * lto-streamer-out.c (lto_output, write_symbol): Update.
1931         * ipa-utils.c (ipa_reverse_postorder): Update.
1932         * ipa-inline.c (can_inline_edge_p): Update.
1933         (update_caller_keys, ipa_inline): Update.
1934         * dwarf2out.c (reference_to_unused,
1935         premark_types_used_by_global_vars_helper): Update.
1936         * tree-eh.c (tree_could_trap_p): Update.
1937         * ipa-split.c (consider_split, execute_split_functions): Update.
1938         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
1939         has_addr_references_p): Update; move ahead in file for better
1940         readability.
1941         (process_references): Simplify.
1942         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1943         bodies are removed.
1944         (cgraph_comdat_can_be_unshared_p): Make static.
1945         (cgraph_externally_visible_p): Update.
1946         (varpool_externally_visible_p): Update.
1947         (function_and_variable_visibility): Update.
1948         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1949         ipa_tm_mark_force_output_node): Update.
1950         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1951         estimate_edge_devirt_benefit, inline_generate_summary,
1952         inline_write_summary): Update.
1953         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1954         * ipa-prop.c (ipa_compute_jump_functions): Update.
1955         (ipa_print_node_params, ipa_prop_read_section,
1956         ipa_update_after_lto_read, read_replacements_section): Update.
1957         * varasm.c (mark_decl_referenced): Update.
1958         (assemble_alias, dump_tm_clone_pairs): Update.
1959         * tree-inline.c (copy_bb): Update.
1960         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1961         Update.
1962         * symtab.c (dump_symtab_base): Print new flags.
1963         (verify_symtab_base): Verify new flags.
1964         (symtab_alias_ultimate_target): New function.
1965         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1966         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1967         Update.
1968         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1969         Update.
1970         * i386.c (ix86_get_function_versions_dispatcher,
1971         ix86_generate_version_dispatcher_body): Update.
1972         (fold_builtin_cpu): Use varpool_add_new_variable.
1973         * varpool.c (varpool_remove_initializer): Break out from ...
1974         (varpool_remove_node): ... this one.
1975         (dump_varpool_node, varpool_node_for_asm,
1976         cgraph_variable_initializer_availability, varpool_analyze_node,
1977         varpool_assemble_decl, varpool_remove_unreferenced_decls,
1978         varpool_finalize_named_section_flags, varpool_create_variable_alias):
1979         Update.
1981 2013-05-29  Jan Hubicka  <jh@suse.cz>
1983         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1985 2013-05-29  Easwaran Raman  <eraman@google.com>
1987         PR tree-optimization/57442
1988         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1989         when control exits the main loop.
1991 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
1993         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1994         and RX600.
1995         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
1996         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1997         * rx/t-rx: Add rx100 under multi library matches option for nofpu
1998         option.
2000 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2002         PR tree-optimization/57441
2003         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2004         Don't limit size of incr_vec to number of candidates.
2006 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2008         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2009         and mips16 directories.
2010         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2011         (MULTILIB_DIRNAMES): Ditto.
2012         (MULTILIB_EXCEPTIONS): Add new exceptions.
2013         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2014         (MULTILIB_DIRNAMES): Ditto.
2015         (MULTILIB_EXCEPTIONS): Add new exceptions.
2017 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2018             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2020         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2021         SYMBOL_TINY_ABSOLUTE.
2022         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2023         SYMBOL_TINY_ABSOLUTE.
2024         (aarch64_expand_mov_immediate): Likewise.
2025         (aarch64_classify_symbol): Likewise.
2026         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2027         Permit SYMBOL_TINY_ABSOLUTE.
2028         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2030 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2031             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2033         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2034         Refactor if/switch.  Replace gcc_assert with if.
2036 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2038         * config/i386/i386.c (initial_ix86_tune_features): Enable
2039         FP Reassociation for AMD bdver1 and bdver2.
2041 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2043         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2044         and IMAGPART_EXPR do not occur within other handled_components.
2046 2013-05-29  Richard Biener  <rguenther@suse.de>
2048         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2049         access on whether the use is in the BB we currently try to
2050         vectorize.
2051         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2052         vectorize to vect_bb_slp_scalar_cost.
2054 2013-05-29  Richard Biener  <rguenther@suse.de>
2056         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2057         computing scalar cost offsetted by stmts that are kept live
2058         by scalar uses.
2059         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2060         for computation of scalar cost.
2062 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2064         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2066 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2068         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2069         array notation built-in reduction functions.
2070         * doc/passes.texi (Passes): Added documentation about changes done
2071         for Cilk Plus.
2072         * doc/invoke.texi (C Dialect Options): Added documentation about
2073         the -fcilkplus flag.
2074         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2075         (BUILTINS_DEF): Depend on cilkplus.def.
2076         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2077         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2078         * cilkplus.def: New file.
2080 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2082         PR rtl-optimization/57439
2083         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2085 2013-05-28  Easwaran Raman  <eraman@google.com>
2087         PR tree-optimization/57337
2088         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2089         (find_insert_point): Correctly identify the insertion point
2090         when two statements with the same UID is compared.
2092 2013-05-28  Richard Biener  <rguenther@suse.de>
2094         PR tree-optimization/56787
2095         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2096         from the list of data references.
2097         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2098         clobbers.
2099         (vect_analyze_loop_operations): Likewise.
2100         (vect_transform_loop): Remove clobbers.
2102 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2104         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2105         and REALPART_EXPRs have scalar type.
2107 2013-05-28  Richard Biener  <rguenther@suse.de>
2109         PR tree-optimization/57411
2110         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2111         virtual operands.
2112         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2113         virtual operand propagation.
2115 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2117         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2118         destination register for bmasksi_vis.
2119         (vector_init_bshuffle): Likewise.
2120         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2122 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2124         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2125         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2126         mode if the instruction isn't available in the original mode.
2127         * config/sparc/sparc.opt (mfix-ut699): New option.
2128         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2129         (divdf3): Turn into expander.
2130         (divdf3_nofix): New insn.
2131         (divdf3_fix): Likewise.
2132         (divsf3): Disable if -mfix-ut699.
2133         (sqrtdf2): Turn into expander.
2134         (sqrtdf2_nofix): New insn.
2135         (sqrtdf2_fix): Likewise.
2136         (sqrtsf2): Disable if -mfix-ut699.
2138 2013-05-27  Richard Biener  <rguenther@suse.de>
2140         PR middle-end/57412
2141         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2142         block for the new loop.
2144 2013-05-27  Richard Biener  <rguenther@suse.de>
2146         PR tree-optimization/57343
2147         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2148         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2149         (number_of_iterations_cond): Do not build the folded tree.
2151 2013-05-27  Richard Biener  <rguenther@suse.de>
2153         Revert
2154         PR middle-end/57381
2155         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2156         OEP_CONSTANT_ADDRESS_OF retained.
2158         PR tree-optimization/57417
2159         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2160         for unchanged base.
2161         (set_ssa_val_to): Compare addresses using
2162         get_addr_base_and_unit_offset.
2164 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2166         PR rtl-optimization/56833
2167         * postreload.c (move2add_record_mode): New function.
2168         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2169         (move2add_use_add2_insn): Use move2add_record_sym_value.
2170         (move2add_use_add3_insn): Likewise.
2171         (reload_cse_move2add): Use move2add_valid_value_p and
2172         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2173         affected regs by setting reg_mode to VOIDmode.
2174         (move2add_note_store): Don't pretend the inside of a SUBREG is
2175         the actual destination.  Invalidate single/leading registers by
2176         setting reg_mode to VOIDmode.
2177         Use move2add_record_sym_value, move2add_valid_value_p and
2178         move2add_record_mode.
2180 2013-05-27  Richard Biener  <rguenther@suse.de>
2182         PR tree-optimization/57396
2183         * tree-affine.c (double_int_constant_multiple_p): Properly
2184         return false for val == 0 and div != 0.
2186 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2188         * config/mips/mips.h: Use #elif in preprocessor conditions.
2190 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2192         PR target/53916
2193         * config/mips/constraints.md (kl): New constraint.
2194         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2195         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2196         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2197         from LO for MIPS16.
2198         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2200 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2202         PR target/55777
2203         * config/mips/mips.c (mips_can_inline_p): New function.
2204         (TARGET_CAN_INLINE_P): Define.
2206 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2208         * sched-int.h (ds_t, dw_t): Make unsigned int.
2209         Fix documentation that describes how all the ds_t bits are used.
2210         Reserve the last bit for delayed-branch scheduling.
2211         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2212         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2213         (gen_dep_weak_1): Remove prototype.
2214         * sched-deps.c (get_dep_weak_1): Make static.
2215         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2216         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2217         * doc/tm.texi: Regenerate.
2218         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2220 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2222         PR debug/56950
2223         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2225 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2226             Sandra Loosemore  <sandra@codesourcery.com>
2228         * config.gcc (powerpc-*): Allow native for with-cpu.
2230 2013-05-24  Jeff Law  <law@redhat.com>
2232         PR tree-optimization/57124
2233         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2234         conversion feeding a condition if the range has an overflow
2235         if -fstrict-overflow.  Add warnings for when we do make the
2236         transformation.
2238 2013-05-24  Dehao Chen  <dehao@google.com>
2240         * tree-cfg.c (locus_discrim_map): Fix the typo.
2241         (locus_discrim_hasher): Likewise.
2242         (locus_discrim_hasher::hash): Likewise.
2243         (locus_discrim_hasher::equal): Likewise.
2245 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2247         PR tree-optimization/57294
2248         * cgraph.h (ipa_record_stmt_references): Declare.
2249         * cgraphbuild.c (ipa_record_stmt_references): New function.
2250         (build_cgraph_edges): Use ipa_record_stmt_references.
2251         (rebuild_cgraph_edges): Likewise.
2252         (cgraph_rebuild_references): Likewise.
2253         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2254         associated with the old statement and build references from the
2255         newly built statements.
2256         * ipa-ref.c (ipa_remove_stmt_references): New function.
2257         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2259 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2261         * lra-constraints.c (emit_spill_move): Use smaller mode for
2262         mem-mem moves.
2263         (check_and_process_move): Consider mem-reg moves for secondary
2264         too.
2265         (curr_insn_transform): Don't lose insns emitted before for
2266         secondary memory moves.
2267         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2268         reg set up in the current insn.
2270 2013-05-24  Dehao Chen  <dehao@google.com>
2272         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2273         hash function.
2274         (locus_descrim_hasher::equal): Likewise.
2275         (build_gimple_cfg): New discriminator assignment algorithm.
2276         (make_edges): Likewise.
2277         (next_discriminator_for_locus): Likewise.
2278         (same_line_p): Likewise.
2279         (assign_discriminators): Likewise.
2280         (make_cond_expr_edges): Likewise.
2281         (make_gimple_switch_edges): Likewise.
2282         (make_goto_expr_edges): Likewise.
2283         (make_gimple_asm_edges): Likewise.
2285 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2287         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2288         X format specifier to only display bottom 16 bits.
2289         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2290         immediate to match for operand 2, since it will be masked.
2292 2013-05-24  Richard Biener  <rguenther@suse.de>
2294         PR tree-optimization/57287
2295         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2296         all SSA names that occur in abnormal PHIs.
2298 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2300         PR tree-ssa/57385
2301         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2302         that index is not negative.
2304 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2306         PR rtl-optimization/55177
2307         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2308         (simplify_byte_swapping_operation): New.
2309         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2310         (simplify_relational_operation_1): Deal with BSWAP.
2312 2013-05-23  Richard Henderson  <rth@redhat.com>
2314         PR target/56742
2315         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2316         (ix86_reorg): Call it.
2318 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2320         PR target/57379
2321         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2322         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2323         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2325 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2327         PR debug/57351
2328         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2330 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2331             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2333         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2334         * config/aarch64/constraints.md (Usa): Remove.
2335         * doc/md.texi (AArch64 Usa): Remove.
2337 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2338             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2340         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2341         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2342         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2343         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2345 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2347         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2348         instruction (AdvSIMD).
2349         * config/aarch64/aarch64-builtins.c
2350         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2351         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2353 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2355         PR middle-end/57347
2356         * tree.h (contains_bitfld_component_ref_p): Declare.
2357         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2358         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2359         caller.
2360         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2361         not access a bit-field.  Assert all final offsets are byte-aligned.
2363 2013-05-23  Richard Biener  <rguenther@suse.de>
2365         PR tree-optimization/57380
2366         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2367         least one invariant or re-used load.
2368         * passes.c (init_optimization_passes): Move pass_phiprop before
2369         pass_forwprop.
2371 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2373         * config/aarch64/aarch64-simd.md
2374         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2376 2013-05-23  Richard Biener  <rguenther@suse.de>
2378         PR middle-end/57381
2379         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2380         OEP_CONSTANT_ADDRESS_OF retained.
2382 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2384         PR middle-end/57344
2385         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2386         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2388 2013-05-23  Richard Biener  <rguenther@suse.de>
2390         PR rtl-optimization/57341
2391         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2392         instead of true_dependence.
2394 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2396         * bb-reorder.c (branch_threshold): Make const.
2397         (exec_threshold): Ditto.
2399 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2400             Pat Haugen <pthaugen@us.ibm.com>
2401             Peter Bergner <bergner@vnet.ibm.com>
2403         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2404         documentation for the power8 crypto builtins.
2406         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2408         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2409         macros for defining power8 builtin functions.
2410         (BU_P8V_AV_2): Likewise.
2411         (BU_P8V_AV_P): Likewise.
2412         (BU_P8V_VSX_1): Likewise.
2413         (BU_P8V_OVERLOAD_1): Likewise.
2414         (BU_P8V_OVERLOAD_2): Likewise.
2415         (BU_CRYPTO_1): Likewise.
2416         (BU_CRYPTO_2): Likewise.
2417         (BU_CRYPTO_3): Likewise.
2418         (BU_CRYPTO_OVERLOAD_1): Likewise.
2419         (BU_CRYPTO_OVERLOAD_2): Likewise.
2420         (XSCVSPDP): Fix typo, point to the correct instruction.
2421         (VCIPHER): Add power8 crypto builtins.
2422         (VCIPHERLAST): Likewise.
2423         (VNCIPHER): Likewise.
2424         (VNCIPHERLAST): Likewise.
2425         (VPMSUMB): Likewise.
2426         (VPMSUMH): Likewise.
2427         (VPMSUMW): Likewise.
2428         (VPERMXOR_V2DI): Likewise.
2429         (VPERMXOR_V4SI: Likewise.
2430         (VPERMXOR_V8HI: Likewise.
2431         (VPERMXOR_V16QI: Likewise.
2432         (VSHASIGMAW): Likewise.
2433         (VSHASIGMAD): Likewise.
2434         (VPMSUM): Likewise.
2435         (VPERMXOR): Likewise.
2436         (VSHASIGMA): Likewise.
2438         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2439         __CRYPTO__ if the crypto instructions are available.
2440         (altivec_overloaded_builtins): Add support for overloaded power8
2441         builtins.
2443         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2444         support for power8 crypto builtins.
2445         (builtin_function_type): Likewise.
2446         (altivec_init_builtins): Add support for builtins that take vector
2447         long long (V2DI) arguments.
2449         * config/rs6000/crypto.md: New file, define power8 crypto
2450         instructions.
2452 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2453             Pat Haugen <pthaugen@us.ibm.com>
2454             Peter Bergner <bergner@vnet.ibm.com>
2456         * doc/invoke.texi (Option Summary): Add power8 options.
2457         (RS/6000 and PowerPC Options): Likewise.
2459         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2460         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2461         wm, wn, wr documentation.
2463         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2464         registers if direct move instructions are enabled.
2465         (wn): New constraint for no registers.
2466         (wq): New constraint for quad word even GPR registers.
2467         (wr): New constraint if 64-bit instructions are enabled.
2468         (wv): New constraint if power8 vector instructions are enabled.
2469         (wQ): New constraint for quad word memory locations.
2471         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2472         constraint for 0..15 for crypto instructions.
2473         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2474         as GPR and floating point registers.
2475         (int_reg_operand): New predicate to match only GPR registers.
2476         (base_reg_operand): New predicate to match base registers.
2477         (quad_int_reg_operand): New predicate to match even GPR registers
2478         for quad memory operations.
2479         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2480         operations in both GPR and VSX registers.
2481         (quad_memory_operand): New predicate for quad memory operations.
2482         (reg_or_indexed_operand): New predicate for direct move support.
2484         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2485         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2486         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2487         (POWERPC_MASKS): Add power8 options.
2488         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2489         various options.
2491         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2492         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2494         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2495         (-mpower8-fusion): New power8 options.
2496         (-mpower8-fusion-sign): Likewise.
2497         (-mpower8-vector): Likewise.
2498         (-mcrypto): Likewise.
2499         (-mdirect-move): Likewise.
2500         (-mquad-memory): Likewise.
2502         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2503         power8.
2504         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2505         registers.
2506         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2507         (rs6000_debug_vector_unit): Add p8_vector.
2508         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2509         definitions.  Also print fusion state.
2510         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2511         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2512         (rs6000_option_override_internal): Add support for power8.
2513         (rs6000_common_init_builtins): Add debugging for skipped builtins
2514         if -mdebug=builtin.
2515         (rs6000_adjust_cost): Add power8 support.
2516         (rs6000_issue_rate): Likewise.
2517         (insn_must_be_first_in_group): Likewise.
2518         (insn_must_be_last_in_group): Likewise.
2519         (force_new_group): Likewise.
2520         (rs6000_register_move_cost): Likewise.
2521         (rs6000_opt_masks): Likewise.
2523         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2524         power8 capable assembler, default to power7 options.
2525         (TARGET_DIRECT_MOVE): Likewise.
2526         (TARGET_CRYPTO): Likewise.
2527         (TARGET_P8_VECTOR): Likewise.
2528         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2529         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2530         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2531         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2532         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2533         (TARGET_XSCVDPSPN): Likewise.
2534         (TARGET_XSCVSPDPN): Likewsie.
2535         (TARGET_SYNC_HI_QI): Likewise.
2536         (TARGET_SYNC_TI): Likewise.
2537         (MASK_CRYPTO): Likewise.
2538         (MASK_DIRECT_MOVE): Likewise.
2539         (MASK_P8_FUSION): Likewise.
2540         (MASK_P8_VECTOR): Likewise.
2541         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2542         temporary used by some of the direct move instructions to get two FP
2543         temporary registers does not force creation of a stack frame.
2544         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2545         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2546         that any VSX registers are tieable, even if they are also an
2547         Altivec vector mode.
2548         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2549         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2550         (RS6000_BTM_CRYPTO): Likewise.
2551         (RS6000_BTM_COMMON): Likewise.
2553         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2554         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2555         (enum rs6000_vector): Add power8 vector support.
2557 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2559         PR target/19599
2560         PR target/57340
2561         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2562         (any_sibcall_could_use_r3): this and handle indirect calls.
2563         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2565 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2567         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2569 2013-05-22  Richard Biener  <rguenther@suse.de>
2571         PR middle-end/57349
2572         * profile.c (branch_prob): Do not split blocks that are
2573         abnormally receiving from ECF_RETURNS_TWICE functions.
2575 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2577         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2578         address mode.  Move pointer mode initialization to the same place.
2580 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2582         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2583         while it has any effect.
2585 2013-05-21  Easwaran Raman  <eraman@google.com>
2587         PR tree-optimization/57322
2588         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2589         UID of the statement added to the BB to be 1.
2591 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2593         PR tree-optimization/57331
2594         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2595         of conversion from pointer type to integral type with integer.
2597 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2599         PR lto/57289
2600         * ipa-prop.c (ipa_read_node_info): Process param_used and
2601         controlled_uses in the same order as when writing.
2603 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2605         PR plugins/56754
2606         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2608 2013-05-21  Richard Biener  <rguenther@suse.de>
2610         PR tree-optimization/57318
2611         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2612         estimate stmts with side-effects as likely eliminated.
2614 2013-05-21  Richard Biener  <rguenther@suse.de>
2616         PR tree-optimization/57330
2617         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2618         preserve the call stmts fntype.
2620 2013-05-21  Richard Biener  <rguenther@suse.de>
2622         PR tree-optimization/57303
2623         * tree-ssa-sink.c (statement_sink_location): Improve killing
2624         stmt detection and properly handle self-assignments.
2626 2013-05-21  Christian Bruel  <christian.bruel@st.com>
2628         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2629         spanning registers. LEAF_REG_REMAP is supported only for contiguous
2630         registers. Set register size out of the PARALLEL loop.
2632 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
2634         PR target/56547
2635         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2636         (*fmasf4, *fmasf4_media): New insns.
2638 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2640         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2641         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2642         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2643         (mips_idiv_insns): Update the comments to say that the returned
2644         instruction counts are in units of BASE_INSN_LENGTH.
2645         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2646         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
2647         using 2 rather than 4 as the length of indirect MIPS16 and
2648         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
2649         length of a NOP.  Don't divide MIPS16 lengths by 2.
2650         (mips16_split_long_branches): Assume a branch is long if the
2651         length is greater than 4 rather than 8.
2652         * config/mips/mips.md (length): Give MIPS16 lengths directly,
2653         rather than multiplying them by 2.  Multiply instruction counts
2654         by BASE_INSN_LENGTH rather than 4.
2655         (*jump_mips16, tls_get_tp_mips16_<mode>)
2656         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2658 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2660         * config/mips/mips.md (extended_mips16): Remove branch case.
2661         (length): Remove duplicated extended_mips16 test.
2663 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2665         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2667 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
2669         * recog.h (Recog_data): Rename to...
2670         (recog_data_d): ...this.
2671         (recog_data): Update accordingly.
2672         * recog.c (recog_data): Likewise.
2673         * reload.c (save_recog_data): Likewise.
2674         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2675         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2677 2013-05-17  Julian Brown  <julian@codesourcery.com>
2679         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2680         found in a REG_EQUAL note, invalidate it.
2682 2013-05-17   Easwaran Raman  <eraman@google.com>
2684         * tree-ssa-reassoc.c (find_insert_point): New function.
2685         (insert_stmt_after): Likewise.
2686         (get_def_stmt): Likewise.
2687         (ensure_ops_are_available): Likewise.
2688         (not_dominated_by): Likewise.
2689         (rewrite_expr_tree): Do not move statements beyond what is
2690         necessary. Remove call to swap_ops_for_binary_stmt...
2691         (reassociate_bb): ... and move it here.
2692         (build_and_add_sum): Assign UIDs for new statements.
2693         (linearize_expr): Likewise.
2694         (do_reassoc): Renumber gimple statement UIDs.
2696 2013-05-17  Jan Hubicka  <jh@suse.cz>
2698         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2699         weakrefs.
2700         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2701         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2702         weakrefs.
2703         (output_weakrefs): Update.
2705 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
2706             Martin Jambor  <mjambor@suse.cz>
2708         PR middle-end/57276
2709         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2710         value that corresponds to the given aggval is found in values vector.
2712 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
2714         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2715         sse, sse2, sse3, ssse3 and sse4a flags to options.
2717 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
2719         * gengtype-state.c: (s_expr_writer): New class, to handle
2720         prettifying of output layout of s-expressions.
2721         (state_writer): New class, to write out gtype.state.
2722         (state_written_type_count): Move this variable into member data of
2723         state_writer.
2724         (s_expr_writer::s_expr_writer): New code: constructor for new class
2725         (state_writer::state_writer(): ditto
2726         (s_expr_writer::write_new_line): New function
2727         (s_expr_writer::write_any_indent): ditto
2728         (s_expr_writer::begin_s_expr): ditto
2729         (s_expr_writer::end_s_expr): ditto
2730         (write_state_fileloc): convert to method of state_writer...
2731         (state_writer:: write_state_fileloc): ...and use methods of
2732         s_expr_writer to write indentation into the gtype.state output file
2733         to visually represent the hierarchical structure of the list
2734         structures
2735         (write_state_fields): ditto, renaming to...
2736         (state_writer::write_state_fields)
2737         (write_state_a_string): ditto, renaming to...
2738         (state_writer::write_state_a_string)
2739         (write_state_string_option): ditto, renaming to...
2740         (state_writer::write_state_string_option)
2741         (write_state_type_option): ditto, renaming to...
2742         (state_writer::write_state_type_option)
2743         (write_state_nested_option): ditto, renaming to...
2744         (state_writer::write_state_nested_option)
2745         (write_state_option): ditto, renaming to...
2746         (state_writer::write_state_option)
2747         (write_state_options): ditto, renaming to...
2748         (state_writer::write_state_options)
2749         (write_state_lang_bitmap): ditto, renaming to...
2750         (state_writer::write_state_lang_bitmap)
2751         (write_state_version): ditto, renaming to...
2752         (state_writer::write_state_version)
2753         (write_state_scalar_type): ditto, renaming to...
2754         (state_writer::write_state_scalar_type)
2755         (write_state_string_type): ditto, renaming to...
2756         (state_writer::write_state_string_type)
2757         (write_state_undefined_type): ditto, renaming to...
2758         (state_writer::write_state_undefined_type)
2759         (write_state_struct_union_type): ditto, renaming to...
2760         (state_writer::write_state_struct_union_type)
2761         (write_state_struct_type): ditto, renaming to...
2762         (state_writer::write_state_struct_type)
2763         (write_state_user_struct_type): ditto, renaming to...
2764         (state_writer::write_state_user_struct_type)
2765         (write_state_lang_struct_type): ditto, renaming to...
2766         (state_writer::write_state_lang_struct_type)
2767         (write_state_param_struct_type): ditto, renaming to...
2768         (state_writer::write_state_param_struct_type)
2769         (write_state_pointer_type): ditto, renaming to...
2770         (state_writer::write_state_pointer_type)
2771         (write_state_array_type): ditto, renaming to...
2772         (state_writer::write_state_array_type)
2773         (write_state_gc_used): ditto, renaming to...
2774         (state_writer::write_state_gc_used)
2775         (write_state_common_type_content): ditto, renaming to...
2776         (state_writer::write_state_common_type_content)
2777         (write_state_type): ditto, renaming to...
2778         (state_writer::write_state_type)
2779         (write_state_pair_list): ditto, renaming to...
2780         (state_writer::write_state_pair_list)
2781         (write_state_pair): ditto, renaming to...
2782         (state_writer::write_state_pair)
2783         (write_state_typedefs): ditto, renaming to...
2784         (state_writer::write_state_typedefs)
2785         (write_state_structures): ditto, renaming to...
2786         (state_writer::write_state_structures)
2787         (write_state_param_structs): ditto, renaming to...
2788         (state_writer::write_state_param_structs)
2789         (write_state_variables): ditto, renaming to...
2790         (state_writer::write_state_variables)
2791         (write_state_srcdir): ditto, renaming to...
2792         (state_writer::write_state_srcdir)
2793         (write_state_files_list): ditto, renaming to...
2794         (state_writer::write_state_files_list)
2795         (write_state_languages): ditto, renaming to...
2796         (state_writer::write_state_languages)
2797         (write_state): create a state_writer instance and use it when
2798         writing out the state file
2800 2013-05-17  Mike Stump  <mikestump@comcast.net>
2802         PR rtl-optimization/57304
2803         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2804         accessing DF_REF_REAL_LOC.
2806 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2808         PR rtl-optimization/57281
2809         PR rtl-optimization/57300
2810         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2811         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2812         what the other splitter did if the registers are dead.
2814 2013-05-17  Richard Biener  <rguenther@suse.de>
2816         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2817         MEM_REF offsets.
2819 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2821         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2822         linking.
2824 2013-05-17  Marek Polacek  <polacek@redhat.com>
2826         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2827         length when doing non-zero store of storing '\0' to '\0'.
2829 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2831         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2832         vect_external_def oprnd1 with loop_vinfo, try to emit
2833         optional cast, negation and and stmts on the loop preheader
2834         edge instead of into the pattern def seq.
2836         PR tree-optimization/57051
2837         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2838         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2840 2013-05-16  Nick Clifton  <nickc@redhat.com>
2842         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2843         (rl78_is_naked_func): New function.
2844         (rl78_expand_prologue): Skip prologue generation for naked functions.
2845         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2846         * doc/extend.texi (naked): Add RL78 to the list of processors
2847         that supports this attribute.
2849 2013-05-16  Jeff Law  <law@redhat.com>
2851         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2853 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2855         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2856         cache parameters using detect_caches_amd also for CYRIX,
2857         NSC and TM2 signatures.
2859 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2860             Dzianis Kahanovich  <mahatma@eu.by>
2862         PR target/45359
2863         PR target/46396
2864         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2865         VIA/Centaur processors and determine their cache parameters
2866         using detect_caches_amd.
2868 2013-05-16  Teresa Johnson  <tejohnson@google.com>
2870         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2871         (rtl_verify_edges): New function.
2872         (rtl_verify_bb_insns): Ditto.
2873         (rtl_verify_bb_pointers): Ditto.
2874         (rtl_verify_bb_insn_chain): Ditto.
2875         (rtl_verify_fallthru): Ditto.
2876         (rtl_verify_bb_layout): Ditto.
2877         (rtl_verify_flow_info_1): Outline checks into new functions.
2878         (rtl_verify_flow_info): Ditto.
2880 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
2882         * cfghooks.c (copy_bbs): Add update_dominance argument.
2883         * cfghooks.h (copy_bbs): Update prototype.
2884         * tree-cfg.c (gimple_duplicate_sese_region):
2885         Add update_dominance argument.
2886         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2887         * tree-ssa-loop-ch.c (copy_loop_headers): Update
2888         gimple_duplicate_sese_region call.
2889         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2890         Update copy_bbs call.
2891         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2892         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2894 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2896         * tree-vectorizer.h (NUM_PATTERNS): Increment.
2897         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2898         vect_recog_rotate_pattern.
2899         (vect_recog_rotate_pattern): New function.
2901 2013-05-16  Jason Merrill  <jason@redhat.com>
2903         * Makefile.in (LLINKER): New variable.
2904         (mostlyclean): Remove link mutex.
2905         * configure.ac: Handle --enable-link-mutex.
2906         * lock-and-run.sh: New script.
2908 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2910         PR target/19599
2911         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2912         for NULL decl.
2914 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2916         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2918 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
2920         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2921         * config/arm/arm.c (next_consecutive_mem): New function.
2922         (gen_movmem_ldrd_strd): Likewise.
2923         * config/arm/arm.md (movmemqi): Update condition and code.
2924         (unaligned_loaddi, unaligned_storedi): New patterns.
2926 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2928         * config.gcc: Obsolete *-*-solaris2.9*.
2929         * doc/install.texi (Specific, *-*-solaris2*): Document it.
2931 2013-05-16  Richard Biener  <rguenther@suse.de>
2933         * passes.c (init_optimization_passes): Move pass_parallelize_loops
2934         earlier, after GRAPHITE transforms and IV canonicalization.
2936 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2938         * omp-low.c (extract_omp_for_data): For collapsed loops,
2939         if at least one of the loops is known at compile time to
2940         iterate zero times, set count to 0.
2941         (expand_omp_regimplify_p): New function.
2942         (expand_omp_for_generic): For collapsed loops, if at least
2943         one of the loops isn't known to iterate at least once,
2944         add runtime check with setting count to 0.
2945         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2946         For unsigned types if it isn't known at compile time that
2947         the loop will iterate at least once, add runtime check to bypass
2948         the whole loop if initial condition isn't true.
2950 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
2952         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2954 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
2956         PR middle-end/57286
2957         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2958         transformations to avoid an infinite loop.
2960 2013-05-16  Marek Polacek  <polacek@redhat.com>
2962         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2964 2013-05-15  Leif Ekblad  <leif@rdos.net>
2966         * config/i386/i386.c (ix86_decompose_address): Use
2967         DEFAULT_TLS_SEG_REG to access TLS segment register.
2968         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2969         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2970         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2972 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
2974         PR target/57260
2975         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2976         sibling calls to functions that would normally be lazily bound,
2977         unless $gp is call-clobbered.
2979 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
2981         * config/i386/i386.c (ix86_option_override_internal): Update
2982         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
2983         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2984         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2985         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2986         of TARGET_3DNOW.
2987         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2989 2013-05-15  Andreas Schwab  <schwab@suse.de>
2991         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2992         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
2993         third operand.
2995 2013-05-15  Teresa Johnson  <tejohnson@google.com>
2997         * loop-unroll.c (report_unroll_peel): Check decision before
2998         emitting unroll/peel message.
3000 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3002         * function.h (has_bb_partition): New rtl_data flag.
3003         (bb_reorder_complete): Ditto.
3004         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3005         instead of flag_reorder_blocks_and_partition.
3006         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3007         with some enhancements.
3008         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3009         * bb-reorder.c (connect_traces): Check for has_bb_partition
3010         instead of flag_reorder_blocks_and_partition.
3011         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3012         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3013         verify_hot_cold_block_grouping.
3014         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3016 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3018         PR target/19599
3019         * config/arm/predicates.md (call_insn_operand): New predicate.
3020         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3021         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3022         if insn is not a tail call.
3023         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3024         registers.
3025         * config/arm/arm.h (enum reg_class): New caller save register class.
3026         (REG_CLASS_NAMES): Likewise.
3027         (REG_CLASS_CONTENTS): Likewise.
3028         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3029         without decls.
3031 2013-05-15  Richard Biener  <rguenther@suse.de>
3033         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3034         of MSG_OPTIMIZED_LOCATIONS.
3035         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3036         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3037         message.
3038         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3039         of MSG_OPTIMIZED_LOCATIONS.
3040         (execute_vect_slp): Likewise.
3041         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3042         (vect_create_cond_for_alias_checks): Likewise.
3043         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3044         (vect_recog_widen_mult_pattern): Likewise.
3045         (vect_recog_widen_sum_pattern): Likewise.
3046         (vect_recog_over_widening_pattern): Likewise.
3047         (vect_recog_widen_shift_pattern): Likewise.
3048         (vect_recog_vector_vector_shift_pattern): Likewise.
3049         (vect_recog_divmod_pattern): Likewise.
3050         (vect_recog_mixed_size_cond_pattern): Likewise.
3051         (vect_recog_bool_pattern): Likewise.
3052         (vect_pattern_recog_1): Likewise.
3054 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3056         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3057         non-functions to builtin_unreachable.
3058         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3059         correct when new direct edges were discovered.
3061 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3063         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3064         header, print symbol order instead of node uid, print more information
3065         about indirect edge targets.
3066         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3067         uids.
3068         (ipa_make_edge_direct_to_target): Likewise.
3069         (remove_described_reference): Likewise.
3070         (propagate_controlled_uses): Likewise.
3071         (ipa_print_node_params): Also print symbol order.
3072         (ipcp_transform_function): Print symbol order instead of node uids.
3073         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3074         (cgraph_get_create_real_symbol_node): Likewise.
3075         * ipa-cp.c (print_lattice): Likewise.
3076         (print_all_lattices): Likewise.
3077         (determine_versionability): Likewise.
3078         (initialize_node_lattices): Likewise.
3079         (estimate_local_effects): Likewise.
3080         (update_profiling_info): Likewise.
3081         (create_specialized_node): Likewise.
3082         (perhaps_add_new_callers): Likewise.
3083         (decide_about_value): Likewise.
3084         (decide_whether_version_node): Likewise.
3085         (identify_dead_nodes): Likewise.
3086         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3087         (dump_inline_summary): Likewise.
3088         (estimate_node_size_and_time): Likewise.
3089         (inline_analyze_function): Likewise.
3090         * ipa-inline.c (report_inline_failed_reason): Likewise.
3091         (want_early_inline_function_p): Likewise.
3092         (edge_badness): Likewise.
3093         (update_edge_key): Likewise.
3094         (inline_small_functions): Likewise.  Add dumping of order to two other
3095         dumps.
3096         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3097         instead of node uids.
3098         (propagate_pure_const): Likewise.
3099         (propagate_pure_const): Likewise.
3100         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3101         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3102         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3103         of node uids.
3104         * tree-pretty-print.c (dump_function_header): Likewise.
3105         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3106         Print symbol order instead of node uids.
3108 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3110         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3111         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3113 2013-05-15  Richard Biener  <rguenther@suse.de>
3115         PR tree-optimization/57275
3116         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3117         return value for fail to do runtime alias checks for gather loads.
3119 2013-05-15  Jan Hubicka  <jh@suse.cz>
3121         PR lto/57038
3122         PR lto/47375
3123         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3124         weakrefs are not external.
3125         (lto_symtab_merge_decls): Fix thinko when dealing with
3126         non-lto_symtab decls.
3127         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3128         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3129         * varpool.c (dump_varpool_node): Dump more flags.
3131 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3133         * config/i386/i386.c (processor_alias_table): Add instruction
3134         FSGSBASE for AMD bdver3 architecture.
3136 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3138         * tree.c (warn_deprecated_use): Print file:line using locus color.
3139         * diagnostic.c (diagnostic_report_current_module): Print file:line
3140         and file:line:column using locus color.
3142 2013-05-14  Mike Stump  <mikestump@comcast.net>
3144         * gdbinit.in: Add __null.
3146 2013-05-14  Mike Stump  <mikestump@comcast.net>
3148         * recog.h: Rename struct recog_data to Recog_data.
3149         * recog.c: Likewise.
3150         * reload.c (can_reload_into): Likewise.
3151         * config/picochip/picochip.c: Likewise.
3153 2013-05-14  Mike Stump  <mikestump@comcast.net>
3155         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3157 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3159         * resource.h (struct resources): Remove unch_memory member.
3160         (CLEAR_RESOURCE): Don't clear unch_memory.
3161         * resource.c (mark_referenced_resources): Don't set it.
3162         (mark_set_resources): Likewise.
3163         (mark_target_live_regs): Don't clear it.
3164         (init_resource_info): Likewise.
3165         * reorg.c (resource_conflicts_p): Don't compare it.
3166         (redundant_insn): Don't set it.
3168         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3169         Remove prototypes.
3170         * emit-rtl.c (next_label): Remove unused function.
3171         (skip_consecutive_labels, link_cc0_insns): Move to ...
3172         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3173         only place where these functions are used, and make them static.
3175 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3177         * fold-const.c (fold_negate_expr): Handle vectors.
3178         (fold_truth_not_expr): Make it static.
3179         (fold_invert_truthvalue): New static function.
3180         (invert_truthvalue_loc): Handle vectors. Do not call
3181         fold_truth_not_expr directly.
3182         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3183         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3184         (fold_comparison): Handle vector constants.
3185         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3186         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3187         * tree.h (fold_truth_not_expr): Remove declaration.
3189 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3191         * config/aarch64/aarch64-simd.md
3192         (aarch64_vcond_internal<mode>): Rename to...
3193         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3194         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3195         float modes. Clarify all iterator modes.
3196         (vcond<mode><mode>): Use new name for vcond expanders.
3197         (vcond<v_cmp_result><mode>): Likewise.
3198         (vcondu<mode><mode>: Likewise.
3199         * config/aarch64/iterators.md (VDQF_COND): New.
3201 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3203         PR bootstrap/57266
3204         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3205         variable for the shift amount. Check that we shift by non-negative
3206         amounts.
3208 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3210         PR target/42017
3211         * config/arm/arm.h (EPILOGUE_USES): Only return true
3212         for LR_REGNUM after epilogue_completed.
3214 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3216         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3217         is error_mark_node.
3219 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3221         PR target/57261
3222         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3223         and Solaris 11+/x86 with gld.
3224         * configure: Regenerate.
3226 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3228         * expmed.c (expand_shift_1): Canonicalize rotates by
3229         constant bitsize / 2 to bitsize - 1.
3230         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3231         case ROTATERT>: Likewise.
3233         Revert:
3234         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3236         * config/i386/i386.md (rotateinv): New code attr.
3237         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3238         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3239         roll $31, %eax, etc.
3241 2013-05-14  Richard Biener  <rguenther@suse.de>
3243         PR middle-end/57235
3244         * tree-eh.c (sink_clobbers): Give up for successors with
3245         multiple predecessors and no virtual uses.
3247 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3249         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3250         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3252 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3254         PR middle-end/57251
3255         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3256         the case when both op0 and op1 have VOIDmode.
3258 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3260         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3261         in multiply-accumulate mode.
3263 2013-05-13  Guozhi Wei  <carrot@google.com>
3265         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3267 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3269         PR target/56975
3270         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3271         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3272         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3273         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3274         (ix86_expand_prologue): Likewise.
3275         (ix86_expand_split_stack_prologue): Likewise.
3276         (legitimate_pic_address_disp_p): Likewise.
3277         (legitimize_pic_address): Likewise.
3278         (legitimize_tls_address): Likewise.
3279         (legitimize_pe_coff_symbol): Likewise.
3280         (output_pic_addr_const): Likewise.
3281         (construct_plt_address): Likewise.
3282         (ix86_expand_call): Likewise.
3283         (x86_output_mi_thunk): Likewise.
3284         (x86_function_profiler): Likewise.
3286 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3288         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3289         similar switch cases.
3290         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3291         (aarch64_simd_mov_to_<mode>low): Delete.
3292         (aarch64_simd_mov_to_<mode>high): Delete.
3293         (move_lo_quad_<mode>): Add w<-r alternative.
3294         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3295         (aarch64_simd_mov_from_*): Update type attribute.
3296         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3297         statement.
3299 2013-05-13  Jan Hubicka  <jh@suse.cz>
3301         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3302         * config/i386/i386.c (ix86_compute_frame_layout,
3303         ix86_expand_epilogue, emit_i387_cw_initialization,
3304         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3305         ix86_local_alignment): Fix use of size/speed predicates.
3307 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3309         PR tree-optimization/45216
3310         PR tree-optimization/57157
3311         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3312         the (-Y) & (B - 1) variant if OP is |.
3313         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3314         return shifted.  Use (-op1) & (prec - 1) as other_amount
3315         instead of prec - op1.
3317 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3319         PR middle-end/42371
3320         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3321         (ipa_constant_data): New type.
3322         (ipa_jump_func): Use ipa_constant_data to hold information about
3323         constant jump functions.
3324         (ipa_get_jf_constant): Adjust to jump function type changes.
3325         (ipa_get_jf_constant_rdesc): New function.
3326         (ipa_param_descriptor): New field controlled_uses.
3327         (ipa_get_controlled_uses): New function.
3328         (ipa_set_controlled_uses): Likewise.
3329         * ipa-ref.h (ipa_find_reference): Declare.
3330         * ipa-prop.c (ipa_cst_ref_desc): New type.
3331         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3332         changes.
3333         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3334         New parameter cs.  Adjust all callers.
3335         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3336         (remove_described_reference): New function.
3337         (jfunc_rdesc_usable): Likewise.
3338         (try_make_edge_direct_simple_call): Decrement controlled use count,
3339         attempt to remove reference if it hits zero.
3340         (combine_controlled_uses_counters): New function.
3341         (propagate_controlled_uses): Likewise.
3342         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3343         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3344         (ipa_print_node_params): Print described use counter.
3345         (ipa_write_jump_function): Adjust to jump function type changes.
3346         (ipa_read_jump_function): New parameter CS, pass it to
3347         ipa_set_jf_constant.  Adjust caller.
3348         (ipa_write_node_info): Stream controlled use count
3349         (ipa_read_node_info): Likewise.
3350         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3351         asserting.
3352         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3353         count.  Remove cloning-added reference if it reaches zero.
3354         * ipa-ref.c (ipa_find_reference): New function.
3356 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3358         * config/i386/i386.c (processor_target_table): Modified default
3359         alignment values for AMD BD and BT architectures.
3361 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3363         * tree-vect-generic.c (uniform_vector_p): Move ...
3364         * tree.c (uniform_vector_p): ... here.
3365         * tree.h (uniform_vector_p): Declare it.
3366         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3367         into a scalar.
3369 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3371         PR tree-optimization/57230
3372         * tree-ssa-strlen.c (handle_char_store): Record length for
3373         array store from STRING_CST.
3375         PR tree-optimization/57230
3376         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3377         check.
3379 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3381         * config/epiphany/epiphany.c (epiphany_init): Check size of
3382         NUM_MODES_FOR_MODE_SWITCHING.
3383         (epiphany_expand_prologue):
3384         Remove CONFIG_REGNUM initial value handling code.
3385         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3386         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3387         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3388         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3389         Don't return 1 for FP_MODE_NONE.
3390         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3391         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3392         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3393         * config/epiphany/epiphany.md (save_config): New pattern.
3395 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3397         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3399 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3401         * config/i386/i386.md (memory): Handle sseishft1.
3402         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3403         (*vec_extractv2di_1): Ditto.
3405 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3407         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3408         saved registers.
3410 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3412         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3413         Add mthumb/march=armv7-a multilib.
3414         Add mthumb/march=armv7-r multilib.
3415         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3417 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3419         * config/v850/t-rtems: Add more multilibs.
3421 2013-05-10  Richard Biener  <rguenther@suse.de>
3423         PR tree-optimization/57214
3424         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3425         not propagate from SSA names that occur in abnormal PHI nodes.
3427 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3429         * stor-layout.c (element_precision): New function.
3430         * machmode.h (element_precision): Declare it.
3431         * tree.c (build_minus_one_cst): New function.
3432         (element_precision): Likewise.
3433         * tree.h (build_minus_one_cst): Declare new function.
3434         (element_precision): Likewise.
3435         * fold-const.c (operand_equal_p): Use element_precision.
3436         (fold_binary_loc): Handle vector types.
3437         * convert.c (convert_to_integer): Use element_precision.
3438         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3439         separately.
3441 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3443         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3444         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3445         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3446         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3447         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3448         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3449         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3450         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3451         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3452         (Uuw8): New constraints.
3453         (Usb4): Move into alphabetical order.
3454         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3455         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3456         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3457         previously unnamed patterns.
3458         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3459         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3460         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3461         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3462         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3463         of specific lengths.
3465 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3467         * config/i386/i386.md (rotateinv): New code attr.
3468         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3469         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3470         roll $31, %eax, etc.
3472         PR tree-optimization/45216
3473         PR tree-optimization/57157
3474         * tree-ssa-forwprop.c (simplify_rotate): New function.
3475         (ssa_forward_propagate_and_combine): Call it.
3477 2013-05-10  Richard Biener  <rguenther@suse.de>
3479         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3480         disable peeling when we version for aliasing.
3481         (vector_alignment_reachable_p): Honor explicit user alignment.
3482         (vect_supportable_dr_alignment): Likewise.
3483         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3484         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3485         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3486         then peeling to arrange for the cost-model check to come first.
3488 2013-05-10  Alan Modra  <amodra@gmail.com>
3490         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3491         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3492         * configure: Regenerate.
3494 2013-05-10  Alan Modra  <amodra@gmail.com>
3496         PR target/55033
3497         * varasm.c (default_elf_select_section): Move !DECL_P check..
3498         (get_named_section): ..to here before calling get_section_name.
3499         Adjust assertion.
3500         (default_section_type_flags): Add DECL_P check.
3501         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3502         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3504 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3506         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3507         When using gen_stack_adjust_str with a register offset, add a
3508         REG_FRAME_RELATED_EXPR note.
3510 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3512         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3513         (*vec_extractv4si_zext_mem): Ditto.
3514         (*vec_extractv2di): Add 0->x and x->x alternatives.
3515         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3516         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3518 2013-05-09  Jason Merrill  <jason@redhat.com>
3520         N3639 C++1y VLA support
3521         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3522         DECL_VALUE_EXPR.
3524         * tree.c (build_constructor_va): New.
3525         * tree.h: Declare it.
3527 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3529         PR lto/57084
3530         * gimple-fold.c (canonicalize_constructor_val): Call
3531         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3533 2013-05-09  Jan Hubicka  <jh@suse.cz>
3534             Richard Biener  <rguenther@suse.de>
3536         PR lto/54095
3537         * symtab.c (symtab_make_decl_local): Do not add private names.
3539 2013-05-09  Jan Hubicka  <jh@suse.cz>
3541         PR lto/54095
3542         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3543         (unlink_from_assembler_name_hash): Likewise.
3544         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3545         symtab_unregister_node, symtab_initialize_asm_name_hash,
3546         change_decl_assembler_name): Update.
3548 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3550         * config/aarch64/aarch64.md: New movtf split.
3551         (*movtf_aarch64): Update.
3552         (aarch64_movdi_tilow): Handle TF modes and rename to
3553         aarch64_movdi_<mode>low.
3554         (aarch64_movdi_tihigh): Handle TF modes and rename to
3555         aarch64_movdi_<mode>high
3556         (aarch64_movtihigh_di): Handle TF modes and rename to
3557         aarch64_mov<mode>high_di
3558         (aarch64_movtilow_di): Handle TF modes and rename to
3559         aarch64_mov<mode>low_di
3560         (aarch64_movtilow_tilow): Remove spurious whitespace.
3561         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3562         splits.
3563         (aarch64_print_operand): Update.
3565 2013-05-09  Alan Modra  <amodra@gmail.com>
3567         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3568         powerpc64le.
3569         * configure: Regenerate.
3571 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3573         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3574         splitter preparation statements.
3575         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3576         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3577         adjust_address_nv.
3579 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3581         * gimple-ssa-strength-reduction.c (count_candidates): Change
3582         return value to int.
3583         (analyze_candidates_and_replace): Change type of length to int.
3585 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3587         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3588         (*vec_extract<mode>): Use VI12_128 mode iterator.
3589         (*vec_extract<mode>_mem): Ditto.
3590         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3591         attribute.
3593 2013-05-08  Diego Novillo  <dnovillo@google.com>
3595         PR bootstrap/54659
3597         Revert:
3598         2012-08-17  Diego Novillo  <dnovillo@google.com>
3600         PR bootstrap/54281
3601         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3602         * config.in: Regenerate.
3603         * configure: Regenerate.
3604         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3606 2013-05-08  Jan Hubicka  <jh@suse.cz>
3608         PR lto/54095
3609         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3610         * cgraph.h (symtab_node_base): Add unique_name.
3611         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3612         input_overwrite_node, input_varpool_node): Stream unique_name.
3613         * cgraphclones.c (cgraph_create_virtual_clone,
3614         cgraph_function_versioning): Set unique_name.
3615         * ipa.c (function_and_variable_visibility): Set unique_name.
3617 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3619         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3620         (alloc_cand_and_find_basis): Restrict conditional candidate
3621         processing to CAND_MULTs.
3623 2013-05-08  Jan Hubicka  <jh@suse.cz>
3625         PR lto/54095
3626         lto-symtab.c (lto_symtab_symbol_p): New function.
3627         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3628         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3629         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3630         Skip static symbols.
3632 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
3634         PR tree-optimization/57200
3635         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3636         Only call inform if the preceding warning_at returns true.
3638 2013-05-07  Han Shen  <shenhan@google.com>
3640         * cfgexpand.c (record_or_union_type_has_array_p): New function.
3641         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3642         * common.opt (fstack-protector-strong): New option.
3643         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3644         * doc/invoke.texi (Optimization Options): Document
3645         "-fstack-protector-strong".
3646         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3648 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3650         * config/mips/mips.c (mips_machine_reorg2): Return 0.
3652 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
3654         * ira.c (update_equiv_regs): Add insn having equiv memory even if
3655         it is not lhs of the insn.
3656         (setup_reg_equiv): Remove insn having equiv memory which it is not
3657         lhs of the insn.
3658         * lra-constraints.c (process_address): Try to improve generation
3659         code for address base + disp.
3660         (lra_constraints): Make correct the code for checking insn setting
3661         up backward equivalence.  Remove insn only if it is in the init
3662         insn list.
3663         * lra-eliminations.c (update_reg_eliminate): Change return value.
3664         (lra_eliminate): Use the result.
3666 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
3668         * config/i386/sse.md (ssescalarnummask): New mode attribute.
3669         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3670         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3671         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3672         register target operands.
3673         (*vec_extractv8hi_sse2): New pattern.
3674         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3675         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3676         (*vec_extract<mode>_mem): New insn and split pattern.
3678 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
3680         * config/arm/arm.c (arm_asan_shadow_offset): New function.
3681         (TARGET_ASAN_SHADOW_OFFSET): Define.
3682         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3683         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3685 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3687         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3688         (incr_vec_index): Return -1 if increment not found.
3689         (create_add_on_incoming_edge): Assert if increment not found.
3690         (record_increment): Limit number of increments recorded.
3691         (all_phi_incrs_profitable): Return false if an increment not found.
3692         (replace_profitable_candidates): Don't process increments that were
3693         not recorded.
3694         (analyze_candidates_and_replace): Limit size of incr_vec.
3696 2013-05-07  Richard Biener  <rguenther@suse.de>
3698         * calls.c (special_function_p): setjmp-like functions are leaf.
3699         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3700         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3702 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
3704         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3705         (aarch64_simd_mov<mode>): New expander.
3706         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3707         (aarch64_simd_mov_to_<mode>high): Likewise.
3708         (aarch64_simd_mov_from_<mode>low): Likewise.
3709         (aarch64_simd_mov_from_<mode>high): Likewise.
3710         (aarch64_dup_lane<mode>): Update.
3711         (aarch64_dup_lanedi): New instruction pattern.
3712         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3713         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3715 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3717         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3718         (replace_mult_candidate): Remove unnecessary argument; remove
3719         unnecessary parameter from call to introduce_cast_before_cand.
3720         (replace_unconditional_candidate): Remove unnecessary parameter
3721         from call to replace_mult_candidate.
3722         (replace_conditional_candidate): Likewise.
3723         (insert_initializers): Use make_temp_ssa_name.
3724         (introduce_cast_before_cand): Remove unnecessary argument; use
3725         make_temp_ssa_name.
3726         (replace_one_candidate): Remove unnecessary argument; remove
3727         unnecessary parameter from calls to introduce_cast_before_cand.
3728         (replace_profitable_candidates): Remove unnecessary parameters
3729         from calls to replace_one_candidate.
3731 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3733         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3734         phi def as possibly hiding a basis for a CAND_ADD whose operands
3735         have been commuted in the analysis.
3736         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3738 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3740         * config/aarch64/aarch64.md
3741         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3742         shift value between 0-4.
3744 2013-05-07  Richard Biener  <rguenther@suse.de>
3746         * double-int.h (rshift): New overload.
3747         * double-int.c (rshift): New function.
3748         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3749         (create_reference_ops_from_ref): Remove.
3750         (vn_reference_insert): Use shared ops for constructing the
3751         reference and copy it.
3753 2013-05-07  Richard Biener  <rguenther@suse.de>
3755         PR middle-end/57190
3756         * tree-eh.c (sink_clobbers): Properly propagate
3757         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3759 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
3761         PR tree-optimization/57149
3762         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3763         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3764         collect_phi_def_edges, execute_late_warn_uninitialized): Use
3765         uninit_undefined_value_p instead of ssa_undefined_value_p.
3767         PR debug/57184
3768         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3769         for modifier == EXPAND_INITIALIZER.
3771 2013-05-07  Anton Blanchard  <anton@samba.org>
3773         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3774         for powerpc64 little endian.
3775         * configure: Regenerate.
3777 2013-05-06  Graham Stott  <grahams@btinternet.com>
3779         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3780         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3781         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3782         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3784 2013-05-06  Graham Stott  <grahams@btinternet.com>
3786         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3787         codes which allow non-lvalues.
3789 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
3791         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3792         components are all 1s.
3793         (integer_minus_onep): New function.
3794         * tree.h (integer_minus_onep): Declare it.
3795         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3796         integer_minus_onep instead of integer_all_onesp.
3798 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3800         PR target/52933
3801         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3802         variations of these patterns.
3804 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3806         * config/i386/i386.md (isa): Add x64_sse4 member.
3807         (enabled): Handle x64_sse4.
3808         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3809         instruction for 64bit SSE4_1 targets.  Update insn attributes.
3810         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3811         instruction for SSE4_1 targets.  Update insn attributes.
3812         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3813         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3814         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3815         const_1 selector.
3816         (*vec_extractv4si): Rename from *sse4_1_pextrd.
3817         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3818         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3820 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3822         PR target/57108
3823         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3825 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
3827         * final.c (do_assembler_dialects): Don't handle curly braces and
3828         vertical bar escaped by % as dialect delimiters.
3829         (output_asm_insn): Print curly braces and vertical bar if escaped
3830         by % and ASSEMBLER_DIALECT defined.
3831         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3832         * doc/tm.texi: Regenerated.
3834 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3836         * config/mips/mips.c: Include tree-pass.h.
3837         (mips_reorg): Split in pre- and post-dbr_schedule parts.
3838         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3839         (pass_mips_machine_reorg2): New machine specific pass.
3840         (insert_pass_mips_machine_reorg2): New pass plugin definition.
3841         (mips_option_override): Register the new pass.
3842         * rtl.h (cleanup_barriers): Remove prototype.
3843         (dbr_schedule): Likewise.
3844         * jump.c (cleanup_barriers): Make static.
3845         * reorg.c (dbr_schedule): Likewise.
3847 2013-05-06  Richard Biener  <rguenther@suse.de>
3849         PR tree-optimization/57185
3850         * tree-parloops.c (add_field_for_reduction): Handle anonymous
3851         SSA names properly.
3853 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3855         PR target/57106
3856         * config/i386/i386.c (add_parameter_dependencies): Add dependence
3857         between "first_arg" and "insn", not "last" and "insn".
3859 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3861         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3862         (find_candidates_in_block): Re-enable slsr_process_phi.
3863         (create_phi_basis): Fix double counting of candidate adjustment.
3865 2013-05-06  Richard Biener  <rguenther@suse.de>
3867         PR middle-end/57147
3868         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3869         the edge is also fallthru, preserve it and just clear the
3870         abnormal flag.
3871         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3872         also complex, preserve that and just clear the fallthru flag.
3873         * tree-inline.c (update_ssa_across_abnormal_edges): Also
3874         update virtual operands.
3876 2013-05-06  Alan Modra  <amodra@gmail.com>
3878         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3879         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3880         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3881         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3882         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3883         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3885 2013-05-06  Alan Modra  <amodra@gmail.com>
3887         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3888         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
3889         (DEFAULT_ASM_ENDIAN): Define.
3890         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3891         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3892         Update -K PIC clause from sysv4.h.
3893         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3894         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3896 2013-05-06  Alan Modra  <amodra@gmail.com>
3898         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3899         twice for little-endian.
3900         (ashrdi3_no_power, ashrdi3): Support little-endian.
3902 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3904         PR target/55303
3905         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3906         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3907         related expanders.
3908         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3909         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3910         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3911         New predicates.
3913 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3914             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3916         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3917         * config/pa/pa.opt: Make mbig-switch a no-op.
3918         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3919         (CASE_VECTOR_MODE): Always return SImode.
3920         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3921         for the !TARGET_BIG_SWITCH case.
3922         * config/pa/pa-linux.h: Likewise.
3923         * config/pa/pa-openbsd.h: Likewise.
3924         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3925         * config/pa/pa.md (short_jump): Remove define_insn.
3926         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3927         (casesi0): Remove define_insn.
3928         (type): Remove btable_branch.
3929         (pa_combine_type): Likewise.
3930         (in_nullified_branch_delay): Likewise.
3931         (in_call_delay): Likewise.
3932         (define_delay): Likewise.
3933         (define_insn_reservation "Z3"): Likewise.
3934         (define_insn_reservation "Z4"): Likewise.
3935         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3936         (pa_adjust_insn_length): Remove adjustment for btable branches.
3937         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3938         and mno-big-switch
3940 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
3942         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3943         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3944         Add m->r,x alternatives.
3945         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3946         splitters using SWI48x mode iterator.
3947         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
3948         TARGET_64BIT.  Add m->x alternative.
3949         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3950         Add o->x alternative.  Enable for TARGET_SSE.
3951         (sse_storeq): Remove expander.
3952         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3953         with memory input operand.
3954         (*vec_extractv2di_1 splitter): New.
3955         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3956         * config/i386/i386.md (ssevecmodelower): New mode attribute.
3958 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3960         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
3961         (INT_LOWPART): Delete.
3962         (extract_MB): Adjust.
3963         (extract_ME): Adjust.
3964         (print_operand): Adjust.
3966 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3968         * config/rs6000/predicates.md (reg_or_add_cint_operand,
3969         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3970         (reg_or_logical_cint_operand, easy_fp_constant,
3971         logical_const_operand): Delete "CONST_DOUBLE" case.
3972         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3973         "HOST_BITS_PER_WIDE_INT == 64" test.
3974         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
3975         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3976         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3977         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3978         test.
3979         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3980         CONST_DOUBLE DImode/VOIDmode case.
3981         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3982         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
3983         CONST_DOUBLE VOIDmode case.
3984         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3985         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3986         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3987         Delete CONST_DOUBLE case.
3988         (splitters for mov FMOVE64 const_double): Delete
3989         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
3990         "HOST_BITS_PER_WIDE_INT >= 64" test.
3991         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3992         case.
3993         (mov DI const_double): Delete.
3995 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
3997         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3998         on op shows all bits zero in mode of a lowpart subreg, return zero.
4000 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4002         PR target/57150
4003         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4004         to save TFmode registers and DImode to save TImode registers for
4005         caller save operations.
4006         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4007         mark being partially clobbered since they only use the first
4008         double word.
4010         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4011         and TDmode only use the upper 64-bits of each VSX register.
4013 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4015         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4016         (find_candidates_in_block): Disable slsr_process_phi.
4018 2013-05-03  Guozhi Wei  <carrot@google.com>
4020         * coverage.c (coverage_obj_init): Move the construction of gcov
4021         constructor to ...
4022         (build_init_ctor): ... here.
4024 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4026         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4027         (slsr_cand_d): Redefine def_phi.
4028         (stride_status, phi_adjust_status, count_phis_status): New enums.
4029         (find_phi_def): New.
4030         (find_basis_for_base_expr): New.
4031         (find_basis_for_candidate): Handle hidden bases.
4032         (alloc_cand_and_find_basis): Handle phi candidates.
4033         (slsr_process_phi): New.
4034         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4035         (create_mul_imm_cand): Likewise.
4036         (create_add_ssa_cand): Exclude phi base candidates.
4037         (create_add_imm_cand): Likewise.
4038         (slsr_process_cast): Likewise.
4039         (slsr_process_copy): Likewise.
4040         (find_candidates_in_block): Handle phi candidates.
4041         (dump_candidate): Likewise.
4042         (unconditional_cands): Delete.
4043         (unconditional_cands_with_known_stride_p): Delete.
4044         (phi_dependent_cand_p): New.
4045         (cand_increment): Handle phi-dependent candidates.
4046         (replace_dependent): Delete.
4047         (replace_mult_candidate): New.
4048         (replace_unconditional_candidate): New.
4049         (incr_vec_index): Move to avoid forward reference.
4050         (create_add_on_incoming_edge): New.
4051         (create_phi_basis): New.
4052         (replace_dependents): Delete.
4053         (replace_conditional_candidate): New.
4054         (phi_add_costs): New.
4055         (replace_uncond_cands_and_profitable_phis): New.
4056         (record_increment): Handle phi adjustments.
4057         (record_phi_increments): New.
4058         (record_increments): Handle phi adjustments.
4059         (phi_incr_cost): New.
4060         (lowest_cost_path): Handle phis.
4061         (total_savings): Likewise.
4062         (analyze_increments): Likewise.
4063         (ncd_with_phi): New.
4064         (ncd_of_cand_and_phis): New.
4065         (nearest_common_dominator_for_cands): Handle phi increments.
4066         (all_phi_incrs_profitable): New.
4067         (replace_profitable_candidates): Handle phi-dependent candidates.
4068         (analyze_candidates_and_replace): Likewise.
4070 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4072         PR bootstrap/57154
4073         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4074         do not exceed REG_BR_PROB_BASE.
4076 2013-05-03  Jeff Law  <law@redhat.com>
4078         PR tree-optimization/57144
4079         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4080         operand of the condition will bit into the new type when eliminating
4081         a cast feeding a condition.
4083 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4085         PR rtl-optimization/57130
4086         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4087         of COMPARE as in_code to the recursive call if needed.
4089 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4091         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4092         (enabled): Handle new members.
4093         * config/i386/sse.md (*vec_concatv2si): Merge from
4094         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4095         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4097 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4099         PR tree-optimization/57027
4100         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4101         for fnms opportunity, check we got the prerequisite kind
4102         of tree / gimple before using accessor functions.
4104 2013-05-03  Richard Biener  <rguenther@suse.de>
4106         * double-int.h (lshift): New overload without precision
4107         and arith argument.
4108         (operator *=, operator +=, operator -=): Move ...
4109         * double-int.c (operator *=, operator +=, operator -=): ... here
4110         and implement more efficiently.
4111         (mul_double_with_sign): Remove.
4112         (lshift_double): Adjust to take unsinged shift argument, push
4113         dispatching code to callers.
4114         (mul_double_wide_with_sign): Add early out for callers that
4115         are not interested in high parts or overflow.
4116         (lshift): New function.
4117         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4118         dispatch code here.
4119         (lrotate, rrotate): Use logical shifts.
4120         * expr.c (get_inner_reference): Use lshift.
4121         * fixed-value.c (do_fixed_divide): Likewise.
4122         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4123         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4124         (indirect_refs_may_alias_p): Likewise.
4125         (stmt_kills_ref_p_1): Likewise.
4127 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4129         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4131 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4133         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4134         scalar form of FABD instruction.
4136 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4138         * lra-constraints.c (process_alt_operands): Add checking alt
4139         number to choose the best alternative.
4141 2013-05-02  Richard Biener  <rguenther@suse.de>
4143         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4144         bitmap and its handling.
4145         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4147 2013-05-02  Richard Biener  <rguenther@suse.de>
4149         PR middle-end/57140
4150         * tree-inline.c (copy_loops): Properly handle removed loops.
4151         (copy_cfg_body): Mark destination loops for fixup if source
4152         loops needed fixup.
4154 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4156         PR target/56732
4157         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4158         generating simple_return for naked functions.
4160 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4162         PR middle-end/56988
4163         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4164         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4165         flags match.
4166         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4167         ipa_agg_replacement_value structures.
4168         (known_aggs_to_agg_replacement_list): Likewise.
4169         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4170         (read_agg_replacement_chain): Likewise.
4171         (ipcp_transform_function): Also check that by_ref flags match.
4173 2013-05-02  Richard Biener  <rguenther@suse.de>
4175         * graphds.h (struct graph): Add obstack member.
4176         * graphds.c (new_graph): Initialize obstack and allocate
4177         vertices from it.
4178         (add_edge): Allocate edge from the obstack.
4179         (free_graph): Free the obstack instead of all edges and vertices.
4181 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4183         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4184         divides.
4185         * cfg.c (update_bb_profile_for_threading): Ditto.
4186         * tree-inline.c (copy_bb): Ditto.
4187         (copy_edges_for_bb): Ditto.
4188         (initialize_cfun): Ditto.
4189         (copy_cfg_body): Ditto.
4190         (expand_call_inline): Ditto.
4191         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4192         (estimate_node_size_and_time): Ditto.
4193         (inline_merge_summary): Ditto.
4194         * cgraphclones.c (cgraph_clone_edge): Ditto.
4195         (cgraph_clone_node): Ditto.
4196         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4197         (compute_trg_info): Ditto.
4199 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4201         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4202         S reg when fp attribute set.
4203         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4205 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4207         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4208         New pattern.
4209         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4210         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4211         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4213 2013-05-02  Richard Biener  <rguenther@suse.de>
4215         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4216         (struct instantiate_cache_entry): New type.
4217         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4218         (struct instantiate_cache_type): New type.
4219         (set_instantiated_value, get_instantiated_value): Remove.
4220         (get_instantiated_value_entry): New function.
4221         (instantiate_scev_name): Use the new cache and adjust.
4222         (instantiate_scev_poly): Adjust.
4223         (instantiate_scev_binary): Likewise.
4224         (instantiate_array_ref): Likewise.
4225         (instantiate_scev_convert): Likewise.
4226         (instantiate_scev_not): Likewise.
4227         (instantiate_scev_3): Likewise.
4228         (instantiate_scev_2): Likewise.
4229         (instantiate_scev_r): Likewise.
4230         (instantiate_scev): Likewise.
4231         (resolve_mixers): Likewise.
4233 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4235         PR target/57091
4236         * lra-constraints.c (best_small_class_operands_num): Remove.
4237         (process_alt_operands): Remove small_class_operands_num.  Take
4238         small classes operands into losers and only if the operand is not
4239         matched.  Modify debugging output.
4240         (curr_insn_transform): Remove best_small_class_operands_num.
4241         Print insn name.
4243 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4245         * config/aarch64/aarch64-builtins.c
4246         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4247         * config/aarch64/aarch64-simd-builtins.def
4248         (reduc_splus_): Add new modes.
4249         (reduc_uplus_): New.
4250         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4251         (reduc_uplus_v4sf): Likewise.
4252         (reduc_splus_v4sf): Likewise.
4253         (aarch64_addv<mode>): Likewise.
4254         (reduc_uplus_<mode>): Likewise.
4255         (reduc_splus_<mode>): Likewise.
4256         (aarch64_addvv2di): Likewise.
4257         (reduc_uplus_v2di): Likewise.
4258         (reduc_splus_v2di): Likewise.
4259         (aarch64_addvv2si): Likewise.
4260         (reduc_uplus_v2si): Likewise.
4261         (reduc_splus_v2si): Likewise.
4262         (reduc_<sur>plus_<mode>): New.
4263         (reduc_<sur>plus_v2di): Likewise.
4264         (reduc_<sur>plus_v2si): Likewise.
4265         (reduc_<sur>plus_v4sf): Likewise.
4266         (aarch64_addpv4sf): Likewise.
4267         * config/aarch64/arm_neon.h
4268         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4269         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4270         add UNSPEC_SADDV, UNSPEC_UADDV.
4271         (SUADDV): New.
4272         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4274 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4276         * config/aarch64/arm_neon.h
4277         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4279 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4281         * config/aarch64/aarch64-builtins
4282         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4284 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4286         * config/aarch64/aarch64-simd-builtins.def
4287         (reduc_smax_): New.
4288         (reduc_smin_): Likewise.
4289         (reduc_umax_): Likewise.
4290         (reduc_umin_): Likewise.
4291         (reduc_smax_nan_): Likewise.
4292         (reduc_smin_nan_): Likewise.
4293         (fmax): Remove.
4294         (fmin): Likewise.
4295         (smax): Update for V2SF, V4SF and V2DF modes.
4296         (smin): Likewise.
4297         (smax_nan): New.
4298         (smin_nan): Likewise.
4299         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4300         (<su><maxmin><mode>3): ...This, refactor.
4301         (s<maxmin><mode>3): New.
4302         (<maxmin_uns><mode>3): Likewise.
4303         (reduc_<maxmin_uns>_<mode>): Refactor.
4304         (reduc_<maxmin_uns>_v4sf): Likewise.
4305         (reduc_<maxmin_uns>_v2si): Likewise.
4306         (aarch64_<fmaxmin><mode>: Remove.
4307         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4308         new builtin names.
4309         (vmin<q>_f<32,64>): Likewise.
4310         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4311         (FMAXMIN): New.
4312         (su): Add mappings for smax, smin, umax, umin.
4313         (maxmin): New.
4314         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4315         (FMAXMIN): Rename as...
4316         (FMAXMIN_UNS): ...This.
4317         (maxminv): Remove.
4318         (fmaxminv): Likewise.
4319         (fmaxmin): Likewise.
4320         (maxmin_uns): New.
4321         (maxmin_uns_op): Likewise.
4323 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4325         * config/aarch64/arm_neon.h
4326         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4327         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4328         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4330 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4332         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4333         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4335 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4337         * config/aarch64/aarch64-simd.md
4338         (vcond<mode>_internal): Handle special cases for constant masks.
4339         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4340         (vcondu<mode><mode>): Likewise.
4341         (vcond<v_cmp_result><mode>): New.
4343 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4345         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4346         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4347         * config/aarch64/aarch64-simd-builtins.def
4348         (cmeq): Update to BUILTIN_VALLDI.
4349         (cmgt): Likewise.
4350         (cmge): Likewise.
4351         (cmle): Likewise.
4352         (cmlt): Likewise.
4353         * config/aarch64/arm_neon.h
4354         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4355         to builtins or C as appropriate.
4357 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4359         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4360         (cmgeu): ...This.
4361         (cmhi): Rename to...
4362         (cmgtu): ...This.
4363         * config/aarch64/aarch64-simd.md
4364         (simd_mode): Add SF.
4365         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4366         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4367         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4368         (cstore<mode>_neg): ...This.
4369         * config/aarch64/iterators.md
4370         (VALLF): new.
4371         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4372         (COMPARISONS): New.
4373         (UCOMPARISONS): Likewise.
4374         (optab): Add missing comparisons.
4375         (n_optab): New.
4376         (cmp_1): Likewise.
4377         (cmp_2): Likewise.
4378         (CMP): Likewise.
4379         (cmp): Remove.
4380         (VCMP_S): Likewise.
4381         (VCMP_U): Likewise.
4382         (V_cmp_result): Add DF, SF modes.
4383         (v_cmp_result): Likewise.
4384         (v): Likewise.
4385         (vmtype): Likewise.
4386         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4388 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4390         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4391         define_insn to define_insn_and_split.
4392         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4393         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4394         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4395         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4396         (thumb2_negscc): Likewise.
4398 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4400         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4402 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4404         * config/arm/thumb2.md: Remove trailing whitespaces.
4406 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4408         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4409         Use gen_int_mode rather than GEN_INT.
4411 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4413         * value-prof.c (stream_in_histogram_value): Remove the strayed
4414         debug_gimple_stmt.
4416 2013-04-30  Richard Biener  <rguenther@suse.de>
4418         PR middle-end/57122
4419         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4421 2013-04-30  Richard Biener  <rguenther@suse.de>
4423         PR middle-end/57107
4424         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4426 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4428         PR rtl-optimization/56957
4429         PR rtl-optimization/57105
4430         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4431         variable.  Use just INSN_UID for determining whether an insn
4432         should be only disconnected from the insn stream.
4433         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4435 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4437         PR tree-optimization/57104
4438         * tsan.c (instrument_expr): Don't instrument accesses to
4439         DECL_HARD_REGISTER VAR_DECLs.
4441 2013-04-30  Richard Biener  <rguenther@suse.de>
4443         * function.h (loops_for_fn): New inline function.
4444         (set_loops_for_fn): Likewise.
4445         * cfgloop.h (place_new_loop): Add struct function parameter.
4446         (get_loop): Likewise.
4447         (get_loops): Likewise.
4448         (number_of_loops): Likewise.
4449         (fel_next): Adjust.
4450         (fel_init): Likewise.
4451         * cfg.c (get_loop_copy): Adjust.
4452         * cfgloop.c (flow_loops_dump): Likewise.
4453         (record_loop_exits): Likewise.
4454         (verify_loop_structure): Likewise.
4455         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4456         (estimate_reg_pressure_cost): Likewise.
4457         (mark_loop_exit_edges): Likewise.
4458         * cfgloopmanip.c (place_new_loop): Likewise.
4459         (add_loop): Likewise.
4460         (duplicate_loop): Likewise.
4461         * graph.c (draw_cfg_nodes): Likewise.
4462         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4463         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4464         (extract_affine_chrec): Likewise.
4465         (build_scop_iteration_domain): Likewise.
4466         * graphite.c (graphite_initialize): Likewise.
4467         * ira-build.c (create_loop_tree_nodes): Likewise.
4468         (more_one_region_p): Likewise.
4469         (rebuild_regno_allocno_maps): Likewise.
4470         (mark_loops_for_removal): Likewise.
4471         (mark_all_loops_for_removal): Likewise.
4472         (remove_unnecessary_regions): Likewise.
4473         (ira_build): Likewise.
4474         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4475         * loop-init.c (fix_loop_structure): Likewise.
4476         (gate_rtl_move_loop_invariants): Likewise.
4477         (gate_rtl_unswitch): Likewise.
4478         (gate_rtl_unroll_and_peel_loops): Likewise.
4479         (rtl_doloop): Likewise.
4480         * lto-streamer-in.c (input_cfg): Likewise.
4481         * lto-streamer-out.c (output_cfg): Likewise.
4482         * modulo-sched.c (sms_schedule): Likewise.
4483         * predict.c (tree_estimate_probability): Likewise.
4484         (tree_estimate_probability_driver): Likewise.
4485         (estimate_loops): Likewise.
4486         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4487         (move_sese_region_to_fn): Likewise.
4488         (debug_loop_num): Likewise.
4489         * tree-chrec.c (chrec_evaluate): Likewise.
4490         (hide_evolution_in_other_loops_than_loop): Likewise.
4491         (chrec_component_in_loop_num): Likewise.
4492         (reset_evolution_in_loop): Likewise.
4493         (evolution_function_is_invariant_rec_p): Likewise.
4494         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4495         * tree-inline.c (copy_loops): Likewise.
4496         (copy_cfg_body): Likewise.
4497         (tree_function_versioning): Likewise.
4498         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4499         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4500         Likewise.
4501         (add_to_evolution_1): Likewise.
4502         (scev_const_prop): Likewise.
4503         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4504         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4505         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4506         (tree_ssa_lim_initialize): Likewise.
4507         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4508         (verify_loop_closed_ssa): Likewise.
4509         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4510         (tree_ssa_loop_im): Likewise.
4511         (tree_ssa_loop_unswitch): Likewise.
4512         (tree_vectorize): Likewise.
4513         (check_data_deps): Likewise.
4514         (tree_ssa_loop_ivcanon): Likewise.
4515         (tree_ssa_loop_bounds): Likewise.
4516         (tree_complete_unroll): Likewise.
4517         (tree_complete_unroll_inner): Likewise.
4518         (tree_parallelize_loops): Likewise.
4519         (tree_ssa_loop_prefetch): Likewise.
4520         (tree_ssa_loop_ivopts): Likewise.
4521         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4522         * tree-vectorizer.c (vectorize_loops): Likewise.
4524 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4526         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4527         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4528         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4529         with EABI_LINK_SPEC.
4531 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4533         PR target/44578
4534         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4535         alternative.
4537 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4539         PR target/57097
4540         * lra-constraints.c (process_alt_operands): Discourage a bit more
4541         using memory for pseudos.  Print cost dump for alternatives.
4542         Modify cost values for conflicts with early clobbers.
4543         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4545 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4547         PR target/57098
4548         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4550 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4552         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4553         from/to S register.
4554         (movdi_aarch64): Support LDR/STR from/to D register.
4556 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4558         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4559         or higher by default.
4561 2013-04-29  Richard Biener  <rguenther@suse.de>
4563         PR middle-end/57075
4564         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4565         even if not adding abnormal edges for calls that can make
4566         abnormal gotos.
4568 2013-04-29  Richard Biener  <rguenther@suse.de>
4570         PR middle-end/57103
4571         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4572         TREE_BLOCK.
4573         (move_stmt_r): Remove redundant checking.
4575 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4577         PR bootstrap/57077
4578         * basic-block.h (apply_scale): New function.
4579         (apply_probability): Use apply_scale.
4580         * gimple-streamer-in.c (input_bb): Ditto.
4581         * lto-streamer-in.c (input_cfg): Ditto.
4582         * lto-cgraph.c (merge_profile_summaries): Ditto.
4583         * tree-optimize.c (execute_fixup_cfg): Ditto.
4584         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4585         (copy_edges_for_bb): Ditto.
4586         (copy_cfg_body): Ditto.
4588 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4590         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4591         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4592         (tail_merge_optimize): Handle current_loops == NULL.
4594 2013-04-26  Jeff Law  <law@redhat.com>
4596         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4597         (simplify_cond_using_ranges): Generalize code to simplify
4598         COND_EXPRs where one argument is a constant and the other
4599         is an SSA_NAME created by an integral type conversion.
4601 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4603         * config/arm/arm.md (store_minmaxsi): Use only when
4604         optimize_insn_for_size_p.
4606 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4608         PR target/57108
4609         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4611 2013-04-29  Richard Biener  <rguenther@suse.de>
4613         PR middle-end/57089
4614         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4615         loop tree make sure to schedule a fixup for the child as well.
4616         (expand_omp_for_generic): Properly add loops.
4617         (expand_omp_for_static_nochunk): Likewise.
4618         (expand_omp_for_static_chunk): Likewise.
4619         (expand_omp_for): For the degenerate case fixup loops.
4620         (expand_omp_sections): Fix default bb placement in loops.
4621         (expand_omp_atomic_pipeline): Properly add loops.
4623 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4625         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4627 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4629         * tree-ssa-tail-merge.c: Update header comment.
4631 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4633         * config/aarch64/arm_neon.h
4634         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4635         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4636         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4637         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4638         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4639         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4640         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4641         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4643 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4645         * config/aarch64/aarch64-simd.md
4646         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4647         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4648         fix_trunc, fixuns_trunc.
4649         (ftrunc<VDQF:mode>2): New.
4650         * config/aarch64/iterators.md (optab): Add fix, fixuns.
4651         (fix_trunc_optab): New.
4653 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4655         * config/aarch64/aarch64-builtins.c
4656         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4657         iceilf, lround, iroundf.
4659 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4661         PR target/54349
4662         * config/i386/i386.h (enum ix86_tune_indices)
4663         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4664         New, split from X86_TUNE_INTER_UNIT_MOVES.
4665         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4666         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4667         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4668         (TARGET_INTER_UNIT_MOVES): Remove.
4669         * config/i386/i386.c (initial_ix86_tune_features): Update.
4670         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4671         (ix86_expand_convert_uns_didf_sse): Use
4672         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4673         (ix86_expand_vector_init_one_nonzero): Ditto.
4674         (ix86_expand_vector_init_interleave): Ditto.
4675         (inline_secondary_memory_needed): Return true for moves from SSE class
4676         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4677         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4678         * config/i386/constraints.md (Yi, Ym): Depend on
4679         TARGET_INTER_UNIT_MOVES_TO_VEC.
4680         (Yj, Yn): New constraints.
4681         * config/i386/i386.md (*movdi_internal): Change constraints of
4682         operand 1 from Yi to Yj and from Ym to Yn.
4683         (*movsi_internal): Ditto.
4684         (*movdf_internal): Ditto.
4685         (*movsf_internal): Ditto.
4686         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4687         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4688         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4689         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4690         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4691         * config/i386/sse.md (movdi_to_sse): Ditto.
4692         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4693         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4694         TARGET_INTER_UNIT_MOVES.
4695         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4696         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4697         instead of TARGET_INTER_UNIT_MOVES.
4698         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4699         operand 1 from Yi to Yj and from Ym to Yn.
4701 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4703         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4704         (float_truncate_hi_): Likewise.
4705         (float_extend_lo_): Likewise.
4706         (float_truncate_lo_): Likewise.
4707         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4708         (aarch64_float_extend_lo_v2df): Likewise.
4709         (vec_unpacks_hi_v4sf): Likewise.
4710         (aarch64_float_truncate_lo_v2sf): Likewise.
4711         (aarch64_float_truncate_hi_v4sf): Likewise.
4712         (vec_pack_trunc_v2df): Likewise.
4713         (vec_pack_trunc_df): Likewise.
4715 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4717         * config/aarch64/aarch64-builtins.c
4718         (aarch64_fold_builtin): Fold float conversions.
4719         * config/aarch64/aarch64-simd-builtins.def
4720         (floatv2si, floatv4si, floatv2di): New.
4721         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4722         * config/aarch64/aarch64-simd.md
4723         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4724         * config/aarch64/iterators.md (FLOATUORS): New.
4725         (optab): Add float, floatuns.
4726         (su_optab): Likewise.
4728 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4730         * config/aarch64/aarch64-builtins.c
4731         (aarch64_builtin_vectorized_function): Use new names for
4732         fcvt builtins.
4733         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4734         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4735         (fcvtzu): Split as...
4736         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4737         (fcvtas): Split as...
4738         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4739         (fcvtau): Split as...
4740         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4741         (fcvtps): Split as...
4742         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4743         (fcvtpu): Split as...
4744         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4745         (fcvtms): Split as...
4746         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4747         (fcvtmu): Split as...
4748         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4749         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4750         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4751         (lfrintnusf, lfrintnudf): Likewise.
4752         * config/aarch64/aarch64-simd.md
4753         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4754         define_insn.
4755         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4756         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4757         (fcvt_pattern): Likewise.
4759 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4761         * config/aarch64/aarch64-simd.md
4762         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4763         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4765 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4767         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4768         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4769         (vrnd<a,m,n,p>_f32): Implement using builtins.
4770         (vrnd<i,x><q>_f<32, 64>): New.
4772 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4774         * config/aarch64/aarch64-builtins.c
4775         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4776         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4777         (frintz): Rename to...
4778         (btrunc): ...this.
4779         (frintp): Rename to...
4780         (ceil): ...this.
4781         (frintm): Rename to...
4782         (floor): ...this.
4783         (frinti): Rename to...
4784         (nearbyint): ...this.
4785         (frintx): Rename to...
4786         (rint): ...this.
4787         (frinta): Rename to...
4788         (round): ...this.
4789         * config/aarch64/aarch64-simd.md
4790         (aarch64_frint<frint_suffix><mode>): Delete.
4791         (<frint_pattern><mode>2): Convert to insn.
4792         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4793         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4794         (frint_pattern): Likewise.
4795         (frint_suffix): Likewise.
4797 2013-04-29  Richard Biener  <rguenther@suse.de>
4799         PR tree-optimization/57081
4800         * loop-init.c: Include tree-flow.h.
4801         (loop_optimizer_finalize): Free number of iteration estimates.
4802         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4804 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
4806         PR tree-optimization/57083
4807         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4808         non-singleton shift count range, zero extend low_bound for uns case.
4810         * config/i386/predicates.md (general_vector_operand): New predicate.
4811         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4812         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4813         if they aren't nonimmediate operands.  If their original values
4814         satisfy const_vector_equal_evenodd_p, don't shift them.
4815         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4816         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
4817         if not nonimmediate_operand.
4818         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4819         instead of register_operand.
4820         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4822 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4824         * stor-layout.c (finalize_size_functions): Allocate a structure and
4825         reset cfun before dumping the functions.
4827 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
4829         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4831         PR target/56866
4832         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4833         use xop_pmacsdqh if uns_p.
4834         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4835         the immediate rotate count.
4837 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
4839         * rtl.h (struct rtx_def): Add comment for field jump.
4840         (LRA_SUBREG_P): New macro.
4841         * recog.c (register_operand): Check LRA_SUBREG_P.
4842         * lra.c (lra): Add note at the end of RTL code. Align non-empty
4843         stack frame.
4844         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4845         (lra_final_code_change): Skip subreg change for operators.
4846         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4847         if there are no operand changes.
4848         * lra-constraints.c (curr_insn_set): New.
4849         (match_reload): Set LRA_SUBREG_P.
4850         (emit_spill_move): Ditto.
4851         (check_and_process_move): Use curr_insn_set. Process only single
4852         set insns.  Don't initialize sec_mem_p and change_p.
4853         (simplify_operand_subreg): Use LRA_SUBREG_P.
4854         (reg_in_class_p): New function.
4855         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
4856         of #ifdef.  Add code to remove cycling.
4857         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4858         non-null disp.  Reload inner instead of disp when base and index
4859         are null.  Try to put lo_sum into register.
4860         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4861         (check_and_process_move): Move code for move cost check to
4862         simple_move_p.  Remove equiv_substitution.
4863         (simple_move_p): New function.
4864         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
4865         curr_insn_set.  Call check_and_process_move only for single set
4866         insns.  Use the new function.  Move call of check_and_process_move
4867         after operand equiv substitution and address process.
4869 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4871         PR go/57045
4872         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4873         with nonlocal goto receivers or returns twice calls, ignore
4874         unininitialized values from abnormal edges to nl goto receiver
4875         or returns twice call.
4877 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4879         PR tree-optimization/57051
4880         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4881         and VEC_RSHIFT_EXPR if shift count is a multiple of element
4882         bitsize.
4884 2013-04-26  Richard Biener  <rguenther@suse.de>
4886         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4887         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
4888         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4889         (fixup_loop_arrays_after_move): New function.
4890         (move_sese_region_to_fn): Properly outline the loop tree parts
4891         of the SESE region.
4893 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
4895         * config/i386/i386.md (type, unit): Fix long lines.
4897 2013-04-26  Richard Biener  <rguenther@suse.de>
4899         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4900         (lto-streamer-out.o): Likewise.
4901         * cfgloop.c (init_loops_structure): Export, add struct function
4902         argument and adjust.
4903         (flow_loops_find): Adjust.
4904         * cfgloop.h (enum loop_estimation): Add EST_LAST.
4905         (init_loops_structure): Declare.
4906         * lto-streamer-in.c: Include cfgloop.h.
4907         (input_cfg): Input the loop tree.
4908         * lto-streamer-out.c: Include cfgloop.h.
4909         (output_cfg): Output the loop tree.
4910         (output_struct_function_base): Do not drop PROP_loops.
4912 2013-03-26  Richard Biener  <rguenther@suse.de>
4914         * tree-cfg.c (execute_build_cfg): Build the loop tree.
4915         (pass_build_cfg): Provide PROP_loops.
4916         (move_sese_region_to_fn): Remove loops that are outlined into fn
4917         for now.
4918         * tree-inline.c: Include cfgloop.h.
4919         (initialize_cfun): Do not drop PROP_loops.
4920         (copy_loops): New function.
4921         (copy_cfg_body): Copy loop structure.
4922         (tree_function_versioning): Initialize destination loop tree.
4923         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4924         (pass_parallelize_loops): Do IL verification.
4925         * loop-init.c (loop_optimizer_init): Fixup loops if required.
4926         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4927         the CFG make sure we fixup loops as well.
4928         * tree-ssa-tail-merge.c: Include cfgloop.h.
4929         (replace_block_by): When merging loop latches mark loops for fixup.
4930         * lto-streamer-out.c (output_struct_function_base): Drop
4931         PROP_loops for now.
4932         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4933         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4934         * ipa-split.c: Include cfgloop.h.
4935         (split_function): Add the new return block to the loop tree root.
4936         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4937         whether we have removed the forwarder block.
4938         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4939         * cfgloop.h (place_new_loop): Declare.
4940         * cfgloopmanip.c (place_new_loop): Export.
4941         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4942         (tree-switch-conversion.o): Likewise.
4943         (tree-complex.o): Likewise.
4944         (tree-inline.o): Likewise.
4945         (tree-ssa-tailmerge.o): Likewise.
4946         (ipa-split.o): Likewise.
4947         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4948         (tree-ssa-copy.o): Likewise.
4949         * tree-switch-conversion.c: Include cfgloop.h
4950         (process_switch): If we emit a bit-test cascade, schedule loops
4951         for fixup.
4952         * tree-complex.c: Include cfgloop.h.
4953         (expand_complex_div_wide): Properly add new basic-blocks to loops.
4954         * asan.c: Include cfgloop.h.
4955         (create_cond_insert_point): Properly add new basic-blocks to
4956         loops, schedule loop fixup.
4957         * cfgloop.c (verify_loop_structure): Check that looks are not
4958         marked for fixup.
4959         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4960         to loops.
4961         (expand_omp_for_generic): Likewise.
4962         (expand_omp_sections): Likewise.
4963         (expand_omp_atomic_pipeline): Schedule loops for fixup.
4964         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4965         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4966         is initialized, not when loops are present.
4967         * tree-parloops.c (parallelize_loops): Remove checking here.
4968         * passes.c (init_optimization_passes): Schedule a copy-propagation
4969         pass before complete unrolling of inner loops.
4971 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4973         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4974         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4975         (colorize_init): Add argument to _WIN32 version.
4976         * toplev.c: Include diagnostic-color.h.
4977         (process_options): Default to -fdiagnostics-color=auto if
4978         GCC_COLORS env var is in the environment.
4979         * common.opt (fdiagnostics-color=): Add Var and Init.
4980         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4981         env var is in the environment, the default is auto rather than never.
4983         * diagnostic.h (file_name_as_prefix): Add context argument.
4984         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
4985         the string as locus.
4986         * langhooks.c (lhd_print_error_function): Adjust caller.
4988 2013-04-25  Lawrence Crowl  <crowl@google.com>
4990         * var-tracking.c (shared_hash_def::htab):
4991         Change type to hash_table.  Update dependent calls and types.
4993 2013-04-25  Lawrence Crowl  <crowl@google.com>
4995         * Makefile.in: Update as needed below.
4997         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4998         Move declaration to after the type's method definitons.
5000         * attribs.c (htab_t scoped_attributes::attribute_hash):
5001         Change type to hash_table.  Update dependent calls and types.
5003         * bitmap.c (htab_t bitmap_desc_hash):
5004         Change type to hash_table.  Update dependent calls and types.
5006         * cselib.c (htab_t cselib_hash_table):
5007         Change type to hash_table.  Update dependent calls and types.
5009         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5010         (hash_string_slot_node): Move implementation into lto-streamer.h
5011         struct string_slot_hasher.
5012         (eq_string_slot_node): Likewise.
5014         * data-streamer-out.c: Update output_block::string_hash_table
5015         dependent calls and types.
5017         * dwarf2cfi.c (htab_t trace_index):
5018         Change type to hash_table.  Update dependent calls and types.
5020         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5021         Change type to hash_table.  Update dependent calls and types.
5022         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5023         (htab_t optimize_external_refs::map): Likewise.
5024         (htab_t output_comp_unit::extern_map): Likewise.
5025         (htab_t output_comdat_type_unit::extern_map): Likewise.
5026         (htab_t output_macinfo::macinfo_htab): Likewise.
5027         (htab_t optimize_location_lists::htab): Likewise.
5028         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5030         * except.c (htab_t ehspec_hash_type):
5031         Change type to hash_table.  Update dependent calls and types.
5032         (assign_filter_values::ttypes): Likewise.
5033         (assign_filter_values::ehspec): Likewise.
5034         (sjlj_assign_call_site_values::ar_hash): Likewise.
5035         (convert_to_eh_region_ranges::ar_hash): Likewise.
5037         * gcse.c (htab_t pre_ldst_table):
5038         Change type to hash_table.  Update dependent calls and types.
5040         * ggc-common.c (htab_t saving_htab):
5041         Change type to hash_table.  Update dependent calls and types.
5042         (htab_t loc_hash): Likewise.
5043         (htab_t ptr_hash): Likewise.
5044         (call_count): Rename ggc_call_count.
5045         (call_alloc): Rename ggc_call_alloc.
5046         (loc_descriptor): Rename make_loc_descriptor.
5047         (add_statistics): Rename ggc_add_statistics.
5049         * ggc-common.c (saving_htab):
5050         Change type to hash_table.  Update dependent calls and types.
5052         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5053         (push_gimplify_context): Likewise.
5054         (pop_gimplify_context): Likewise.
5055         (struct gimple_temp_hash_elt): Added.
5056         (struct gimplify_hasher): Likewise.
5057         (struct gimplify_ctx.temp_htab):
5058         Change type to hash_table.  Update dependent calls and types.
5060         * gimple-fold.c: Include gimplify-ctx.h.
5062         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5063         Change type to hash_table.  Update dependent calls and types.
5064         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5065         avoid potential global name collision.
5067         * gimplify.c: Include gimplify-ctx.h.
5068         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5069         (htab_t gimplify_ctx::temp_htab):
5070         Update dependent calls and types for new type hash_table.
5071         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5072         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5074         * gimplify-ctx.h: New.
5075         (struct gimple_temp_hash_elt): Move from gimplify.c.
5076         (class gimplify_hasher): New.
5077         (struct gimplify_ctx): Move from gimple.h.
5078         (htab_t gimplify_ctx::temp_htab):
5079         Change type to hash_table.  Update dependent calls and types.
5081         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5082         (htab_t ivs_params::newivs_index):
5083         Change type to hash_table.  Update dependent calls and types.
5084         (htab_t ivs_params::params_index): Likewise.
5085         (htab_t print_generated_program::params_index): Likewise.
5086         (htab_t gloog::newivs_index): Likewise.
5087         (htab_t gloog::params_index): Likewise.
5089         * graphite.c: Include graphite-htab.h.
5090         4htab_t graphite_transform_loops::bb_pbb_mapping):
5091         Change type to hash_table.  Update dependent calls and types.
5093         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5094         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5095         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5097         * graphite-dependences.c: Include graphite-htab.h.
5098         (loop_is_parallel_p): Change hash table type of parameter.
5100         * graphite-htab.h: New.
5101         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5102         (extern find_pbb_via_hash): Move from graphite-poly.h.
5103         (extern loop_is_parallel_p): Move from graphite-poly.h.
5104         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5106         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5107         (extern loop_is_parallel_p): Move to graphite-htab.h.
5108         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5110         * haifa-sched.c (htab_t delay_htab):
5111         Change type to hash_table.  Update dependent calls and types.
5112         (htab_t delay_htab_i2): Likewise.
5114         * ira-color.c (htab_t allocno_hard_regs_htab):
5115         Change type to hash_table.  Update dependent calls and types.
5117         * ira-costs.c (htab_t cost_classes_htab):
5118         Change type to hash_table.  Update dependent calls and types.
5120         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5121         Change type to hash_table.  Update dependent calls and types.
5123         * loop-iv.c (htab_t bivs):
5124         Change type to hash_table.  Update dependent calls and types.
5126         * loop-unroll.c (htab_t opt_info::insns_to_split):
5127         Change type to hash_table.  Update dependent calls and types.
5128         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5130         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5131         (struct string_slot_hasher): New.
5132         (htab_t output_block::string_hash_table):
5133         Change type to hash_table.  Update dependent calls and types.
5135         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5136         (htab_t file_name_hash_table):
5137         Change type to hash_table.  Update dependent calls and types.
5139         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5140         calls and types.
5142         * lto-streamer.c (htab_t tree_htab):
5143         Change type to hash_table.  Update dependent calls and types.
5145         * omp-low.c: Include gimplify-ctx.h.
5147         * passes.c (htab_t name_to_pass_map):
5148         Change type to hash_table.  Update dependent calls and types.
5149         (pass_traverse): Rename to passes_pass_traverse.
5151         * plugin.c (htab_t event_tab):
5152         Change type to hash_table.  Update dependent calls and types.
5154         * postreload-gcse.c (htab_t expr_table):
5155         Change type to hash_table.  Update dependent calls and types.
5156         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5158         * sese.c (debug_rename_map_1): Make extern.
5159         (htab_t copy_bb_and_scalar_dependences::rename_map):
5160         Change type to hash_table.  Update dependent calls and types.
5162         * sese.h (extern debug_rename_map): Move to .c file.
5164         * store-motion.c (htab_t store_motion_mems_table):
5165         Change type to hash_table.  Update dependent calls and types.
5167         * trans-mem.c (htab_t tm_new_mem_hash):
5168         Change type to hash_table.  Update dependent calls and types.
5170         * tree-browser.c (htab_t TB_up_ht):
5171         Change type to hash_table.  Update dependent calls and types.
5173         * tree-cfg.c (htab_t discriminator_per_locus):
5174         Change type to hash_table.  Update dependent calls and types.
5176         * tree-complex.c: Include tree-hasher.h
5177         (htab_t complex_variable_components):
5178         Change type to hash_table.  Update dependent calls and types.
5180         * tree-eh.c (htab_t finally_tree):
5181         Change type to hash_table.  Update dependent calls and types.
5183         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5184         struct int_tree_hasher.
5185         (extern int_tree_map_eq): Likewise.
5186         (uid_decl_map_hash): Removed.
5187         (extern decl_tree_map_eq): Likewise.
5189         * tree-hasher.h: New.
5190         (struct int_tree_hasher): New.
5191         (typedef int_tree_htab_type): New.
5193         * tree-inline.c: Include gimplify-ctx.h.
5195         * tree-mudflap.c: Include gimplify-ctx.h.
5197         * tree-parloops.c: Include tree-hasher.h.
5198         (htab_t eliminate_local_variables_stmt::decl_address):
5199         Change type to hash_table.  Update dependent calls and types.
5200         (htab_t separate_decls_in_region::decl_copies): Likewise.
5202         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5203         Change type to hash_table.  Update dependent calls and types.
5205         * tree-sra.c (candidates):
5206         Change type to hash_table.  Update dependent calls and types.
5208         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5209         in tree-flow.h.
5210         (int_tree_map_hash): Likewise.
5212         * tree-ssa-dom.c (htab_t avail_exprs):
5213         Change type to hash_table.  Update dependent calls and types.
5215         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5216         Change type to hash_table.  Update dependent calls and types.
5218         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5219         Change type to hash_table.  Update dependent calls and types.
5221         * tree-ssa-phiopt.c (seen_ssa_names):
5222         Change type to hash_table.  Update dependent calls and types.
5224         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5225         Change type to hash_table.  Update dependent calls and types.
5227         * tree-ssa-uncprop.c (equiv):
5228         Change type to hash_table.  Update dependent calls and types.
5230 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5232         PR rtl-optimization/57003
5233         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5234         call note_stores with kill_clobbered_value callback again after
5235         killing regs_invalidated_by_call.
5237 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5239         * config/aarch64/aarch64-simd.md
5240         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5241         (aarch64_simd_bsl<mode>): Likewise.
5242         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5244 2013-04-25  Marek Polacek  <polacek@redhat.com>
5246         PR tree-optimization/57066
5247         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5249 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5251         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5253 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5255         * config/aarch64/aarch64-builtins.c
5256         (aarch64_fold_builtin): New.
5257         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5258         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5259         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5260         * config/aarch64/arm_neon.h
5261         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5263 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5264             Tejas Belagod  <tejas.belagod@arm.com>
5266         * config/aarch64/aarch64-builtins.c
5267         (aarch64_gimple_fold_builtin): New.
5268         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5269         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5270         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5271         (addvv4sf): Update.
5272         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5274 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5276         * config/aarch64/aarch64.md
5277         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5279 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5281         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5282         (*ngcsi_uxtw): New pattern.
5284 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5285             Julian Brown  <julian@codesourcery.com>
5287         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5288         (TB_DREG): Add T_V4HF.
5289         (v4hf_UP): New macro.
5290         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5291         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5292         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5293         built-ins.
5294         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5295         (arm_vector_mode_supported_p): Handle V4HF.
5296         (arm_mangle_map): Handle V4HFmode.
5297         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5298         * config/arm/arm_neon_builtins.def: Add entries for
5299         vcvtv4hfv4sf, vcvtv4sfv4hf.
5300         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5301         (neon_vcvtv4hfv4sf): Likewise.
5302         * config/arm/neon-gen.ml: Handle half-precision floating point
5303         features.
5304         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5305         * config/arm/arm_neon.h: Regenerate.
5306         * config/arm/neon.ml (type elts): Add F16.
5307         (type vectype): Add T_float16x4, T_floatHF.
5308         (type vecmode): Add V4HF.
5309         (type features): Add Requires_FP_bit feature.
5310         (elt_width): Handle F16.
5311         (elt_class): Likewise.
5312         (elt_of_class_width): Likewise.
5313         (mode_of_elt): Refactor.
5314         (type_for_elt): Handle F16, fix error messages.
5315         (vectype_size): Handle T_float16x4.
5316         (vcvt_sh): New function.
5317         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5318         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5319         (string_of_mode): Handle V4HF.
5320         * doc/arm-neon-intrinsics.texi: Regenerate.
5322 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5324         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5325         format specifier in 'X' case.
5327 2013-04-25  Alan Modra  <amodra@gmail.com>
5329         PR target/57052
5330         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5331         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5332         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5333         Repeat for many other rotate/shift and mask patterns using subregs.
5334         Name lshiftrt insns.
5335         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5336         on WORDS_BIG_ENDIAN.
5338 2013-04-25  Alan Modra  <amodra@gmail.com>
5340         * config.gcc: Support little-endian powerpc-linux targets.
5341         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5342         (LINK_OS_LINUX_SPEC): Define.
5343         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5344         Preserve MASK_LITTLE_ENDIAN.
5345         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5346         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5347         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5348         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5349         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5350         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5351         Correct fp word order for little-endian.  Don't shift toc entries
5352         smaller than a word for little-endian.
5353         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5354         (bswapdi2 splits): Correct low-part subreg for little-endian.
5355         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5356         low/high where such is correct only for be.
5357         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5358         little-endian for -mcall-aixdesc.
5360 2013-04-25  Alan Modra  <amodra@gmail.com>
5362         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5363         replace_equiv_address_nv.
5365 2013-04-25  Alan Modra  <amodra@gmail.com>
5367         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5369 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5371         Revert:
5372         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5373         * rtl.h (struct rtx_def): ...
5375 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5377         PR rtl-optimizations/57046
5378         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5379         for multi-reg splits.
5381 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5383         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5385 2013-04-24  Sterling Augustine  <saugustine@google.com>
5387         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5388         (comp_dir_string, debug_str_dwo_section): New.
5389         (DEBUG_STR_DWO_SECTION): Rename to ...
5390         (DEBUG_DWO_STR_SECTION): ... this.
5391         (DEBUG_NORM_STR_SECTION): Delete.
5392         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5393         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5394         (find_AT_string): Move most logic to ...
5395         (find_AT_string_in_table): ... here.  New.
5396         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5397         add_skeleton_AT_string.  Delete logic.
5398         (output_skeleton_debug_sections): Remove call to
5399         add_top_level_skeleton_die_attrs.
5400         (add_comp_dir_attribute): Move logic to comp_dir_string.
5401         (dwarf2out_init): Initialize debug_str_dwo_section.
5402         (output_indirect_string): Call find_string_form.
5403         (output_indirect_strings): Rewrite.
5404         (prune_unused_types): Empty skeleton_debug_str_hash.
5405         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5406         (dwarf2out_finish):  Call output_indirect_strings.
5408 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5410         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5412 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5414         * rtl.h (struct rtx_def): Add comment for field jump.
5415         (LRA_SUBREG_P): New macro.
5416         * recog.c (register_operand): Check LRA_SUBREG_P.
5417         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5418         stack frame.
5419         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5420         (lra_final_code_change): Skip subreg change for operators.
5421         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5422         if there are no operand changes.
5423         * lra-constraints.c (curr_insn_set): New.
5424         (match_reload): Set LRA_SUBREG_P.
5425         (emit_spill_move): Ditto.
5426         (check_and_process_move): Use curr_insn_set. Process only single
5427         set insns.  Don't initialize sec_mem_p and change_p.
5428         (simplify_operand_subreg): Use LRA_SUBREG_P.
5429         (reg_in_class_p): New function.
5430         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5431         of #ifdef.  Add code to remove cycling.
5432         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5433         non-null disp.  Reload inner instead of disp when base and index
5434         are null.  Try to put lo_sum into register.
5435         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5436         (check_and_process_move): Move code for move cost check to
5437         simple_move_p.  Remove equiv_substitution.
5438         (simple_move_p): New function.
5439         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5440         curr_insn_set.  Call check_and_process_move only for single set
5441         insns.  Use the new function.  Move call of check_and_process_move
5442         after operand equiv substitution and address process.
5444 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5446         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5447         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5448         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5450 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5452         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5454 2013-04-24  Marek Polacek  <polacek@redhat.com>
5456         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5457         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5458         (select_loops_exit_conditions): Likewise.
5459         (number_of_iterations_for_all_loops): Likewise.
5460         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5461         (scev_analysis): Likewise.
5463 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5464             Chao-ying Fu <fu@mips.com>
5466         * config/mips/micromips.md (jraddiusp): New pattern.
5467         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5468         instruction if possible.
5470 2013-04-24  Alan Modra  <amodra@gmail.com>
5472         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5474 2013-04-24  Julian Brown  <julian@codesourcery.com>
5475             Chung-Lin Tang  <cltang@codesourcery.com>
5477         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5478         dependency behavior in enumeration type DIE generation. Add TODO note
5479         to comments about future DW_FORM_sdata/udata re-work of related code.
5481 2013-04-23  Lawrence Crowl  <crowl@google.com>
5483         * Makefile.in: Update as needed below.
5485         * hash-table.h (class hash_table):
5486         Correct many methods with parameter types compare_type to the correct
5487         value_type.  (Correct code was unlikely to notice the change.)
5488         (hash_table::elements_with_deleted) New.
5489         (class hashtable::iterator): New.
5490         (hashtable::begin()): New.
5491         (hashtable::end()): New.
5492         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5494         * statistics.c (statistics_hashes):
5495         Change type to hash_table.  Update dependent calls and types.
5497         * tree-into-ssa.c (var_infos):
5498         Change type to hash_table.  Update dependent calls and types.
5500         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5501         Change type to hash_table.  Update dependent calls and types.
5503         * tree-ssa-loop-im.c (struct mem_ref.refs):
5504         Change type to hash_table.  Update dependent calls and types.
5506         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5507         Change type to hash_table.  Update dependent calls and types.
5509         * tree-ssa-sccvn.c (vn_tables_s::nary):
5510         Change type to hash_table.  Update dependent calls and types.
5511         (vn_tables_s::phis): Likewise.
5512         (vn_tables_s::references): Likewise.
5514         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5515         (vn_reference_eq): Update parameter and return types.
5517         * tree-ssa-structalias.c (pointer_equiv_class_table):
5518         Change type to hash_table.  Update dependent calls and types.
5519         (location_equiv_class_table): Likewise.
5521         * tree-vect-data-refs.c: Consequential changes for making
5522         peeling a hash_table.
5524         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5525         (destroy_loop_vec_info): Dependent hash_table update.
5527         * tree-vectorizer.h (peeling_htab):
5528         Change type to hash_table.  Update dependent calls and types.
5530 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5532         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5533         to check the register content is equal or not.
5534         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5535         to assign register content record.
5536         * lra-eliminations.c (update_reg_eliminate): Use
5537         lra_update_reg_val_offset to update register content offset.
5538         * lra-int.h (struct lra_reg): Add offset member.
5539         (lra_reg_val_equal_p): New static inline function.
5540         (lra_update_reg_val_offset): New static inline function.
5541         (lra_assign_reg_val): New static inline function.
5542         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5543         to assign register content record.
5544         (initialize_lra_reg_info_element): Initial offset to zero.
5546 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5548         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5549         operands.  Record compression.
5551 2013-04-23  Xinliang David Li  <davidxl@google.com>
5553         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5555 2013-04-23  Richard Biener  <rguenther@suse.de>
5557         PR middle-end/57036
5558         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5559         parameter, only add abnormal goto edges from the copied body
5560         if the call could perform abnormal gotos.
5561         (copy_cfg_body): Adjust.
5563 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5565         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5567 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5569         * coretypes.h (gimple_stmt_iterator): Add struct to make
5570         compatible with C.
5572 2013-04-23  Richard Biener  <rguenther@suse.de>
5574         PR tree-optimization/57026
5575         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5576         from SSA names occuring in abnormal PHI nodes.
5578 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5580         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5582 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5584         * lto/lto.c (print_lto_report_1): Declare early.
5585         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5587 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5589         * common.opt (-flto-report-wpa): Add.
5590         * doc/invoke.texi (-flto-report-wpa): Add.
5591         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5592         (lto_main): dito.
5594 2013-04-22  Xinliang David Li  <davidxl@google.com>
5596         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5597         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5598         * Makefile.in: New dependency
5600             David Daney <ddaney.cavm@gmail.com>
5602         * configure.ac (gcc_cv_as_micromips_support):  Use the
5603         --fatal-warnings option.
5604         * configure: Regenerate.
5606 2013-04-22  Marek Polacek  <polacek@redhat.com>
5608         PR sanitizer/56990
5609         * tsan.c (instrument_expr): Don't instrument expression
5610         in case its size is zero.
5612 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
5614         PR target/57032
5615         Revert:
5616         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5618         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5620 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5622         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5623         (gimple_stmt_iterator): New typedef.
5624         * gimple.h (gimple_stmt_iterator): Rename to...
5625         (gimple_stmt_iterator_d): ... This.
5626         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5627         trees be valid for GIMPLE and GENERIC.
5628         (TARGET_GIMPLE_FOLD_BUILTIN): New.
5629         * gimple-fold.c (gimple_fold_call): Call target hook
5630         gimple_fold_builtin.
5631         * hooks.c (hook_bool_gsiptr_false): New.
5632         * hooks.h (hook_bool_gsiptr_false): New.
5633         * target.def (fold_stmt): New.
5634         * doc/tm.texi: Regenerate.
5636 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
5638         PR target/57018
5639         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5640         a set sp if no stack realignment.
5642 2013-04-22  Nick Clifton  <nickc@redhat.com>
5644         * config.gcc (tilegx-linux): Extend extra_objs rather than
5645         overwriting it.
5646         (tilepro-linux): Likewise.
5648 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5650         * config/aarch64/aarch64-builtins.c
5651         (CF): Remove.
5652         (CF0, CF1, CF2, CF3, CF4, CF10): New.
5653         (VAR<1-12>): Add MAP parameter.
5654         (BUILTIN_*): Likewise.
5655         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5656         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5657         (aarch64_ushl_n<mode>): Likewise.
5658         (aarch64_sshr_n<mode>): Likewise.
5659         (aarch64_ushr_n<mode>): Likewise.
5660         (aarch64_<maxmin><mode>): Likewise.
5661         (aarch64_sqrt<mode>): Likewise.
5662         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5663         (vshr<q>_n_*): Likewise.
5665 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5667         * config/aarch64/aarch64-builtins.c
5668         (aarch64_simd_builtin_type_mode): Handle SF types.
5669         (sf_UP): Define.
5670         (BUILTIN_GPF): Define.
5671         (aarch64_init_simd_builtins): Handle SF types.
5672         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5673         (frecps): Likewise.
5674         (frecpx): Likewise.
5675         * config/aarch64/aarch64-simd.md
5676         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5677         (aarch64_frecpe<mode>): New.
5678         (aarch64_frecps<mode>): Likewise.
5679         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5680         (v8type): Add frecp<esx>.
5681         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5682         (aarch64_frecps<mode>): Likewise.
5683         * config/aarch64/iterators.md (FRECP): New.
5684         (frecp_suffix): Likewise.
5685         * config/aarch64/arm_neon.h
5686         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5688 2013-04-22  Christian Bruel  <christian.bruel@st.com>
5690         PR target/56995
5691         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5692         (REG_CLASS_NAMES): Idem.
5693         (REG_CLASS_CONTENTS): Idem.
5694         (REGCLASS_HAS_FP_REG): Idem.
5695         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5696         (sh_conditional_register_usage): Idem.
5698 2013-04-21  Jeff Law  <law@redhat.com>
5700         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5701         (ssa_forward_propagate_and_combine): Use it.
5703 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5705         * lra.c: Update the flow chart diagram.
5707 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5709         PR rtl-optimization/56847
5710         * lra-constraints.c (process_alt_operands): Discourage alternative
5711         with non-matche doffsettable memory constraint fro memory with
5712         known offset.
5714 2013-04-19  Richard Biener  <rguenther@suse.de>
5716         PR tree-optimization/56982
5717         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5718         function.
5719         * gimplify.c (gimplify_call_expr): Notice special calls.
5720         (gimplify_modify_expr): Likewise.
5721         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5722         abnormal control flow receivers.
5723         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5724         in the same way as cfun->has_nonlocal_labels.
5725         (gimple_purge_dead_abnormal_call_edges): Likewise.
5726         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5727         receivers start a basic-block.
5729 2013-04-19  Richard Biener  <rguenther@suse.de>
5731         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5732         member ...
5733         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
5734         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5735         (SLP_TREE_LOAD_PERMUTATION): Add.
5736         (vect_transform_slp_perm_load): Adjust prototype.
5737         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5738         (vect_free_slp_instance): Likewise.
5739         (vect_create_new_slp_node): Likewise.
5740         (vect_supported_slp_permutation_p): Remove.
5741         (vect_slp_rearrange_stmts): Adjust.
5742         (vect_supported_load_permutation_p): Likewise.  Inline
5743         vect_supported_slp_permutation_p here.
5744         (vect_analyze_slp_instance): Compute load permutations per
5745         slp node instead of per instance.
5746         (vect_get_slp_defs): Adjust.
5747         (vect_transform_slp_perm_load): Likewise.
5748         (vect_schedule_slp_instance): Remove redundant code.
5749         (vect_schedule_slp): Remove hack for PR56270, add it ...
5750         * tree-vect-stmts.c (vectorizable_load): ... here, do not
5751         CSE loads for SLP.  Adjust.
5753 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5755         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5756         spelling in two comments.
5758 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5760         PR target/56797
5761         * config/arm/arm.c (load_multiple_sequence): Require SP
5762         as base register for loads if SP is in the register list.
5764 2013-04-19  Martin Jambor  <mjambor@suse.cz>
5766         PR tree-optimization/56718
5767         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5768         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5769         and made public.  Adjusted all callers.
5770         (ipa_intraprocedural_devirtualization): New function.
5771         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5772         (ipa_intraprocedural_devirtualization): Likewise.
5773         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5775 2013-04-19  Richard Biener  <rguenther@suse.de>
5777         PR tree-optimization/57000
5778         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5780 2013-04-19  Terry Guo  <terry.guo@arm.com>
5782         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5783         Replace with ...
5784         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
5785         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5786         (cortex_m4_fmacs): Use new reservations.
5787         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5789 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5791         PR rtl-optimization/56999
5792         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5793         related code.
5794         (lra_coalesce): Remove split_origin_bitmap and related code.
5795         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
5796         ranges if necessary.
5798 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
5800         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5801         New array.
5802         (ix86_expand_call): Remove clobbered_registers array and use
5803         x86_64_ms_sysv_extra_clobbered_registers instead.
5804         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5805         Declare here.
5806         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5807         predicate.
5808         * config/i386/i386.md (*call_rex64_ms_sysv): Use
5809         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
5810         (*call_value_rex64_ms_sysv): Ditto.
5812 2013-04-18  Cary Coutant  <ccoutant@google.com>
5814         * dwarf2out.c (output_pubnames): Check die_perennial_p of
5815         parent instead of die_mark.
5817 2013-04-18  Diego Novillo  <dnovillo@google.com>
5819         * gimple.c (create_gimple_tmp): New.
5820         (get_expr_type): New.
5821         (build_assign): New.
5822         (build_type_cast): New.
5823         * gimple.h (enum ssa_mode): Define.
5824         (gimple_seq_set_location): New.
5825         * asan.c (build_check_stmt): Change some gimple_build_* calls
5826         to use build_assign and build_type_cast.
5828 2013-04-18  Richard Biener  <rguenther@suse.de>
5830         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5831         handle negative step.  Remove redundant checks.
5832         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5833         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5834         for negative step and grouped loads fail to vectorize.
5836 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5838         * emit-rtl.c (reset_insn_used_flags): New function.
5839         (reset_all_used_flags): Use it.
5840         (verify_insn_sharing): New function.
5841         (verify_rtl_sharing): Fix verification for SEQUENCEs.
5843 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
5845         PR tree-optimization/56984
5846         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5847         and (x >> M) >= N don't register any assertion if N << M is the
5848         minimum value.
5850 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5852         * lower-subreg.c (resolve_simple_move): If called self-recursive,
5853         do not delete_insn insns that have not yet been emitted, only
5854         unlink them with remove_insn.
5855         * df-scan.c (df_insn_delete): Revert r197492.
5857 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
5859         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5860         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5862 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5864         * config/arm/arm.md (movsicc_insn): Convert define_insn into
5865         define_insn_and_split.
5866         (and_scc,ior_scc,negscc): Likewise.
5867         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5869 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5871         * config/arm/arm.c (use_return_insn): Return 0 for targets that
5872         can benefit from using a sequence of LDRD instructions in epilogue
5873         instead of a single LDM instruction.
5875 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5877         PR 45688
5878         * doc/extend.texi: Fix typo.
5880 2013-04-17  Richard Biener  <rguenther@suse.de>
5882         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5883         (vect_build_slp_tree): ... here.
5884         (vect_build_slp_tree_1): Compute which stmts of the SLP group
5885         match.  Remove special-casing of mismatched complex loads.
5886         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5887         re-try the match with swapped commutative operands.
5888         (vect_supported_load_permutation_p): Remove special-casing of
5889         mismatched complex loads.
5890         (vect_analyze_slp_instance): Adjust.
5892 2013-04-17  Richard Biener  <rguenther@suse.de>
5894         PR rtl-optimization/56921
5895         * cfgloop.h (struct loop): Add simple_loop_desc member.
5896         (struct niter_desc): Mark with GTY(()).
5897         (simple_loop_desc): Do not use aux field but simple_loop_desc.
5898         * loop-iv.c (get_simple_loop_desc): Likewise.
5899         (free_simple_loop_desc): Likewise.
5901         Revert
5902         2013-04-16  Richard Biener  <rguenther@suse.de>
5904         PR rtl-optimization/56921
5905         * loop-init.c (pass_rtl_move_loop_invariants): Add
5906         TODO_do_not_ggc_collect to todo_flags_finish.
5907         (pass_rtl_unswitch): Same.
5908         (pass_rtl_unroll_and_peel_loops): Same.
5909         (pass_rtl_doloop): Same.
5911 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5913         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5914         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5915         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5916         references.
5917         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5918         * tree-streamer.c (record_common_node): Adjust reference in comment.
5920 2013-04-17  Terry Guo  <terry.guo@arm.com>
5922         * config/arm/cortex-m4.md: Add a new bypass.
5924 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5926         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5927         New pattern.
5928         (*subs_<optab><mode>_multp2): New pattern.
5929         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5930         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5932 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5934         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5935         (*subs_mul_imm_<mode>): New pattern.
5937 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
5939         PR target/56948
5940         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5941         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
5942         (vsx_movti_32bit): Change j->wa to O->wa.
5944 2013-04-16  Richard Biener  <rguenther@suse.de>
5946         PR rtl-optimization/56921
5947         * loop-init.c (pass_rtl_move_loop_invariants): Add
5948         TODO_do_not_ggc_collect to todo_flags_finish.
5949         (pass_rtl_unswitch): Same.
5950         (pass_rtl_unroll_and_peel_loops): Same.
5951         (pass_rtl_doloop): Same.
5953 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
5955         * config/arm/arm.c (emit_multi_reg_push): New declaration
5956         for an existing function.
5957         (arm_emit_strd_push): New function.
5958         (arm_expand_prologue): Used here.
5959         (arm_emit_ldrd_pop): New function.
5960         (arm_expand_epilogue): Used here.
5961         (arm_get_frame_offsets): Update condition.
5962         (arm_emit_multi_reg_pop): Add a special case for load of a single
5963         register with writeback.
5965 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
5967         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5968         description.
5970 2013-04-16  Richard Biener  <rguenther@suse.de>
5972         PR tree-optimization/56756
5973         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5974         (first_mem_ref_loc): New.
5975         (execute_sm): Place the load temporarily before a previous
5976         access instead of in the latch edge to ensure its SSA dependencies
5977         are defined at points dominating the load.
5979 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
5981         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5982         correct fix by moving header and footer insn to the footer of
5983         the merged basic block.  Clear BB_END of the merged-away block.
5985         PR middle-end/43631
5986         * emit-rtl.c (make_note_raw): New function.
5987         (link_insn_into_chain): New static inline function.
5988         (add_insn): Use it.
5989         (add_insn_before, add_insn_after): Factor insn chain linking code...
5990         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5991         using link_insn_into_chain.
5992         (note_outside_basic_block_p): New helper function for emit_note_after
5993         and emit_note_before.
5994         (emit_note_after): Use nobb variant of add_insn_after if the note
5995         should not be contained in a basic block.
5996         (emit_note_before): Use nobb variant of add_insn_before if the note
5997         should not be contained in a basic block.
5998         (emit_note_copy): Use make_note_raw.
5999         (emit_note): Likewise.
6000         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6001         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6002         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6003         the moved barrier the tail of the basic block it follows.
6004         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6006 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6008         PR tree-optimization/56962
6009         * gimple-ssa-strength-reduction.c (record_increment): Only set
6010         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6011         either rhs1 or rhs2 is equal to c->base_expr.
6013 2013-04-15  Richard Biener  <rguenther@suse.de>
6015         PR tree-optimization/56933
6016         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6017         member.
6018         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6019         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6020         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6021         dependence check ...
6022         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6023         ... here.
6024         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6025         GROUP_READ_WRITE_DEPENDENCE.
6027 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6029         * emit-rtl.c (reset_all_used_flags): New function.
6030         (verify_rtl_sharing): Call reset_all_used_flags before and after
6031         performing the checks.
6033 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6035         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6036         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6037         * config/arm/constraints.md (De): New constraint.
6038         * config/arm/neon.md (anddi3_neon): Delete.
6039         (neon_vand<mode>): Expand to standard anddi3 pattern.
6040         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6041         Move earlier in the file.
6042         (neon_inv_logic_op2): Likewise.
6043         (arm_anddi_operand_neon): New predicate.
6045 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6047         * configure.ac (gcc_cv_ld_as_needed): Set
6048         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6049         Use -z ignore, -z record on *-*-solaris2*.
6050         (HAVE_LD_AS_NEEDED): Update comment.
6051         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6052         * configure: Regenerate.
6053         * config.in: Regenerate.
6054         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6055         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6056         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6057         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6058         equivalents.  Fix markup.
6059         * doc/tm.texi: Regenerate.
6061 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6063         * config/i386/i386.opt: New option mstack-protector-guard=.
6064         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6065         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6066         TARGET_SSP_TLS_GUARD.
6067         * config/i386/i386.c (ix86_option_override_internal): Set
6068         ix86_stack_protector_guard.
6069         * config/i386/i386.md (stack_protect_set): Enable for
6070         TARGET_SSP_TLS_GUARD only.
6071         (stack_protect_set_<mode>): Ditto.
6072         (stack_protect_test): Ditto.
6073         (stack_protect_test_<mode>): Ditto.
6074         * doc/invoke.texi (i386 Option): Document.
6076 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6078         PR target/56890
6079         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6080         (S_MODES): Set H_MODE bit.
6081         (SF_MODES): Set only S_MODE and SF_MODE bits.
6082         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6083         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6084         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6085         <MODE_FLOAT>: Likewise.
6087 2013-04-15  Joey Ye  <joey.ye@arm.com>
6089         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6091 2013-04-15  Joey Ye  <joey.ye@arm.com>
6093         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6094         for real far jump.
6095         (thumb_far_jump_used_p): Count instruction size and set
6096         far_jump_used.
6098 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6100         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6101         * resource.c (mark_target_live_regs): Reformat conditional block.
6103 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6105         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6106         notes, they are emitted only just before final.
6107         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6109 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6111         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6112         * cfgrtl.c (delete_insn): Call it here instead.
6113         * lra-spills.c (lra_final_code_change): Use delete_insn.
6114         * haifa-sched.c (sched_remove_insn): Likewise.
6115         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6116         returning to the nop pool.
6117         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6118         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6120 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6122         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6123         * doc/tm.texi: Regenerated.
6125 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6127         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6128         QImode checks.
6130 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6132         * df-core.c (df_find_def): Compare register numbers.
6133         (df_find_use): Likewise.
6135 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6137         PR target/56903
6138         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6139         lra_in_progress for return.
6141 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6143         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6144         define_insn into define_insn_and_split and emit movsicc patterns.
6146 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6148         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6150 2013-04-12  Richard Biener  <rguenther@suse.de>
6152         * tree-pass.h (TODO_do_not_ggc_collect): New.
6153         * passes.c (execute_one_ipa_transform_pass): Honor
6154         TODO_do_not_ggc_collect.
6155         (execute_one_pass): Likewise.
6157         Revert
6158         2013-04-10  Richard Biener  <rguenther@suse.de>
6160         * passes.c (init_optimization_passes): Remove reload pass.
6161         * ira.c (do_reload): Merge into ...
6162         (ira): ... this.
6163         (rest_of_handle_reload): Remove.
6164         (pass_reload): Likewise.
6165         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6166         of reload for vzeroupper pass placement.
6168 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6170         PR tree-optimization/56918
6171         PR tree-optimization/56920
6172         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6173         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6174         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6175         use wide_mul_with_sign method.
6177 2013-04-12  Richard Biener  <rguenther@suse.de>
6179         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6180         not be considered a gimple constant.
6182 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6184         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6185         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6186         operations.
6188 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6189             Jakub Jelinek  <jakub@redhat.com>
6191         * opts.c: Include diagnostic-color.h.
6192         (common_handle_option): Handle OPT_fdiagnostics_color_.
6193         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6194         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6195         (diagnostic-color.o): New.
6196         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6197         (diagnostic_color_rule): New enum.
6198         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6199         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6200         the location string.
6201         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6202         either NULL, or color kind.
6203         * diagnostic-color.c: New file.
6204         * diagnostic-color.h: New file.
6205         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6206         arguments.
6207         * doc/invoke.texi (-fdiagnostics-color): Document.
6208         * pretty-print.h (pp_show_color): Define.
6209         (struct pretty_print_info): Add show_color field.
6210         * diagnostic.c: Include diagnostic-color.h.
6211         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6212         macros.  Colorize error:, warning: etc. strings and also the location
6213         string.
6214         (diagnostic_show_locus): Colorize the caret line.
6215         * pretty-print.c: Include diagnostic-color.h.
6216         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6217         inside of %< %> quotes or quoted through q format modifier.
6219 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6221         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6223 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6225         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6226         code in CC_NZ mode.
6227         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6228         pattern.
6230 2013-04-11  Marek Polacek  <polacek@redhat.com>
6232         PR tree-optimization/48184
6233         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6235 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6237         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6238         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6239         (skip_simple_arithmetic): Tidy up.
6240         * tree.h (skip_simple_constant_arithmetic): Declare.
6242 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6244         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6246 2013-04-11  Richard Biener  <rguenther@suse.de>
6248         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6249         generate vector constants.
6251 2013-04-11  Richard Biener  <rguenther@suse.de>
6253         PR tree-optimization/56878
6254         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6255         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6256         New function.
6257         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6258         Prefer to align the DR with the most invariant base address.
6260 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6262         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6263         comment.
6265 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6267         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6268         floating-point vector comparisons against 0.
6270 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6272         PR tree-optimization/56899
6273         * fold-const.c (extract_muldiv_1): Apply distributive law
6274         only if TYPE_OVERFLOW_WRAPS (ctype).
6276 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6278         PR target/56124
6279         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6280         loading has side effect.
6282 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6284         * config/sparc/sparc.c: Include tree-pass.h.
6285         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6286         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6287         head of file.  Change return type.  Split off gate function.
6288         (sparc_gate_work_around_errata): New function.
6289         (pass_work_around_errata): New pass definition.
6290         (insert_pass_work_around_errata) New pass insert definition to
6291         insert pass_work_around_errata just after delayed-branch scheduling.
6292         (sparc_option_override): Insert the pass.
6293         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6295 2013-04-10  David S. Miller  <davem@davemloft.net>
6297         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6298         or -mcpu=hypersparc.
6300         * target.def (cstore_mode): New hook.
6301         * target.h: Include insn-codes.h
6302         * targhooks.c: Likewise.
6303         (default_cstore_mode): New function.
6304         * targhooks.h: Declare it.
6305         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6306         * doc/tm.texi: Rebuild.
6307         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6308         target hook, rather than inspecting the insn_data.
6309         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6310         (TARGET_CSTORE_MODE): Redefine.
6311         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6312         result patterns.
6313         * config/sparc/predicates.md (cstore_result_operand): New special
6314         predicate.
6315         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6316         Use it for operand 0.
6317         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6318         (*snesi_special): Likewise.
6319         (*snesi_zero): Likewise.
6320         (*seqsi_zero): Likewise.
6321         (*sltu_insn): Likewise.
6322         (*sgeu_insn): Likewise.
6323         (*seqdi_special): Make operand 0 and comparison operation be of
6324         DImode.
6325         (*snedi_special): Likewise.
6326         (*snedi_special_vis3): Likewise.
6327         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6328         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6329         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6330         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6331         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6332         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6333         (*sltu_extend_sp64): Likewise.
6334         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6335         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6336         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6337         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6338         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6340 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6342         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6343         (aarch64_start_file): Use the new function.
6345 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6346             Jason Merrill  <jason@redhat.com>
6348         * common.opt: Add -gdwarf.
6349         * opts.c (common_handle_option): Handle it.
6350         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6352 2013-04-10  Richard Biener  <rguenther@suse.de>
6354         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6355         (execute_one_ipa_transform_pass): But unconditionally here.
6356         (execute_one_pass): And here.
6357         (init_optimization_passes): Remove reload pass.
6358         * tree-pass.h (TODO_ggc_collect): Remove.
6359         (pass_reload): Likewise.
6360         * ira.c (do_reload): Merge into ...
6361         (ira): ... this.
6362         (rest_of_handle_reload): Remove.
6363         (pass_reload): Likewise.
6364         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6365         of reload for vzeroupper pass placement.
6366         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6367         and todo_flags_finish of all passes.
6369 2013-04-10  Richard Biener  <rguenther@suse.de>
6371         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6372         first_const_oprnd field, rename first_def_type to first_op_type.
6373         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6374         (vect_get_and_check_slp_defs): Always use the type of the
6375         operand.  Allow mixed vect_external_def, vect_constant_def types.
6376         (vect_get_constant_vectors): Handle mixed vect_external_def,
6377         vect_constant_def types.
6379 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6381         PR tree-optimization/55524
6382         * tree-ssa-math-opts.c
6383         (convert_mult_to_fma): Don't use an fms construct
6384         when we don't have an fms operation, but fnma, and it looks
6385         likely that we'll be able to use the latter.
6387 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6389         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6390         function.
6391         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6392         inline fail caused by overwritable functions.
6394 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6396         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6397         unnecessary bits in the constant power of two case.
6399 2013-04-10  Richard Biener  <rguenther@suse.de>
6401         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6402         broken code swapping operands.
6403         (vect_build_slp_tree): Do not compute load permutations here.
6404         (vect_analyze_slp_instance): Compute load permutations here,
6405         after building the SLP tree.
6407 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6409         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6410         of next/prev_real_insn.
6412 2013-04-09  Jan Hubicka  <jh@suse.cz>
6414         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6415         Drop aliased parameter.
6416         (function_and_variable_visibility): Do not handle alias pairs.
6417         * cgraph.c (varpool_externally_visible_p): Update prototype.
6418         * varpool.c (varpool_add_new_variable): Update.
6420 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6422         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6424 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6426         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6428         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6430 2013-04-09  Marek Polacek  <polacek@redhat.com>
6432         PR tree-optimization/48762
6433         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6435 2013-04-09  Richard Biener  <rguenther@suse.de>
6437         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6438         dealing with cost.
6439         (vect_build_slp_tree): Likewise.
6440         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6441         calculating the cost of a SLP instance.
6442         (vect_analyze_slp_instance): Use it from here, after building
6443         the SLP tree.
6445 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6447         PR middle-end/56883
6448         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6449         expand_omp_for_static_chunk): Use simple_p = true in
6450         force_gimple_operand_gsi calls when assigning to addressable decls.
6452 2013-04-09  Jeff Law  <law@redhat.com>
6454         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6455         when the boolean was created by converting a wider object which
6456         had a boolean range.
6458 2013-04-09  Richard Biener  <rguenther@suse.de>
6460         * tree-vectorizer.h (slp_void_p): Remove.
6461         (slp_tree): Typedef before _slp_tree declaration.
6462         (struct _slp_tree): Use a vector of slp_tree as children.
6463         (vect_get_place_in_interleaving_chain): Remove.
6464         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6465         Move ...
6466         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6467         and make static.
6468         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6469         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6470         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6471         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6472         Use slp_node instead of slp_void_p and adjust.
6474 2013-04-09  Richard Biener  <rguenther@suse.de>
6476         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6477         work that is not necessary.
6479 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6481         PR tree-optimization/56854
6482         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6483         forward into clobber stmts if it would change MEM_REF lhs into
6484         non-MEM_REF.
6486 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6488         * tree.c (type_hash_lookup, type_hash_add): Make static.
6489         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6491 2013-04-09  Richard Biener  <rguenther@suse.de>
6493         * tree.h (unsave_expr_now): Remove.
6494         * tree-inline.c (mark_local_for_remap_r): Remove.
6495         (unsave_expr_1): Likewise.
6496         (unsave_r): Likewise.
6497         (unsave_expr_now): Likewise.
6498         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6499         (propagate_tree_value): Likewise.
6501 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6503         * doc/rtl.texi (sequence): Rewrite documentation to match the
6504         current use of SEQUENCE rtl objects.
6505         * rtl.def (SEQUENCE): Likewise.
6507         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6508         Update documentation.
6509         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6510         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6512         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6514 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6516         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6517         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6518         methods.
6519         (estimate_edge_size_and_time): Add comment to suggest using rounding
6520         methods.
6521         (estimate_node_size_and_time): Ditto.
6522         (remap_edge_change_prob): Use helper rounding divide methods.
6523         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6524         (gimple_mod_pow2_value_transform): Ditto.
6525         (gimple_mod_subtract_transform): Ditto.
6526         (gimple_ic_transform): Ditto.
6527         (gimple_stringops_transform): Ditto.
6528         * stmt.c (conditional_probability): Ditto.
6529         (emit_case_dispatch_table): Ditto.
6530         * lto-cgraph.c (merge_profile_summaries): Ditto.
6531         * tree-optimize.c (execute_fixup_cfg): Ditto.
6532         * cfgcleanup.c (try_forward_edges): Ditto.
6533         * cfgloopmanip.c (scale_loop_profile): Ditto.
6534         (loopify): Ditto.
6535         (duplicate_loop_to_header_edge): Ditto.
6536         (lv_adjust_loop_entry_edge): Ditto.
6537         * tree-vect-loop.c (vect_transform_loop): Ditto.
6538         * profile.c (compute_branch_probabilities): Ditto.
6539         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6540         * lto-streamer-in.c (input_cfg): Ditto.
6541         * gimple-streamer-in.c (input_bb): Ditto.
6542         * ipa-cp.c (update_profiling_info): Ditto.
6543         (update_specialized_profile): Ditto.
6544         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6545         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6546         rounding methods.
6547         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6548         (compute_trg_info): Ditto.
6549         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6550         (purge_dead_edges): Ditto.
6551         * loop-unswitch.c (unswitch_loop): Ditto.
6552         * cgraphclones.c (cgraph_clone_edge): Ditto.
6553         (cgraph_clone_node): Ditto.
6554         * tree-inline.c (copy_bb): Ditto.
6555         (copy_edges_for_bb): Ditto.
6556         (initialize_cfun): Ditto.
6557         (copy_cfg_body): Ditto.
6558         (expand_call_inline): Ditto.
6560 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6562         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6563         TARGET_CYGWIN64 by TARGET_64BIT.
6565 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6567         * config/epiphany/epiphany.md (GPR_1): New constant.
6568         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6569         * config/epiphany/epiphany.c (gen_compare_reg):
6570         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6571         is already in place.
6572         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6573         Don't require being called during rtl expansion; If y operlaps r0,
6574         return 0.
6575         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6576         (epiphany_expand_epilogue): Likewise.
6578         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6579         Don't use CC_FPmode for ORDERED / UNORDERED.
6580         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6582         * config/epiphany/constraints.md (CnL): New constraint.
6583         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6584         * config/epiphany/predicates.md (add_operand): Allow 1024.
6586         * config/epiphany/epiphany.md (logical_op): New code iterator.
6587         (op_mnc): New code attribute.
6588         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6589         (mov_f+1, mov_f+2): New peephole2 patterns.
6591         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6592         (cstoresi4): Also allow re-use of zero result when doing a NE
6593         comparison to a non-zero operand.
6594         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6596         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6597         Use gen_addsi3_i / gen_subsi3_i.
6599 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6601         PR c++/34949
6602         PR c++/50243
6603         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6604         contain anything but clobbers, at most one __builtin_stack_restore,
6605         optionally debug stmts and final resx, and if it has at least one
6606         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6607         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6608         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6609         which isn't defaut definition, remove them.
6610         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6611         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6612         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6613         with MEM_REF LHS with SSA_NAME address.
6615 2013-04-08  Jeff Law  <law@redhat.com>
6617         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6619 2013-04-08  Richard Biener  <rguenther@suse.de>
6621         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6622         extra newline.
6623         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6624         determined vector type.
6625         (vect_analyze_data_refs): Likewise.
6626         (vect_get_new_vect_var): Adjust.
6627         (vect_create_destination_var): Preserve SSA name versions.
6628         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6629         not dump anything here.
6631 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6633         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6634         Add member lr_slot_known.
6635         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6636         if necessary.
6637         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6638         Remove code that sets lr_slot_offset according to what a previous
6639         version of epiphany_emit_save_restore used to do.
6640         (epiphany_emit_save_restore): When doing an lr save or restore,
6641         set/verify lr_slot_known and lr_slot_offset.
6643 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
6645         PR target/54338
6646         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6647         in ALL_REGS.
6649 2013-04-08  Richard Biener  <rguenther@suse.de>
6651         * alias.c (find_base_term): Fix thinko in previous change.
6653 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6655         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6656         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6657         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
6658         if possible to compute val.
6659         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6660         For QImode integers don't require anything about precision.  Use
6661         const_with_all_bytes_same to find out if the constant doesn't have
6662         repeated bytes in it.
6664 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6666         * config/s390/s390.c (s390_expand_insv): Only accept insertions
6667         within mode size.
6669 2013-04-08  Marek Polacek  <polacek@redhat.com>
6671         PR rtl-optimization/48182
6672         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6673         value to 1.
6675 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6677         PR target/55487
6678         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6679         nuses, make sure we have a label.
6681 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6683         PR target/56843
6684         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6685         (rs6000_emit_swdiv_low_precision): Remove.
6686         (rs6000_emit_swdiv): Rewrite to handle between one and four
6687         iterations of Newton-Raphson generally; modify required number of
6688         iterations for some cases.
6689         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6691 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6693         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6694         set-but-unused variable.
6696         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6697         basic blocks of released function bodies garbage-collectable.
6699         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6700         (struct rtl_opt_pass): Add TODO_df_finish.
6702         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6704 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6706         * config/arm/constraints.md (q): New constraint.
6707         * config/arm/ldrdstrd.md: New file.
6708         * config/arm/arm.md (ldrdstrd.md) New include.
6709         (arm_movdi): Use "q" instead of "r" constraint
6710         for double-word memory access.
6711         (movdf_soft_insn): Likewise.
6712         * config/arm/vfp.md (movdi_vfp): Likewise.
6713         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6714         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6715         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6716         (mem_ok_for_ldrd_strd): Likewise.
6717         (output_move_double): Update assertion.
6719 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6721         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6723 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6725         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6726         define_insn_and_split.
6727         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6729 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6731         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6732         define_insn_and_split.
6733         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6734         (shiftsi3_compare): New pattern.
6735         (rrx): New pattern.
6736         * config/arm/unspecs.md (UNSPEC_RRX): New.
6738 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6740         * config/arm/arm.md (negdi_extendsidi): New pattern.
6741         (negdi_zero_extendsidi): Likewise.
6743 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6745         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6746         define_insn_and_split.
6747         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6748         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6750 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6752         * config/arm/arm.md (arm_subdi3): Convert define_insn into
6753         define_insn_and_split.
6754         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6755         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6757 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6759         * config/arm/arm.md (subsi3_carryin): New pattern.
6760         (subsi3_carryin_const): Likewise.
6761         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6762         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6764 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6766         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6768 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6770         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6771         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6773 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6775         * config/arm/arm.c (arm_expand_builtin): Change fcode
6776         type to unsigned int.
6778 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6780         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6782 2013-04-04  Ian Lance Taylor  <iant@google.com>
6784         * doc/standards.texi (Standards): The Go frontend supports the Go 1
6785         language standard.
6787 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6789         PR middle-end/56729
6790         * df-scan.c (df_insn_delete): Disable failing assert.
6792 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6794         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6795         New function prototype.
6796         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6797         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6798         (arm_builtin_vectorized_function): New function.
6800 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6802         * config/arm/arm_neon_builtins.def: New file.
6803         * config/arm/arm.c (neon_builtin_data): Move contents to
6804         arm_neon_builtins.def.
6805         (enum arm_builtins): Include neon builtin definitions.
6806         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6807         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6809 2013-04-04  Marek Polacek  <polacek@redhat.com>
6811         PR tree-optimization/48186
6812         * predict.c (maybe_hot_frequency_p): Return false if
6813         HOT_BB_FREQUENCY_FRACTION is 0.
6814         (cgraph_maybe_hot_edge_p): Likewise.
6816 2013-04-04  Richard Biener  <rguenther@suse.de>
6818         PR tree-optimization/56826
6819         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6820         more accurately.
6822 2013-04-04  Richard Biener  <rguenther@suse.de>
6824         PR tree-optimization/56213
6825         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6826         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6828 2013-04-04  Richard Biener  <rguenther@suse.de>
6830         PR tree-optimization/56837
6831         * tree-loop-distribution.c (classify_partition): For non-zero
6832         values require that the value has the same precision as its
6833         mode to be useful as memset value.
6835 2013-04-03  Nick Clifton  <nickc@redhat.com>
6837         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6838         (fmssf4): Use fmsf.s on E3V5 architectures.
6839         (fnmasf4): Use fnmaf.s on E3V5 architectures.
6840         (fnmssf4): Use fnmsf.s on E3V5 architectures.
6842 2013-04-03  Jeff Law  <law@redhat.com>
6844         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6845         (lra-eliminations.o): Likewise.
6847 2013-04-03  Teresa Johnson  <tejohnson@google.com>
6849         * gcov-io.c (compute_working_sets): Moved most of body of old
6850         compute_working_sets here from profile.c.
6851         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6852         (gcov_working_set_t): Moved typedef here from basic-block.h
6853         (compute_working_set): Declare.
6854         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6855         (get_working_sets): Renamed from compute_working_set,
6856         replace most of body with call to new compute_working_sets.
6857         (get_exec_counts): Replace call to compute_working_sets
6858         to get_working_sets.
6859         * profile.h (get_working_sets): Renamed from compute_working_set.
6860         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6861         to get_working_sets.
6862         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6863         * gcov-dump.c (dump_working_sets): New function.
6865 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
6867         * hwint.c (sext_hwi, zext_hwi): New functions.
6868         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6869         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6870         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6871         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6872         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6873         (sext_hwi, zext_hwi): New functions.
6875 2013-04-03  Jeff Law  <law@redhat.com>
6877         PR tree-optimization/56799
6878         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6879         back test for widening conversion erroneously dropped in prior change.
6881 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6883         PR target/56809
6884         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6885         instead of next_real_insn.
6887 2013-04-03  Marek Polacek  <polacek@redhat.com>
6889         PR sanitizer/55702
6890         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6892 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6894         PR target/56809
6895         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6896         next_real_insn.
6897         (thumb1_output_casesi): Likewise.
6898         (thumb2_output_casesi): Likewise.
6900 2013-04-03  Richard Biener  <rguenther@suse.de>
6902         PR tree-optimization/56817
6903         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6904         Split out ...
6905         (tree_unroll_loops_completely_1): ... new function to manually
6906         walk the loop tree, properly defering outer loops of unrolled
6907         loops to later iterations.
6909 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6911         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6912         (vectorizable_load): Likewise.
6913         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6914         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6916 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6918         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6919         BIT_FIELD_REF.
6921 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6923         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6925 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
6927         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6929 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6931         PR tree-optimization/56790
6932         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6933         folding.
6935 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6937         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6938         Handle VEC_MERGE.
6939         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6940         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6941         equal arguments.
6943 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
6945         PR c/19449
6946         * tree.h (force_folding_builtin_constant_p): New decl.
6947         * builtins.c (force_folding_builtin_constant_p): New variable.
6948         (fold_builtin_constant_p): Fold immediately also if
6949         force_folding_builtin_constant_p.
6951 2013-04-03  Richard Biener  <rguenther@suse.de>
6953         PR tree-optimization/56812
6954         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6955         DRs of the same interleaving chain are independent.
6957 2013-04-02  Jason Merrill  <jason@redhat.com>
6959         * gdbinit.in (pbb): Use debug fn.
6961 2013-04-02  Lawrence Crowl  <crowl@google.com>
6963         * sese.h (struct ivtype_map_elt_s): Remove unused.
6964         (extern debug_ivtype_map): Remove unused.
6965         (extern eq_ivtype_map_elts): Remove unused.
6966         * sese.c (debug_ivtype_map): Removed unused.
6967         (debug_ivtype_map_1): Removed unused.
6968         (debug_ivtype_elt): Remove unused.
6969         (eq_ivtype_map_elts): Remove unused.
6972 2013-04-02  Kai Tietz  <ktietz@redhat.com>
6974         PR target/52790
6975         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6976         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
6977         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6978         function.
6979         (legitimize_pe_coff_symbol): Likewise.
6980         (is_imported_p): New helper-function.
6981         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6982         for Windows x64 targets.
6983         (ix86_expand_prologue): Optimize for pe-coff targets.
6984         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6985         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6986         medium/large code-model.
6987         (legitimize_pic_address): Likewise.
6988         (legitimize_tls_address): Likewise.
6989         (ix86_expand_call): Likewise.
6990         (x86_output_mi_thunk): Likewise.
6991         (get_dllimport_decl): Add new beimport argument.
6992         (construct_plt_address): Don't assert for x64 pe-coff targets.
6993         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6994         targets.
6995         (SYMBOL_FLAG_STUBVAR): New macro.
6996         (SYMBOL_REF_STUBVAR_P): Likewise.
6997         * config/i386/winnt.c (stub_list): New structure.
6998         (stub_head): New local variable.
6999         (i386_pe_record_stub): New function.
7000         (i386_pe_file_end): Emit refptr-stubs.
7002 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7004         PR rtl-optimization/56745
7005         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7006         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7008         PR c++/34949
7009         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7010         and both of them are MEM_REFs, just compare first argument for
7011         equality and attempt to deal even with differing offsets.
7013         PR c++/34949
7014         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7015         of gimple_clobber_p to be MEM_REF.
7016         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7017         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7018         after gimplification.
7019         * asan.c (get_mem_ref_of_assignment): Don't instrument
7020         gimple_clobber_p stmts.
7021         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7022         gimple_clobber_p stmt if they have MEM_REF lhs and
7023         are dead because of another gimple_clobber_p stmt.
7024         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7025         gimple_clobber_p stmts like debug stmts.
7026         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7027         that refer to unused VAR_DECLs or uninitialized values.
7028         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7029         gimple_clobber_p stmts if they refer to removed parameters.
7030         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7031         formatting.
7033 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7035         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7036         using SWI48 mode attribute.
7038 2013-04-02  Wei Mi  <wmi@google.com>
7040         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7041         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7042         *<rotate_insn><mode>3_mask in i386.md.
7044 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7046         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7048 2013-04-02  Richard Biener  <rguenther@suse.de>
7050         PR tree-optimization/56778
7051         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7052         Runtime alias tests are not supported for gather loads.
7053         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7054         stmts referenced from SSA operands before updating SSA form.
7056 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7057             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7059         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7060         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7061         * config/arm/cortex-a53.md: New file.
7062         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7063         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7064         * config/arm/arm.c (arm_issue_rate): Likewise.
7065         * config/arm/arm-tune.md: Regenerate
7066         * config/arm/arm-tables.opt: Regenerate.
7067         * config/arm/arm-cores.def: Add cortex-a53.
7069 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7071         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7072         non-static link.
7074 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7076         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7077         scalar load/store operations using B/H registers.
7078         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7080 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7082         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7083         scalar move.
7084         * config/aarch64/aarch64.c
7085         (aarch64_simd_scalar_immediate_valid_for_move): New.
7086         * config/aarch64/aarch64-protos.h
7087         (aarch64_simd_scalar_immediate_valid_for_move): New.
7088         * config/aarch64/constraints.md (Dh, Dq): New.
7089         * config/aarch64/iterators.md (hq): New.
7091 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7093         * reorg.c (get_branch_condition): Deal with conditional returns.
7094         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7096 2013-04-01  Wei Mi  <wmi@google.com>
7098         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7099         Truncate operand 2 using %b asm operand modifier.
7100         (*<shift_insn><mode>3_mask): Ditto.
7101         (*<rotate_insn><mode>3_mask): Ditto.
7103 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7105         PR middle-end/56798
7106         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7108 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7110         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7111         of next_real_insn.
7112         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7114 2013-03-30  Lawrence Crowl  <crowl@google.com>
7116         * dse.c (clear_alias_sets): Remove never set.
7117         (disqualified_clear_alias_sets): Remove never set.
7118         (clear_alias_mode_pool): Remove never set.
7119         (dse_step0): Remove condition that is never true.
7120         (canon_address): Remove condition that is never true.
7121         (dse_step7): Remove condition that is never true.
7122         (rest_of_handle_dse): Remove condition that is never true.
7123         (rest_of_handle_dse::did_global): Remove never read from above.
7124         (dse_step2_spill): Remove never called from above.
7125         (dse_step5_spill): Remove never called from above.
7127 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7129         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7130         JUMP_TABLE_DATA changes.
7131         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7132         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7133         (Insns) <jump_table_data>: New entry.
7134         * doc/tm.texi: Regenerate.
7136         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7138         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7139         for table jump at the end of a basic block using tablejump_p.
7140         * targhooks.c (default_invalid_within_doloop): Likewise.
7141         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7142         target hook implementation that is identical to the default hook.
7143         (rs6000_invalid_within_doloop): Remove.
7145         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7146         unused variable from tablejump_p call.
7148         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7149         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7150         (INSN_DELETED_P): Likewise.
7151         (emit_jump_table_data): New prototype.
7152         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7153         after 4th as unused.
7154         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7155         * sched-vis.c (print_insn): Likewise.
7156         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7157         insn for compatibility with back ends that use next_active_insn to
7158         identify jump table data.
7159         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7160         (remove_insn): Likewise.
7161         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7162         to be emitted.
7163         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7164         (emit_jump_table_data): New function.
7166         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7167         basic block, a JUMP_TABLE_DATA never is.
7168         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7169         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7170         off from code handling real insns.
7171         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7172         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7173         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7174         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7175         is not a NONDEBUG_INSN_P.
7176         * ira-costs.c (scan_one_insn): Likewise.
7177         * jump.c (mark_all_labels): Likewise.
7178         (mark_jump_label_1): Likewise.
7179         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7180         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7181         a basic block.
7182         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7183         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7184         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7185         JUMP_TABLE_DATA_P insns.
7186         (calculate_elim_costs_all_insns): Likewise.
7187         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7188         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7189         (delete_output_reload): Code style fixups.
7190         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7191         insn flags on this non-insn.
7192         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7193         as scheduling barriers, for pre-change compatibility.
7194         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7195         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7197         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7198         redundant JUMP_TABLE_DATA_P test.
7199         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7200         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7201         (frv_for_each_packet): Likewise.
7202         * config/i386/i386.c (min_insn_size): Likewise.
7203         (ix86_avoid_jump_mispredicts): Likewise.
7204         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7205         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7206         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7207         (mips16_insn_length): Robustify.
7208         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7209         (mips16_split_long_branches): Likewise.
7210         * config/pa/pa.c (pa_combine_instructions): Likewise.
7211         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7212         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7213         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7214         as contributing to pool range lengths.
7215         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7216         Remove redundant JUMP_TABLE_DATA_P test.
7217         (sh_loop_align): Likewise.
7218         (split_branches): Likewise.
7219         (sh_insn_length_adjustment): Likewise.
7220         * config/spu/spu.c (get_branch_target): Likewise.
7222 2013-03-29  Jan Hubicka  <jh@suse.cz>
7224         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7225         gcov streaming; stream hot bb threshold to ltrans.
7226         * predict.c (get_hot_bb_threshold): Break out from ....
7227         (maybe_hot_count_p): ... here.
7228         (set_hot_bb_threshold): New function.
7229         * lto-section-in.c (lto_section_name): Add profile.
7230         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7231         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7232         and data-streamer.h
7233         (histogram_entry): New structure.
7234         (histogram, histogram_pool): New global vars.
7235         (histogram_hash): New structure.
7236         (histogram_hash::hash): New method.
7237         (histogram_hash::equal): Likewise.
7238         (account_time_size): New function.
7239         (cmp_counts): New function.
7240         (dump_histogram): New function.
7241         (ipa_profile_generate_summary): New function.
7242         (ipa_profile_write_summary): New function.
7243         (ipa_profile_read_summary): New function.
7244         (ipa_profile): Decide on threshold.
7245         (pass_ipa_profile): Add ipa_profile_write_summary and
7246         ipa_profile_read_summary.
7247         * Makefile.in (ipa.o): Update dependencies.
7248         * lto-streamer.h (LTO_section_ipa_profile): New section.
7250 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7252         * tree.h (VAR_P): New.
7254 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7256         PR lto/56777
7257         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7259 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7261         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7262         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7263         (control_flow_insn_p): Likewise.
7264         * cfgrtl.c (duplicate_insn_chain): Likewise.
7265         * final.c (get_attr_length_1): Likewise.
7266         (shorten_branches): Likewise.
7267         (final_scan_insn): Likewise.
7268         * function.c (instantiate_virtual_regs): Likewise.
7269         * gcse.c (insert_insn_end_basic_block): Likewise.
7270         * ira-costs.c (scan_one_insn): Likewise.
7271         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7272         * lra.c (check_rtl): Likewise.
7273         * reload1.c (elimination_costs_in_insn): Likewise.
7274         * reorg.c (follow_jumps): Likewise.
7276         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7277         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7278         (thumb_far_jump_used_p): Likewise.
7279         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7280         (workaround_speculation): Likewise.
7281         (add_sched_insns_for_speculation): Likewise.
7282         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7283         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7284         (frv_for_each_packet): Likewise.
7285         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7286         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7287         (final_emit_insn_group_barriers): Likewise.
7288         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7289         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7290         (mips16_insn_length): Likewise.
7291         * config/pa/pa.c (pa_reorg): Likewise.
7292         (pa_combine_instructions): Likewise.
7293         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7294         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7295         (sh_reorg): Likewise.
7296         (split_branches): Likewise.
7297         * config/spu/spu.c (get_branch_target): Likewise.
7299         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7300         JUMP_TABLE_DATA_P.
7302 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7304         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7305         Fix declaration name.
7307 2013-03-28  Lawrence Crowl  <crowl@google.com>
7309         * graphds.h (struct graph.indicies): Remove unused.
7310         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7311         (SCOP_ORIGINAL_PDDRS): Remove unused.
7312         * sese.h (extern insert_loop_close_phis): Removed unused.
7313         (extern insert_guard_phis): Removed unused.
7314         (extern ivtype_map_elt_info): Removed unused.
7315         (new_ivtype_map_elt): Removed unused.
7316         * sese.c (ivtype_map_elt_info): Removed unused.
7318 2013-03-28  Lawrence Crowl  <crowl@google.com>
7320         * Makefile.in: Add several missing include dependences.
7321         (DUMPFILE_H): New.
7322         (test-dump.o): New.  This object is not added to any executable,
7323         but is present for ad-hoc testing.
7324         * bitmap.c
7325         (debug (const bitmap_head_def &)): New.
7326         (debug (const bitmap_head_def *)): New.
7327         * bitmap.h
7328         (extern debug (const bitmap_head_def &)): New.
7329         (extern debug (const bitmap_head_def *)): New.
7330         * cfg.c
7331         (debug (edge_def &)): New.
7332         (debug (edge_def *)): New.
7333         * cfghooks.c
7334         (debug (basic_block_def &)): New.
7335         (debug (basic_block_def *)): New.
7336         * dumpfile.h
7337         (dump_node (const_tree, int, FILE *)): Correct source file.
7338         * dwarf2out.c
7339         (debug (die_struct &)): New.
7340         (debug (die_struct *)): New.
7341         * dwarf2out.h
7342         (extern debug (die_struct &)): New.
7343         (extern debug (die_struct *)): New.
7344         * gimple-pretty-print.c
7345         (debug (gimple_statement_d &)): New.
7346         (debug (gimple_statement_d *)): New.
7347         * gimple-pretty-print.h
7348         (extern debug (gimple_statement_d &)): New.
7349         (extern debug (gimple_statement_d *)): New.
7350         * ira-build.c
7351         (debug (ira_allocno_copy &)): New.
7352         (debug (ira_allocno_copy *)): New.
7353         (debug (ira_allocno &)): New.
7354         (debug (ira_allocno *)): New.
7355         * ira-int.h
7356         (extern debug (ira_allocno_copy &)): New.
7357         (extern debug (ira_allocno_copy *)): New.
7358         (extern debug (ira_allocno &)): New.
7359         (extern debug (ira_allocno *)): New.
7360         * ira-lives.c
7361         (debug (live_range &)): New.
7362         (debug (live_range *)): New.
7363         * lra-int.h
7364         (debug (lra_live_range &)): New.
7365         (debug (lra_live_range *)): New.
7366         * lra-lives.c
7367         (debug (lra_live_range &)): New.
7368         (debug (lra_live_range *)): New.
7369         * omega.c
7370         (debug (omega_pb_d &)): New.
7371         (debug (omega_pb_d *)): New.
7372         * omega.h
7373         (extern debug (omega_pb_d &)): New.
7374         (extern debug (omega_pb_d *)): New.
7375         * print-rtl.c
7376         (debug (const rtx_def &)): New.
7377         (debug (const rtx_def *)): New.
7378         * print-tree.c
7379         (debug_tree (tree): Move within file.
7380         (debug_raw (const tree_node &)): New.
7381         (debug_raw (const tree_node *)): New.
7382         (dump_tree_via_hooks (const tree_node *, int)): New.
7383         (debug (const tree_node &)): New.
7384         (debug (const tree_node *)): New.
7385         (debug_verbose (const tree_node &)): New.
7386         (debug_verbose (const tree_node *)): New.
7387         (debug_head (const tree_node &)): New.
7388         (debug_head (const tree_node *)): New.
7389         (debug_body (const tree_node &)): New.
7390         (debug_body (const tree_node *)): New.
7391         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7392         (debug (vec<tree, va_gc> &)): New.
7393         (debug (vec<tree, va_gc> *)): New.
7394         * rtl.h
7395         (extern debug (const rtx_def &)): New.
7396         (extern debug (const rtx_def *)): New.
7397         * sbitmap.c
7398         (debug_raw (simple_bitmap_def &)): New.
7399         (debug_raw (simple_bitmap_def *)): New.
7400         (debug (simple_bitmap_def &)): New.
7401         (debug (simple_bitmap_def *)): New.
7402         * sbitmap.h
7403         (extern debug (simple_bitmap_def &)): New.
7404         (extern debug (simple_bitmap_def *)): New.
7405         (extern debug_raw (simple_bitmap_def &)): New.
7406         (extern debug_raw (simple_bitmap_def *)): New.
7407         * sel-sched-dump.c
7408         (debug (vinsn_def &)): New.
7409         (debug (vinsn_def *)): New.
7410         (debug_verbose (vinsn_def &)): New.
7411         (debug_verbose (vinsn_def *)): New.
7412         (debug (expr_def &)): New.
7413         (debug (expr_def *)): New.
7414         (debug_verbose (expr_def &)): New.
7415         (debug_verbose (expr_def *)): New.
7416         (debug (vec<rtx> &)): New.
7417         (debug (vec<rtx> *)): New.
7418         * sel-sched-dump.h
7419         (extern debug (vinsn_def &)): New.
7420         (extern debug (vinsn_def *)): New.
7421         (extern debug_verbose (vinsn_def &)): New.
7422         (extern debug_verbose (vinsn_def *)): New.
7423         (extern debug (expr_def &)): New.
7424         (extern debug (expr_def *)): New.
7425         (extern debug_verbose (expr_def &)): New.
7426         (extern debug_verbose (expr_def *)): New.
7427         (extern debug (vec<rtx> &)): New.
7428         (extern debug (vec<rtx> *)): New.
7429         * sel-sched-ir.h
7430         (_list_iter_cond_expr): Make inline instead of static.
7431         * sreal.c
7432         (debug (sreal &)): New.
7433         (debug (sreal *)): New.
7434         * sreal.h
7435         (extern debug (sreal &)): New.
7436         (extern debug (sreal *)): New.
7437         * tree.h
7438         (extern debug_raw (const tree_node &)): New.
7439         (extern debug_raw (const tree_node *)): New.
7440         (extern debug (const tree_node &)): New.
7441         (extern debug (const tree_node *)): New.
7442         (extern debug_verbose (const tree_node &)): New.
7443         (extern debug_verbose (const tree_node *)): New.
7444         (extern debug_head (const tree_node &)): New.
7445         (extern debug_head (const tree_node *)): New.
7446         (extern debug_body (const tree_node &)): New.
7447         (extern debug_body (const tree_node *)): New.
7448         (extern debug (vec<tree, va_gc> &)): New.
7449         (extern debug (vec<tree, va_gc> *)): New.
7450         * tree-cfg.c
7451         (debug (struct loop &)): New.
7452         (debug (struct loop *)): New.
7453         (debug_verbose (struct loop &)): New.
7454         (debug_verbose (struct loop *)): New.
7455         * tree-dump.c: Add header dependence.
7456         * tree-flow.h
7457         (extern debug (struct loop &)): New.
7458         (extern debug (struct loop *)): New.
7459         (extern debug_verbose (struct loop &)): New.
7460         (extern debug_verbose (struct loop *)): New.
7461         * tree-data-ref.c
7462         (debug (data_reference &)): New.
7463         (debug (data_reference *)): New.
7464         (debug (vec<data_reference_p> &)): New.
7465         (debug (vec<data_reference_p> *)): New.
7466         (debug (vec<ddr_p> &)): New.
7467         (debug (vec<ddr_p> *)): New.
7468         * tree-data-ref.h
7469         (extern debug (data_reference &)): New.
7470         (extern debug (data_reference *)): New.
7471         (extern debug (vec<data_reference_p> &)): New.
7472         (extern debug (vec<data_reference_p> *)): New.
7473         (extern debug (vec<ddr_p> &)): New.
7474         (extern debug (vec<ddr_p> *)): New.
7475         * tree-ssa-alias.c
7476         (debug (pt_solution &)): New.
7477         (debug (pt_solution *)): New.
7478         * tree-ssa-alias.h
7479         (extern debug (pt_solution &)): New.
7480         (extern debug (pt_solution *)): New.
7481         * tree-ssa-alias.c
7482         (debug (_var_map &)): New.
7483         (debug (_var_map *)): New.
7484         (debug (tree_live_info_d &)): New.
7485         (debug (tree_live_info_d *)): New.
7486         * tree-ssa-alias.h
7487         (extern debug (_var_map &)): New.
7488         (extern debug (_var_map *)): New.
7489         (extern debug (tree_live_info_d &)): New.
7490         (extern debug (tree_live_info_d *)): New.
7492 2013-03-28  Jan Hubicka  <jh@suse.cz>
7494         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7496 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7498         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7499         record only when desired or required.
7501 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7503         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7504         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7506 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7508         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7509         (*andsi3_compare0_uxtw): New pattern.
7510         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7511         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7513 2013-03-28  Jan Hubicka  <jh@suse.cz>
7515         * data-streamer-in.c (streamer_read_gcov_count): New function.
7516         * gimple-streamer-out.c: Include value-prof.h.
7517         (output_gimple_stmt): Output histogram.
7518         (output_bb): Use streamer_write_gcov_count.
7519         * value-prof.c: Include data-streamer.h
7520         (dump_histogram_value): Add HIST_TYPE_MAX.
7521         (stream_out_histogram_value): New function.
7522         (stream_in_histogram_value): New function.
7523         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7524         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7525         * data-streamer-out.c (streamer_write_gcov_count): New function.
7526         (streamer_write_gcov_count_stream): New function.
7527         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7528         (lto_output_node): Likewise.
7529         (input_node, input_edge): Likewise.
7530         * lto-streamer-out.c (output_cfg): Update streaming.
7531         * lto-streamer-in.c (input_cfg): Likewise.
7532         * data-streamer.h (streamer_write_gcov_count,
7533         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7534         * gimple-streamer-in.c: Include value-prof.h
7535         (input_gimple_stmt): Input histograms.
7536         (input_bb): Update profile streaming.
7538 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7540         * genmodes.c (emit_max_int): New function.
7541         (emit_insn_modes_h): Added call to emit_max_function.
7542         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7543         Added doc.
7544         * machmode.def: Fixed comment.
7546 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7548         * combine.c (try_combine): Removed useless assert.
7549         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7551 2013-03-28  Marek Polacek  <polacek@redhat.com>
7552             Richard Biener  <rguenther@suse.de>
7554         PR tree-optimization/56695
7555         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7556         build signed result of a vector comparison.
7557         * tree-cfg.c (verify_gimple_comparison): Check that a result
7558         of a vector comparison has signed type.
7560 2013-03-28  Richard Biener  <rguenther@suse.de>
7562         PR tree-optimization/37021
7563         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7564         do not restrict gaps between groups.
7565         * tree-vect-stmts.c (vectorizable_load): Properly account for
7566         a gap between groups.
7568 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7570         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7571         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7572         is not enabled.
7574 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7576         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7577         * doc/extend.texi (Named Address Spaces): Ditto.
7578         (Variable Attributes): Ditto.
7580 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7582         * config.build: Add support for cygwin x64 target.
7583         * config.gcc: Likewise.
7584         * config.host: Likewise.
7585         * configure.ac: Likewise
7586         * configure: Regenerated.
7588 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7590         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7591         * config/i386/t-cygwin-w64: New file.
7592         * config/i386/cygwin-w64.h: New file.
7593         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7594         and add support for x64-cygwin target.
7595         (CPP_SPEC): Likewise.
7596         (CXX_WRAP_SPEC_LIST): Undefine before define.
7597         (LIBGCJ_SONAME): Use 15 as version.
7599 2013-03-27  Richard Biener  <rguenther@suse.de>
7601         PR tree-optimization/56716
7602         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7603         dumping for ref nodes.
7605 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7607         PR tree-optimization/55334
7608         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7609         restricted pointers to arrays.
7611 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7613         * Makefile.in (.SUFFIXES): Add .cc.
7614         (.c.o): Apply same recipe for implicit rule .cc.o.
7616 2013-03-27  Richard Biener  <rguenther@suse.de>
7618         PR tree-optimization/37021
7619         * tree-vect-data-refs.c (vect_check_strided_load): Allow
7620         REALPART/IMAGPART_EXPRs around the supported refs.
7621         * tree-ssa-structalias.c (find_func_aliases): Assume that
7622         floating-point values are not used to transfer pointers.
7624 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7626         * target.def (TARGET_HAS_IFUNC_P): New target hook.
7627         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7628         * doc/tm.texi: Regenerate.
7629         * targhooks.h (default_has_ifunc_p): New.
7630         * targhooks.c (default_has_ifunc_p): Ditto.
7631         * config/linux-protos.h: New file.
7632         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7633         this hook for linux which disables support of indirect functions in
7634         android.
7635         * config/linux-android.c: New file.
7636         * config/t-linux-android.c: Ditto.
7637         * config.gcc: Added new object file linux-android.o.
7638         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7639         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7640         * varasm.c (do_assemble_alias): Likewise.
7641         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7642         doesn't support indirect functions.
7643         * configure: Regenerate.
7645 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
7647         PR target/56102
7648         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7649         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7650         mult-word mode.
7652 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7654         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7656 2013-03-27  Terry Guo  <terry.guo@arm.com>
7658         * config/arm/arm-cores.def: Added core cortex-r7.
7659         * config/arm/arm-tune.md: Regenerated.
7660         * config/arm/arm-tables.opt: Regenerated.
7661         * doc/invoke.texi: Added entry for core cortex-r7.
7663 2013-03-27  Walter Lee  <walt@tilera.com>
7665         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7666         double-decrement of next_scratch_regno.
7668 2013-03-27  Walter Lee  <walt@tilera.com>
7670         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7671         input operands.
7672         (insn_v1mulus): Ditto.
7673         (insn_v2muls): Ditto.
7675 2013-03-27  Walter Lee  <walt@tilera.com>
7677         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7678         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7680 2013-03-27  Walter Lee  <walt@tilera.com>
7682         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7683         (*sibcall_value): Ditto.
7685 2013-03-27  Walter Lee  <walt@tilera.com>
7687         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7688         (insn_mnz_v8qi): ... this ...
7689         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
7690         vector equivalent.
7691         (insn_v<n>mnz): Replaced by ...
7692         (insn_v1mnz): ... this ...
7693         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
7694         equivalent.
7695         (insn_mz_<mode>): Replaced by ...
7696         (insn_mz_v8qi): ... this ...
7697         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
7698         vector equivalent.
7699         (insn_v<n>mz): Replaced by ...
7700         (insn_v1mz): ... this ...
7701         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
7702         equivalent.
7704 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7706         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7708 2013-03-26  Roland McGrath  <mcgrathr@google.com>
7710         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7711         than fprintf with a non-constant, non-format string.
7713 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7715         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7716         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
7717         operand 0 predicate.
7718         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7719         attribute.  Use general_x64nomem_operand as operand 1 predicate.
7720         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7721         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7722         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7723         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7724         (mov<mode>_insv_1): Remove expander.  Merge insn with
7725         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7726         Use general_x64nomem_operand as operand 1 predicate.
7727         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7728         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7729         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7730         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7731         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
7732         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7733         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7734         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7735         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
7736         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7737         (general_x64nomem_operand): Ditto.
7739 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7741         * config/rtems.opt: Add -pthread option.
7743 2013-03-26  Richard Biener  <rguenther@suse.de>
7745         * alias.c (find_base_term): Avoid redundant and not used recursion.
7746         (base_alias_check): Get the initial base term from the caller.
7747         (true_dependence_1): Compute and pass base terms to base_alias_check.
7748         (write_dependence_p): Likewise.
7749         (may_alias_p): Likewise.
7751 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
7753         * config/aarch64/aarch64.c (aarch64_classify_address): Support
7754         PC-relative load in SI modes and above only.
7756 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
7758         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7759         * config/arm/iwmmxt.md (WCGR0): Update.
7760         (WCGR1, WCGR2, WCGR3): Likewise.
7762 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7764         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7765         Use x64 and nox64 isa attributes.
7767 2013-03-26  Richard Biener  <rguenther@suse.de>
7769         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7770         alignment computations and rely on get_object_alignment_1
7771         for the !TYPE_P case.
7772         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7774 2013-03-26  Walter Lee  <walt@tilera.com>
7776         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7777         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7779 2013-03-25  Jeff Law  <law@redhat.com>
7781         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7782         check for INTEGRAL_TYPE_P that was missing due to checking in
7783         wrong version of prior patch.
7785 2013-03-25  Walter Lee  <walt@tilera.com>
7787         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7788         TILEGX_INSN_SHUFFLEBYTES1.
7789         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7790         shufflebytes1.
7791         (tilegx_builtins): Ditto.
7792         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7794 2013-03-25  Walter Lee  <walt@tilera.com>
7796         * config/tilegx/tilegx.md (floatsisf2): New pattern.
7797         (floatunssisf2): New pattern.
7798         (floatsidf2): New pattern.
7799         (floatunssidf2): New pattern.
7801 2013-03-25  Walter Lee  <walt@tilera.com>
7803         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7804         tests for constraint J, K, N, P.
7806 2013-03-25  Walter Lee  <walt@tilera.com>
7808         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7809         Use indirect/pcrel encoding.
7810         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7811         Ditto.
7813 2013-03-25  Steve Ellcey  <sellcey@mips.com>
7815         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7816         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7817         * config/mips/mips.c (mips_option_override): Set IMADD default.
7818         * config/mips/mips.h (PTF_AVOID_IMADD): New.
7819         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7820         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7821         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7822         * doc/invoke.texi (-mimadd/-mno-imadd): New.
7824 2013-03-25  Jeff Law  <law@redhat.com>
7826         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7827         slightly to avoid creating and folding useless trees.  Simplify
7828         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7830 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
7832         * config/i386/i386.md (*zero_extendsidi2): Merge with
7833         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
7834         * config/i386/predicates.md (x86_64_zext_operand): Rename from
7835         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
7836         targets.  Clarify comment.
7838 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7840         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7841         pass-through jump functions differently.
7842         (ipa_read_jump_function): Likewise.  Also use setter functions to set
7843         up jump functions.
7845 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7847         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7848         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7849         process it.
7850         (ipa_get_indirect_edge_target): New function.
7851         (devirtualization_time_bonus): New parameter known_aggs, pass it to
7852         ipa_get_indirect_edge_target.  Update all callers.
7853         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
7854         ipa_get_indirect_edge_target_1 instead of calling
7855         ipa_get_indirect_edge_target.
7856         (create_specialized_node): Pass aggvlas to
7857         ipcp_discover_new_direct_edges.
7859 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7861         * config/arm/arm.md (f_sels, f_seld): New types.
7862         (*cmov<mode>): New pattern.
7863         * config/arm/predicates.md (arm_vsel_comparison_operator): New
7864         predicate.
7866 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7868         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7869         POSIX-printf for mingw-hosted  builds.
7871 2013-03-25  Richard Biener  <rguenther@suse.de>
7873         PR middle-end/56694
7874         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7875         must-not-throw stmt location.
7877 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7879         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7880         Emit load-acquire versions when acq is true.
7881         (arm_emit_store_exclusive): Add rel parameter.
7882         Emit store-release versions when rel is true.
7883         (arm_split_compare_and_swap): Use acquire-release instructions
7884         instead.
7885         of barriers when appropriate.
7886         (arm_split_atomic_op): Likewise.
7887         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7888         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7889         (VUNSPEC_SLX): Likewise.
7890         (VUNSPEC_LDA): Likewise.
7891         (VUNSPEC_STL): Likewise.
7892         * config/arm/sync.md (atomic_load<mode>): New pattern.
7893         (atomic_store<mode>): Likewise.
7894         (arm_load_acquire_exclusive<mode>): Likewise.
7895         (arm_load_acquire_exclusivesi): Likewise.
7896         (arm_load_acquire_exclusivedi): Likewise.
7897         (arm_store_release_exclusive<mode>): Likewise.
7899 2013-03-25  Catherine Moore  <clm@codesourcery.com>
7901         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7902         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7903         * config/mip/predicates.md (lwsp_swsp_operand,
7904         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7905         sb16_operand, db4_operand, db7_operand, ib3_operand,
7906         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7907         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7908         andi16_operand): New predicates.
7909         * config/mips/mips.md (compression): New attribute.
7910         (enabled): New attribute.
7911         (length): Consider compression in computing length.
7912         (shift_compression): New code attribute.
7913         (*add<mode>3): New operands. Record compression.
7914         (sub<mode>3): Likewise.
7915         (one_cmpl<mode>2): Likewise.
7916         (*and<mode>3): Likewise.
7917         (*ior<mode>3): Likewise.
7918         (unnamed pattern for xor): Likewise.
7919         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7920         (*<optab><mode>3): Likewise.
7921         (*mov<mode>_internal: Likewise.
7922         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7923         (mips_unsigned_immediate_p): New.
7924         (umips_lwsp_swsp_address_p): New.
7925         (m16_based_address_p): New.
7926         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7927         (mips_unsigned_immediate_p): New prototype.
7928         (lwsp_swsp_address_p): New prototype.
7929         (m16_based_address_p): New prototype.
7930         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7931         (mips_signed_immediate_p): New function.
7932         (m16_based_address_p): New function.
7933         (lwsp_swsp_address_p): New function.
7934         (mips_print_operand_punctuation): Recognize short delay slot insns
7935         for microMIPS.add<mode>3"
7937 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7939         PR target/56720
7940         * config/arm/iterators.md (v_cmp_result): New mode attribute.
7941         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7943 2013-03-25  Richard Biener  <rguenther@suse.de>
7945         PR tree-optimization/56689
7946         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7947         any edge.
7949 2013-03-25  Richard Biener  <rguenther@suse.de>
7951         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7952         of bitmap.
7953         (memory_references): Likewise.
7954         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7955         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7956         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7957         (gather_mem_refs_in_loops): Fold into ...
7958         (analyze_memory_references): ... this.  Move initialization
7959         to tree_ssa_lim_initialize.
7960         (fill_always_executed_in): Rename to ...
7961         (fill_always_executed_in_1): ... this.
7962         (fill_always_executed_in): Move contains_call computation to
7963         this new function from ...
7964         (tree_ssa_lim_initialize): ... here.
7965         (tree_ssa_lim): Call fill_always_executed_in.
7967 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7969         * postreload.c (reload_combine): Fix code detecting returns.
7971 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7973         * function.c (emit_use_return_register_into_block): On cc0 targets,
7974         do not emit the sequence between cc0 setter and user.
7976 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7978         * config/i386/predicates.md (local_symbolic_operand): Interpret
7979         dll-imported symbols as none-local.
7981 2013-03-25  Richard Biener  <rguenther@suse.de>
7983         * tree-ssa-loop-im.c (struct depend): Remove.
7984         (struct lim_aux_data): Make depends a vec of gimples.
7985         (free_lim_aux_data): Adjust.
7986         (add_dependency): Likewise.
7987         (set_level): Likewise.
7989 2013-03-25  Richard Biener  <rguenther@suse.de>
7991         PR middle-end/56434
7992         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7993         the pointer returned by calls with ECF_MALLOC set.
7995 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
7997         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7999 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8001         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8002         using MMXMODE mode iterator.
8003         (*move<mode>_internal): Merge with *movv2sf_internal and
8004         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8006 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8008         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8009         (record_last_mem_set_info): Likewise.
8011         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8012         of XNEWVEC followed by memset.
8013         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8015 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8017         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8018         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8019         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8020         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8021         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8022         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8023         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8024         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8025         BARRIER_P instead of GET_CODE.
8027 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8029         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8030         inaccuracy in the probing code.
8032         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8033         (ctrapdi4): Likewise.
8035 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8037         * calls.c (expand_call): Add missing guard to code handling return
8038         of non-BLKmode structures in MSB.
8039         * function.c (expand_function_end): Likewise.
8041 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8043         * combine.c (try_combine): Adjust comment.  Do not add the set of
8044         insn #0 if the destination indirectly is set or dies in insn #2.
8045         Tidy up code to distribute a new note.
8047 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8049         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8050         also for alternatives 16 and 17.
8052 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8054         * config/i386/sse.md (*mov<mode>_internal): Merge with
8055         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8056         Emit insn template depending on type attribute.  Use
8057         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8058         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8059         attribute calculation.  Remove unit attribute calculation.
8060         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8061         Set prefix_data16 attribute for DImode ssemov types.
8062         Use Ym instead of y for SSE-MMX conversion alternatives.
8063         Reorder operand constraints.
8065 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8067         * df.h (df_insn_delete): Adjust prototype.
8068         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8069         and let it decide whether mark the basic block dirty.
8070         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8071         * df-scan.c (df_insn_info_delete): New helper function, split
8072         off from df_insn_delete.
8073         (df_scan_free_bb_info): Use it.
8074         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8075         Likewise.
8076         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8077         that the insn is actually an insn and it has a non-NULL basic block.
8078         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8080 2013-03-22  Richard Biener  <rguenther@suse.de>
8082         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8083         dep_ref members.
8084         (mem_ref_alloc): Do not allocate them.
8085         (refs_independent_p): Do not query or maintain a cache.
8087 2013-03-22  Richard Biener  <rguenther@suse.de>
8089         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8090         (gather_mem_refs_in_loops): Do not compute it.
8091         (analyze_memory_references): Do not allocate it.
8092         (tree_ssa_lim_finalize): Do not free it.
8093         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8095 2013-03-22  Richard Biener  <rguenther@suse.de>
8097         * is-a.h (as_a): Use gcc_checking_assert.
8099 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8101         * config/aarch64/aarch64.c (aarch64_print_operand): New
8102         format specifier for printing a constant in hex.
8103         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8104         format specifier for printing second operand.
8106 2013-03-22  Richard Biener  <rguenther@suse.de>
8108         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8109         bitmaps.
8110         (gather_mem_refs_in_loops): Perform store accumulation here.
8111         (create_vop_ref_mapping_loop): Remove.
8112         (create_vop_ref_mapping): Likewise.
8113         (analyze_memory_references): Initialize refs_stored_in_loop.
8114         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8115         (record_indep_loop): Remove.
8116         (record_dep_loop): New function.
8117         (ref_indep_loop_p_1): Adjust to only walk over references
8118         in the loop, not its subloops.
8119         (ref_indep_loop_p): Rename to ...
8120         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8121         maintaining a more fine-grained cache.
8122         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8123         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8125 2013-03-22  Richard Biener  <rguenther@suse.de>
8127         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8128         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8129         aggregate mem_ref_loc.
8130         (free_mem_ref_locs): Inline into ...
8131         (memref_free): ... this and adjust.
8132         (mem_ref_alloc): Adjust.
8133         (mem_ref_locs_alloc): Remove.
8134         (record_mem_ref_loc): Adjust.
8135         (get_all_locs_in_loop): Rewrite into ...
8136         (for_all_locs_in_loop): ... this iterator.
8137         (rewrite_mem_ref_loc): New functor.
8138         (rewrite_mem_refs): Use for_all_locs_in_loop.
8139         (sm_set_flag_if_changed): New functor.
8140         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8141         (ref_always_accessed): New functor.
8142         (ref_always_accessed_p): Use for_all_locs_in_loop.
8144 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8146         * tree-pass.h (PROP_gimple_lvec): New.
8147         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8148         (init_optimization_passes): Move pass_lower_vector.
8149         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8150         PROP_gimple_lvec.
8151         (pass_lower_vector): Provide PROP_gimple_lvec.
8152         (pass_lower_vector_ssa): Likewise.
8153         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8155 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8157         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8159 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8161         * config/i386/i386.md (*movdi_internal): Disparage slightly
8162         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8163         conversion alternatives.
8165 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8167         PR middle-end/48087
8168         * diagnostic.def (DK_WERROR): New kind.
8169         * diagnostic.h (werrorcount): Define.
8170         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8171         promoted to DK_ERROR, increment DK_WERROR counter instead of
8172         DK_ERROR counter.
8173         * toplev.c (toplev_main): Call print_ignored_options even if
8174         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8175         even if just werrorcount is non-zero.
8177         PR debug/55608
8178         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8179         on failure.
8180         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8181         (string_cst_pool_decl): New function.
8182         (optimize_one_addr_into_implicit_ptr): New function.
8183         (resolve_addr_in_expr): Optimize DWARF location expression
8184         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8185         which doesn't live in memory, but has DW_AT_location or
8186         DW_AT_const_value, or refers to a string literal, into
8187         DW_OP_GNU_implicit_pointer.
8188         (optimize_location_into_implicit_ptr): New function.
8189         (resolve_addr): If removing DW_AT_location of a variable because
8190         it was DW_OP_addr of address of the variable, but the variable doesn't
8191         live in memory, try to emit const value attribute for the initializer.
8193 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8195         * tree.h (VECTOR_TYPE_P): New macro.
8196         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8197         TYPE_MODE): Use it.
8198         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8199         VEC_COND_EXPR cannot be lvalues.
8200         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8202 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8204         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8205         Restrict the transformation to equal modes.
8207 2013-03-21  Richard Biener  <rguenther@suse.de>
8209         PR tree-optimization/39326
8210         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8211         (MEM_ANALYZABLE): Adjust.
8212         (record_mem_ref_loc): Move bitmap ops ...
8213         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8214         unanalyzable refs, do not record locations for it.
8215         (analyze_memory_references): Allocate ref zero as shared
8216         unanalyzable ref.
8217         (refs_independent_p): Do not test for unanalyzed mems here.
8218         (ref_indep_loop_p_1): Special-case disambiguation against
8219         the unanalyzed ref.
8220         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8222 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8224         * config/arm/arm-protos.h (tune_params): Add
8225         prefer_neon_for_64bits field.
8226         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8227         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8228         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8229         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8230         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8231         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8232         (arm_option_override): Handle -mneon-for-64bits new option.
8233         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8234         (prefer_neon_for_64bits): Declare new variable.
8235         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8236         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8237         (arch_enabled): Handle new arch types. Remove support for onlya8
8238         and nota8.
8239         (one_cmpldi2): Use new arch names.
8240         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8241         * config/arm/arm.opt (mneon-for-64bits): Add option.
8242         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8243         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8244         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8245         of onlya8.
8246         * doc/invoke.texi (-mneon-for-64bits): Document.
8248 2013-03-21  Richard Biener  <rguenther@suse.de>
8250         PR tree-optimization/39326
8251         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8252         (sort_bbs_in_loop_postorder_cmp): New function.
8253         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8255 2013-03-21  Richard Biener  <rguenther@suse.de>
8257         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8258         (vect_insert_into_interleaving_chain): Likewise.
8259         (vect_drs_dependent_in_basic_block): Inline ...
8260         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8261         split out from ...
8262         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8263         (vect_check_interleaving): Simplify.
8264         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8265         (vect_slp_analyze_data_ref_dependences): ... this new function.
8266         (dr_group_sort_cmp): New function.
8267         (vect_analyze_data_ref_accesses): Compute data-reference groups
8268         here instead of in vect_analyze_data_ref_dependence.  Use
8269         a more efficient algorithm.
8270         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8271         vect_slp_analyze_data_ref_dependences.  Call
8272         vect_analyze_data_ref_accesses earlier.
8273         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8274         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8275         (vect_slp_analyze_data_ref_dependences): New prototype.
8277 2013-03-21  Richard Biener  <rguenther@suse.de>
8279         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8280         ref is stored in the loop.
8281         (find_refs_for_sm): Walk only over all stores.
8282         (store_motion_loop): Allocate from lim_bitmap_obstack.
8283         (store_motion): Likewise.
8285 2013-03-21  Richard Biener  <rguenther@suse.de>
8287         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8288         Update virtual SSA form.
8290 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8292         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8293         * configure: Regenerate.
8294         * config.in: Regenerate.
8295         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8296         if !HAVE_LD_EH_FRAME_CIEV3.
8298 2013-03-21  Richard Biener  <rguenther@suse.de>
8300         * tree-cfg.c (verify_expr_no_block): New function.
8301         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8302         nor DECL_VALUE_EXPR have locations with associated blocks.
8303         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8304         (clear_unused_block_pointer): Remove code dealing with
8305         blocks in DECL_DEBUG_EXPR locations.
8307 2013-03-21  Richard Biener  <rguenther@suse.de>
8309         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8310         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8311         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8312         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8313         instead of DECL_DEBUG_EXPR_IS_FROM.
8314         * gimplify.c (gimplify_modify_expr): Likewise.
8315         * tree-cfg.c (verify_expr_location_1): Likewise.
8316         * tree-complex.c (create_one_component_var): Likewise.
8317         * tree-sra.c (create_access_replacement): Likewise.
8318         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8319         (clear_unused_block_pointer): Likewise.
8320         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8321         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8322         * var-tracking.c (var_debug_decl): Likewise.
8323         (track_expr_p): Likewise.
8324         * tree-inline.c (add_local_variables): Likewise.  Set
8325         DECL_HAS_DEBUG_EXPR_P after copying it.
8326         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8327         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8329 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8331         PR bootstrap/56656
8332         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8333         * configure: Regenerate.
8334         * config.in: Regenerate.
8335         * config/i386/i386.md (*movdf_internal): Use
8336         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8337         movd instead of movq mnemonic for interunit moves.
8338         (*movdi_internal): Ditto.
8340 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8342         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8343         (abd<mode>_3): New pattern.
8344         (aba<mode>_3): New pattern.
8345         (fabd<mode>_3): New pattern.
8347 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8349         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8350         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8351         occurrence of REGISTER_PREFIX as its empty string.
8353 2013-03-20  Jeff Law  <law@redhat.com>
8355         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8356         addititional equivalences for equality comparisons between an SSA_NAME
8357         and a constant where the SSA_NAME was set from a widening conversion.
8359 2013-03-20  Walter Lee  <walt@tilera.com>
8361         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8363 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8365         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8366         depending on type attribute.
8367         (*movti_internal): Ditto.
8368         (*movtf_internal): Ditto.
8369         (*movxf_internal): Ditto.
8370         (*movdf_internal): Ditto.
8371         (*movsf_internal): Ditto.
8373 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8375         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8376         maybe_vex for sselog1 and ssemov types.
8377         (*movdi_internal): Reorder operand constraints.
8378         (*movsi_internal): Ditto.  Set prefix attribute to
8379         maybe_vex for sselog1 and ssemov types.
8380         (*movtf_internal): Set prefix attribute to maybe_vex
8381         for sselog1 and ssemov types.
8382         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8383         DImode ssemov types.  Reorder operand constraints.
8384         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8385         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8386         attribute for SImode ssemov types.  Reorder operand constraints.
8388 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8390         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8391         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8393 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8395         * config/rs6000/predicates.md (indexed_address, update_address_mem
8396         update_indexed_address_mem): New predicates.
8397         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8398         attribute for load/store instructions.
8399         * config/rs6000/dfp.md (movsd_store): Likewise.
8400         (movsd_load): Likewise.
8401         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8402         (unnamed HI->DI extend define_insn): Likewise.
8403         (unnamed SI->DI extend define_insn): Likewise.
8404         (unnamed QI->SI extend define_insn): Likewise.
8405         (unnamed QI->HI extend define_insn): Likewise.
8406         (unnamed HI->SI extend define_insn): Likewise.
8407         (unnamed HI->SI extend define_insn): Likewise.
8408         (extendsfdf2_fpr): Likewise.
8409         (movsi_internal1): Likewise.
8410         (movsi_internal1_single): Likewise.
8411         (movhi_internal): Likewise.
8412         (movqi_internal): Likewise.
8413         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8414         attribute for load/store instructions.
8415         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8416         instructions.
8417         (mov<mode>_softfloat): Likewise.
8418         (mov<mode>_hardfloat32): Likewise.
8419         (mov<mode>_hardfloat64): Likewise.
8420         (mov<mode>_softfloat64): Likewise.
8421         (movdi_internal32): Likewise.
8422         (movdi_internal64): Likewise.
8423         (probe_stack_<mode>): Likewise.
8425 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8427         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8428         floating point, and decimal floating point to reload iterator.
8430         * config/rs6000/constraints.md (wl constraint): New constraints to
8431         return FLOAT_REGS if certain options are used to reduce the number
8432         of separate patterns that exist in the file.
8433         (wx constraint): Likewise.
8434         (wz constraint): Likewise.
8436         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8437         -mdebug=reg, print wg, wl, wx, and wz constraints.
8438         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8439         Initialize the reload functions for 64-bit binary/decimal floating
8440         point types.
8441         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8442         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8443         create the buffer on the stack to overcome not having a 32-bit
8444         load and store.
8445         (rs6000_emit_move): Likewise.
8446         (rs6000_secondary_memory_needed_rtx): Likewise.
8447         (rs6000_alloc_sdmode_stack_slot): Likewise.
8448         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8449         via xxlxor, just like DFmode 0.0.
8451         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8452         define as 1 if we are running on a power7 or newer.
8453         (enum r6000_reg_class_enum): Add new constraints.
8455         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8456         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8457         with other moves by using conditional constraits (wg).  Use LFIWZX
8458         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8459         (movsd splitter): Likewise.
8460         (movsd_hardfloat): Likewise.
8461         (movsd_softfloat): Likewise.
8463         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8464         binary and decimal floating point moves.
8465         (fmove_ok): New attributes to combine binary and decimal floating
8466         point moves, and to combine power6x (mfpgpr) moves along normal
8467         floating moves.
8468         (real_value_to_target): Likewise.
8469         (f32_lr): Likewise.
8470         (f32_lm): Likewise.
8471         (f32_li): Likewise.
8472         (f32_sr): Likewise.
8473         (f32_sm): Likewise.
8474         (f32_si): Likewise.
8475         (movsf): Combine binary and decimal floating point moves.  Combine
8476         power6x (mfpgpr) moves with other moves by using conditional
8477         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8478         (mov<mode> for SFmode/SDmode); Likewise.
8479         (SFmode/SDmode splitters): Likewise.
8480         (movsf_hardfloat): Likewise.
8481         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8482         (movsf_softfloat): Likewise.
8483         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8485         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8486         wx and wz constraints.
8488         * config/rs6000/constraints.md (wg constraint): New constraint to
8489         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8491         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8492         constraint.
8494         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8495         -mdebug=reg, print wg, wl, wx, and wz constraints.
8496         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8497         Initialize the reload functions for 64-bit binary/decimal floating
8498         point types.
8499         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8500         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8501         create the buffer on the stack to overcome not having a 32-bit
8502         load and store.
8503         (rs6000_emit_move): Likewise.
8504         (rs6000_secondary_memory_needed_rtx): Likewise.
8505         (rs6000_alloc_sdmode_stack_slot): Likewise.
8506         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8507         via xxlxor, just like DFmode 0.0.
8509         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8510         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8511         with other moves by using conditional constraits (wg).  Use LFIWZX
8512         and STFIWX for loading SDmode on power7.
8513         (movdd splitters): Likewise.
8514         (movdd_hardfloat32): Likewise.
8515         (movdd_softfloat32): Likewise.
8516         (movdd_hardfloat64_mfpgpr): Likewise.
8517         (movdd_hardfloat64): Likewise.
8518         (movdd_softfloat64): Likewise.
8520         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8521         64-bit binary and decimal floating point moves.
8522         (FMOVE64X): Likewise.
8523         (movdf): Combine 64-bit binary and decimal floating point moves.
8524         Combine power6x (mfpgpr) moves with other moves by using
8525         conditional constraits (wg).
8526         (mov<mode> for DFmode/DDmode): Likewise.
8527         (DFmode/DDmode splitters): Likewise.
8528         (movdf_hardfloat32): Likewise.
8529         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8530         (movdf_softfloat32): Likewise.
8531         (movdf_hardfloat64_mfpgpr): Likewise.
8532         (movdf_hardfloat64): Likewise.
8533         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8534         (movdf_softfloat64): Likewise.
8535         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8536         (reload_<mode>_load): Move to later in the file so they aren't in
8537         the middle of the floating point move insns.
8538         (reload_<mode>_store): Likewise.
8540         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8541         constraint.
8543         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8544         constraint if -mdebug=reg.
8545         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8546         Enable using dd reload support if needed.
8548         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8549         binary and decimal floating point moves in rs6000.md.
8550         (movtd_internal): Likewise.
8552         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8553         decimal floating point moves.
8554         (movtf): Likewise.
8555         (movtf_internal): Likewise.
8556         (mov<mode>_internal, TDmode/TFmode): Likewise.
8557         (movtf_softfloat): Likewise.
8558         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8560         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8561         movdi_internal64, using wg constraint for move direct operations.
8562         (movdi_internal64): Likewise.
8564         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8565         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8566         the various virtual registers. Use GPR/FPR first/last values,
8567         instead of hard coding the register numbers.  Print which modes
8568         have reload functions registered.
8569         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8570         settings before/after setting cpu, target and subtarget settings.
8571         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8572         and for secondary reload failures in rs6000_secondary_reload_inner.
8573         (rs6000_secondary_reload_fail): Likewise.
8574         (rs6000_secondary_reload_inner): Likewise.
8576         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8577         macros for first/last GPR and FPR registers.
8578         (LAST_GPR_REGNO): Likewise.
8579         (FIRST_FPR_REGNO): Likewise.
8580         (LAST_FPR_REGNO): Likewise.
8582         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8583         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8584         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8585         (vcond<mode><mode>): Likewise.
8586         (vcondu<mode><mode>): Likewise.
8587         (vector_gtu<mode>): Likewise.
8588         (vector_gte<mode>): Likewise.
8589         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8590         to prevent the compiler from converting DImode operations to TImode.
8591         (ior<mode>3): Likewise.
8592         (and<mode>3): Likewise.
8593         (one_cmpl<mode>2): Likewise.
8594         (nor<mode>3): Likewise.
8595         (andc<mode>3): Likewise.
8597         * config/rs6000/constraints.md (wt constraint): New constraint
8598         that returns VSX_REGS if TImode is allowed in VSX registers.
8600         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8601         constant under VSX.
8603         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8604         similar to TImode, but it is restricted to being in the GPRs.
8606         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8607         TImode to occupy a single VSX register.
8609         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8610         -mvsx-timode for power7/power8.
8611         (power7 cpu): Likewise.
8612         (power8 cpu): Likewise.
8614         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8615         sure that TFmode/TDmode take up two registers if they are ever
8616         allowed in the upper VSX registers.
8617         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8618         registers.
8619         (rs6000_init_hard_regno_mode_ok): Likewise.
8620         (rs6000_debug_reg_global): Add debugging for PTImode and wt
8621         constraint.  Print if LRA is turned on.
8622         (rs6000_option_override_internal): Give an error if -mvsx-timode
8623         and VSX is not enabled.
8624         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
8625         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8626         to reg+offset addressing.  Use PTImode when checking offset
8627         addresses for validity.
8628         (reg_offset_addressing_ok_p): Likewise.
8629         (rs6000_legitimate_offset_address_p): Likewise.
8630         (rs6000_legitimize_address): Likewise.
8631         (rs6000_legitimize_reload_address): Likewise.
8632         (rs6000_legitimate_address_p): Likewise.
8633         (rs6000_eliminate_indexed_memrefs): Likewise.
8634         (rs6000_emit_move): Likewise.
8635         (rs6000_secondary_reload): Likewise.
8636         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
8637         reloads to fpr registers to continue to use reg+offset addressing,
8638         but 64-bit reloads to altivec registers need reg+reg addressing.
8639         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8640         it.  Treat LO_SUM like a PLUS operation.
8641         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8642         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8643         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8644         registers to share a register with a smaller sized type, since VSX
8645         puts scalars in the upper 64-bits.
8646         (print_operand): Add support for PTImode.
8647         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8648         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8649         registers, but don't have arithmetic support.
8650         (rs6000_memory_move_cost): Add test for VSX.
8651         (rs6000_opt_masks): Add -mvsx-timode.
8653         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8654         for TImode.
8655         (VSs): Likewise.
8656         (VSr): Use wt constraint for TImode.
8657         (VSv): Drop TImode support.
8658         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8659         (vsx_movti_64bit): Likewise.
8660         (vsx_movti_32bit): Likewise.
8661         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8662         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8663         one '?' on the appropriate output constraint.  Do not allow TImode
8664         logical operations on 32-bit systems.
8665         (vsx_ior<mode>3): Likewise.
8666         (vsx_xor<mode>3): Likewise.
8667         (vsx_one_cmpl<mode>2): Likewise.
8668         (vsx_nor<mode>3): Likewise.
8669         (vsx_andc<mode>3): Likewise.
8670         (vsx_concat_<mode>): Likewise.
8671         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8673         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8674         OPTION_MASK_VSX_TIMODE.
8675         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8676         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8678         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8679         (TI2 iterator): New iterator for TImode, PTImode.
8680         (wd mode attribute): Add values for vector types.
8681         (movti_string): Replace TI move operations with operations for TImode
8682         and PTImode.  Add support for TImode being allowed in VSX registers.
8683         (mov<mode>_string, TImode/PTImode): Likewise.
8684         (movti_ppc64): Likewise.
8685         (mov<mode>_ppc64, TImode/PTImode): Likewise.
8686         (TI mode splitters): Likewise.
8688         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8689         constraint.
8691 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
8693         PR tree-optimization/56355
8694         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8695         Also handle integers with undefined overflow.
8697 2013-03-20  Catherine Moore  <clm@codesourcery.com>
8698             Maciej W. Rozycki  <macro@codesourcery.com>
8699             Tom de Vries  <tom@codesourcery.com>
8700             Nathan Sidwell <nathan@codesourcery.com>
8701             Iain Sandoe  <iain@codesourcery.com>
8702             Nathan Froyd  <froydnj@codesourcery.com>
8703             Chao-ying Fu <fu@mips.com>
8705         * doc/extend.texi: (micromips, nomicromips, nocompression):
8706         Document new function attributes.
8707         * doc/invoke.texi (minterlink-compressed, mmicromips,
8708         m14k, m14ke, m14kec): Document new options.
8709         (minterlink-mips16): Update documentation.
8710         * doc/md.texi (ZC, ZD): Document new constraints.
8711         * configure.ac (gcc_cv_as_micromips): Check if linker
8712         supports the .set micromips directive.
8713         * configure: Regenerate.
8714         * config.in: Regenerate.
8715         * config/mips/mips-tables.opt: Regenerate.
8716         * config/mips/micromips.md: New file.
8717         * constraints.md (ZC, ZD): New constraints.
8718         * config/mips/predicates.md (movep_src_register): New predicate.
8719         (movep_src_operand): New predicate.
8720         (non_volatile_mem_operand): New predicate.
8721         * config/mips/mips.md (multimem): New type.
8722         (length): Differentiate between 17-bit and 18-bit branch offsets.
8723         (MOVEP1, MOVEP2): New mode iterator.
8724         (mov_<load>l): Use ZC constraint.
8725         (mov_<load>r): Likewise.
8726         (mov_<store>l): Likewise.
8727         (mov_<store>r): Likewise.
8728         (*branch_equality<mode>_inverted): Add microMIPS support.
8729         (*branch_equality<mode>): Likewise.
8730         (*jump_absolute): Likewise.
8731         (indirect_jump_<mode>): Likewise.
8732         (tablejump_<mode>): Likewise.
8733         (<optab>_internal): Likewise.
8734         (sibcall_internal): Likewise.
8735         (sibcall_value_internal): Likewise.
8736         (prefetch): Use constraint ZD.
8737         * config/mips/mips.opt (minterlink-compressed): New option.
8738         (minterlink-mips16): Now an alias for minterlink-compressed.
8739         (mmicromips): New option.
8740         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8741         (compare_and_swap_12): Likewise.
8742         (sync_add<mode>): Likewise.
8743         (sync_<optab>_12): Likewise.
8744         (sync_old_<optab>_12): Likewise.
8745         (sync_new_<optab>_12): Likewise.
8746         (sync_nand_12): Likewise.
8747         (sync_old_nand_12): Likewise.
8748         (sync_new_nand_12): Likewise.
8749         (sync_sub<mode>): Likewise.
8750         (sync_old_add<mode>): Likewise.
8751         (sync_old_sub<mode>): Likewise.
8752         (sync_new_add<mode>): Likewise.
8753         (sync_new_sub<mode>): Likewise.
8754         (sync_<optab><mode>): Likewise.
8755         (sync_old_<optab><mode>): Likewise.
8756         (sync_new_<optab><mode>): Likewise.
8757         (sync_nand<mode>): Likewise.
8758         (sync_old_nand<mode>): Likewise.
8759         (sync_new_nand<mode>): Likewise.
8760         (sync_lock_test_and_set<mode>): Likewise.
8761         (test_and_set_12): Likewise.
8762         (atomic_compare_and_swap<mode>): Likewise.
8763         (atomic_exchange<mode>_llsc): Likewise.
8764         (atomic_fetch_add<mode>_llsc): Likewise.
8765         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8766         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8767         (umips_save_restore_pattern_p): Likewise.
8768         (umips_load_store_pair_p): Likewise.
8769         (umips_output_load_store_pair): Likewise.
8770         (umips_movep_target_p): Likewise.
8771         (umips_12bit_offset_address_p): Likewise.
8772         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8773         (mips_base_mips16): Rename this...
8774         (mips_base_compression_flags): ...to this. Update all uses.
8775         (mips_attribute_table): Add micromips, nomicromips and nocompression.
8776         (mips_mips16_decl_p): Delete.
8777         (mips_nomips16_decl_p): Delete.
8778         (mips_get_compress_on_flags): New function.
8779         (mips_get_compress_off_flags): New function.
8780         (mips_get_compress_mode): New function.
8781         (mips_get_compress_on_name): New function.
8782         (mips_get_compress_off_name): New function.
8783         (mips_insert_attributes): Support multiple compression types.
8784         (mips_merge_decl_attributes): Likewise.
8785         (umips_12bit_offset_address_p): New function.
8786         (mips_start_function_definition): Emit .set micromips directive.
8787         (mips_call_may_need_jalx_p): New function.
8788         (mips_function_ok_for_sibcall): Add microMIPS support.
8789         (mips_print_operand_punctuation): Support short delay slots and
8790         compact jumps.
8791         (umips_swm_mask, umips_swm_encoding): New.
8792         (umips_build_save_restore): New function.
8793         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8794         (was_mips16_p): Remove.
8795         (old_compression_mode): New.
8796         (mips_set_compression_mode): New function.
8797         (mips_set_current_function): Add microMIPS support.
8798         (mips_option_override): Likewise.
8799         (umips_save_restore_pattern_p): New function.
8800         (umips_output_save_restore): New function.
8801         (umips_load_store_pair_p_1): New function.
8802         (umips_load_store_pair_p): New function.
8803         (umips_output_load_store_pair_1): New function.
8804         (umips_output_load_store_pair): New function.
8805         (umips_movep_target_p) New function.
8806         (mips_prepare_pch_save): Add microMIPS support.
8807         * config/mips/mips.h (TARGET_COMPRESSION): New.
8808         (TARGET_CPU_CPP_BUILTINS): Update macro
8809         to use new compression flags and to support microMIPS.
8810         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8811         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8812         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8813         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8814         (ASM_SPEC): Support mmicromips and mno-micromips.
8815         (M16STORE_REG_P): New macro.
8816         (MIPS_CALL): Support TARGET_MICROMIPS.
8817         (MICROMIPS_J): New macro.
8818         (mips_base_mips16): Rename this...
8819         (mips_base_compression_flags): ...to this.
8820         (UMIPS_12BIT_OFFSET_P): New macro.
8821         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8822         (MULTILIB_DIRNAMES): Likewise.
8823 2013-03-20  Richard Biener  <rguenther@suse.de>
8825         PR tree-optimization/56661
8826         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8827         the result does not have to be distinct.
8829 2013-03-20  Richard Biener  <rguenther@suse.de>
8831         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8832         remap_gimple_op_r.
8834 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8835             Steven Bosscher <steven@gcc.gnu.org>
8837         PR rtl-optimization/56605
8838         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8840 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8842         PR bootstrap/56656
8843         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8844         that require movd instead of movq.
8846 2013-03-20  Richard Biener  <rguenther@suse.de>
8848         * tree-ssa-structalias.c (struct variable_info): Add pointer
8849         to the first field of an aggregate with sub-vars.  Make
8850         this and the pointer to the next subfield its ID.
8851         (vi_next): New function.
8852         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8853         storedanything_id, integer_id): Increment by one.
8854         (new_var_info, get_call_vi, lookup_call_clobber_vi,
8855         get_call_clobber_vi): Adjust.
8856         (solution_set_expand): Simplify and speedup.
8857         (solution_set_add): Inline into ...
8858         (set_union_with_increment): ... this.  Adjust accordingly.
8859         (do_sd_constraint): Likewise.
8860         (do_ds_constraint): Likewise.
8861         (do_complex_constraint): Simplify.
8862         (build_pred_graph): Adjust.
8863         (solve_graph): Likewise.  Simplify and speedup.
8864         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8865         get_constraint_for_component_ref, get_constraint_for_1,
8866         first_vi_for_offset, first_or_preceding_vi_for_offset,
8867         create_function_info_for, create_variable_info_for_1,
8868         create_variable_info_for, intra_create_variable_infos): Adjust.
8869         (init_base_vars): Push NULL for ID zero.
8870         (compute_points_to_sets): Adjust.
8872 2013-03-20  Richard Biener  <rguenther@suse.de>
8874         * cfgloop.c (verify_loop_structure): Streamline and avoid
8875         ICEing on corrupt loop tree.
8876         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8877         loop tree.
8879 2013-03-20  Richard Biener  <rguenther@suse.de>
8881         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8882         check whether an SSA update is needed.
8884 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
8886         * config/mips/constraints.md (T): Rename to...
8887         (Yf): ...this.
8888         (U): Rename to...
8889         (Yd): ...this.
8890         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8891         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8893 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8895         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8896         (*subsi3_carryin_uxtw): Likewise.
8898 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8900         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8901         (*rorsi3_insn_uxtw): Likewise.
8903 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8905         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8906         (*extrsi5_insn_uxtw): Likewise.
8908 2013-03-19  Richard Biener  <rguenther@suse.de>
8910         PR tree-optimization/56273
8911         * passes.c (init_optimization_passes): Move second VRP after DOM.
8913 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
8915         * config/i386/i386.md (*movti_internal): Merge from
8916         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
8917         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
8918         nox64 isa attributes.
8920 2013-03-18  Richard Biener  <rguenther@suse.de>
8922         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8923         (unite): Likewise.
8924         (merge_node_constraints): Likewise.
8925         (build_succ_graph): Likewise.
8926         (valid_graph_edge): Inline into single caller.
8927         (unify_nodes): Likewise.  Use bitmap_set_bit return value
8928         and cache varinfo.
8929         (scc_visit): Fix formatting and variable use.
8930         (do_sd_constraint): Use gcc_checking_assert.
8931         (do_ds_constraint): Likewise.
8932         (do_complex_constraint): Likewise.
8933         (condense_visit): Likewise.  Cleanup.
8934         (dump_pred_graph): New function.
8935         (perform_var_substitution): Dump the pred-graph before
8936         variable substitution.
8937         (find_equivalent_node): Use gcc_checking_assert.
8938         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8940 2013-03-18  Richard Biener  <rguenther@suse.de>
8942         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8943         Remove cond_expr_stmt_list argument and do not gimplify the
8944         built expression.
8945         (vect_loop_versioning): Adjust.
8946         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8947         Cleanup to use less temporaries.
8948         (vect_create_data_ref_ptr): Cleanup.
8950 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
8952         PR tree-optimization/56635
8953         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8954         require types_compatible_p types.
8956 2013-03-18  Nick Clifton  <nickc@redhat.com>
8958         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8959         spurious backslash.
8961         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8962         Add missing line to comment describing function.
8964 2013-03-18  Richard Biener  <rguenther@suse.de>
8966         PR tree-optimization/56210
8967         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8968         Handle string / character search functions.
8969         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8971 2013-03-18  Richard Biener  <rguenther@suse.de>
8973         PR middle-end/56483
8974         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8975         and implement properly.
8976         * gimple.h (gimple_cond_single_var_p): Remove.
8978 2013-03-18  Richard Biener  <rguenther@suse.de>
8980         * tree-data-ref.h (find_data_references_in_loop): Declare.
8981         * tree-data-ref.c (get_references_in_stmt): Use a stack
8982         vector pre-allocated in the callers.
8983         (find_data_references_in_stmt): Adjust.
8984         (graphite_find_data_references_in_stmt): Likewise.
8985         (create_rdg_vertices): Likewise.
8986         (find_data_references_in_loop): Export.
8987         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8988         Compute dependences here...
8989         (vect_analyze_data_refs): ...not here.  When we encounter
8990         a non-vectorizable data reference in basic-block vectorization
8991         truncate the data reference vector.  Do not bother to
8992         fixup data-dependence information for gather loads.
8993         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8994         of data references, as reported.
8996 2013-03-18  Richard Biener  <rguenther@suse.de>
8998         PR tree-optimization/3713
8999         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9000         has_constants and expr.
9001         (stmt_has_constants): Properly valueize SSA names when deciding
9002         whether the stmt has constants.
9004 2013-03-18  Richard Biener  <rguenther@suse.de>
9006         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9007         whole function when there is nothing to do.
9008         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9009         * tree-vectorizer.c (vectorize_loops): Update virtual and
9010         loop-closed SSA once.
9011         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9013 2013-03-18  Richard Biener  <rguenther@suse.de>
9015         PR middle-end/56113
9016         * domwalk.c (bb_postorder): New global static.
9017         (cmp_bb_postorder): New function.
9018         (walk_dominator_tree): Replace scheme imposing an order for
9019         visiting dominator sons by one sorting them at the time they
9020         are pushed on the stack.
9022 2013-03-18  Richard Biener  <rguenther@suse.de>
9024         PR tree-optimization/39326
9025         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9026         (struct mem_ref): Replace mem member with ao_ref typed member.
9027         (MEM_ANALYZABLE): Adjust.
9028         (memref_eq): Likewise.
9029         (mem_ref_alloc): Likewise.
9030         (gather_mem_refs_stmt): Likewise.
9031         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9032         (execute_sm_if_changed_flag_set): Adjust.
9033         (execute_sm): Likewise.
9034         (ref_always_accessed_p): Likewise.
9035         (refs_independent_p): Likewise.
9036         (can_sm_ref_p): Likewise.
9038 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9040         PR c/56566
9041         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9042         return 1 even for !unsignedp.
9044 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9046         * config/i386/i386.md (isa): Add x64 and nox64.
9047         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9048         (*pushtf): Enable *roF alternative for x64 isa only.
9049         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9050         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9051         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9052         (*movtf_internal): Merge from *movtf_internal_rex64 and
9053         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9054         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9055         nox64 isa attributes.
9056         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9057         nox64 isa attributes.
9058         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9060 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9062         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9064 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9066         PR target/56640
9067         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9068         class names.  Remove trailing comma after "ALL_REGS".
9070 2013-03-16  Jan Hubicka  <jh@suse.cz>
9072         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9073         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9074         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9075         of cgraph_get_create_node.
9076         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9078 2013-03-16  Jason Merrill  <jason@redhat.com>
9080         PR debug/49090
9081         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9082         with DW_AT_default_value.
9084 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9086         * BASE-VER: Set to 4.9.0.
9088 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9090         PR target/56619
9091         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9092         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9093         Document _x* TSX intrinsics.
9095 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9096             David Holsgrove  <david.holsgrove@xilinx.com>
9098         * configure.ac: Add MicroBlaze TLS support detection.
9099         * configure: Regenerate.
9100         * config/microblaze/microblaze-protos.h
9101         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9102         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9103         * config/microblaze/microblaze.c (microblaze_address_type): Add
9104         ADDRESS_TLS and tls_reloc address types.
9105         (microblaze_address_info): Add tls_reloc.
9106         (TARGET_HAVE_TLS): Define.
9107         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9108          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9109          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9110         load_tls_operand,  microblaze_call_tls_get_addr,
9111         microblaze_legitimize_tls_address): New functions.
9112         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9113         (get_base_reg): Use microblaze_tls_symbol_p.
9114         (microblaze_classify_address): Handle TLS.
9115         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9116         label_mentioned_p and microblaze_tls_referenced_p.
9117         (microblaze_legitimize_address): Handle TLS.
9118         (microblaze_address_insns): Handle ADDRESS_TLS.
9119         (pic_address_needs_scratch): Handle TLS.
9120         (print_operand_address): Handle TLS.
9121         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9122         (microblaze_expand_move): Handle TLS.
9123         (microblaze_legitimate_constant_p): Check
9124         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9125         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9126         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9127         (PIC_OFFSET_TABLE_REGNUM): Set.
9128         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9129         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9130         (addsi3, movsi_internal2, movdf_internal): Update constraints
9131         * config/microblaze/predicates.md (arith_plus_operand): Define
9132         (move_operand): Redefine as move_src_operand,
9133         check microblaze_tls_referenced_p.
9135 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9137         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9138         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9140 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9142         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9143         CC mode for AND.
9145 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9147         PR tree-optimization/53265
9148         * common.opt (Waggressive-loop-optimizations): New option.
9149         * tree-ssa-loop-niter.c: Include tree-pass.h.
9150         (do_warn_aggressive_loop_optimizations): New function.
9151         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9152         if number_of_latch_executions returned constant.
9153         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9154         early.  If number_of_latch_executions returned constant, set
9155         nb_iterations_upper_bound back to it.
9156         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9157         field.
9158         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9159         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9161         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9162         (MULTILIB_OSDIRNAMES): Set.
9163         * genmultilib: If defaultosdirname doesn't start with :: , set
9164         defaultosdirname2 instead, clear it and emit two . multilib_raw
9165         entries instead of just one.
9167 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9169         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9170         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9171         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9172         (SUBTARGET_OVERRIDE_OPTIONS): New.
9174 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9176         PR target/49880
9177         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9178         (musermode): Convert to Var(TARGET_USERMODE).
9179         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9180         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9181         * config/sh/sh.c (sh_option_override): Use
9182         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9183         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9184         condition.
9185         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9186         TARGET_SH4.
9187         (udivsi3_i4_single, divsi3_i4_single): Use
9188         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9190 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9192         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9193         default setting.
9195 2013-03-13  Richard Biener  <rguenther@suse.de>
9197         PR tree-optimization/56608
9198         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9199         calls when vectorizing basic-blocks.
9201 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9203         PR plugins/45078
9204         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9205         tm_file.
9207 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9209         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9211 2013-03-11  Jan Hubicka  <jh@suse.cz>
9213         PR lto/56557
9214         * lto-streamer-out.c (output_symbol_p): Skip references from
9215         constructors of external variables.
9217 2013-03-11  Jan Hubicka  <jh@suse.cz>
9219         PR middle-end/56571
9220         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9221         from pseudos.
9222         * emit-rtl.c (verify_rtx_sharing): Likewise.
9223         (copy_insn_1): Likewise.
9224         * rtl.c (copy_rtx): Likewise.
9226 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9228         PR target/56591
9229         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9230         output_operand_lossage message.
9232 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9234         PR target/56470
9235         * arm.c (shift_op): Validate RTL pattern on the fly.
9236         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9237         the RTL.
9239 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9241         PR target/56347
9242         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9243         new call patterns that clobber %fr12.
9244         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9245         split and postreload patterns.
9246         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9247         registers %fr12 and %fr12R as call used.
9249 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9251         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9252         (canon_address, record_store, replace_read, check_mem_read_rtx,
9253         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9254         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9255         rest_of_handle_dse): Likewise.
9257 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9259         PR middle-end/56524
9260         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9261         Add base_optabs.
9262         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9263         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9264         (save_optabs_if_changed): Replace with...
9265         (init_tree_optimization_optabs): ...this.
9266         * optabs.c (save_optabs_if_changed): Rename to...
9267         (init_tree_optimization_optabs): ...this.  Take the optimization node
9268         as argument.  Do nothing if the base optabs are already correct.
9269         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9270         to recompute optabs.
9271         * function.h (function): Remove optabs field.
9272         * function.c (invoke_set_current_function_hook): Call
9273         init_tree_optimization_optabs.  Use the result to initialize
9274         this_fn_optabs.
9276 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9278         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9279         if GTMA_HAS_NO_INSTRUMENTATION.
9280         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9281         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9282         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9283         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9284         GTMA_HAS_NO_INSTRUMENTATION.
9286 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9288         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9289         libasan_preinit.o.
9291 2013-03-08  Marek Polacek  <polacek@redhat.com>
9292             Jakub Jelinek  <jakub@redhat.com>
9294         PR tree-optimization/56478
9295         * predict.c (is_comparison_with_loop_invariant_p): Change the
9296         type of loop_step to tree.
9297         (predict_loops): Adjust.
9298         (predict_iv_comparison): Perform the computations on double_ints.
9300 2013-03-08  Richard Biener  <rguenther@suse.de>
9302         PR tree-optimization/56570
9303         * tree-cfg.c (verify_expr_location_1): Verify locations for
9304         DECL_DEBUG_EXPR.
9305         * tree-sra.c (create_access_replacement): Strip locations
9306         from DECL_DEBUG_EXPRs.
9308 2013-03-08  Richard Biener  <rguenther@suse.de>
9310         * tree-inline.c (expand_call_inline): Do not associate
9311         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9312         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9314 2013-03-08  Richard Biener  <rguenther@suse.de>
9316         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9317         or block changes with -Og.  Fix for location / block encoding
9318         changes and PHI arguments with locations.
9320 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9322         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9323         for all counters.
9324         (struct output_info): Likewise.
9325         (register_overhead): Remove bad gcc_assert.
9326         (bitmap_find_bit): If there is only a single bitmap element, do not
9327         count a miss as a search.
9328         (print_statistics): Update for counter type changes.
9329         (dump_bitmap_statistics): Likewise.  Print headers such that they
9330         are properly lined up with the printed counters.
9332 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9334         PR tree-optimization/56559
9335         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9336         check that it has only a single use.
9338 2013-03-07  Richard Biener  <rguenther@suse.de>
9340         * doc/invoke.texi (fwhole-program): Discourage use in combination
9341         with -flto.
9343 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9345         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9347         PR tree-optimization/56539
9348         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9349         instead of GSI_CONTINUE_LINKING as last argument to
9350         force_gimple_operand_gsi.  Adjust function comment.
9352         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9353         aarch64-cores.def.
9355         PR middle-end/56548
9356         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9357         promoted mode, convert the result back to the original mode.
9359 2013-03-06  Richard Biener  <rguenther@suse.de>
9361         PR middle-end/56294
9362         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9363         (insert_updated_phi_nodes_compare_uids): New function.
9364         (update_ssa): Sort symbols_to_rename after UID before
9365         traversing it to insert PHI nodes.
9367 2013-03-06  Richard Biener  <rguenther@suse.de>
9369         PR middle-end/50494
9370         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9371         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9373         Revert
9374         2013-02-13  Richard Biener  <rguenther@suse.de>
9376         PR lto/50494
9377         * varasm.c (output_constant_def_1): Get the decl representing
9378         the constant as argument.
9379         (output_constant_def): Wrap output_constant_def_1.
9380         (make_decl_rtl): Use output_constant_def_1 with the decl
9381         representing the constant.
9382         (build_constant_desc): Optionally re-use a decl already
9383         representing the constant.
9384         (tree_output_constant_def): Adjust.
9386 2013-03-06  Joey Ye  <joey.ye@arm.com>
9388         PR lto/50293
9389         * gcc.c (convert_white_space): New function.
9390         (main): Handles white space in function name.
9392 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9394         PR target/56529
9395         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9396         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9397         to SH_DIV_CALL_TABLE for TARGET_SH2.
9398         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9399         list.
9400         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9401         call-table options.
9403 2013-03-05  Sterling Augustine  <saugustine@google.com>
9404             Cary Coutant  <ccoutant@google.com>
9406         PR debug/55364
9407         * dwarf2out.c (resolve_addr): Don't call
9408         remove_loc_list_addr_table_entries a second time for the same
9409         expression.
9411 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9413         PR debug/56510
9414         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9415         (avoid_complex_debug_insns): New function.
9416         (expand_debug_locations): Call it.
9418         PR rtl-optimization/56484
9419         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9420         lifetimes of hard registers on small register class machines.
9422 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9424         * config/microblaze/microblaze-protos.h: Rename
9425         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9426         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9427         fast_interrupt.
9428         (microblaze_fast_interrupt_function_p): New function.
9429         (microblaze_is_interrupt_handler): Rename to
9430         microblaze_is_interrupt_variant and add fast_interrupt check.
9431         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9432         (save_restore_insns): Likewise.
9433         (compute_frame_size): Likewise.
9434         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9435         (microblaze_globalize_label): Likewise.
9436         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9437         * config/microblaze/microblaze.md: Use wrapper
9438         microblaze_is_interrupt_variant.
9440 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9442         * sdbout.c (sdbout_one_type): Switch to current function's section
9443         supporting cold/hot.
9445 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9447         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9448         -mxl-reorder.
9450 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9452         PR middle-end/56461
9453         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9454         if VALGRIND_GET_VBITS is defined, temporarily make object
9455         memory all defined, and restore previous valgrind addressability
9456         and definability afterwards.  Free this_object at the end.
9458         PR middle-end/56461
9459         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9460         right before calling lra_create_live_ranges, also call it
9461         when clearing live_p.  Only call lra_clear_live_ranges
9462         at the end if live_p.
9464         PR middle-end/56461
9465         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9467 2013-03-05  Richard Biener  <rguenther@suse.de>
9469         PR tree-optimization/56521
9470         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9471         value-id.
9473 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9475         PR c++/55135
9476         * except.h (remove_unreachable_eh_regions): New prototype.
9477         * except.c (remove_eh_handler_splicer): New function, split out
9478         of remove_eh_handler.
9479         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9480         warning about running it on many EH regions one at a time.
9481         (remove_unreachable_eh_regions_worker): New function, walk the
9482         EH tree in depth-first order and remove non-marked regions.
9483         (remove_unreachable_eh_regions): New function.
9484         * tree-eh.c (mark_reachable_handlers): New function, split out
9485         from remove_unreachable_handlers.
9486         (remove_unreachable_handlers): Use mark_reachable_handlers and
9487         remove_unreachable_eh_regions.
9488         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9489         and remove_unreachable_eh_regions.
9491 2013-03-05  Richard Biener  <rguenther@suse.de>
9493         PR middle-end/56525
9494         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9495         not freeing them until the end.
9497 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9499         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9501 2013-03-05  Richard Biener  <rguenther@suse.de>
9503         PR tree-optimization/56270
9504         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9505         of loads after scheduling an SLP instance.
9507 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9509         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9510         tic6x.exp.
9511         (check_gcc_parallelize): Run guality.exp as a separate job from
9512         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9513         struct-layout-1.exp with stackalign.exp.
9515         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9517         PR middle-end/56461
9518         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9519         load_index sbitmap even if some bit in it isn't set.
9521         PR middle-end/56461
9522         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9523         (discover_iteration_bound_by_body_walk): Change queues to
9524         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9525         spelling in comment.  Call safe_push on queues[bound_index] directly.
9526         Release queues[queue_index] in every iteration unconditionally.
9527         Release bounds vector.
9529         PR middle-end/56461
9530         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9531         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9532         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9533         inner_phis vector.
9535 2013-03-05  Richard Biener  <rguenther@suse.de>
9537         PR lto/56515
9538         * tree-inline.c (remap_blocks_to_null): New function.
9539         (expand_call_inline): When expanding a call stmt without
9540         an associated block inline remap all callee blocks to NULL.
9542 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9544         PR rtl-optimization/56494
9545         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9546         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9547         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9549         PR middle-end/56461
9550         * sel-sched-ir.c (free_sched_pools): Release
9551         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9552         if succs_info_pool.max_top isn't -1.
9554         PR bootstrap/56509
9555         * opts.c (opts_obstack, opts_concat): Moved to...
9556         * opts-common.c (opts_obstack, opts_concat): ... here.
9558 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9560         PR middle-end/56461
9561         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9563 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9565         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9566         all appropriate places.
9568 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9570         PR tree-optimization/56424
9571         * ipa-split.c (split_function): Do not set the RSO flag if result is
9572         not by reference and its type is a register type.
9574 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9576         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9577         (microblaze_legitimate_pic_operand): Likewise
9578         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9579         new function microblaze_legitimate_pic_operand
9580         * config/microblaze/microblaze-protos.h
9581         (microblaze_legitimate_pic_operand): Declare.
9583 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9585         * config/microblaze/predicates.md (call_insn_simple_operand):
9586         New predicate for supported rtx code types.
9587         * config/microblaze/microblaze.md (call_internal1): Use
9588         call_insn_simple_operand predicate.
9590 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9592         PR middle-end/56461
9593         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9594         partitions.ordered_remove.
9596         PR middle-end/56461
9597         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9598         vec_oprnds0.create (1) for modifier == NONE.
9600         PR middle-end/56461
9601         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9602         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9603         vec_oprnds1 right before pushing anything to it for
9604         scalar_shift_arg.
9606         PR middle-end/56461
9607         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9608         set nbbs to 0 instead of having separate code path.
9609         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9610         instead of false as last argument if returning NULL.
9612 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
9614         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9615         the attribute is now called "target" instead of "option".
9616         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9617         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
9618         attribute/pragma name for TARGET_OPTION_VALID_P and
9619         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9620         * doc/tm.texi: Regenerated.
9622 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
9624         * config/microblaze/microblaze.c:
9625         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9626         * config/microblaze/microblaze.h: Add -mxl-reorder to
9627         DRIVER_SELF_SPECS.
9628         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9629         instructions emitted if TARGET_REORDER.
9630         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9631         or 0 for -m/-mno case, but initialises as 2 to detect default use case
9632         separately.
9634 2013-03-01  Xinliang David Li  <davidxl@google.com>
9636         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9637         walk length.
9639 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
9641         PR middle-end/56461
9642         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9643         vector even when returning true.  Fix up function comment formatting.
9645         PR middle-end/56461
9646         * ira-build.c (ira_loop_nodes_count): New variable.
9647         (create_loop_tree_nodes): Initialize it.
9648         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9650         PR middle-end/56461
9651         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9652         method on dr_chain and result_chain.
9653         * tree-vect-stmts.c (vectorizable_store): Only call
9654         result_chain.create if j == 0.
9656         PR middle-end/56461
9657         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9658         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9659         before overwriting it.
9661 2013-03-01  Tobias Burnus  <burnus@net-b.de>
9663         * doc/extended.texi (C Extensions): Change order in @menu
9664         to match @node.
9665         (Other MIPS Built-in Functions): Move last MIPS entry before
9666         "picoChip Built-in Functions".
9667         (SH Built-in Functions): Move after RX Built-in Functions.
9668         * doc/gcc.texi (Introduction): Change order in @menu
9669         to match @node.
9670         * doc/md.texi (Constraints): Ditto.
9671         * gty.texi (Type Information): Ditto.
9672         (User-provided marking routines for template types): Make
9673         subsection.
9674         * doc/invoke.texi (AArch64 Options): Move before
9675         "Adapteva Epiphany Options".
9677 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
9678             Jakub Jelinek  <jakub@redhat.com>
9680         PR sanitizer/56454
9681         * asan.c (gate_asan): Lookup no_sanitize_address instead of
9682         no_address_safety_analysis attribute.
9683         * doc/extend.texi (no_address_safety_attribute): Rename to
9684         no_sanitize_address attribute, mention no_address_safety_analysis
9685         attribute as deprecated alias.
9687 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
9689         PR middle-end/56461
9690         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9691         type to vec<vec<tree> > *.
9692         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
9693         to be vec<tree> instead of vec<tree> *, set vec_defs
9694         to vNULL and call vec_defs.create (number_of_vects), adjust other
9695         uses of vec_defs.
9696         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9697         vectorizable_condition): Adjust vect_get_slp_defs callers.
9699 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9701         * config/aarch64/aarch64.c
9702         (aarch64_float_const_representable): Remove unused variable.
9704 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9706         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9708 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9710         * config/aarch64/aarch64-builtins.c
9711         (aarch64_init_simd_builtins): Make static.
9713 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9715         * config/aarch64/aarch64.c
9716         (aarch64_simd_make_constant): Make static.
9718 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9720         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9721         with no initialization to the RHS of debug statements.
9723 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9725         PR tree-optimization/56294
9726         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9727         Adjust dumping.
9728         (get_access_replacement): Do not call create_access_replacement.
9729         Assert a replacement exists.
9730         (get_repl_default_def_ssa_name): Create the replacement declaration
9731         itself.
9733 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9735         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9736         final_end_function.
9738 2013-02-28  Marek Polacek  <polacek@redhat.com>
9740         PR rtl-optimization/56466
9741         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9742         if we're changing a loop.
9743         (peel_loops_completely): Likewise.
9745 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
9747         PR c++/55813
9748         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9750 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9752         PR target/56445
9753         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9754         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9755         INTX_FTYPE_FX, FX_FTYPE_INTX.
9756         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9758 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9760         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9761         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9762         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9763         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9764         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9765         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9766         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9767         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9768         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9769         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9770         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9771         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9772         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9773         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9774         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9775         (avrxmega6): Increase max flash segments from 5 to 6.
9776         * config/avr/t-multilib: Regenerate.
9777         * config/avr/avr-tables.opt: Regenerate.
9778         * doc/avr-mmcu.texi: Regenerate.
9780 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9782         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9783         (avr_device_to_arch): Rename to avr_device_to_ld.
9784         (avr_device_to_as): New prototype.
9785         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9786         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9787         * config/avr/driver-avr.c (avr_device_to_as): New.
9788         (avr_device_to_arch): Rename to avr_device_to_ld.
9790 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9792         PR middle-end/56461
9793         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9794         method on dr_chain and result_chain.
9796         PR middle-end/56461
9797         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9798         pointer_set_destroy on not_executed_last_iteration.
9800         PR middle-end/56461
9801         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9803         PR middle-end/56461
9804         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9805         FOR_EACH_DEFINED_FUNCTION when freeing state.
9807         PR middle-end/56461
9808         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9809         pool_free.
9810         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9811         overwriting it.
9813         PR middle-end/56461
9814         * ipa-cp.c (decide_whether_version_node): Call vec_free on
9815         known_aggs[i].items and release known_aggs vector.
9817         PR middle-end/56461
9818         * ipa-reference.c (propagate): Free node_info even for alias nodes.
9820 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9822         * config/microblaze/microblaze.c (microblaze_emit_compare):
9823         Use xor for EQ/NE comparisions.
9824         * config/microblaze/microblaze.md (cstoresf4): Add constraints
9825         (cbranchsf4): Adjust operator to comparison_operator.
9827 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9829         PR middle-end/56461
9830         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9831         vector.
9832         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9833         vec_safe_push, always update *slot.
9834         (redirect_edge_var_map_clear): Use vec_free.
9835         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9836         (free_var_map_entry): Use vec_free.
9837         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9838         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9840 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
9842         PR middle-end/45472
9843         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9844         when the may_trap_p bit of the exprs being merged differs.
9845         Reorder tests for speculativeness in the logical and operator.
9847 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9849         * incpath.c (add_standard_paths): Use reconcat instead of concat
9850         where appropriate and avoid leaking memory.
9852         * opts.h: Include obstack.h.
9853         (opts_concat): New prototype.
9854         (opts_obstack): New declaration.
9855         * opts.c (opts_concat): New function.
9856         (opts_obstack): New variable.
9857         (init_options_struct): Call gcc_init_obstack on opts_obstack.
9858         (finish_options): Use opts_concat instead of concat
9859         and XOBNEWVEC instead of XNEWVEC.
9860         * opts-common.c (generate_canonical_option, decode_cmdline_option,
9861         generate_option): Likewise.
9862         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9863         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9865         PR target/56455
9866         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9867         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9869 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9871         PR middle-end/56461
9872         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9874 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9876         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9877         (arm_block_move_unaligned_straight): Likewise.
9878         (arm_adjust_block_mem): Likewise.
9880 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9882         PR target/48901
9883         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9884         temp, cond and label.
9885         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9887         PR target/52500
9888         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9889         * config/c6x/c6x.h (dbx_register_map): Update declaration.
9891         PR target/52501
9892         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9893         of prologue/epilogue functions.
9895         PR target/52550
9896         * config/tilegx/tilegx.c (tilegx_expand_prologue):
9897         Remove unused variable cfa_offset.
9898         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9900         PR target/54639
9901         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9902         type promotion to unsigned.
9904         PR target/54640
9905         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9906         for HOST_WIDE_INT of 32 bit / same size as int.
9907         (arm_block_move_unaligned_straight): Likewise.
9908         (arm_adjust_block_mem): Likewise.
9910         PR target/54662
9911         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9912         ALL_CFLAGS.
9914 2013-02-26  Marek Polacek  <polacek@redhat.com>
9916         PR tree-optimization/56426
9917         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9919 2013-02-26  Richard Biener  <rguenther@suse.de>
9921         PR target/56444
9922         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9923         unused variable loops.
9925 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9927         PR tree-optimization/56448
9928         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9929         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9930         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9931         later operands of the references, or even first operand for
9932         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9934         PR tree-optimization/56443
9935         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9936         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9937         to type_for_mode langhook.
9939 2013-02-25  Matt Turner  <mattst88@gmail.com>
9941         * doc/invoke.texi: Document r4700.
9943 2013-02-25  Richard Biener  <rguenther@suse.de>
9945         PR tree-optimization/56175
9946         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9947         split out from ...
9948         (simplify_bitwise_binary): ... here.  Also guard the conversion
9949         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9951 2013-02-25  Catherine Moore  <clm@codesourcery.com>
9953         Revert:
9954         2013-02-24  Catherine Moore  <clm@codesourcery.com>
9955             Maciej W. Rozycki  <macro@codesourcery.com>
9956             Tom de Vries  <tom@codesourcery.com>
9957             Nathan Sidwell  <nathan@codesourcery.com>
9958             Iain Sandoe  <iain@codesourcery.com>
9959             Nathan Froyd  <froydnj@codesourcery.com>
9960             Chao-ying Fu  <fu@mips.com>
9962         * doc/extend.texi: (micromips, nomicromips, nocompression):
9963         Document new function attributes.
9964         * doc/invoke.texi (minterlink-compressed, mmicromips,
9965         m14k, m14ke, m14kec): Document new options.
9966         (minterlink-mips16): Update documentation.
9967         * doc/md.texi (ZC, ZD): Document new constraints.
9968         * configure.ac (gcc_cv_as_micromips): Check if linker
9969         supports the .set micromips directive.
9970         * configure: Regenerate.
9971         * config.in: Regenerate.
9972         * config/mips/mips-tables.opt: Regenerate.
9973         * config/mips/micromips.md: New file.
9974         * constraints.md (ZC, AD): New constraints.
9975         * config/mips/predicates.md (movep_src_register): New predicate.
9976         (movep_src_operand): New predicate.
9977         (non_volatile_mem_operand): New predicate.
9978         * config/mips/mips.md (multimem): New type.
9979         (length): Differentiate between 17-bit and 18-bit branch offsets.
9980         (MOVEP1, MOVEP2): New mode iterator.
9981         (mov_<load>l): Use ZC constraint.
9982         (mov_<load>r): Likewise.
9983         (mov_<store>l): Likewise.
9984         (mov_<store>r): Likewise.
9985         (*branch_equality<mode>_inverted): Add microMIPS support.
9986         (*branch_equality<mode>): Likewise.
9987         (*jump_absolute): Likewise.
9988         (indirect_jump_<mode>): Likewise.
9989         (tablejump_<mode>): Likewise.
9990         (<optab>_internal): Likewise.
9991         (sibcall_internal): Likewise.
9992         (sibcall_value_internal): Likewise.
9993         (prefetch): Use constraint ZD.
9994         * config/mips/mips.opt (minterlink-compressed): New option.
9995         (minterlink-mips16): Now an alias for minterlink-compressed.
9996         (mmicromips): New option.
9997         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9998         (compare_and_swap_12): Likewise.
9999         (sync_add<mode>): Likewise.
10000         (sync_<optab>_12): Likewise.
10001         (sync_old_<optab>_12): Likewise.
10002         (sync_new_<optab>_12): Likewise.
10003         (sync_nand_12): Likewise.
10004         (sync_old_nand_12): Likewise.
10005         (sync_new_nand_12): Likewise.
10006         (sync_sub<mode>): Likewise.
10007         (sync_old_add<mode>): Likewise.
10008         (sync_old_sub<mode>): Likewise.
10009         (sync_new_add<mode>): Likewise.
10010         (sync_new_sub<mode>): Likewise.
10011         (sync_<optab><mode>): Likewise.
10012         (sync_old_<optab><mode>): Likewise.
10013         (sync_new_<optab><mode>): Likewise.
10014         (sync_nand<mode>): Likewise.
10015         (sync_old_nand<mode>): Likewise.
10016         (sync_new_nand<mode>): Likewise.
10017         (sync_lock_test_and_set<mode>): Likewise.
10018         (test_and_set_12): Likewise.
10019         (atomic_compare_and_swap<mode>): Likewise.
10020         (atomic_exchange<mode>_llsc): Likewise.
10021         (atomic_fetch_add<mode>_llsc): Likewise.
10022         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10023         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10024         (umips_save_restore_pattern_p): Likewise.
10025         (umips_load_store_pair_p): Likewise.
10026         (umips_output_load_store_pair): Likewise.
10027         (umips_movep_target_p): Likewise.
10028         (umips_12bit_offset_address_p): Likewise.
10029         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10030         (mips_base_mips16): Rename this...
10031         (mips_base_compression_flags): ...to this. Update all uses.
10032         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10033         (mips_mips16_decl_p): Delete.
10034         (mips_nomips16_decl_p): Delete.
10035         (mips_get_compress_on_flags): New function.
10036         (mips_get_compress_off_flags): New function.
10037         (mips_get_compress_mode): New function.
10038         (mips_get_compress_on_name): New function.
10039         (mips_get_compress_off_name): New function.
10040         (mips_insert_attributes): Support multiple compression types.
10041         (mips_merge_decl_attributes): Likewise.
10042         (umips_12bit_offset_address_p): New function.
10043         (mips_start_function_definition): Emit .set micromips directive.
10044         (mips_call_may_need_jalx_p): New function.
10045         (mips_function_ok_for_sibcall): Add microMIPS support.
10046         (mips_print_operand_punctuation): Support short delay slots and
10047         compact jumps.
10048         (umips_swm_mask, umips_swm_encoding): New.
10049         (umips_build_save_restore): New function.
10050         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10051         (was_mips16_p): Remove.
10052         (old_compression_mode): New.
10053         (mips_set_compression_mode): New function.
10054         (mips_set_current_function): Add microMIPS support.
10055         (mips_option_override): Likewise.
10056         (umips_save_restore_pattern_p): New function.
10057         (umips_output_save_restore): New function.
10058         (umips_load_store_pair_p_1): New function.
10059         (umips_load_store_pair_p): New function.
10060         (umips_output_load_store_pair_1): New function.
10061         (umips_output_load_store_pair): New function.
10062         (umips_movep_target_p) New function.
10063         (mips_prepare_pch_save): Add microMIPS support.
10064         * config/mips/mips.h (TARGET_COMPRESSION): New.
10065         (TARGET_CPU_CPP_BUILTINS): Update macro
10066         to use new compression flags and to support microMIPS.
10067         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10068         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10069         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10070         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10071         (ASM_SPEC): Support mmicromips and mno-micromips.
10072         (M16STORE_REG_P): New macro.
10073         (MIPS_CALL): Support TARGET_MICROMIPS.
10074         (MICROMIPS_J): New macro.
10075         (mips_base_mips16): Rename this...
10076         (mips_base_compression_flags): ...to this.
10077         (UMIPS_12BIT_OFFSET_P): New macro.
10078         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10079         (MULTILIB_DIRNAMES): Likewise.
10081 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10083         PR rtl-optimization/56131
10084         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10085         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10086         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10088 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10090         * doc/invoke.texi (-fsanitize=): Move from optimization
10091         to debugging options.
10093 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10095         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10097 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10098             Alexander Monakov  <amonakov@ispras.ru>
10100         PR middle-end/56077
10101         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10102         flush pending lists also on non-jumps.  Adjust comment.
10104 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10105             Maciej W. Rozycki  <macro@codesourcery.com>
10106             Tom de Vries  <tom@codesourcery.com>
10107             Nathan Sidwell  <nathan@codesourcery.com>
10108             Iain Sandoe  <iain@codesourcery.com>
10109             Nathan Froyd  <froydnj@codesourcery.com>
10110             Chao-ying Fu  <fu@mips.com>
10112         * doc/extend.texi: (micromips, nomicromips, nocompression):
10113         Document new function attributes.
10114         * doc/invoke.texi (minterlink-compressed, mmicromips,
10115         m14k, m14ke, m14kec): Document new options.
10116         (minterlink-mips16): Update documentation.
10117         * doc/md.texi (ZC, ZD): Document new constraints.
10118         * configure.ac (gcc_cv_as_micromips): Check if linker
10119         supports the .set micromips directive.
10120         * configure: Regenerate.
10121         * config.in: Regenerate.
10122         * config/mips/mips-tables.opt: Regenerate.
10123         * config/mips/micromips.md: New file.
10124         * constraints.md (ZC, AD): New constraints.
10125         * config/mips/predicates.md (movep_src_register): New predicate.
10126         (movep_src_operand): New predicate.
10127         (non_volatile_mem_operand): New predicate.
10128         * config/mips/mips.md (multimem): New type.
10129         (length): Differentiate between 17-bit and 18-bit branch offsets.
10130         (MOVEP1, MOVEP2): New mode iterator.
10131         (mov_<load>l): Use ZC constraint.
10132         (mov_<load>r): Likewise.
10133         (mov_<store>l): Likewise.
10134         (mov_<store>r): Likewise.
10135         (*branch_equality<mode>_inverted): Add microMIPS support.
10136         (*branch_equality<mode>): Likewise.
10137         (*jump_absolute): Likewise.
10138         (indirect_jump_<mode>): Likewise.
10139         (tablejump_<mode>): Likewise.
10140         (<optab>_internal): Likewise.
10141         (sibcall_internal): Likewise.
10142         (sibcall_value_internal): Likewise.
10143         (prefetch): Use constraint ZD.
10144         * config/mips/mips.opt (minterlink-compressed): New option.
10145         (minterlink-mips16): Now an alias for minterlink-compressed.
10146         (mmicromips): New option.
10147         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10148         (compare_and_swap_12): Likewise.
10149         (sync_add<mode>): Likewise.
10150         (sync_<optab>_12): Likewise.
10151         (sync_old_<optab>_12): Likewise.
10152         (sync_new_<optab>_12): Likewise.
10153         (sync_nand_12): Likewise.
10154         (sync_old_nand_12): Likewise.
10155         (sync_new_nand_12): Likewise.
10156         (sync_sub<mode>): Likewise.
10157         (sync_old_add<mode>): Likewise.
10158         (sync_old_sub<mode>): Likewise.
10159         (sync_new_add<mode>): Likewise.
10160         (sync_new_sub<mode>): Likewise.
10161         (sync_<optab><mode>): Likewise.
10162         (sync_old_<optab><mode>): Likewise.
10163         (sync_new_<optab><mode>): Likewise.
10164         (sync_nand<mode>): Likewise.
10165         (sync_old_nand<mode>): Likewise.
10166         (sync_new_nand<mode>): Likewise.
10167         (sync_lock_test_and_set<mode>): Likewise.
10168         (test_and_set_12): Likewise.
10169         (atomic_compare_and_swap<mode>): Likewise.
10170         (atomic_exchange<mode>_llsc): Likewise.
10171         (atomic_fetch_add<mode>_llsc): Likewise.
10172         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10173         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10174         (umips_save_restore_pattern_p): Likewise.
10175         (umips_load_store_pair_p): Likewise.
10176         (umips_output_load_store_pair): Likewise.
10177         (umips_movep_target_p): Likewise.
10178         (umips_12bit_offset_address_p): Likewise.
10179         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10180         (mips_base_mips16): Rename this...
10181         (mips_base_compression_flags): ...to this. Update all uses.
10182         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10183         (mips_mips16_decl_p): Delete.
10184         (mips_nomips16_decl_p): Delete.
10185         (mips_get_compress_on_flags): New function.
10186         (mips_get_compress_off_flags): New function.
10187         (mips_get_compress_mode): New function.
10188         (mips_get_compress_on_name): New function.
10189         (mips_get_compress_off_name): New function.
10190         (mips_insert_attributes): Support multiple compression types.
10191         (mips_merge_decl_attributes): Likewise.
10192         (umips_12bit_offset_address_p): New function.
10193         (mips_start_function_definition): Emit .set micromips directive.
10194         (mips_call_may_need_jalx_p): New function.
10195         (mips_function_ok_for_sibcall): Add microMIPS support.
10196         (mips_print_operand_punctuation): Support short delay slots and
10197         compact jumps.
10198         (umips_swm_mask, umips_swm_encoding): New.
10199         (umips_build_save_restore): New function.
10200         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10201         (was_mips16_p): Remove.
10202         (old_compression_mode): New.
10203         (mips_set_compression_mode): New function.
10204         (mips_set_current_function): Add microMIPS support.
10205         (mips_option_override): Likewise.
10206         (umips_save_restore_pattern_p): New function.
10207         (umips_output_save_restore): New function.
10208         (umips_load_store_pair_p_1): New function.
10209         (umips_load_store_pair_p): New function.
10210         (umips_output_load_store_pair_1): New function.
10211         (umips_output_load_store_pair): New function.
10212         (umips_movep_target_p) New function.
10213         (mips_prepare_pch_save): Add microMIPS support.
10214         * config/mips/mips.h (TARGET_COMPRESSION): New.
10215         (TARGET_CPU_CPP_BUILTINS): Update macro
10216         to use new compression flags and to support microMIPS.
10217         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10218         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10219         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10220         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10221         (ASM_SPEC): Support mmicromips and mno-micromips.
10222         (M16STORE_REG_P): New macro.
10223         (MIPS_CALL): Support TARGET_MICROMIPS.
10224         (MICROMIPS_J): New macro.
10225         (mips_base_mips16): Rename this...
10226         (mips_base_compression_flags): ...to this.
10227         (UMIPS_12BIT_OFFSET_P): New macro.
10228         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10229         (MULTILIB_DIRNAMES): Likewise.
10231 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10233         PR target/52555
10234         * target-globals.c (save_target_globals): For init_reg_sets and
10235         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10237 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10239         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10240         * config/aarch64/t-aarch64
10241         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10243 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10245         PR inline-asm/56148
10246         * lra-constraints.c (process_alt_operands): Reload operand
10247         conflicting with earlier clobber only if no more other conflicting
10248         operands.
10250 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10252         PR sanitizer/56393
10253         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10254         if not linking a shared library.
10256 2013-02-22  Seth LaForge  <sethml@google.com>
10258         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10260 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10262         * config/arm/arm.md (split for extendsidi): Update condition.
10263         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10264         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10265         (qhs_zextenddi_cstr): Likewise.
10267 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10269         PR middle-end/56420
10270         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10271         avoid signed wrapping.
10272         (expand_mult): Handle properly multiplication by
10273         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10274         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10275         in the compiler if coeff is HOST_WIDE_INT_MIN.
10276         (expand_divmod): Don't make ext_op1 static, change it's type to
10277         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10279         PR rtl-optimization/50339
10280         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10281         field.
10282         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10283         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10284         into splitting_ashiftrt field.
10285         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10286         ASHIFTRT.
10287         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10288         choices.
10290 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10292         PR middle-end/56108
10293         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10294         are sure to go irrevocable.
10296 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10298         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10299         scalars are valid operands.
10301 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10303         PR tree-optimization/56310
10304         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10305         only matching indices and non-negative final offsets.
10306         (intersect_aggregates_with_edge): Pass src_idx to
10307         agg_replacements_to_vector.  Pass src_idx insstead of index to
10308         intersect_with_agg_replacements.
10310 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10312         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10313         instead of hard-wired defaults.
10315 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10317         * doc/invoke.texi (MIPS Options): Update documentation of the
10318         floating-point multiply-accumulate instruction restrictions.
10320 2013-02-21  Kostya Serebryany  <kcc@google.com>
10322         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10323         asan_shadow_offset on x86_64 linux.
10325 2013-02-21  Richard Biener  <rguenther@suse.de>
10327         PR tree-optimization/56415
10328         Revert
10329         2013-02-11  Richard Biener  <rguenther@suse.de>
10331         PR tree-optimization/56273
10332         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10333         first VRP run.
10335 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10337         PR bootstrap/56258
10338         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10339         instead of @itemx.
10341         PR inline-asm/56405
10342         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10343         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10345 2013-02-20  Jan Hubicka  <jh@suse.cz>
10347         PR tree-optimization/56265
10348         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10349         when target is referenced for first time.
10351 2013-02-20  Richard Biener  <rguenther@suse.de>
10353         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10354         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10355         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10356         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10357         not return anything.
10358         (rename_ssa_copies): Do not remove unused locals.
10359         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10360         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10361         * passes.c (execute_function_todo): Do not schedule unused locals
10362         removal if cleanup_tree_cfg did something.
10363         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10364         about the number of removed locals.
10366 2013-02-20  Richard Biener  <rguenther@suse.de>
10368         PR tree-optimization/56398
10369         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10371 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10373         PR tree-optimization/55334
10374         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10375         restricted pointers to arrays.
10377 2013-02-20  Richard Biener  <rguenther@suse.de>
10378             Jakub Jelinek  <jakub@redhat.com>
10380         PR tree-optimization/56396
10381         * tree-ssa-ccp.c (n_const_val): New static variable.
10382         (get_value): Return NULL for SSA names we don't have a lattice
10383         entry for.
10384         (ccp_initialize): Initialize n_const_val.
10385         * tree-ssa-copy.c (n_copy_of): New static variable.
10386         (init_copy_prop): Initialize n_copy_of.
10387         (get_value): Return NULL_TREE for SSA names we don't have a
10388         lattice entry for.
10390 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10392         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10394 2013-02-20  Richard Biener  <rguenther@suse.de>
10396         * genpreds.c (write_lookup_constraint): Do not compare first
10397         letter of the constraint again.
10399 2013-02-20  Richard Biener  <rguenther@suse.de>
10401         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10402         and ceil_log2.
10403         (get_use_iv_cost): Terminate hashtable walk when coming across
10404         an empty entry.
10406 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10408         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10409         reassociation for avx2 targets.
10411 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10413         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10414         Add version check for v8.10.a to enable microblaze_has_clz
10415         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10416         version and TARGET_PATTERN_COMPARE check
10417         * config/microblaze/microblaze.md: New clzsi2 instruction
10419 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10421         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10422         function before branching.
10424 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10426         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10427         DUMP_INSN_RTX_UID.
10428         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10430 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10432         PR middle-end/55889
10433         * sel-sched.c: Include ira.h.
10434         (implicit_clobber_conflict_p): New function.
10435         (moveup_expr): Use it.
10436         * Makefile.in (sel-sched.o): Depend on ira.h.
10438 2013-02-19  Richard Biener  <rguenther@suse.de>
10440         PR tree-optimization/56384
10441         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10442         (vn_hash_type): Split out from ...
10443         (vn_hash_constant_with_type): ... here.
10444         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10445         (vn_phi_eq): Compare types from vn_phi_s structure.
10446         (vn_phi_lookup): Populate vn_phi_s type.
10447         (vn_phi_insert): Likewise.
10449 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10451         PR tree-optimization/56350
10452         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10453         if haven't found reduction or nested cycle operand, rather than
10454         asserting we must find it.
10456         PR tree-optimization/56381
10457         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10458         to fold_build3.
10460 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10461             Jakub Jelinek  <jakub@redhat.com>
10463         PR target/52555
10464         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10465         (swap_optab_enable): Same.
10466         (init_all_optabs): Use argument instead of global.
10467         * tree.h (struct tree_optimization_option): New field target_optabs.
10468         * expr.h (init_all_optabs): Add argument to prototype.
10469         (TREE_OPTIMIZATION_OPTABS): New.
10470         (save_optabs_if_changed): Protoize.
10471         * optabs.h: Declare this_fn_optabs.
10472         * optabs.c (save_optabs_if_changed): New.
10473         Declare this_fn_optabs.
10474         (init_optabs): Add argument to init_all_optabs() call.
10475         * function.c (invoke_set_current_function_hook): Handle per
10476         function optabs.
10477         * function.h (struct function): New field optabs.
10478         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10479         optimization_current_node has changed.
10480         * target-globals.h (save_target_globals_default_opts): Protoize.
10481         * target-globals.c (save_target_globals_default_opts): New.
10483 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10485         PR target/56347
10486         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10487         registers %fr12 and %fr12R as call used.
10489         PR target/56214
10490         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10491         and HImode, require all displacements to be an integer multiple of
10492         their mode size.
10493         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10494         only allow QImode and HImode when reload is in progress and strict is
10495         true.  Likewise for symbolic addresses.  Use base14_operand to check
10496         displacements in REG+BASE addresses.
10498 2013-02-18  Richard Biener  <rguenther@suse.de>
10500         PR tree-optimization/56366
10501         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10502         handle sign-conversion of outer-loop initial induction value.
10504 2013-02-18  Richard Biener  <rguenther@suse.de>
10506         PR middle-end/56349
10507         * cfghooks.c (merge_blocks): If we merge a latch into another
10508         block adjust references to it.
10509         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10510         (verify_loop_structure): Verify that a recorded latch is in fact
10511         a latch.
10513 2013-02-18  Richard Biener  <rguenther@suse.de>
10515         PR tree-optimization/56321
10516         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10517         order SSA name release and virtual operand unlinking.
10519 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10521         * config/microblaze/microblaze.md (save_stack_block): Define.
10522         (restore_stack_block): Likewise.
10524 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10526         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10527         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10528         * config/microblaze/microblaze.c (microblaze_option_override):
10529         Bail out early for PIC modes when target does not support PIC.
10531 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10533         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10534         Replace with a microblaze version.
10535         (microblaze_trampoline_init): Adapt for microblaze.
10536         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10537         microblaze.
10539 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10540             Dodji Seketeli  <dodji@redhat.com>
10542         PR asan/56330
10543         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10544         (instrument_mem_region_access): Do not forget to always put
10545         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10546         0) statement, even for cases where either 'base' or 'base + len'
10547         are not instrumented -- because they have been previously
10548         instrumented.  Simplify the logic by putting all the statements
10549         instrument 'base + len' inside a sequence, and then insert that
10550         sequence right before the current insertion point.  Then, to
10551         instrument 'base + len', just get an iterator on that statement.
10552         And do not forget to update the pointer to iterator the function
10553         received as argument.
10555 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10557         PR rtl-optimization/56348
10558         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10560 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10562         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10563         (clean_graph_dump_file): Pass base to start_graph_dump.
10565 2013-02-14  Richard Henderson  <rth@redhat.com>
10567         PR target/55941
10568         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10570 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10572         * collect2-aix.h: Define F_LOADONLY.
10574 2013-02-14  Richard Biener  <rguenther@suse.de>
10576         PR lto/50494
10577         * varasm.c (output_constant_def_1): Get the decl representing
10578         the constant as argument.
10579         (output_constant_def): Wrap output_constant_def_1.
10580         (make_decl_rtl): Use output_constant_def_1 with the decl
10581         representing the constant.
10582         (build_constant_desc): Optionally re-use a decl already
10583         representing the constant.
10584         (tree_output_constant_def): Adjust.
10586 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10588         Fix an asan crash
10589         * asan.c (instrument_builtin_call):  Really put the length of the
10590         second source argument into src1_len.
10592 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10594         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10595         argument.  If it is false, don't create edge from then_bb to
10596         fallthru_bb.
10597         (insert_if_then_before_iter): Pass true to it.
10598         (build_check_stmt): Pass false to it.
10599         (transform_statements): Flush hash table only on extended basic
10600         block boundaries, rather than at the beginning of every bb.
10601         Don't flush hash table on nonfreeing_call_p calls.
10602         * tree-flow.h (nonfreeing_call_p): New prototype.
10603         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10605 2013-02-13  David S. Miller  <davem@davemloft.net>
10607         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10609 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10611         PR target/56184
10612         * ira.c (max_regno_before_ira): Move from ...
10613         (ira): ... here.
10614         (fix_reg_equiv_init): Use max_regno_before_ira instead of
10615         vec_safe_length.
10617 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10619         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10621 2013-02-13  Richard Biener  <rguenther@suse.de>
10623         PR lto/56295
10624         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10625         globals in MEM_REFs.
10627 2013-02-13  Richard Biener  <rguenther@suse.de>
10629         * loop-init.c (loop_optimizer_init): Clear loop state when
10630         re-initializing preserved loops.
10631         * loop-unswitch.c (unswitch_single_loop): Return whether
10632         we unswitched the loop.  Do not verify loop state here.
10633         (unswitch_loops): When we unswitched a loop discover new loops.
10635 2013-02-13  Kostya Serebryany  <kcc@google.com>
10637         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10638         on x86_64 linux.
10639         * sanitizer.def: Rename __asan_init to __asan_init_v1.
10641 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
10643         Avoid instrumenting duplicated memory access in the same basic block
10644         * Makefile.in (asan.o): Add new dependency on hash-table.h
10645         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10646         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10647         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10648         (free_mem_ref_resources, has_mem_ref_been_instrumented)
10649         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10650         (get_mem_ref_of_assignment): New functions.
10651         (get_mem_refs_of_builtin_call): Extract from
10652         instrument_builtin_call and tweak a little bit to make it fit with
10653         the new signature.
10654         (instrument_builtin_call): Use the new
10655         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
10656         of is_gimple_builtin_call.
10657         (instrument_derefs, instrument_mem_region_access): Insert the
10658         instrumented memory reference into the hash table.
10659         (maybe_instrument_assignment): Renamed instrument_assignment into
10660         this, and change it to advance the iterator when instrumentation
10661         actually happened and return true in that case.  This makes it
10662         homogeneous with maybe_instrument_assignment, and thus give a
10663         chance to callers to be more 'regular'.
10664         (transform_statements): Clear the memory reference hash table
10665         whenever we enter a new BB, when we cross a function call, or when
10666         we are done transforming statements.  Use
10667         maybe_instrument_assignment instead of instrumentation.  No more
10668         need to special case maybe_instrument_assignment and advance the
10669         iterator after calling it; it's now handled just like
10670         maybe_instrument_call.  Update comment.
10672 2013-02-13  Richard Biener  <rguenther@suse.de>
10674         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10675         Fix loop discovery code.
10677 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
10679         PR inline-asm/56148
10680         * lra-constraints.c (process_alt_operands): Match early clobber
10681         operand with itself.  Check conflicts with earlyclobber only if
10682         the operand is not reloaded.  Prefer to reload conflicting operand
10683         if earlyclobber and matching operands are the same.
10685 2013-02-12  Richard Biener  <rguenther@suse.de>
10687         PR lto/56297
10688         * lto-streamer-out.c (write_symbol): Do not output symbols
10689         for hard register variables.
10691 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
10693         PR target/54222
10694         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10695         (umulsidi3_insn, mulsidi3_insn): New insns.
10697 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
10699         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10700         (struct tune_params): Add vec_costs field.
10701         * config/arm/arm.c (arm_builtin_vectorization_cost)
10702         (arm_add_stmt_cost): New functions.
10703         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10704         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10705         (arm_default_vec_cost): New struct of type cpu_vec_costs.
10706         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10707         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10708         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10709         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10711 2013-02-12  Richard Biener  <rguenther@suse.de>
10713         PR lto/56295
10714         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10715         decls again if possible.
10717 2013-02-12  Richard Biener  <rguenther@suse.de>
10719         PR middle-end/56288
10720         * tree-ssa.c (verify_ssa_name): Fix check, move
10721         SSA_NAME_IN_FREE_LIST check up.
10723 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
10724             Steven Bosscher   <steven@gcc.gnu.org>
10726         PR rtl-optimization/56151
10727         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10728         equal to op0 or op1, and last_insn pattern is CODE operation
10729         with MEM dest and one of the operands matches that MEM.
10731 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
10733         * doc/extend.texi: Document Function Multiversioning and "default"
10734         parameter string to target attribute.
10735         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10736         target attribute parameter is "default".
10737         (ix86_compare_version_priority): Remove checks for target attribute.
10738         (ix86_mangle_function_version_assembler_name): Change error to sorry.
10739         Remove check for target attribute equal to NULL. Add assert.
10740         (ix86_generate_version_dispatcher_body): Change error to sorry.
10742 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
10743             Jack Howarth  <howarth@bromo.med.uc.edu>
10744             Patrick Marlier  <patrick.marlier@gmail.com>
10746         PR libitm/55693
10747         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10748         define ENDFILE_SPEC as TM_DESTRUCTOR.
10749         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10751 2013-02-11  Alexander Potapenko  <glider@google.com>
10752             Jack Howarth  <howarth@bromo.med.uc.edu>
10753             Jakub Jelinek  <jakub@redhat.com>
10755         PR sanitizer/55617
10756         * config/darwin.c (cdtor_record): Rename ctor_record.
10757         (sort_cdtor_records): Rename sort_ctor_records.
10758         (finalize_dtors): New routine to sort destructors by
10759         priority before use in assemble_integer.
10760         (machopic_asm_out_destructor): Use finalize_dtors if needed.
10762 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
10764         PR rtl-optimization/56275
10765         * simplify-rtx.c (avoid_constant_pool_reference): Check that
10766         offset is non-negative and less than cmode size before
10767         calling simplify_subreg.
10769 2013-02-11  Richard Biener  <rguenther@suse.de>
10771         PR tree-optimization/56264
10772         * cfgloop.h (fix_loop_structure): Adjust prototype.
10773         * loop-init.c (fix_loop_structure): Return the number of
10774         newly discovered loops.
10775         * tree-cfgcleanup.c (repair_loop_structures): When new loops
10776         are discovered, do a full loop-closed SSA rewrite.
10778 2013-02-11  Richard Biener  <rguenther@suse.de>
10780         PR tree-optimization/56273
10781         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10782         first VRP run.
10783         (check_array_ref): Fix missing newline in dumps.
10784         (search_for_addr_array): Likewise.
10786 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
10788         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10790 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
10792         PR target/56256
10793         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10795 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
10797         PR rtl-optimization/56246
10798         * lra-constraints.c (simplify_operand_subreg): Try to reuse
10799         reload pseudo.
10800         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10801         constraints are satisfied.
10803 2013-02-08  Jeff Law  <law@redhat.com>
10805         PR debug/53948
10806         * emit-rtl.c (reg_is_parm_p): New function.
10807         * regs.h (reg_is_parm_p): New prototype.
10808         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10809         callee-clobbered registers.
10811 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10813         PR target/56043
10814         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10815         If there is no implicit builtin declaration, just return NULL.
10817 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10819         * config/i386/sse.md (FMAMODEM): New mode iterator.
10820         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10821         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10823 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10825         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10826         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10827         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10829 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10831         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10832         (microblaze*-*-elf): Likewise.
10833         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10834         LINK_SPEC.
10835         * config/microblaze/microblaze-c.c: Add builtin defines for
10836         _LITTLE_ENDIAN and _BIG_ENDIAN.
10837         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10838         add to TARGET_DEFAULT flags.
10839         Expand ASM_SPEC and LINK_SPEC.
10840         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10841         * config/microblaze/microblaze.md: Update extendsidi2 and
10842         movdi_internal instructions to use low-order / high-order reg
10843         print_operands.
10844         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10845         options and inversemask / mask of LITTLE_ENDIAN.
10846         * config/microblaze/t-microblaze: Expand multilib options to
10847         include mlittle-endian (le) and update exceptions patterns.
10849 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
10851         PR rtl-optimization/56195
10852         * lra-constraints.c (get_reload_reg): Don't reuse regs
10853         if they have smaller mode than requested, if they have
10854         wider mode than requested, try to return a SUBREG.
10856         PR tree-optimization/56250
10857         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10858         if type is unsigned and code isn't MULT_EXPR.
10860 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10862         PR tree-optimization/56064
10863         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10864         bits according to mode.
10865         * fixed-value.h (fixed_from_double_int)
10866         (const_fixed_from_double_int): Adjust comments.
10868 2013-02-08  Richard Biener  <rguenther@suse.de>
10870         PR lto/56231
10871         * lto-streamer.h (struct data_in): Remove current_file, current_line
10872         and current_col members.
10873         * lto-streamer-out.c (lto_output_location): Stream changed bits
10874         en-block for efficiency.
10875         * lto-streamer-in.c (clear_line_info): Remove.
10876         (lto_input_location): Cache current file, line and column
10877         globally via local statics.  Read changed bits en-block.
10878         (input_function): Do not call clear_line_info.
10879         (lto_read_body): Likewise.
10880         (lto_input_toplevel_asms): Likewise.
10882 2013-02-08  Michael Matz  <matz@suse.de>
10884         PR tree-optimization/52448
10885         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10886         (nt_call_phase): New static.
10887         (add_or_mark_expr): Only mark accesses with newer phase than any
10888         call seen.
10889         (nonfreeing_call_p): New.
10890         (nt_init_block): Update nt_call_phase, mark blocks as visited.
10891         (nt_fini_block): Keep blocks marked as visited.
10892         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10894 2013-02-08  Richard Biener  <rguenther@suse.de>
10896         * ira.c (ira): Free broken dominator information.
10898 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10900         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10902 2013-02-08  Marek Polacek  <polacek@redhat.com>
10904         * cfgloop.c (verify_loop_structure): Add more checking of headers.
10906 2013-02-08  Richard Biener  <rguenther@suse.de>
10908         PR middle-end/56181
10909         * cfgloop.h (flow_loops_find): Adjust.
10910         (bb_loop_header_p): Declare.
10911         * cfgloop.c (bb_loop_header_p): New function split out from ...
10912         (flow_loops_find): ... here.  Adjust function signature,
10913         support incremental loop structure update.
10914         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
10915         * cfgloopmanip.c (fix_loop_structure): Move ...
10916         * loop-init.c (fix_loop_structure): ... here.
10917         (apply_loop_flags): Split out from ...
10918         (loop_optimizer_init): ... here.
10919         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
10920         in incremental mode, only remove dead loops here.
10922 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10924         PR target/54222
10925         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10926         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10927         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10928         (*round<mode>3.libgcc): New insns for fixed-modes.
10929         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10930         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10931         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10932         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10933         implementations.  Define to __builtin_avr_absFX,
10934         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10935         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10936         __builtin_avr_countlsFX, respectively.
10937         * config/avr/avr-c.c (target.h): Include it.
10938         (enum avr_builtin_id): New enum.
10939         (avr_resolve_overloaded_builtin): New static function.
10940         (avr_register_target_pragmas): Use it to set
10941         targetm.resolve_overloaded_builtin.
10942         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10943         tree nodes used by DEF_BUILTIN.
10944         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10945         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10946         <AVR_BUILTIN_xxBITS>: Same.
10948 2013-02-08  Richard Biener  <rguenther@suse.de>
10950         * cfgloop.c (verify_loop_structure): Properly handle
10951         a loop exiting to another loop header.
10952         * ira-int.h (ira_loops): Remove.
10953         * ira.c (ira_loops): Remove.
10954         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10955         (do_reload): Use loop_optimizer_finalize.
10956         * ira-build.c (create_loop_tree_nodes): Use get_loops and
10957         number_of_loops to access the loop tree.
10958         (more_one_region_p): Likewise.
10959         (finish_loop_tree_nodes): Likewise.
10960         (rebuild_regno_allocno_maps): Likewise.
10961         (mark_loops_for_removal): Likewise.
10962         (mark_all_loops_for_removal): Likewise.
10963         (remove_unnecessary_regions): Likewise.
10964         (ira_build): Likewise.
10965         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10967 2013-02-08  Richard Biener  <rguenther@suse.de>
10969         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10970         * ipa-pure-const.c (analyze_function): Avoid calling
10971         mark_irreducible_loops twice.
10972         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
10974 2013-02-07  David S. Miller  <davem@davemloft.net>
10976         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10977         on 'reg'.
10978         * var-tracking.c (vt_add_function_parameter): Test the presence of
10979         HAVE_window_save properly and do not remap argument registers when
10980         we have a leaf function.
10982 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
10984         PR bootstrap/56227
10985         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10986         instead of "ll".
10987         * config/i386/i386.c (ix86_print_operand): Ditto.
10989 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
10991         * lra-constraints.c (process_alt_operands): Fix recently added comment.
10993 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
10995         PR rtl-optimization/56225
10996         * lra-constraints.c (process_alt_operands): Check that reload hard
10997         reg can hold value for strict_low_part.
10999 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11001         PR debug/56154
11002         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11003         dwarf2out_end_function.
11004         (in_first_function_p, maybe_at_text_label_p,
11005         first_loclabel_num_not_at_text_label): New variables.
11006         (dwarf2out_var_location): In the first function find out
11007         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11008         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11009         functions.
11011 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11013         PR rtl-optimization/56178
11014         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11015         SUBREG of a register.  Tidy up related block of code.
11016         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11017         note if the source is a register or a SUBREG of a register.
11019 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11021         PR target/56228
11022         * config/rs6000/rs6000.md (ptrm): New mode attr.
11023         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11024         call_value_indirect_aix<pttrsize>,
11025         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11026         m in constraints.
11028 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11030         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11031         if -bnortl. Convert to strcmp and strncmp.
11033 2013-02-07  Alan Modra  <amodra@gmail.com>
11035         PR target/54009
11036         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11037         addresses won't wrap when offsetting.
11038         (rs6000_secondary_reload): Provide secondary reloads needed for
11039         wrapping LO_SUM addresses.
11041 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11043         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11044         MACH, just __MACH__.
11046 2013-02-06  Richard Biener  <rguenther@suse.de>
11048         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11049         instead of calling fix_loop_structure.
11051 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11053         PR middle-end/56217
11054         * omp-low.c (use_pointer_for_field): Return false if
11055         lower_send_shared_vars doesn't generate any copy-out code.
11057 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11059         PR rtl-optimization/56131
11060         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11061         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11062         of the label is NULL.  Add comment.
11064 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11066         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11068         PR sanitizer/55374
11069         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11070         (STATIC_LIBTSAN_LIBS): Likewise.
11071         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11072         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11073         is defined, don't add anything else beyond that.
11074         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11075         (LINK_COMMAND_SPEC): Use them.
11077         PR tree-optimization/56205
11078         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11079         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11080         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11082 2013-02-05  Richard Biener  <rguenther@suse.de>
11084         PR tree-optimization/53342
11085         PR tree-optimization/53185
11086         * tree-vectorizer.h (vect_check_strided_load): Remove.
11087         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11088         not disallow peeling for vectorized strided loads.
11089         (vect_check_strided_load): Make static and simplify.
11090         (vect_analyze_data_refs): Adjust.
11091         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11092         correctly when vectorizing strided loads.
11094 2013-02-05  Richard Biener  <rguenther@suse.de>
11096         * doc/install.texi: Refer to ISL, not PPL.
11098 2013-02-05  Jan Hubicka  <jh@suse.cz>
11100         PR tree-optimization/55789
11101         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11103 2013-02-05  Jan Hubicka  <jh@suse.cz>
11105         PR tree-optimization/55789
11106         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11107         the dead call anyway.
11109 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11111         PR sanitizer/55374
11112         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11114 2013-02-04  Alexander Potapenko  <glider@google.com>
11115             Jack Howarth  <howarth@bromo.med.uc.edu>
11116             Jakub Jelinek  <jakub@redhat.com>
11118         PR sanitizer/55617
11119         * config/darwin.c (sort_ctor_records): Stabilized qsort
11120         on constructor priority by using original position.
11121         (finalize_ctors): New routine to sort constructors by
11122         priority before use in assemble_integer.
11123         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11125 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11127         PR libstdc++/54314
11128         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11129         about visibility on artificial decls.
11130         * config/sol2.c (solaris_assemble_visibility): Likewise.
11132 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11134         PR target/56186
11135         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11136         argument and improve checking of return-argument types for 16-byte
11137         modes.
11138         (ix86_function_value_1): Add additional valtype argument on call
11139         of function_value_64.
11140         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11141         handling infunction_value_64 function.
11143 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11145         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11147 2013-02-04  Richard Biener  <rguenther@suse.de>
11149         PR tree-optimization/56188
11150         * tree-ssa-structalias.c (label_visit): Consider case with
11151         initially non-empty points-to set.
11152         (perform_var_substitution): Dump node mapping and clean up.
11154 2013-02-04  Richard Guenther  <rguenther@suse.de>
11156         PR lto/56168
11157         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11158         node prevail as last resort.
11159         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11160         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11162 2013-02-04  Richard Biener  <rguenther@suse.de>
11164         PR tree-optimization/56113
11165         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11166         Merge into ...
11167         (equiv_class_lookup_or_add): ... this.
11168         (label_visit): Adjust and fix error in previous patch.
11169         (perform_var_substitution): Adjust.
11171 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11173         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11174         * config/sh/sh4-300.md: Likewise.
11175         * config/sh/sh4a.md: Likewise.
11176         * config/sh/constraints.md: Likewise.
11177         * config/sh/sh.md: Likewise.
11178         * config/sh/netbsd-elf.h: Likewise.
11179         * config/sh/predicates.md: Likewise.
11180         * config/sh/sh-protos.h: Likewise.
11181         * config/sh/ushmedia.h: Likewise.
11182         * config/sh/linux.h: Likewise.
11183         * config/sh/sh.c: Likewise.
11184         * config/sh/superh.h: Likewise.
11185         * config/sh/elf.h: Likewise.
11186         * config/sh/sh4.md: Likewise.
11187         * config/sh/sh.h: Likewise.
11189 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11191         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11192         constraint to match_test floating_point_store_memory_operand().
11193         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11194         (base14_operand): New.
11195         (floating_point_store_memory_operand): New.
11196         (integer_store_memory_operand): Revise to use base14_operand and
11197         reg_plus_base_memory_operand.
11198         (move_dest_operand): Allow symbolic_memory_operands.
11199         (symbolic_memory_operand): Check for LO_SOM.
11200         (symbolic_operand): Change default case to break.
11201         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11202         CONST_DOUBLE values to be reloaded by putting them into memory when
11203         the destination is a floating point register.
11204         (movdf): Remove code to handle CONST_DOUBLE.
11205         (movsf): Likewise.
11206         (reload_indf_r1): New.
11207         (reload_insf_r1): New.
11208         Consistently use "Q" and "T" constraints with integer and floating
11209         point move instructions, respectively.
11210         (movdi): Remove FAIL.
11211         Change predicate for source operand unamed DImode move from
11212         general_operand to move_src_operand.
11213         (umulsidi3): Change predicate for destination operand to
11214         register_operand.
11215         Likewise for similar unamed patterns.
11216         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11217         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11218         (hppa_legitimize_address): Simplify mask calculation.
11219         (pa_emit_move_sequence): Revised handling of secondary reloads from
11220         REG+D addresses for floating point loads and stores.  Directly handle
11221         loading CONST0_RTX (mode) to a floating point register.
11222         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11223         to floating point registers.  Don't restrict secondary reloads to
11224         floating point registers to integer modes.  Revise some comments and
11225         cleanup some code.
11226         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11227         (pa_legitimate_address_p): New.
11228         (pa_legitimize_reload_address): New.
11229         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11230         (STRICT_REG_OK_FOR_BASE_P): New.
11231         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11232         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11234 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11235             Andrew Dixie  <andrewd@gentrack.com>
11237         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11238         flag set.
11240 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11242         * expmed.c (extract_bit_field_1): Pass the full width of the
11243         structure to get_best_reg_extraction_insn.
11245 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11247         PR target/54601
11248         * configure.ac (use_cxa_atexit): Add AIX.
11249         * configure: Regenerate.
11251         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11253 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11255         PR debug/54793
11256         * final.c (need_profile_function): New variable.
11257         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11258         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11259         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11260         notes, targetm.asm_out.function_prologue doesn't emit anything,
11261         HAVE_prologue and profiler should be emitted before prologue,
11262         set need_profile_function instead of emitting it.
11263         (final_scan_insn): If need_profile_function, emit
11264         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11265         NOTE_INSN_FUNCTION_BEG note.
11267 2013-02-01  Richard Henderson  <rth@redhat.com>
11269         * config/rs6000/rs6000.md (smulditi3): New.
11270         (umulditi3): New.
11272         * config/alpha/alpha.md (umulditi3): New.
11274 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11276         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11277         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11279 2013-02-01  Richard Biener  <rguenther@suse.de>
11281         PR tree-optimization/56113
11282         * tree-ssa-structalias.c (label_visit): Reduce work for
11283         single-predecessor nodes.
11285 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11287         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11288         range isn't testing for zero.
11290 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11292         PR middle-end/56113
11293         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11295 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11296             Nick Clifton  <nickc@redhat.com>
11298         * config/v850/constraints.md (Q): Define as a memory constraint.
11299         * config/v850/predicates.md (label_ref_operand): New predicate.
11300         (e3v5_shift_operand): New predicate.
11301         (ior_operator): New predicate.
11302         * config/v850/t-v850: Add e3v5 multilib.
11303         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11304         (v850_gen_movdi): Prototype.
11305         * config/v850/v850.c: Add support for e3v5 architecture.
11306         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11307         TARGET_V850E_UP.
11308         (construct_save_jarl): Add e3v5 long JARL support.
11309         (v850_adjust_insn_length): New function.  Adjust length of call
11310         insns when using e3v5 instructions.
11311         (v850_gen_movdi): New function: Generate instructions to move a
11312         DImode value.
11313         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11314         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11315         (TARGET_USE_FPU): Enable for e3v5.
11316         (CONST_OK_FOR_W): New macro.
11317         (ADJUST_INSN_LENGTH): Define.
11318         * config/v850/v850.md (UNSPEC_LOOP): Define.
11319         (attr cpu): Add v850e3v5.
11320         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11321         (movdi): New pattern.
11322         (movdi_internal): New pattern.
11323         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11324         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11325         (cstoresf4): Likewise.
11326         (cstoredf4): Likewise.
11327         (insv): New pattern.
11328         (rotlso3_a): New pattern.
11329         (rotlsi3_b): New pattern
11330         (rotlsi3_v850e3v5): New pattern.
11331         (doloop_begin): New pattern.
11332         (fix_loop_counter): New pattern.
11333         (doloop_end): New pattern.
11334         (branch_normal): Add e3v5 long branch support.
11335         (branch_invert): Likewise.
11336         (branch_z_normal): Likewise.
11337         (branch_z_invert): Likewise.
11338         (branch_nz_normal): Likewise.
11339         (branch_nz_invert): Likewise.
11340         (call_internal_short): Add e3v5 register-indirect JARL support.
11341         (call_internal_long): Likewise.
11342         (call_value_internal_short): Likewise.
11343         (call_value_internal_long): Likewise.
11344         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11345         (mloop): New option.
11346         * config.gcc: Add support for configuring v840e3v5 target.
11347         * doc/invoke.texi: Document new v850 specific command line options.
11349 2013-01-31  Paul Koning  <ni1d@arrl.net>
11351         PR debug/55059
11352         PR debug/54508
11353         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11354         children if parent is a class.
11355         (prune_unused_types_prune): Don't add DW_AT_declaration.
11357 2013-01-31  Richard Biener  <rguenther@suse.de>
11359         PR tree-optimization/56157
11360         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11361         match up operand with SLP child.
11363 2013-01-31  Jason Merrill  <jason@redhat.com>
11365         PR debug/54410
11366         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11367         parameters the first time.
11368         (gen_scheduled_generic_parms_dies): Check completeness here.
11370 2013-01-31  Richard Biener  <rguenther@suse.de>
11372         PR middle-end/53073
11373         * common.opt (faggressive-loop-optimizations): New flag,
11374         enabled by default.
11375         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11376         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11377         infer_loop_bounds_from_undefined by it.
11379 2013-01-31  Richard Biener  <rguenther@suse.de>
11381         PR tree-optimization/56150
11382         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11383         visit virtual operands.
11384         (find_uses_to_rename_bb): Likewise.
11386 2013-01-31  Richard Biener  <rguenther@suse.de>
11388         PR tree-optimization/56150
11389         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11390         mixed store non-store stmts.
11392 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11394         PR sanitizer/55374
11395         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11396         LIBASAN_EARLY_SPEC is defined.
11397         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11398         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11399         before %o.
11400         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11402         PR c++/55742
11403         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11404         invalid args instead of ICEing on it.
11405         (ix86_valid_target_attribute_tree): Return error_mark_node if
11406         ix86_valid_target_attribute_inner_p failed.
11407         (ix86_valid_target_attribute_p): Return false only if
11408         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11409         target("default") attribute.
11410         (sorted_attr_string): Change argument from const char * to tree,
11411         merge in all target attribute arguments rather than just one.
11412         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11413         instead of free.  Avoid using strcat.
11414         (ix86_mangle_function_version_assembler_name): Mangle
11415         target("default") as if no target attribute is present.  Adjust
11416         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11417         instead of xmalloc and XDELETEVEC instead of free.
11418         (ix86_function_versions): Don't return true if one of the decls
11419         doesn't have target attribute.  If they don't and one of the decls
11420         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11421         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11422         (ix86_supports_function_versions): Remove.
11423         (make_name): Fix up formatting.
11424         (make_dispatcher_decl): Remove resolver_name and its initialization.
11425         Avoid leaking memory.
11426         (is_function_default_version): Return true if there is
11427         target("default") attribute rather than no target attribute at all.
11428         (make_resolver_func): Avoid leaking memory.
11429         (ix86_generate_version_dispatcher_body): Likewise.
11430         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11431         * target.def (supports_function_versions): Remove.
11432         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11433         * doc/tm.texi: Regenerated.
11435 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11437         PR rtl-optimization/56144
11438         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11439         for values with side effects.
11441 2013-01-30  Richard Biener  <rguenther@suse.de>
11443         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11444         (sparseset_pop): Likewise.
11445         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11446         to be able to use quick_push in the worker loop.
11448 2013-01-30  Marek Polacek  <polacek@redhat.com>
11450         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11452 2013-01-30  Richard Biener  <rguenther@suse.de>
11454         PR lto/56147
11455         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11457 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11459         PR tree-optimization/56064
11460         * fixed-value.c (fixed_from_double_int): New function.
11461         * fixed-value.h (fixed_from_double_int): New prototype.
11462         (const_fixed_from_double_int): New static inline function.
11463         * fold-const.c (native_interpret_fixed): New static function.
11464         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11465         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11466         (native_encode_fixed): New static function.
11467         (native_encode_expr) <FIXED_CST>: Use it.
11468         (native_interpret_int): Move double_int worker code to...
11469         * double-int.c (double_int::from_buffer): ...this new static method.
11470         * double-int.h (double_int::from_buffer): Prototype it.
11472 2013-01-30  Richard Biener  <rguenther@suse.de>
11474         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11475         New pointer-map and obstack.
11476         (init_alias_vars): Allocate pointer-map and obstack.
11477         (delete_points_to_sets): Free them.
11478         (find_what_var_points_to): Cache result.
11479         (find_what_p_points_to): Adjust for changed interface of
11480         find_what_var_points_to.
11481         (compute_points_to_sets): Likewise.
11482         (ipa_pta_execute): Likewise.
11484 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11486         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11487         * configure: Regenerate.
11488         * config.in: Regenerate.
11489         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11490         #nobits/#progbits if supported.
11492 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11494         PR target/56121
11495         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11496         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11497         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11499 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11501         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11502         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11504 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11506         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11507         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11509 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11511         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11512         declaration.
11513         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11514         * config/arm/cortex-a7.md: New bypasses using
11515         arm_mac_accumulator_is_result.
11517 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11519         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11520         (cortex_a7_neon_mla): Likewise.
11521         (cortex_a7_fpfmad): New reservation.
11522         (cortex_a7_fpmacs): Use ffmas and update required units.
11523         (cortex_a7_fpmuld): Update required units and latency.
11524         (cortex_a7_fpmacd): Likewise.
11525         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11526         (cortex_a7_neon). Likewise.
11527         (bypass) Update participating units.
11529 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11531         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11532         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11533         from fmac to ffma.
11534         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11535         (vfp_fmul): Use ffmad.
11536         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11537         (cortex_r4_fmacd): Use ffmad.
11538         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11539         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11540         (cortex_a9_fmacd): Use ffmad.
11541         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11542         (cortex_a8_vfp_macd): Use ffmad.
11543         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11544         (cortex_a5_fpmacd): Use ffmad.
11545         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11546         (cortex_a15_vfp_macd): Use ffmad.
11547         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11549 2013-01-29  Jason Merrill  <jason@redhat.com>
11551         PR libstdc++/54314
11552         * varasm.c (default_assemble_visibility): Don't warn about
11553         visibility on artificial decls.
11555 2013-01-29  Richard Biener  <rguenther@suse.de>
11557         PR tree-optimization/56113
11558         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11559         the bitmap leader.
11560         (label_visit): Free duplicate bitmaps and record the leader instead.
11561         (perform_var_substitution): Adjust.
11563 2013-01-29  Richard Biener  <rguenther@suse.de>
11565         PR tree-optimization/55270
11566         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11567         the CFG, schedule loops for fixup.
11569 2013-01-29  Nick Clifton  <nickc@redhat.com>
11571         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11572         SP_REG.
11574 2013-01-28  Leif Ekblad  <leif@rdos.net>
11576         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11577         * config/i386/i386.h (TARGET_RDOS): New macro.
11578         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11579         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11580         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11581         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11582         DEFAULT_LARGE_SECTION_THRESHOLD.
11583         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11584         * config/i386/rdos.h: New file.
11585         * config/i386/rdos64.h: New file.
11587 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11589         PR other/54814
11590         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11591         TEST_HARD_REG_BIT.
11593 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11595         PR rtl-optimization/56117
11596         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11597         call cselib_lookup_from_insn on the MEM before calling
11598         add_insn_mem_dependence.
11600 2013-01-28  Richard Biener  <rguenther@suse.de>
11602         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11603         to a stmt that didn't have one.
11604         (copy_phis_for_bb): Likewise for PHI arguments.
11605         (copy_debug_stmt): Likewise for debug stmts.
11607 2013-01-28  Richard Biener  <rguenther@suse.de>
11609         PR tree-optimization/56034
11610         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11611         (partition_builtin_p): Adjust.
11612         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
11613         it is the last partition.
11614         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11615         up the vertex for the definition.
11616         (classify_partition): Classify whether a partition is a
11617         PKIND_REDUCTION, thus has uses outside of the loop.
11618         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11619         Merge all PKIND_REDUCTION partitions into the last partition.
11620         (tree_loop_distribution): Seed partitions from reductions as well.
11622 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11624         PR tree-optimization/56125
11625         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11626         pow(x,c) into sqrt(x) * powi(x, n/2) or
11627         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11628         optimizing for size.
11629         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11630         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11631         integer.
11633         PR tree-optimization/56094
11634         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11635         to UNKNOWN_LOCATION while gimplifying expr.
11637 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
11639         PR target/56114
11640         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11641         operand 0 in movabs insn template for -masm=intel asm alternative.
11642         (*movabs<mode>_2): Ditto for operand 1.
11644 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
11646         PR target/54663
11647         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11648         of microblaze-c.o
11650 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11652         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11653         tm_file.
11655 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11657         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11658         Undef to avoid warning.
11660 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11662         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11663         * configure: Regenerate.
11665 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
11667         PR tree-optimization/56098
11668         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11669         for stmts with volatile ops.
11670         (cond_store_replacement): Don't optimize if assign has volatile ops.
11671         (cond_if_else_store_replacement_1): Don't optimize if either
11672         then_assign or else_assign have volatile ops.
11673         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11674         volatile ops.
11676 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11678         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11680 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11682         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11683         missing ':' in asm example.
11685 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
11687         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11688         entries into lane and laneq entries.
11689         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11690         Remove AdvSIMD scalar modes.
11691         (aarch64_sq<r>dmulh_laneq<mode>): New.
11692         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11693         modes.
11694         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11695         builtin implementations to relfect changes in RTL in aarch64-simd.md.
11696         * config/aarch64/iterators.md (VCOND): New.
11697         (VCONQ): New.
11699 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11701         PR target/54222
11702         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11703         Add NULL LIBNAME argument to existing definitions.
11704         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11705         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11706         * config/avr/avr.c (DEF_BUILTIN): Same.
11707         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11708         (avr_expand_builtin): Expand to a vanilla call if a libgcc
11709         implementation is available (DECL_ASSEMBLER_NAME is set).
11710         (avr_fold_absfx): New static function.
11711         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11712         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11713         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11714         AVR_BUILTIN_ABSLLK.
11715         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11716         (abshk, absk, abslk, absllk): Provide as static inline functions.
11718 2013-01-25  Marek Polacek  <polacek@redhat.com>
11720         PR tree-optimization/56035
11721         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11723 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
11725         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11726         (*movtf_internal_rex64): Add (!o,C) alternative
11727         (*movxf_internal_rex64): Ditto.
11728         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11730 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
11732         * doc/invoke.texi: fix typo.
11733         * doc/objc.texi: fix typo.
11735 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
11737         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11738         for the first two alternatives.
11740 2013-01-24  Diego Novillo  <dnovillo@google.com>
11742         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
11743         (ggc-zone.o): Remove.
11744         * configure.ac: Remove option --with-gc.
11745         * configure: Re-generate.
11746         * doc/install.texi: Remove documentation for --with-gc.
11747         * gengtype.c (write_enum_defn): Remove.  Update all users.
11748         (write_Types_process_field): Remove generation of gt_e_* argument.
11749         (output_type_enum): Remove.  Update all users.
11750         (write_enum_defn): Remove.  Update all users.
11751         (enum alloc_zone): Remove.  Update all users.
11752         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11753         * ggc-common.c (ggc_splay_alloc): Remove first argument.
11754         Update all callers.
11755         (struct ptr_data): Remove field TYPE.  Update all users.
11756         (gt_pch_note_object): Remove argument TYPE.  Update all users.
11757         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11758         Update all users.
11759         * ggc-none.c (ggc_alloc_typed_stat): Remove.
11760         (struct alloc_zone): Remove.
11761         (ggc_internal_alloc_zone_stat): Remove.
11762         (ggc_internal_cleared_alloc_zone_stat): Remove.
11763         * ggc-page.c (ggc_alloc_typed_stat): Remove.
11764         (ggc_pch_count_object): Remove last argument.  Update all users.
11765         (ggc_pch_alloc_object): Remove last argument.  Update all users.
11766         (struct alloc_zone): Remove.
11767         * ggc-zone.c: Remove.
11768         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
11769         (struct alloc_zone): Remove.
11770         (ggc_alloc_typed_stat): Remove.
11771         (ggc_alloc_typed): Remove.
11772         (ggc_splay_alloc): Remove first argument.
11773         (rtl_zone): Remove.  Update all users.
11774         (tree_zone): Remove.  Update all users.
11775         (tree_id_zone): Remove.  Update all users.
11776         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
11777         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
11778         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
11779         * tree-ssanames.c: Remove references to zone allocator in comments.
11781 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
11783         * config/avr/avr.c (avr_out_fract): Make register numbers that
11784         might be outside of source operand signed.
11786 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
11788         * config/i386/constraints.md (Yf): New constraint.
11789         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11790         of f constraint to conditionaly disable x87 register preferences.
11791         (*movdf_internal): Ditto.
11792         (*movsf_internal): Ditto.
11794 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
11796         PR inline-asm/55934
11797         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11798         that have operands with impossible constraints.
11799         Add a FIXME for a speed-up opportunity.
11800         * lra-constraints.c (process_alt_operands): Verify that a class
11801         selected from constraints on asms is valid for the operand mode.
11802         (curr_insn_transform): Remove incorrect comment.
11804 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
11806         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11807         TOC operand is a valid symbol ref in the constant pool.
11809 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11811         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11813 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
11815         PR target/54222
11816         * config/avr/stdfix.h: New file.
11817         * t-avr (stdfix-gcc.h): New rule to build it.
11818         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11820 2013-01-23  Kostya Serebryany  <kcc@google.com>
11822         * config/darwin.h: remove dependency on
11823         CoreFoundation (asan on Mac OS).
11825 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
11827         PR target/49069
11828         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11829         instead of cmpdi_operand for first comparison operand.
11830         Don't assert that comparison operands aren't both constants.
11832 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11834         * doc/install.texi (Downloading the Source): Update references to
11835         downloading separate components.
11837 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11839         * doc/extend.texi (__int128): Improve grammar.
11841 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
11843         PR target/56028
11844         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11845         alternative to (o,r).
11846         (*movdi_internal_rex64): Remove (!o,n) alternative.
11847         (DImode immediate->memory splitter): Remove.
11848         (DImode immediate->memory peephole2): Remove.
11849         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11850         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11851         alternative to (!o,*r).
11852         (*movtf_internal_sse): New pattern.
11853         (*movxf_internal_rex64): New pattern.
11854         (*movxf_internal): Disable for TARGET_64BIT.
11855         (*movdf_internal_rex64): Remove (!o,F) alternative.
11857 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
11859         PR middle-end/56074
11860         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11861         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11862         * tree-vect-loop-manip.c (find_loop_location): Also ignore
11863         stmt locations where LOCATION_LOCUS of the stmt location is
11864         UNKNOWN_LOCATION or BUILTINS_LOCATION.
11866         PR target/55686
11867         * config/i386/i386.md (UNSPEC_STOS): New.
11868         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11869         *strsetqi_1): Add UNSPEC_STOS.
11871 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
11873         PR c++/56067
11874         * doc/invoke.texi: Remove left over -Wsynth example.
11876 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11878         PR tree-optimization/56051
11879         * fold-const.c (fold_binary_loc): Don't fold
11880         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11881         a narrowing conversion, or widening conversion from signed
11882         to unsigned.
11884 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
11886         PR rtl-optimization/56023
11887         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11888         dependent on debug instruction.
11890 2013-01-21  Martin Jambor  <mjambor@suse.cz>
11892         PR middle-end/56022
11893         * function.c (allocate_struct_function): Call
11894         invoke_set_current_function_hook earlier.
11896 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11898         * reload1.c (init_reload): Only initialize reload_obstack
11899         during the first call.
11901 2013-01-21  Marek Polacek  <polacek@redhat.com>
11903         * cfgloop.c (verify_loop_structure): Fix up grammar.
11905 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
11907         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11908         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11910 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11912         PR target/56058
11913         * config/arm/marvell-pj4.md: Update copyright year.
11914         Fix up use of alu to alu_reg and simple_alu_imm.
11916 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
11918         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11920 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
11922         PR target/55433
11923         * lra-constraints.c (curr_insn_transform): Don't reuse original
11924         insn for secondary memory move when memory mode should be different.
11926 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11928         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11929         atomic_storedi_1): New patterns.
11931 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11933         btver2 pipeline descriptions.
11934         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11935         descriptions.
11936         * config/i386/i386.md (btver2_decode): New type attributes.
11937         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
11938         type attributes.
11939         * config/i386/btver2.md: New file describing btver2 pipelines.
11941 2013-01-19  Andrew Pinski  <apinski@cavium.com>
11943         PR tree-optimization/52631
11944         * tree-ssa-sccvn (visit_use): Before looking up the original
11945         statement, try looking up the simplified expression.
11947 2013-01-19  Anthony Green  <green@moxielogic.com>
11949         * config/moxie/moxie.c (moxie_expand_prologue): Set
11950         current_function_static_stack_size.
11952 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
11954         PR tree-optimization/56029
11955         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11956         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11958 2013-01-18  Sharad Singhai  <singhai@google.com>
11960         PR tree-optimization/55995
11961         * dumpfile.c (dump_loc): Print location only if available.
11962         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11964 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
11966         PR target/55433
11967         * lra-constraints.c (curr_insn_transform): Reuse original insn for
11968         secondary memory move.
11969         (inherit_reload_reg): Use rclass instead of cl for
11970         check_secondary_memory_needed_p.
11972 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
11974         PR middle-end/56015
11975         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
11976         the case where writing real complex part of target modifies op1.
11978 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
11980         * config/aarch64/aarch64-simd.md
11981         (aarch64_vcond_internal<mode>): Handle unordered cases.
11982         * config/aarch64/iterators.md (v_cmp_result): New.
11984 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
11985             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11987         * config/arm/marvell-pj4.md: New file.
11988         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11989         * config/arm/arm.md (generic_sched): Add marvell_pj4.
11990         (generic_vfp): Likewise.
11991         * config/arm/arm-cores.def: Add marvell-pj4.
11992         * config/arm/arm-tune.md: Regenerate.
11993         * config/arm/arm-tables.opt: Regenerate.
11994         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11995         * doc/invoke.texi: Document marvell-pj4.
11997 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
11999         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12001 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12003         PR debug/54114
12004         PR debug/54402
12005         PR debug/49888
12006         * var-tracking.c (negative_power_of_two_p): New.
12007         (global_get_addr_cache, local_get_addr_cache): New.
12008         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12009         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12010         heading comment.
12011         (vt_stack_offset_p): Remove.
12012         (vt_canon_true_dep): Always canonicalize loc's address.
12013         (clobber_overlapping_mems): Make sure we have a MEM.
12014         (local_get_addr_clear_given_value): New.
12015         (val_reset): Clear local cached entries.
12016         (compute_bb_dataflow): Create and release the local cache.
12017         Disable duplicate MEMs clobbering.
12018         (emit_notes_in_bb): Clobber MEMs likewise.
12019         (vt_emit_notes): Create and release the local cache.
12020         (vt_initialize, vt_finalize): Create and release the global
12021         cache, respectively.
12022         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12024 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12026         PR libmudflap/53359
12027         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12028         not found in the symtab.
12030 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12032         PR debug/56006
12033         PR rtl-optimization/55547
12034         PR rtl-optimization/53827
12035         PR debug/53671
12036         PR debug/49888
12037         * alias.c (offset_overlap_p): New, factored out of...
12038         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12039         the conservative special case for symbolic constants.  Don't
12040         adjust zero sizes on alignment.
12042 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12044         PR rtl-optimization/52573
12045         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12046         REG_UNUSED for the same register.
12048 2013-01-17  Richard Biener  <rguenther@suse.de>
12049             Marek Polacek  <polacek@redhat.com>
12051         PR rtl-optimization/55833
12052         * loop-unswitch.c (unswitch_loops): Move loop verification...
12053         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12054         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12055         Set it to true when we're removing a loop from hierarchy tree in
12056         an irreducible region.
12057         (fix_bb_placements): Adjust caller.
12058         (fix_loop_placements): Likewise.
12060 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12062         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12063         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12064         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12065         Remove ID.  Adjust comments.
12066         * config/avr/avr-c.c (avr_builtin_name): Remove.
12067         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12068         * config/avr/avr.c (avr_tolower): New static function.
12069         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12070         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12071         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12072         default expansion.
12074 2013-01-17  Jan Hubicka  <jh@suse.cz>
12076         PR tree-optimization/55273
12077         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12079 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12081         PR target/55981
12082         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12083         store through atomic_store<mode>_1.
12084         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12086 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12088         PR tree-optimizations/55264
12089         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12090         for virtual methods.
12091         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12092         virtual methods before inlining is over.
12093         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12094         virtual functions.
12095         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12096         non-virtual.
12098 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12100         PR rtl-optimization/56005
12101         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12102         pending reads for prefetch.
12104 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12106         * config/aarch64/aarch64.md
12107         (*cstoresi_neg_uxtw): New pattern.
12108         (*cmovsi_insn_uxtw): New pattern.
12109         (*<optab>si3_uxtw): New pattern.
12110         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12111         (*<optab>si3_insn_uxtw): New pattern.
12112         (*bswapsi2_uxtw): New pattern.
12114 2013-01-16  Richard Biener  <rguenther@suse.de>
12116         * tree-inline.c (tree_function_versioning): Remove set but
12117         never used variable.
12119 2013-01-16  Richard Biener  <rguenther@suse.de>
12121         PR tree-optimization/55964
12122         * tree-flow.h (rename_variables_in_loop): Remove.
12123         (rename_variables_in_bb): Likewise.
12124         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12125         (copy_loop_before): Adjust and delete update-ssa status.
12126         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12127         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12128         (rename_variables_in_loop): Remove.
12129         (slpeel_update_phis_for_duplicate_loop): Likewise.
12130         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12131         use available cfg machinery instead of duplicating it.
12132         Update PHI nodes and perform poor-mans SSA update here.
12133         (slpeel_tree_peel_loop_to_edge): Adjust.
12135 2013-01-16  Richard Biener  <rguenther@suse.de>
12137         PR tree-optimization/54767
12138         PR tree-optimization/53465
12139         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12140         (vrp_visit_phi_node): For PHI arguments coming via backedges
12141         drop all symbolical range information.
12142         (execute_vrp): Compute backedges.
12144 2013-01-16  Richard Biener  <rguenther@suse.de>
12146         * doc/install.texi: Update CLooG and ISL requirements to
12147         0.18.0 and 0.11.1.
12149 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12151         PR target/55301
12152         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12153         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12154         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12156 2013-01-16  DJ Delorie  <dj@redhat.com>
12158         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12159         (UNSPECV_SP_SWITCH_E): New.
12160         (sp_switch_1): Change to an unspec.
12161         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12162         replace $r15.
12164 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12166         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12167         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12168         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12169         (expand_mem_thread_fence): Ditto.
12170         (expand_mem_signal_fence): Ditto.
12171         (expand_atomic_load): Ditto.
12172         (expand_atomic_store): Ditto.
12174 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12176         PR rtl-optimization/55547
12177         PR rtl-optimization/53827
12178         PR debug/53671
12179         PR debug/49888
12180         * alias.c (memrefs_conflict_p): Set sizes to negative after
12181         AND adjustments.
12183 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12185         PR target/55940
12186         * function.c (thread_prologue_and_epilogue_insns): Always
12187         add crtl->drap_reg to set_up_by_prologue.set, even if
12188         stack_realign_drap is false.
12190 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12192         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12193         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12194         *call): Fix indention.
12196 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12198         PR target/55876
12199         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12200         Update comment.
12202 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12204         PR rtl-optimization/55153
12205         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12207 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12209         PR tree-optimization/55920
12210         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12211         accesses as grp_to_be_debug_replaced.
12213 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12215         PR tree-optimization/55920
12216         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12217         there is non-useless type conversion needed from debug rhs to lhs,
12218         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12220 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12221             Mikael Pettersson  <mikpe@it.uu.se>
12223         PR target/43961
12224         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12225         Thumb.
12226         (ASM_OUTPUT_CASE_LABEL): Remove.
12227         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12228         * final.c (shorten_branches): Update alignment of labels before
12229         jump tables if CASE_VECTOR_SHORTEN_MODE.
12231 2013-01-15  Richard Biener  <rguenther@suse.de>
12233         PR bootstrap/55961
12234         * system.h: Do not include gmp.h for building host tools.
12236 2013-01-15  Richard Biener  <rguenther@suse.de>
12238         PR middle-end/55882
12239         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12240         account for bitpos when computing alignment.
12242 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12244         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12245         (ix86_target_macros_internal): Likewise.
12247         * config/i386/i386.c (m_CORE2I7): Removed.
12248         (m_CORE_HASWELL): New macro.
12249         (m_CORE_ALL): Likewise.
12250         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12251         (initial_ix86_arch_features): Likewise.
12252         (processor_target_table): Initializations for Core avx2.
12253         (cpu_names): New names "core-avx2".
12254         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12255         PROCESSOR_CORE_HASWELL.
12256         (ix86_issue_rate): New case.
12257         (ia32_multipass_dfa_lookahead): Likewise.
12258         (ix86_sched_init_global): Likewise.
12260         * config/i386/i386.h (TARGET_HASWELL): New macro.
12261         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12262         (processor_type): New PROCESSOR_HASWELL.
12264 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12266         PR tree-optimization/55955
12267         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12268         *SHIFT_EXPR and *ROTATE_EXPR codes.
12270         PR tree-optimization/48766
12271         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12272         -ftrapv disable -fwrapv.
12274 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12276         PR target/55974
12277         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12278         etc. to 1 and not to __flash.
12279         Use LL suffix for __INT24_MAX__ with -mint8.
12280         Use ULL suffix for __UINT24_MAX__ with -mint8.
12282 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12284         * config/avr/avr-arch.h
12285         (struct base_arch_s): Use typedef avr_arch_t instead.
12286         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12287         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12288         * config/avr/avr.c: Same.
12289         * config/avr/avr-devices.c: Same.
12290         * config/avr/driver-avr.c: Same.
12291         * config/avr/gen-avr-mmcu-texi.c: Same.
12292         * config/avr/avr-mcus.def: Adjust comment.
12294 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12296         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12297         * config/aarch64/iterators.md (VALLDI): New.
12299 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12300             Andi Kleen  <ak@linux.intel.com>
12302         PR target/55948
12303         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12304         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12305         memmodel flag.
12307 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12309         * config/avr/avr-stdint.h: Remove trailing blanks.
12310         * config/avr/avr-log.h: Same.
12311         * config/avr/avr-arch.h: Same.
12312         * config/avr/avr-devices.c: Same.
12313         * config/avr/avr-dimode.md: Same.
12314         * config/avr/predicates.md: Same.
12315         * config/avr/avr-c.c: Same.  And fix typo.
12317         * config/avr/avr-protos.h: Same.  And:
12318         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12319         (init_cumulative_args): Rename to avr_init_cumulative_args.
12320         (expand_prologue): Rename to avr_expand_prologue.
12321         (expand_epilogue): Rename to avr_expand_epilogue.
12322         (adjust_insn_length): Rename to avr_adjust_insn_length.
12323         (notice_update_cc): Rename to avr_notice_update_cc.
12324         (final_prescan_insn): Rename to avr_final_prescan_insn.
12325         * config/avr/avr.c: Same.
12326         * config/avr/avr.h: Same.
12327         * config/avr/avr.md: Remove trailing blanks.
12328         (prologue): Use avr_expand_prologue.
12329         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12331 2013-01-14  Richard Biener  <rguenther@suse.de>
12333         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12334         verify_location, collect_subblocks): New functions.
12335         (verify_gimple_in_cfg): Verify that locations only reference
12336         BLOCKs in the functions BLOCK tree.
12338 2013-01-14  Richard Biener  <rguenther@suse.de>
12340         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12341         PHI argument.
12342         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12343         unshare reference.
12344         (insert_out_of_ssa_copy_on_edge): Likewise.
12345         (rewrite_close_phi_out_of_ssa): Likewise.
12346         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12347         debug expressions.
12348         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12349         propagated constants.
12350         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12351         can not be shared.
12353 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12355         * config/avr/avr-modes.def: Add GPL copyright notice.
12357 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12359         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12360         MEMMODEL_MASK to determine memory model.
12361         (atomic_store<mode>): Ditto from operands[2].
12362         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12364 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12366         PR fortran/55935
12367         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12368         (fold_gimple_assign): Don't call unshare_expr here.
12369         (fold_ctor_reference): Call unshare_expr.
12371 2013-01-13  Terry Guo  <terry.guo@arm.com>
12373         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12374         * doc/fragments.texi: Document MULTILIB_REUSE.
12375         * gcc.c (multilib_reuse): New internal spec.
12376         (set_multilib_dir): Also search multilib from multilib_reuse.
12377         * genmultilib (tmpmultilib3): Refactor code.
12378         (tmpmultilib4): Ditto.
12379         (multilib_reuse): New multilib argument.
12381 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12383         * Makefile.in: Update copyright.
12385 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12387         PR middle-end/55890
12388         * calls.c (expand_call): Check if arg_nr is valid.
12390 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12392         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12393         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12394         documentation.  Add missing '__' in front of
12395         __builtin_ia32_packssdw256.
12397 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12399         PR target/55719
12400         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12401         NO_REGS for larl operands.
12402         (s390_reload_larl_operand): Use s390_load_address instead of
12403         emit_move_insn.
12405 2013-01-11  Richard Biener  <rguenther@suse.de>
12407         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12408         (verify_node_sharing): ... here.
12409         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12411 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12413         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12414         Substitute TREECHECKING.
12415         * configure: Regenerate.
12416         * Makefile.in (TREECHECKING): New.
12418 2013-01-11  Richard Guenther  <rguenther@suse.de>
12420         PR tree-optimization/44061
12421         * tree-vrp.c (extract_range_basic): Compute zero as
12422         value-range for __builtin_constant_p of function parameters.
12424 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12426         Update copyright years.
12428 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12430         PR rtl-optimization/55672
12431         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12432         const to be eliminable.
12434 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12436         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12437         * configure: Regenerate.
12439 2013-01-10  Richard Biener  <rguenther@suse.de>
12441         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12443 2013-01-10  Richard Biener  <rguenther@suse.de>
12445         PR bootstrap/55792
12446         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12447         locations for virtual PHI arguments.
12448         (rewrite_update_phi_arguments): Likewise.
12450 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12452         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12453         on to assembler.
12455 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12457         PR tree-optimization/55921
12458         * tree-complex.c (expand_complex_asm): New function.
12459         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12461 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12463         PR target/55718
12464         * config/s390/s390.c (s390_symref_operand_p)
12465         (s390_loadrelative_operand_p): Merge the two functions.
12466         (s390_check_qrst_address, print_operand_address): Add parameters
12467         to s390_loadrelative_operand_p invokation.
12468         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12469         (s390_reload_larl_operand, s390_secondary_reload): Use
12470         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12471         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12473 2013-01-09  Mike Stump  <mikestump@comcast.net>
12475         * dse.c (record_store): Remove unnecessary assert.
12477 2013-01-09  Jan Hubicka  <jh@suse.cz>
12479         PR tree-optimization/55569
12480         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12481         * cfgloop.h (scale_loop_profile): Likewise.
12483 2013-01-09  Jan Hubicka  <jh@suse.cz>
12485         PR lto/45375
12486         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12487         functions.
12488         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12490 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12492         PR middle-end/55114
12493         * expr.h (maybe_emit_group_store): Declare.
12494         * expr.c (maybe_emit_group_store): New function.
12495         * builtins.c (expand_builtin_int_roundingfn): Call it.
12496         (expand_builtin_int_roundingfn_2): Likewise.
12498 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12500         PR rtl-optimization/55829
12501         * lra-constraints.c (match_reload): Add code for absent output.
12502         (curr_insn_transform): Add code for reloads of matched inputs
12503         without output.
12505 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12507         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12508         attribute of movddup insn to DF.
12509         (*vec_interleave_lowv2df): Ditto.
12510         (vec_dupv2df): Ditto.
12512 2013-01-09  Jan Hubicka  <jh@suse.cz>
12514         PR tree-optimiation/55875
12515         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12516         EVERY_ITERATION parameter.
12517         (number_of_iterations_exit): Check if exit is executed every iteration.
12518         (idx_infer_loop_bounds): Similarly here.
12519         (n_of_executions_at_most): Simplify
12520         to only test for cases where statement is dominated by the
12521         particular bound; handle correctly the "postdominance" test.
12522         (scev_probably_wraps_p): Use max loop iterations info
12523         as a global bound first.
12525 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12526             Nick Clifton  <nickc@redhat.com>
12528         * config/v850/v850.md (cbranchsf4): New pattern.
12529         (cstoresf4): New pattern.
12530         (cbranchdf4): New pattern.
12531         (cstoredf4): New pattern.
12532         (movsicc): Disallow floating point comparisons.
12533         (cmpsf_le_insn): Fix order of operators.
12534         (cmpsf_lt_insn): Likewise.
12535         (cmpsf_eq_insn): Likewise.
12536         (cmpdf_le_insn): Likewise.
12537         (cmpdf_lt_insn): Likewise.
12538         (cmpdf_eq_insn): Likewise.
12539         (cmpsf_ge_insn): Use LE comparison.
12540         (cmpdf_ge_insn): Likewise.
12541         (cmpsf_gt_insn): Use LT comparison.
12542         (cmpdf_gt_insn): Likewise.
12543         (cmpsf_ne_insn): Delete pattern.
12544         (cmpdf_ne_insn): Delete pattern.
12545         * config/v850/v850.c (v850_gen_float_compare): Use
12546         gen_cmpdf_eq_insn for NE comparison.
12547         (v850_float_z_comparison_operator)
12548         (v850_float_nz_comparison_operator): Move from here ...
12549         * config/v850/predicates.md: ... to here.  Move GT and GE
12550         comparisons into v850_float_z_comparison_operator.
12551         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12552         Delete prototype.
12553         (v850_float_nz_comparison_operator): Likewise.
12555 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12557         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12558         with calls to gen_insvsi/gen_insvdi.
12560 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12562         * config/i386/i386.c (initial_ix86_tune_features): Set up
12563         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12565 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12566             Jakub Jelinek  <jakub@redhat.com>
12568         PR tree-optimization/48189
12569         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12570         If nitercst is 0, don't predict the exit edge.
12572 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12574         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12575         in asm_fprintf with reg_names.
12576         (aarch64_print_operand_address): Likewise.
12577         (aarch64_return_addr): Likewise.
12578         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12580 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12582         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12583         (INT_U6_BITS): Likewise.
12584         * config/pa/predicates.md (uint6_operand): New predicate.
12585         (shift5_operand, shift6_operand): Likewise.
12586         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12587         arith32_operand.
12588         (lshrdi3): Use shift6_operand.
12589         (shrpsi4, shrpdi4): New insn patterns.
12590         (extzv): Delete expander.
12591         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12592         predicates in unamed zero extract patterns.  Tighten common constraint.
12593         (extv): Delete expander.
12594         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12595         predicates in unamed sign extract patterns.  Tighten common constraint.
12596         (insv): Delete expander.
12597         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12598         predicates in unamed insert patterns.  Tighten common constraint.
12599         Change uint32_operand predicate to uint6_operand predicate in unamed
12600         DImode pattern to insert constant values of type 1...1xxxx.
12602 2013-01-04  Jan Hubicka  <jh@suse.cz>
12604         PR tree-optimization/55823
12605         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12606         issue.
12608 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12609             Uros Bizjak  <ubizjak@gmail.com>
12611         PR rtl-optimization/55845
12612         * df-problems.c (can_move_insns_across): Stop scanning at
12613         volatile_insn_p source instruction or give up if
12614         across_from .. across_to range contains any volatile_insn_p
12615         instructions.
12617 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12619         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12620         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12621         Declare.
12622         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12623         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12625 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12627         PR fortran/55341
12628         * asan.c (asan_clear_shadow): New function.
12629         (asan_emit_stack_protection): Use it.
12631 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12633         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12634         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12635         with tab instead of space.
12637 2013-01-08  Nick Clifton  <nickc@redhat.com>
12639         * config/rl78/rl78.c (rl78_expand_prologue): Always select
12640         register bank 0 at the start of an interrupt handler.
12641         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12642         MDBH registers.
12644 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12646         * config/aarch64/aarch64-simd.md
12647         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12648         (aarch64_simd_bsl): Likewise.
12649         (aarch64_vcond_internal<mode>): Likewise.
12650         (vcond<mode><mode>): Likewise.
12651         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12652         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12654 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12656         * config/aarch64/aarch64-builtins.c
12657         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12659 2013-01-08  Martin Jambor  <mjambor@suse.cz>
12661         PR debug/55579
12662         * tree-sra.c (analyze_access_subtree): Return true also after
12663         potentially creating a debug-only replacement.
12665 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12667         PR middle-end/55890
12668         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12670         PR tree-optimization/54120
12671         * tree-vrp.c (range_fits_type_p): Don't allow
12672         src_precision < precision from signed vr to unsigned_p
12673         if vr->min or vr->max is negative.
12674         (simplify_float_conversion_using_ranges): Test can_float_p
12675         against CODE_FOR_nothing.
12677 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12678             Richard Biener  <rguenther@suse.de>
12680         PR middle-end/55851
12681         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12682         types instead of just INTEGER_TYPE types.
12684 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
12686         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12687         TF_SIZE): Define.
12689 2013-01-07  Steve Ellcey  <sellcey@mips.com>
12691         PR target/42661
12692         * config/mips/mips.opt: Change mad to mmad to match documentation.
12694 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12696         PR target/55897
12697         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12698         .progmemx.data now.
12700 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12702         PR target/55897
12703         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12704         (avr_addrspace_t): Add .section_name field.
12705         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12706         array size.
12707         (avr_addrspace): Same.  Initialize .section_name.  Remove last
12708         NULL entry.  Put __memx into .progmemx.data.
12709         (progmem_section_prefix): Remove.
12710         (avr_asm_init_sections): No need to initialize progmem_section.
12711         (avr_asm_named_section): Use avr_addrspace[].section_name to get
12712         section name prefix.
12713         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
12714         retrieve the progmem section.
12715         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12716         boundary to run over avr_addrspace[].
12717         (avr_register_target_pragmas): Ditto.
12719 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
12721         * varasm.c (output_constant_def_contents): For asan_protect_global
12722         protected strings, adjust DECL_ALIGN if needed, before testing for
12723         anchored symbols.
12724         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12725         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
12726         normal decls.
12727         (output_object_block): For asan protected decls, emit asan padding
12728         after their contents.
12729         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12730         (asan_finish_file): Test it here instead.
12732 2013-01-07  Nick Clifton  <nickc@redhat.com>
12733             Matthias Klose  <doko@debian.org>
12734             Doug Kwan  <dougkwan@google.com>
12735             H.J. Lu  <hongjiu.lu@intel.com>
12737         PR driver/55470
12738         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12740         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12742         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12744         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12746         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12748 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12750         PR target/54461
12751         * doc/install.texi (Cross-Compiler-Specific Options): Document
12752         --with-avrlibc.
12754 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
12756         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12757         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12758         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12759         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12760         vqmovun_high_s64): Fix source operand number and update copyright.
12762 2013-01-07  Richard Biener  <rguenther@suse.de>
12764         PR middle-end/55890
12765         * gimple.h (gimple_call_builtin_p): New overload.
12766         * gimple.c (validate_call): New function.
12767         (gimple_call_builtin_p): Likewise.
12768         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12769         Use gimple_call_builtin_p.
12770         (find_func_clobbers): Likewise.
12771         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12772         (strlen_optimize_stmt): Likewise.
12774 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12776         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12777         (vld1q_dup_*): Likewise.
12778         (vld1_*): Likewise.
12779         (vld1q_*): Likewise.
12780         (vld1_lane_*): Likewise.
12781         (vld1q_lane_*): Likewise.
12783 2013-01-07  Richard Biener  <rguenther@suse.de>
12785         * lto-streamer.h (LTO_minor_version): Bump to 2.
12787 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12789         * config/aarch64/aarch64-protos.h
12790         (aarch64_const_double_zero_rtx_p): Rename to...
12791         (aarch64_float_const_zero_rtx_p): ...this.
12792         (aarch64_float_const_representable_p): New.
12793         (aarch64_output_simd_mov_immediate): Likewise.
12794         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12795         move immediate case.
12796         * config/aarch64/aarch64.c
12797         (aarch64_const_double_zero_rtx_p): Rename to...
12798         (aarch64_float_const_zero_rtx_p): ...this.
12799         (aarch64_print_operand): Allow printing of new constants.
12800         (aarch64_valid_floating_const): New.
12801         (aarch64_legitimate_constant_p): Check for valid floating-point
12802         constants.
12803         (aarch64_simd_valid_immediate): Likewise.
12804         (aarch64_vect_float_const_representable_p): New.
12805         (aarch64_float_const_representable_p): Likewise.
12806         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12807         (aarch64_output_simd_mov_immediate): New.
12808         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12809         (*movdf_aarch64): Likewise.
12810         * config/aarch64/constraints.md (Ufc): New.
12811         (Y): call aarch64_float_const_zero_rtx.
12812         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12814 2013-01-07  Richard Biener  <rguenther@suse.de>
12816         PR tree-optimization/55888
12817         PR tree-optimization/55862
12818         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12819         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12820         not if it is contained therein.
12822 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12824         * config/avr/t-avr: Typo.
12826 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12828         PR55243
12829         * config/avr/t-avr: Don't automatically rebuild
12830         $(srcdir)/config/avr/t-multilib
12831         $(srcdir)/config/avr/avr-tables.opt
12832         $(srcdir)/doc/avr-mmcu.texi
12833         (avr-mcus): New phony target to build them on request.
12834         (s-avr-mlib, s-avr-mmcu-texi): Remove.
12835         * avr/avr-mcus.def: Adjust comments.
12837 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
12839         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12841 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12843         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12845 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12847         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12849 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
12851         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12852         to generate profiling.
12853         * config/rs6000/aix64.h (LIB_SPEC): Same.
12855 2013-01-04  Andrew Pinski  <apinski@cavium.com>
12857         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12858         New function.
12859         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12861 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
12863         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12864         unconditionally.
12865         (ix86_expand_move): Ditto.
12866         (ix86_zero_extend_to_Pmode): Ditto.
12867         (ix86_expand_call): Ditto.
12868         (ix86_expand_special_args_builtin): Ditto.
12869         (ix86_expand_builtin): Ditto.
12871 2013-01-04  Richard Biener  <rguenther@suse.de>
12873         PR tree-optimization/55862
12874         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12875         translating them through PHI nodes.
12877 2013-01-04  Martin Jambor  <mjambor@suse.cz>
12879         PR tree-optimization/55755
12880         * tree-sra.c (sra_modify_assign): Do not check that an access has no
12881         children when trying to avoid producing a VIEW_CONVERT_EXPR.
12883 2013-01-04  Marek Polacek  <polacek@redhat.com>
12885         PR middle-end/55859
12886         * opts.c (default_options_optimization): Clarify error message.
12888 2013-01-04  Richard Biener  <rguenther@suse.de>
12890         PR middle-end/55863
12891         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12892         reassociation.
12894 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12896         PR target/53789
12897         * config/pa/pa.md (movsi): Revert previous change.
12898         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12899         references.
12901 2013-01-03  Richard Henderson  <rth@redhat.com>
12903         * config/i386/i386.c (ix86_expand_move): Always assign to op1
12904         after eliminating TLS symbols.
12906 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
12908         PR bootstrap/50167
12909         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12910         * graphite-poly.c (debug_gmp_value): Likewise.
12912 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
12914         PR target/55712
12915         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12916         selected code model, define __code_mode_small__, __code_model_medium__,
12917         __code_model_large__, __code_model_32__ or __code_model_kernel__.
12918         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12919         xchg temporary register with %k.  Declare temporary register as
12920         early clobbered.
12921         [__x86_64__]: For medium and large code models, preserve %rbx register.
12923 2013-01-03  Richard Biener  <rguenther@suse.de>
12925         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
12926         (dump_subscript): Adjust.
12927         (finalize_ddr_dependent): Do not dump redundant info.
12928         (analyze_siv_subscript): Adjust.
12929         (subscript_dependence_tester): Likewise.
12930         (compute_affine_dependence): Likewise.
12932 2013-01-03  Richard Biener  <rguenther@suse.de>
12934         Revert
12935         2013-01-03  Richard Biener  <rguenther@suse.de>
12937         PR tree-optimization/55857
12938         * tree-vect-stmts.c (vectorizable_load): Do not setup
12939         re-alignment for invariant loads.
12941         2013-01-02  Richard Biener  <rguenther@suse.de>
12943         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12944         invariant load do not generate a vector load from the scalar location.
12946 2013-01-03  Richard Biener  <rguenther@suse.de>
12948         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12949         for not vectorizing.
12950         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12951         not build INDIRECT_REFs, call get_name once only.
12952         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
12953         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
12955 2013-01-03  Richard Biener  <rguenther@suse.de>
12957         PR tree-optimization/55857
12958         * tree-vect-stmts.c (vectorizable_load): Do not setup
12959         re-alignment for invariant loads.
12961 2013-01-03  Richard Biener  <rguenther@suse.de>
12963         PR lto/55848
12964         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12965         prefer a built-in decl.
12967 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12969         * gcc.c (process_command): Update copyright notice dates.
12970         * gcov.c (print_version): Likewise.
12971         * gcov-dump.c (print_version): Likewise.
12973         PR rtl-optimization/55838
12974         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12975         iv0.step, iv1.step and step.
12977 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12978             Marc Glisse  <marc.glisse@inria.fr>
12980         PR tree-optimization/55832
12981         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12982         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12983         integer_{one,zero}_node.
12985 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12987         PR debug/54402
12988         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12989         * var-tracking.c (reverse_op): Don't add reverse ops to
12990         VALUEs that have already
12991         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
12993 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12995         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12997 2013-01-02  Teresa Johnson  <tejohnson@google.com>
12999         * dumpfile.c (dump_loc): Print filename with location.
13000         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13001         new location_t parameter to emit complete unroll message with
13002         new dump framework.
13003         (canonicalize_loop_induction_variables): Compute loops location
13004         and pass to try_unroll_loop_completely.
13005         * loop-unroll.c (report_unroll_peel): New function.
13006         (peel_loops_completely): Use new dump format with location
13007         for main dumpfile message, and invoke report_unroll_peel on success.
13008         (decide_unrolling_and_peeling): Ditto.
13009         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13010         by report_unroll_peel.
13011         (decide_peel_completely): Ditto.
13012         (decide_unroll_constant_iterations): Ditto.
13013         (decide_unroll_runtime_iterations): Ditto.
13014         (decide_peel_simple): Ditto.
13015         (decide_unroll_stupid): Ditto.
13016         * cfgloop.c (get_loop_location): New function.
13017         * cfgloop.h (get_loop_location): Declare.
13019 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13021         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13022         NULL.
13024 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13026         PR middle-end/55198
13027         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13028         BLKmode objects when EXPAND_MEMORY is specified.
13030 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13032         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13033         in loop predicate.
13034         (fold_builtin_cpu): Do not share cpu model decls across statements.
13036 2013-01-02  Jason Merrill  <jason@redhat.com>
13038         PR c++/55804
13039         * tree.c (build_array_type_1): Revert earlier change.
13041 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13043         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13044         "cortex-a57".
13045         * config/aarch64/aarch64-tune.md: Re-generate.
13047 2013-01-02  Richard Biener  <rguenther@suse.de>
13049         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13050         invariant load do not generate a vector load from the scalar location.
13052 2013-01-02  Richard Biener  <rguenther@suse.de>
13054         PR bootstrap/55784
13055         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13056         * configure: Regenerate.
13058 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13060         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13061         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13062         (expand_builtin_int_roundingfn_2): Keep the original target around
13063         for the fallback case.
13065 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13067         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13068         to be clear for sign changes.
13070 2013-01-01  Jan Hubicka  <jh@suse.cz>
13072         * ipa-inline-analysis.c: Fix formatting.
13074 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13076         PR tree-optimization/55831
13077         * tree-vect-loop.c (get_initial_def_for_induction): Use
13078         gsi_after_labels instead of gsi_start_bb.
13080 Copyright (C) 2013 Free Software Foundation, Inc.
13082 Copying and distribution of this file, with or without modification,
13083 are permitted in any medium without royalty provided the copyright
13084 notice and this notice are preserved.