tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo in comment.
[official-gcc.git] / gcc / ChangeLog
blobbd60452a5c7de30d52166e6ebdd5700e6ca3c3b5
1 2013-06-19  Jeff Law  <law@redhat.com>
3         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
4         in comment.
6         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
7         (simplify_bitwise_binary): Use it to simpify certain binary ops on
8         booleans.
10 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
12         * config/arm/vfp.md: Move VFP instruction classification documentation
13         to ...
14         * config/arm/arm.md: ... here.  Update instruction classification
15         documentation.
17 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
19         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
20         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
25         PR target/57609
26         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
27         with NEXT_INSN.  Use tablejump_p to check for jump table data
28         insns.
30 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
32         PR c++/56544
33         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
34         that now in C++ the value is correct per the C++ standards.
36 2013-06-19  Richard Biener  <rguenther@suse.de>
38         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
39         for global context.
41 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43         Revert:
44         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46         PR target/57609
47         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
48         with next_active_insn.
50 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
52         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
53         functions are inlined during failures to flag an error.
54         * tree-inline.c (expand_call_inline): Allow the error to be flagged
55         in early inline pass.
57 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
59         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
60         in comments.
62 2013-06-18  Julian Brown  <julian@codesourcery.com>
64         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
65         Permit virtual register pre-reload if !strict.
66         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
67         change.
68         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
69         prototype.
70         * config/arm/neon.md (movmisalign<mode>): Use
71         neon_perm_struct_or_reg_operand instead of
72         neon_struct_or_register_operand.
73         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
74         neon_permissive_struct_operand instead of neon_struct_operand.
75         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
76         neon_vector_mem_operand.
77         * config/arm/predicates.md (neon_struct_operand): Adjust call to
78         neon_vector_mem_operand.
79         (neon_permissive_struct_operand): New.
80         (neon_struct_or_register_operand): Rename to...
81         (neon_perm_struct_or_reg_operand): This. Adjust call to
82         neon_vector_mem_operand.
84 2013-06-18  Richard Biener  <rguenther@suse.de>
86         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
87         * lto-streamer.h: Include pointer-set.h.
88         (struct lto_decl_slot): Remove.
89         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
90         Remove next_index entry.
91         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
92         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
93         (lto_init_tree_ref_encoder): Adjust.
94         (lto_destroy_tree_ref_encoder): Likewise.
95         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
96         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
97         (lto_output_decl_index): Adjust.
98         (lto_new_out_decl_state): Likewise.
99         (lto_record_function_out_decl_state): Likewise.
100         * lto-streamer-out.c (copy_function): Likewise.
102 2013-06-18  Richard Biener  <rguenther@suse.de>
104         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
105         * cgraphunit.c: Include cfgloop.h.
106         (init_lowered_empty_function): Initialize the loop tree.
107         (assemble_thunk): Insert new BBs into loops.
109 2013-06-18  Richard Biener  <rguenther@suse.de>
111         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
112         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
113         the map from cache entry to cache index optional.
114         (streamer_tree_cache_replace_tree): Adjust accordingly.
115         (streamer_tree_cache_append): Likewise.
116         (streamer_tree_cache_delete): Likewise.
117         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
118         streamer cache map from cache entry to cache index.
119         * lto-streamer-out.c (create_output_block): Adjust.
121 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
123         * config/arm/arm.md (attribute "insn"): Move multiplication and
124         division attributes to...
125         (attribute "type"): ... here.  Remove mult.
126         (attribute "mul32"): New attribute.
127         (attribute "mul64"): Add umaal.
128         (*arm_mulsi3): Update attributes.
129         (*arm_mulsi3_v6): Likewise.
130         (*thumb_mulsi3): Likewise.
131         (*thumb_mulsi3_v6): Likewise.
132         (*mulsi3_compare0): Likewise.
133         (*mulsi3_compare0_v6): Likewise.
134         (*mulsi_compare0_scratch): Likewise.
135         (*mulsi_compare0_scratch_v6): Likewise.
136         (*mulsi3addsi): Likewise.
137         (*mulsi3addsi_v6): Likewise.
138         (*mulsi3addsi_compare0): Likewise.
139         (*mulsi3addsi_compare0_v6): Likewise.
140         (*mulsi3addsi_compare0_scratch): Likewise.
141         (*mulsi3addsi_compare0_scratch_v6): Likewise.
142         (*mulsi3subsi): Likewise.
143         (*mulsidi3adddi): Likewise.
144         (*mulsi3addsi_v6): Likewise.
145         (*mulsidi3adddi_v6): Likewise.
146         (*mulsidi3_nov6): Likewise.
147         (*mulsidi3_v6): Likewise.
148         (*umulsidi3_nov6): Likewise.
149         (*umulsidi3_v6): Likewise.
150         (*umulsidi3adddi): Likewise.
151         (*umulsidi3adddi_v6): Likewise.
152         (*smulsi3_highpart_nov6): Likewise.
153         (*smulsi3_highpart_v6): Likewise.
154         (*umulsi3_highpart_nov6): Likewise.
155         (*umulsi3_highpart_v6): Likewise.
156         (mulhisi3): Likewise.
157         (*mulhisi3tb): Likewise.
158         (*mulhisi3bt): Likewise.
159         (*mulhisi3tt): Likewise.
160         (maddhisi4): Likewise.
161         (*maddhisi4tb): Likewise.
162         (*maddhisi4tt): Likewise.
163         (maddhidi4): Likewise.
164         (*maddhidi4tb): Likewise.
165         (*maddhidi4tt): Likewise.
166         (divsi3): Likewise.
167         (udivsi3): Likewise.
168         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
169         (thumb2_mulsi_short_compare0): Likewise.
170         (thumb2_mulsi_short_compare0_scratch): Likewise.
171         * config/arm/arm1020e.md (1020mult1): Update attribute change.
172         (1020mult2): Likewise.
173         (1020mult3): Likewise.
174         (1020mult4): Likewise.
175         (1020mult5): Likewise.
176         (1020mult6): Likewise.
177         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
178         change.
179         (cortex_a15_mult64): Likewise.
180         (cortex_a15_sdiv): Likewise.
181         (cortex_a15_udiv): Likewise.
182         * config/arm/arm1026ejs.md (mult1): Update attribute change.
183         (mult2): Likewise.
184         (mult3): Likewise.
185         (mult4): Likewise.
186         (mult5): Likewise.
187         (mult6): Likewise.
188         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
189         (pj4_ir_div): Likewise.
190         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
191         (11_mult2): Likewise.
192         (11_mult3): Likewise.
193         (11_mult4): Likewise.
194         (11_mult5): Likewise.
195         (11_mult6): Likewise.
196         (11_mult7): Likewise.
197         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
198         (cortex_a8_mla): Likewise.
199         (cortex_a8_mull): Likewise.
200         (cortex_a8_smulwy): Likewise.
201         (cortex_a8_smlald): Likewise.
202         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
203         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
204         (cortex_r4_mul_3): Likewise.
205         (cortex_r4_mla_4): Likewise.
206         (cortex_r4_mla_3): Likewise.
207         (cortex_r4_smlald): Likewise.
208         (cortex_r4_mull): Likewise.
209         (cortex_r4_sdiv): Likewise.
210         (cortex_r4_udiv): Likewise.
211         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
212         (cortex_a7_idiv): Likewise.
213         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
214         (9_mult2): Likewise.
215         (9_mult3): Likewise.
216         (9_mult4): Likewise.
217         (9_mult5): Likewise.
218         (9_mult6): Likewise.
219         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
220         (cortex_a53_sdiv): Likewise.
221         (cortex_a53_udiv): Likewise.
222         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
223         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
224         (mp626_mult2): Likewise.
225         (mp626_mult3): Likewise.
226         (mp626_mult4): Likewise.
227         * config/arm/fa526.md (526_mult1): Update attribute change.
228         (526_mult2): Likewise.
229         * config/arm/arm-generic.md (mult): Update attribute change.
230         (mult_ldsched_strongarm): Likewise.
231         (mult_ldsched): Likewise.
232         (multi_cycle): Likewise.
233         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
234         * config/arm/fa606te.md (606te_mult1): Update attribute change.
235         (606te_mult2): Likewise.
236         (606te_mult3): Likewise.
237         (606te_mult4): Likewise.
238         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
239         (cortex_a9_mac16): Likewise.
240         (cortex_a9_multiply): Likewise.
241         (cortex_a9_mac): Likewise.
242         (cortex_a9_multiply_long): Likewise.
243         * config/arm/fa626te.md (626te_mult1): Update attribute change.
244         (626te_mult2): Likewise.
245         (626te_mult3): Likewise.
246         (626te_mult4): Likewise.
248 2013-06-18  Richard Biener  <rguenther@suse.de>
250         PR lto/57334
251         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
253 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
255         PR target/57609
256         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
257         with next_active_insn.
259 2013-06-18  Alan Modra  <amodra@gmail.com>
261         * config/rs6000/rs6000.h (enum data_align): New.
262         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
263         (DATA_ABI_ALIGNMENT): Define.
264         (CONSTANT_ALIGNMENT): Correct comment.
265         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
266         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
268 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
270         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
271         ATTRIBUTE_UNUSED marking.
273 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
275         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
276         alternative and update.
277         (aarch64_dup_lanedi): Delete.
278         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
279         * config/aarch64/aarch64-simd-builtins.def: Update.
281 2013-06-17  Richard Biener  <rguenther@suse.de>
283         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
284         (lto_input_scc): Declare.
285         (lto_input_tree_1): Likewise.
286         (struct lto_stats_d): Add num_tree_bodies_output and
287         num_pickle_refs_output.
288         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
289         (lto_read_tree_1): Split out from ...
290         (lto_read_tree): ... this.
291         (lto_input_scc): New function.
292         (lto_input_tree_1): Split out from ...
293         (lto_input_tree): ... this.  Handle LTO_tree_scc.
294         (lto_data_in_create): Create the streamer cache without hashes.
295         * lto-streamer-out.c (create_output_block): Create the streamer
296         cache with hashes when not doing WPA.
297         (lto_write_tree_1): Split out from ...
298         (lto_write_tree): ... this.
299         (get_symbol_initial_value): New function.
300         (lto_output_tree_1): Split out from ...
301         (lto_output_tree): ... this.  Write trees as series of SCCs
302         using a DFS walk via DFS_write_tree.
303         (struct sccs, struct scc_entry): New types.
304         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
305         (DFS_write_tree_body): New function.
306         (DFS_write_tree): Likewise.
307         (hash_tree): Likewise.
308         (scc_entry_compare): Likewise.
309         (hash_scc): Likewise.
310         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
311         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
312         TREE_CHAIN as regular reference.
313         (streamer_read_integer_cst): Remove.
314         (streamer_get_pickled_tree): Adjust.
315         * tree-streamer-out.c (streamer_write_chain): Disable streaming
316         of DECL_EXTERNALs in BLOCK_VARS for now.
317         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
318         reference.
319         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
320         Add hash value argument and record that if hashes are recorded
321         in the cache.
322         (streamer_tree_cache_insert_1): Adjust.
323         (streamer_tree_cache_insert): Likewise.
324         (streamer_tree_cache_insert_at): Rename to ...
325         (streamer_tree_cache_replace_tree): ... this and adjust.
326         (streamer_tree_cache_append): Adjust.
327         (record_common_node): Likewise.
328         (streamer_tree_cache_create): Add argument whether to
329         record hash values together with trees.
330         (streamer_tree_cache_delete): Adjust.
331         * tree-streamer.h (struct streamer_tree_cache_d): Add
332         vector of hashes.
333         (streamer_read_integer_cst): Remove.
334         (streamer_tree_cache_insert): Adjust.
335         (streamer_tree_cache_append): Likewise.
336         (streamer_tree_cache_insert_at): Rename to ...
337         (streamer_tree_cache_replace_tree): ... this and adjust.
338         (streamer_tree_cache_create): Add argument whether to record hashes.
339         (streamer_tree_cache_get): Rename to ...
340         (streamer_tree_cache_get_tree): ... this.
341         (streamer_tree_cache_get_hash): New function.
342         * tree.c (cache_integer_cst): New function.
343         * tree.h (cache_integer_cst): Declare.
344         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
345         * lto-symtab.c (lto_varpool_replace_node): Only release
346         DECL_INITIAL of non-prevailing decls.
347         * varpool.c (varpool_remove_initializer): Do not release
348         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
350 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
352         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
353         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
354         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
355         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
356         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
357         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
358         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
359         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
360         instead of TARGET_64BIT.
361         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
362         Require ISA_HAS_<D>DIV.
364 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
366         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
367         (mips*-*-linux*): Move default with_llsc setting to where other
368         defaults are set.
369         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
370         with_arch block.
371         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
372         Likewise.  Remove default with_tune setting.  Move default float
373         setting to its own block.  Handle with_llsc in the same block as above.
375 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
377         PR rtl-optimization/57425
378         PR rtl-optimization/57569
379         * alias.c (write_dependence_p): Add new parameters mem_mode,
380         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
381         Changed all callers.
382         (canon_anti_dependence): New function.
383         * cse.c (check_dependence): Use canon_anti_dependence.
384         * cselib.c (cselib_invalidate_mem): Likewise.
385         * rtl.h (canon_anti_dependence): Declare.
387 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
389         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
390         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
391         ".set mips3" for 64-bit targets.
393 2013-06-15  Dehao Chen  <dehao@google.com>
395         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
396         * gimple-low.c (gimple_check_call_matching_types): Likewise.
397         (gimple_check_call_args): Likewise.
398         * value-prof.c (check_ic_target): Likewise.
399         * ipa-inline.c (early_inliner): Likewise.
400         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
401         * cgraph.c (cgraph_create_edge_1): Likewise.
402         (cgraph_make_edge_direct): Likewise.
404 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
406         PR target/57615
407         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
408         rs6000_output_move_128bit to handle emitting quad memory
409         operations.  Set attribute length to 8 bytes.
411 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
413         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
414         New pattern.
415         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
416         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
417         (aarch64_<su>mlsl<mode>): Likewise.
419 2013-06-14  Mike Stump  <mikestump@comcast.net>
421         * Makefile.in (TARGET_H): Add insn-codes.h.
423 2013-06-14  Alan Modra  <amodra@gmail.com>
425         PR middle-end/57134
426         PR middle-end/57586
427         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
428         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
429         bitfield expansion when EXPAND_MEMORY.
430         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
432 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
434         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
435         test for clearing quad memory on 32-bit later.
437 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
439         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
440         (fold_negate_expr): Likewise.
441         (fold_real_zero_addition_p): Handle vectors.
442         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
444 2013-06-14  Alan Modra  <amodra@gmail.com>
446         * varasm.c (force_const_mem): Revert 2013-06-07 change.
448 2013-06-13  Jan Hubicka  <jh@suse.cz>
450         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
451         Local comdats are not externally visible.
452         * symtab.c (dump_symtab_base): Dump externally visible.
453         (verify_symtab_base): Verify back links in the symtab hash.
455 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
457         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
458         CONVERT_EXPR as equal nodes.
460 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
462         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
464 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
466         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
467         Generalize to complex and vector.
468         * tree.c (build_all_ones_cst): New function.
469         * tree.h (build_all_ones_cst): Declare it.
471 2013-06-13  Alan Modra  <amodra@gmail.com>
473         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
474         * config/rs6000/rs6000.md (signbittf2): New insn.
475         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
476         (abstf2_internal, cmptf_internal2): Likewise.
477         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
479 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
480             Pat Haugen <pthaugen@us.ibm.com>
481             Peter Bergner <bergner@vnet.ibm.com>
483         * config/rs6000/rs6000.c (emit_load_locked): Add support for
484         power8 byte, half-word, and quad-word atomic instructions.
485         (emit_store_conditional): Likewise.
486         (rs6000_expand_atomic_compare_and_swap): Likewise.
487         (rs6000_expand_atomic_op): Likewise.
489         * config/rs6000/sync.md (larx): Add new modes for power8.
490         (stcx): Likewise.
491         (AINT): New mode iterator to include TImode as well as normal
492         integer modes on power8.
493         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
494         that VSX registers are not considered.  Use AINT mode iterator
495         instead of INT1 to allow inclusion of quad word atomic operations
496         on power8.
497         (load_locked<mode>): Likewise.
498         (store_conditional<mode>): Likewise.
499         (atomic_compare_and_swap<mode>): Likewise.
500         (atomic_exchange<mode>): Likewise.
501         (atomic_nand<mode>): Likewise.
502         (atomic_fetch_<fetchop_name><mode>): Likewise.
503         (atomic_nand_fetch<mode>): Likewise.
504         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
505         each type.
506         (ATOMIC): On power8, add QImode, HImode modes.
507         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
508         modes that promote to SImode.
509         (load_lockedti): Convert TImode arguments to PTImode, so that we
510         get a guaranteed even/odd register pair.
511         (load_lockedpti): Likewise.
512         (store_conditionalti): Likewise.
513         (store_conditionalpti): Likewise.
515         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
516         atomic load/store instructions.
517         (HSI): Likewise.
519 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
521         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
522         loads.
523         (insn_count): New attribute, with most cases extracted from...
524         (length): ...here.  Redefine most cases in terms of insn_count.
525         (single_insn): Delete.
526         (can_delay): Use insn_count to check for single instructions.
527         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
528         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
529         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
530         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
531         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
532         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
533         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
534         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
535         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
536         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
537         rather than "length".
538         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
539         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
540         Use "insn_count" rather than "length".
541         * config/mips/mips-dsp.md
542         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
543         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
544         length attributes.
546 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
548         PR tree-optimization/57361
549         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
551 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
553         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
554         to split.
555         (aarch64_simd_combine<mode>): New instruction expansion.
556         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
557         function prototype.
558         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
559         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
561 2013-06-12  Jan Hubicka  <jh@suse.cz>
563         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
564         decl has when in streaming stage.
565         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
566         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
568 2013-06-12  Roland Stigge <stigge@antcom.de>
570         PR target/57578
571         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
573 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
575         PR tree-optimization/57537
576         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
577         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
579 2013-06-12  Richard Biener  <rguenther@suse.de>
581         * data-streamer.h (streamer_write_char_stream): CSE
582         obs->current_pointer.
583         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
584         streamer_write_char_stream manually and optimize the resulting loop.
585         (streamer_write_hwi_stream): Likewise.
587 2013-06-12  Jan Hubicka  <jh@suse.cz>
589         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
590         * cgraph.h (varpool_create_empty_node): Declare.
591         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
592         duplicated nodes.
593         * symtab.c (symtab_unregister_node): Be lax about missin entries
594         in node hash.
595         (symtab_get_node): Update comment.
596         * varpool.c (varpool_create_empty_node): Break out from ...
597         (varpool_node_for_decl): ... here.
598         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
600 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
602         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
603         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
604         part.  Use straight-line flow at the end.
605         <COMPONENT_REF>: Remove superfluous else.
606         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
608 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
610         PR target/56564
611         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
612         target hook even for !TREE_PUBLIC decls.  If no resolution info
613         is available, return false for common and external decls.
615 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
617         * config/rl78/constraints.md (U): New constraint.
618         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
619         valloc attribute.
621 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
623         PR target/57589
624         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
625         to allow returning address to AT_PLATFORM name.
627 2013-06-11  Jan Hubicka  <jh@suse.cz>
629         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
630         * cgraph.h (symtab_node_base): Add weakref flag.
631         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
632         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
633         (output_weakrefs): Use weakref flag.
634         * fold-const.c (simple_operand_p): Handle WEAK.
635         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
636         * ipa.c (varpool_externally_visible_p): Drop weakref.
637         (function_and_variable_visibility): Update comment; fix weakref
638         sanity checks; do not clear DECL_WEAK on them.
639         * lto-cgraph.c (lto_output_node): update.
640         (lto_output_varpool_node): Update.
641         (input_overwrite_node): Update.
642         (input_node): Update.
643         (input_varpool_node): Update.
644         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
645         (lto_symtab_merge_symbols): Add sanity check.
646         (lto_symtab_prevailing_decl): Do not special case weakrefs.
647         * passes.c (rest_of_decl_compilation): Set static flag, too.
648         * symtab.c (dump_symtab_base): Dump weakref.
649         (verify_symtab_base): Sanity check weakrefs.
650         (symtab_make_decl_local): Remove duplicated code.
651         (symtab_alias_ultimate_target): Simplify.
652         * varpool.c (varpool_create_variable_alias): Set weakref flag.
654 2013-06-11  DJ Delorie  <dj@redhat.com>
656         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
657         (rl78_unwind_word_mode): New.
659 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
661         * final.c (debug_prefix_maps): Make static.
663 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
665         * function.c (initial_trampoline): Remove stray copy.
667 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
669         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
671 2013-06-11  Martin Jambor  <mjambor@suse.cz>
673         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
674         within bounds at the beginning of the function.
676 2013-06-11  Alan Modra  <amodra@gmail.com>
678         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
679         reporting.
680         (get_named_section): Don't NULL !DECL_P decl.
682 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
684         * doc/invoke.texi (core-avx2): Document.
685         (slm): Likewise.
686         (atom): Updated with MOVBE.
688 2013-06-11  Richard Biener  <rguenther@suse.de>
690         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
692 2013-06-11  Anton Blanchard  <anton@samba.org>
694         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
695         correct shift value in little-endian mode.
697 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
699         PR target/56564
700         * varasm.c (get_variable_align): Move #endif to the right place.
702 2013-06-10  Cary Coutant  <ccoutant@google.com>
704         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
705         for hash so that hash table traversal order is deterministic.
707 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
708             Pat Haugen <pthaugen@us.ibm.com>
709             Peter Bergner <bergner@vnet.ibm.com>
711         * config/rs6000/vector.md (GPR move splitter): Do not split moves
712         of vectors in GPRS if they are direct moves or quad word load or
713         store moves.
715         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
716         declaration.
717         (direct_move_p): Likewise.
718         (quad_load_store_p): Likewise.
720         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
721         classes into bins based on the physical register type.
722         (reg_class_to_reg_type): Likewise.
723         (IS_STD_REG_TYPE): Likewise.
724         (IS_FP_VECT_REG_TYPE): Likewise.
725         (reload_fpr_gpr): Arrays to determine what insn to use if we can
726         use direct move instructions.
727         (reload_gpr_vsx): Likewise.
728         (reload_vsx_gpr): Likewise.
729         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
730         information that is a simplification of register classes.  Also
731         precalculate direct move reload helpers.
732         (direct_move_p): New function to return true if the operation can
733         be done as a direct move instruciton.
734         (quad_load_store_p): New function to return true if the operation
735         is a quad memory operation.
736         (rs6000_legitimize_address): If quad memory, only allow register
737         indirect for TImode addresses.
738         (rs6000_legitimate_address_p): Likewise.
739         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
740         (rs6000_reload_register_type): Likewise.
741         (register_to_reg_type): Return register type.
742         (rs6000_secondary_reload_simple_move): New helper function for
743         secondary reload and secondary memory needed to identify anything
744         that is a simple move, and does not need reloading.
745         (rs6000_secondary_reload_direct_move): New helper function for
746         secondary reload to identify cases that can be done with several
747         instructions via the direct move instructions.
748         (rs6000_secondary_reload_move): New helper function for secondary
749         reload to identify moves between register types that can be done.
750         (rs6000_secondary_reload): Add support for quad memory operations
751         and for direct move.
752         (rs6000_secondary_memory_needed): Likewise.
753         (rs6000_debug_secondary_memory_needed): Change argument names.
754         (rs6000_output_move_128bit): New function to return the move to
755         use for 128-bit moves, including knowing about the various
756         limitations of quad memory operations.
758         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
759         memory operations.  call rs6000_output_move_128bit for the actual
760         instruciton(s) to generate.
761         (vsx_movti_64bit): Likewise.
763         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
764         (UNSPEC_P8V_MTVSRWZ): Likewise.
765         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
766         (UNSPEC_P8V_MTVSRD): Likewise.
767         (UNSPEC_P8V_XXPERMDI): Likewise.
768         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
769         (UNSPEC_FUSION_GPR): Likewise.
770         (FMOVE128_GPR): New iterator for direct move.
771         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
772         (f32_sv): Likewise.
773         (f32_dm): Likewise.
774         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
775         loads and direct move instructions.
776         (zero_extendsidi2_lfiwzx): Likewise.
777         (extendsidi2_lfiwax): Likewise.
778         (extendsidi2_nocell): Likewise.
779         (floatsi<mode>2_lfiwax): Likewise.
780         (lfiwax): Likewise.
781         (floatunssi<mode>2_lfiwzx): Likewise.
782         (lfiwzx): Likewise.
783         (fix_trunc<mode>_stfiwx): Likewise.
784         (fixuns_trunc<mode>_stfiwx): Likewise.
785         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
786         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
787         (parity<mode>2_cmpb): Set length/type attr.
788         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
789         for 'mr.' to fast_compare.
790         (bpermd_<mode>): Change type attr to popcnt.
791         (p8_fmrgow_<mode>): New insns for power8 direct move support.
792         (p8_mtvsrwz_1): Likewise.
793         (p8_mtvsrwz_2): Likewise.
794         (reload_fpr_from_gpr<mode>): Likewise.
795         (p8_mtvsrd_1): Likewise.
796         (p8_mtvsrd_2): Likewise.
797         (p8_xxpermdi_<mode>): Likewise.
798         (reload_vsx_from_gpr<mode>): Likewise.
799         (reload_vsx_from_gprsf): Likewise.
800         (p8_mfvsrd_3_<mode>): LIkewise.
801         (reload_gpr_from_vsx<mode>): Likewise.
802         (reload_gpr_from_vsxsf): Likewise.
803         (p8_mfvsrd_4_disf): Likewise.
804         (multi-word GPR splits): Do not split direct moves or quad memory
805         operations.
807 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
809         * tree-into-ssa.c (interesting_blocks): Make static.
811 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
813         PR target/56564
814         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
815         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
816         Use DATA_ABI_ALIGNMENT for that case instead if defined.
817         (get_variable_align): New function.
818         (get_variable_section, emit_bss, emit_common,
819         assemble_variable_contents, place_block_symbol): Use
820         get_variable_align instead of DECL_ALIGN.
821         (assemble_noswitch_variable): Add align argument, use it
822         instead of DECL_ALIGN.
823         (assemble_variable): Adjust caller.  Use get_variable_align
824         instead of DECL_ALIGN.
825         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
826         caller.
827         (DATA_ABI_ALIGNMENT): Define.
828         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
829         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
830         opt is false, only return the psABI mandated alignment increase.
831         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
832         (DATA_ABI_ALIGNMENT): ... this.
833         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
834         (DATA_ABI_ALIGNMENT): ... this.
835         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
836         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
837         (DATA_ABI_ALIGNMENT): ... this.
838         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
839         * doc/tm.texi: Regenerated.
841 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
843         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
844         cmp_code to construct REG_EQUAL note.
846 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
848         PR target/57568
849         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
850         that operands[2] doesn't overlap with operands[0].
852 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
853             Jan Hubicka  <jh@suse.cz>
855         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
856         hack to mark symbols as used.
858 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
860         PR rtl-optimization/57559
861         * lra-constraints.c (process_alt_operands): Don't discourage
862         memory with known offset for offsetable memory constraint.
863         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
865 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
867         * varasm.c (struct oc_local_state): Reorder fields.
868         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
869         and adjust accordingly.
870         (output_constructor): Reorder initialization code and adjust call to
871         output_constructor_bitfield.
873 2013-06-07  Jan Hubicka  <jh@suse.cz>
875         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
877 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
879         * tree-object-size.c (unknown): Make const.
881 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
883         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
884         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
885         for last alternative in the cpu_facility attribute.
887 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
889         PR target/56315
890         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
891         (xordi3): Change operand 2 constraint to arm_xordi_operand.
892         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
893         * config/arm/constraints.md (Dg): New constraint.
894         * config/arm/neon.md (xordi3_neon): Remove.
895         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
896         * config/arm/predicates.md (arm_xordi_operand): New predicate.
898 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
900         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
901         Clean up alternatives.
903 2013-06-07  Alan Modra  <amodra@gmail.com>
905         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
906         va_list_gpr_size.
908 2013-06-07  Alan Modra  <amodra@gmail.com>
910         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
912 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
914         * config/arm/constraints.md (Df): New constraint.
915         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
916         Correct length attribute for last two alternatives.
918 2013-06-07  Alan Modra  <amodra@gmail.com>
920         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
921         override user -mfp-in-toc.
922         (offsettable_ok_by_alignment): Consider just the current access
923         rather than the whole object, unless BLKmode.  Handle
924         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
925         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
926         for -mcmodel=medium.
927         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
928         override user -mfp-in-toc or -msum-in-toc.  Default to
929         -mno-fp-in-toc for -mcmodel=medium.
931 2013-06-06  DJ Delorie  <dj@redhat.com>
933         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
934         TARGET_VALID_POINTER_MODE.
936 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
937             Pat Haugen <pthaugen@us.ibm.com>
938             Peter Bergner <bergner@vnet.ibm.com>
940         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
941         Document new power8 builtins.
943         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
944         condition code register, to allow 128-bit logical operations to be
945         done in the VSX or GPR registers.
946         (nor<mode>3): Use the canonical form for nor.
947         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
948         vclz*, and vpopcnt* vector instructions.
949         (nand<mode>3): Likewise.
950         (orc<mode>3): Likewise.
951         (clz<mode>2): LIkewise.
952         (popcount<mode>2): Likewise.
954         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
955         that only the GPRs are recognized.
957         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
958         support for new power8 builtins.
960         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
961         builtin functions.
962         (xscvdpspn): Likewise.
963         (vclz): Likewise.
964         (vclzb): Likewise.
965         (vclzh): Likewise.
966         (vclzw): Likewise.
967         (vclzd): Likewise.
968         (vpopcnt): Likewise.
969         (vpopcntb): Likewise.
970         (vpopcnth): Likewise.
971         (vpopcntw): Likewise.
972         (vpopcntd): Likewise.
973         (vgbbd): Likewise.
974         (vmrgew): Likewise.
975         (vmrgow): Likewise.
976         (eqv): Likewise.
977         (eqv_v16qi3): Likewise.
978         (eqv_v8hi3): Likewise.
979         (eqv_v4si3): Likewise.
980         (eqv_v2di3): Likewise.
981         (eqv_v4sf3): Likewise.
982         (eqv_v2df3): Likewise.
983         (nand): Likewise.
984         (nand_v16qi3): Likewise.
985         (nand_v8hi3): Likewise.
986         (nand_v4si3): Likewise.
987         (nand_v2di3): Likewise.
988         (nand_v4sf3): Likewise.
989         (nand_v2df3): Likewise.
990         (orc): Likewise.
991         (orc_v16qi3): Likewise.
992         (orc_v8hi3): Likewise.
993         (orc_v4si3): Likewise.
994         (orc_v2di3): Likewise.
995         (orc_v4sf3): Likewise.
996         (orc_v2df3): Likewise.
998         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
999         allow power8 quad mode in 64-bit.
1000         (rs6000_builtin_vectorized_function): Add support to vectorize
1001         ISA 2.07 count leading zeros, population count builtins.
1002         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1003         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1004         (builtin_function_type): Add vgbbd builtin function which takes an
1005         unsigned argument.
1006         (altivec_expand_vec_perm_const): Add support for new power8 merge
1007         instructions.
1009         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1010         that does not include TImdoe for use with 32-bit.
1011         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1012         instructions.
1013         (UNSPEC_VSX_CVDPSPN): Likewise.
1014         (vsx_xscvdpspn): Likewise.
1015         (vsx_xscvspdpn): Likewise.
1016         (vsx_xscvdpspn_scalar): Likewise.
1017         (vsx_xscvspdpn_directmove): Likewise.
1018         (vsx_and<mode>3): Split logical operations into 32-bit and
1019         64-bit. Add support to do logical operations on TImode as well as
1020         VSX vector types.  Allow logical operations to be done in either
1021         VSX registers or in general purpose registers in 64-bit mode.  Add
1022         splitters if GPRs were used. For AND, add clobber of CCmode to
1023         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1024         encoding.
1025         (vsx_and<mode>3_32bit): Likewise.
1026         (vsx_and<mode>3_64bit): Likewise.
1027         (vsx_ior<mode>3): Likewise.
1028         (vsx_ior<mode>3_32bit): Likewise.
1029         (vsx_ior<mode>3_64bit): Likewise.
1030         (vsx_xor<mode>3): Likewise.
1031         (vsx_xor<mode>3_32bit): Likewise.
1032         (vsx_xor<mode>3_64bit): Likewise.
1033         (vsx_one_cmpl<mode>2): Likewise.
1034         (vsx_one_cmpl<mode>2_32bit): Likewise.
1035         (vsx_one_cmpl<mode>2_64bit): Likewise.
1036         (vsx_nor<mode>3): Likewise.
1037         (vsx_nor<mode>3_32bit): Likewise.
1038         (vsx_nor<mode>3_64bit): Likewise.
1039         (vsx_andc<mode>3): Likewise.
1040         (vsx_andc<mode>3_32bit): Likewise.
1041         (vsx_andc<mode>3_64bit): Likewise.
1042         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1043         and xxlorc instructions.
1044         (vsx_eqv<mode>3_64bit): Likewise.
1045         (vsx_nand<mode>3_32bit): Likewise.
1046         (vsx_nand<mode>3_64bit): Likewise.
1047         (vsx_orc<mode>3_32bit): Likewise.
1048         (vsx_orc<mode>3_64bit): Likewise.
1050         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1052         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1053         instruction.
1054         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1055         (p8_vmrgow): Likewise.
1056         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1057         GPRs to be split under VSX.
1058         (p8v_clz<mode>2): Add power8 count leading zero support.
1059         (p8v_popcount<mode>2): Add power8 population count support.
1060         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1061         support.
1063         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1064         instruction.
1066         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1067         builtin functions.
1068         (vec_nand): Likewise.
1069         (vec_vclz): Likewise.
1070         (vec_vclzb): Likewise.
1071         (vec_vclzd): Likewise.
1072         (vec_vclzh): Likewise.
1073         (vec_vclzw): Likewise.
1074         (vec_vgbbd): Likewise.
1075         (vec_vmrgew): Likewise.
1076         (vec_vmrgow): Likewise.
1077         (vec_vpopcnt): Likewise.
1078         (vec_vpopcntb): Likewise.
1079         (vec_vpopcntd): Likewise.
1080         (vec_vpopcnth): Likewise.
1081         (vec_vpopcntw): Likewise.
1083 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1085         PR rtl-optimization/57468
1086         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1087         spilled pseudos.
1089 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1091         PR rtl-optimization/57459
1092         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1093         type when setting live regs.
1095 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1097         * config/s390/s390.opt (mlra): New option.
1098         * config/s390/s390.c (s390_decompose_address): Check displacement
1099         for all registers for LRA.
1100         (s390_secondary_reload): Don't used secondary reloads for LRA.
1101         (s390_lra_p): New function.
1102         (TARGET_LRA_P): Define.
1103         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1104         of attribute cpu_facility to zarch for the last alternative.
1105         (*cmpmem_short): Ditto.
1107 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1109         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1110         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1111         (arm_expand_prologue): Likewise.
1113 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1115         PR c++/53743
1116         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1117         as this is now done by redirect_edge_and_branch_force.
1118         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1119         barriers, and fix interaction with splitting.
1120         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1121         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1122         reflect changes made in the routine.
1123         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1124         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1125         since this is called in cfglayout mode, and replace partition fixup
1126         with assert as that is now done by force_nonfallthru_and_redirect.
1127         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1128         already be marked with region crossing note.
1129         (insert_section_boundary_note): Make non-static, gate on flag
1130         has_bb_partition, rewrite to also check for multiple partitions.
1131         (rest_of_handle_reorder_blocks): Remove call to
1132         insert_section_boundary_note, now done later during free_cfg.
1133         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1134         * bb-reorder.h (insert_section_boundary_note): Declare.
1135         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1136         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1137         invoke insert_section_boundary_note.
1138         (try_redirect_by_replacing_jump): Remove unnecessary
1139         check for region crossing note.
1140         (fixup_partition_crossing): New function.
1141         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1142         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1143         in non-cfglayout mode.
1144         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1145         remove old code that tried to do this. Emit barrier correctly
1146         when we are in cfglayout mode.
1147         (last_bb_in_partition): New function.
1148         (rtl_split_edge): Correctly fixup partition boundaries.
1149         (commit_one_edge_insertion): Remove old code that tried to
1150         fixup region crossing edge since this is now handled in
1151         split_block, and set up insertion point correctly since
1152         block may now end in a jump.
1153         (verify_hot_cold_block_grouping): Guard against checking when not in
1154         linearized RTL mode.
1155         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1156         notes.
1157         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1158         rtl_verify_flow_info, so not called in cfglayout mode.
1159         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1160         (fixup_reorder_chain): Remove old code that attempted to fixup region
1161         crossing note as this is now handled in force_nonfallthru_and_redirect.
1162         (duplicate_insn_chain): Don't duplicate switch section notes.
1163         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1164         note.
1165         * basic-block.h (emit_barrier_after_bb): Declare.
1167 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1169         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1170         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1171         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1173 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1175         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1176         where appropriate.
1177         * config/arm/ldmstm.md: Regenerate.
1179 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1181         * config/arm/sync.md (atomic_loaddi_1):
1182         Disable predication for arm_restrict_it.
1183         (arm_load_exclusive<mode>): Likewise.
1184         (arm_load_exclusivesi): Likewise.
1185         (arm_load_exclusivedi): Likewise.
1186         (arm_load_acquire_exclusive<mode>): Likewise.
1187         (arm_load_acquire_exclusivesi): Likewise.
1188         (arm_load_acquire_exclusivedi): Likewise.
1189         (arm_store_exclusive<mode>): Likewise.
1190         (arm_store_exclusive<mode>): Likewise.
1191         (arm_store_release_exclusivedi): Likewise.
1192         (arm_store_release_exclusive<mode>): Likewise.
1194 2013-06-06  Richard Biener  <rguenther@suse.de>
1196         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1197         after LTO_null.
1198         (lto_tag_is_tree_code_p): Adjust.
1199         (lto_tag_is_gimple_code_p): Likewise.
1200         (lto_gimple_code_to_tag): Likewise.
1201         (lto_tag_to_gimple_code): Likewise.
1202         (lto_tree_code_to_tag): Likewise.
1203         (lto_tag_to_tree_code): Likewise.
1204         * data-streamer.h (streamer_write_hwi_in_range): Use
1205         uhwi streaming to stream the normalized range.
1206         (streamer_read_hwi_in_range): Likewise.
1208 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1210         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1211         (predicable_short_it): Likewise.
1212         (predicated): Likewise.
1213         (enabled): Handle above.
1214         (define_cond_exec): Set predicated attribute to yes.
1216 2013-06-05  Mike Stump  <mikestump@comcast.net>
1218         * gdbinit.in (__FUNCTION__): Add.
1220 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1222         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1223         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1225 2013-06-05  Jan Hubicka  <jh@suse.cz>
1227         * varasm.c (mark_decl_referenced): Revert the removal until targets
1228         are fixed.
1230 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1232         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1233         instead of mark_decl_referenced.
1235 2013-06-05  Jan Hubicka  <jh@suse.cz>
1237         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1238         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1239         and symtab_used_from_object_file_p.
1240         (cgraph_make_node_local_1): Clear forced_by_abi.
1241         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1242         * cgraph.h (symtab_node_base): Add forced_by_abi.
1243         (decide_is_variable_needed): Remove.
1244         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1245         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1246         (decide_is_symbol_needed): ... this one; handle symbols in general;
1247         always analyze virtuals; honnor forced_by_abi.
1248         (cgraph_finalize_function): Update.
1249         (varpool_finalize_decl): Update.
1250         (symbol_defined_and_needed): Remove.
1251         (analyze_functions): Update.
1252         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1253         output_refs, input_overwrite_node): Handle forced_by_abi.
1254         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1255         (address_taken_from_non_vtable_p): ... this one.
1256         (comdat_can_be_unshared_p_1): New function.
1257         (cgraph_comdat_can_be_unshared_p): Rename to ...
1258         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1259         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1260         (function_and_variable_visibility): Clear forced_by_abi as needed.
1261         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1262         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1263         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1264         * varpool.c (decide_is_variable_needed): Remove.
1266 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1268         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1269         (arm_option_override): Override arm_restrict_it where appropriate.
1270         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1271         * config/arm/arm.opt (mrestrict-it): New command-line option.
1272         * doc/invoke.texi: Document -mrestrict-it.
1274 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1276         * tsan.c (tsan_atomic_table): Make const.
1278 2013-06-05  Richard Biener  <rguenther@suse.de>
1280         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1281         index associated with the tree we are supposed to replace.
1282         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1283         TREE_ASM_WRITTEN as zero for everything but SSA names.
1285 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1287         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1289 2013-06-04  Jan Hubicka  <jh@suse.cz>
1291         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1292         (input_node, input_varpool_node): Handle correctly external same
1293         body aliases.
1294         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1295         nodes at ltrans stage.
1297 2013-06-04  Jan Hubicka  <jh@suse.cz>
1299         * ipa-inline.c (update_caller_keys): Fix availability test.
1300         (update_callee_keys): Likewise.
1301         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1302         to follow ELF standard.
1304 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1306         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1307         (mips64r5900el-*-elf*): New configurations.
1308         * config/mips/mips-cpus.def (r5900): New processor.
1309         * config/mips/mips-tables.opt: Regenerate.
1310         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1311         (mips_issue_rate): Handle PROCESSOR_R5900.
1312         (mips_reorg_process_insns): Force reorder mode for the R5900.
1313         * config/mips/mips.h (TARGET_MIPS5900): Define.
1314         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1315         TARGET_MIPS5900.
1316         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1317         TARGET_MIPS5900.
1318         * config/mips/mips.md (processor): Add r5900.
1319         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1321 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1323         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1324         into function to generate MOVI instruction.
1325         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1326         (aarch64_preferred_simd_mode): Turn into wrapper.
1327         (aarch64_output_scalar_simd_mov_immediate): New function.
1328         * config/aarch64/aarch64-protos.h: Add prototype for above.
1330 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1332         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1333         element_char member.
1334         (sizetochar): Return signed char.
1335         (aarch64_simd_valid_immediate): Remove elchar and other
1336         unnecessary variables.
1337         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1338         Calculate element_char as required.
1339         * config/aarch64/aarch64-protos.h: Update and move prototype
1340         for aarch64_output_simd_mov_immediate.
1341         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1342         Update arguments.
1344 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1346         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1347         information completed by aarch64_simd_valid_immediate.
1348         (aarch64_legitimate_constant_p): Update arguments.
1349         (aarch64_simd_valid_immediate): Work with struct rather than many
1350         pointers.
1351         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1352         (aarch64_simd_make_constant): Update arguments.
1353         (aarch64_output_simd_mov_immediate): Work with struct rather than
1354         many pointers.  Output immediate directly rather than as operand.
1355         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1356         Update prototype.
1357         * config/aarch64/constraints.md (Dn): Update arguments.
1359 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1361         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1362         longer static.
1363         (aarch64_simd_immediate_valid_for_move): Remove.
1364         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1365         (aarch64_simd_make_constant): Update call.
1366         (aarch64_output_simd_mov_immediate): Update call.
1367         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1368         Add prototype.
1369         * config/aarch64/constraints.md (Dn): Update call.
1371 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1373         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1374         return type to bool for prototype.
1375         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1376         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1377         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1379 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1381         * config/mips/mips.opt (meva): New.
1382         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1383         (ASM_SPEC): Handle -meva.
1384         * doc/invoke.texi (meva):  Document.
1386 2013-06-04  Alan Modra  <amodra@gmail.com>
1388         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1389         constant output.
1391 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1393         * rtl.def: Add extra fourth optional field to define_cond_exec.
1394         * gensupport.c (process_one_cond_exec): Process attributes from
1395         define_cond_exec.
1396         * doc/md.texi: Document fourth field in define_cond_exec.
1398 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1400         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1401         out the processing order as in store_bit_field_1.
1403 2013-06-04  Jan Hubicka  <jh@suse.cz>
1405         PR middle-end/57500
1406         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1407         non-VAR_DECL node if it does not exist yet.
1409 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1411         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1412         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1413         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1414         target_cpu_default setting.
1416 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1418         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1419         default to -fopt-info=optimized instead of all.
1420         * doc/invoke.texi: Ditto.
1421         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1422         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1423         (execute_vect_slp): Emit BB vectorization success under
1424         MSG_OPTIMIZED_LOCATIONS.
1425         * tree-vect-slp.c (vect_slp_transform_bb): Change
1426         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1427         * tree-vect-loop.c (vect_transform_loop): Ditto.
1429 2013-06-03  Jason Merrill  <jason@redhat.com>
1431         PR c++/57415
1432         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1433         Use TARGET_EXPR for C++.
1435 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1437         PR rtl-optimization/57268
1438         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1439         if DEBUG_INSN_P (insn).
1441         Reapply
1442         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1444         PR rtl-optimization/57268
1445         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1446         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1448 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1450         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1451         (ix86_avoid_lea_for_addr): Likewise.
1452         (exact_dependency_1): Likewise.
1453         (ix86_adjust_cost): Likewise.
1454         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1455         removed.
1456         (do_reorder_for_imul): Fix typo, formatting and
1457         !reload_completed check removed.
1458         (ix86_sched_reorder): Fix typo and formatting.
1459         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1460         list.
1462 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1464         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1466 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1468         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1469         <STRING_CST>: Likewise.
1470         <VECTOR_CST>: Likewise.
1472 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1473             Mikael Morin  <mikael@gcc.gnu.org>
1475         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1476         * config.in: Regenerated.
1477         * configure: Regenerated.
1479 2013-06-01  Jan Hubicka  <jh@suse.cz>
1481         PR middle-end/57366
1482         * cgraphunit.c (compile): When weakref is not supported,
1483         set up transparent aliases before final output pass.
1484         * varasm.c (assemble_alias): Do not try to do it here.
1486 2013-06-01  Jan Hubicka  <jh@suse.cz>
1488         PR middle-end/57467
1489         * passes.c (for_per_function): Skip unanalyzed functions.
1491 2013-06-01  Jan Hubicka  <jh@suse.cz>
1493         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1494         (lto_symtab_merge_symbols_1): ... this one.
1495         (lto_symtab_merge_cgraph_nodes): Rename to ...
1496         (lto_symtab_merge_symbols): ... this one; simplify.
1497         * cgraph.c (same_body_aliases_done): Rename to ...
1498         (cpp_implicit_aliases_done): ... this one.
1499         (cgraph_create_function_alias): Update.
1500         (cgraph_same_body_alias): Update.
1501         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1502         (verify_edge_corresponds_to_fndecl): Simplify.
1503         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1504         (cgraph_node): Remove same_body_alias.
1505         (varpool_node): Remove alias_of and extra_name_alias.
1506         (same_body_aliases_done): Rename to ..
1507         (cpp_implicit_aliases_done): ... this one.
1508         (symtab_alias_ultimate_target): Add default parameter.
1509         (symtab_resolve_alias): New function.
1510         (fixup_same_cpp_alias_visibility): Declare.
1511         (cgraph_function_node): Add default parameter.
1512         (cgraph_node_asm_name): Likewise.
1513         (cgraph_function_or_thunk_node): Add default parameter; do
1514         not ICE when it is NULL.
1515         (varpool_variable_node): Likewise.
1516         * tree-emutls.c (create_emultls_var): Update.
1517         (ipa_lower_emutls): Update.
1518         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1519         (cgraph_reset_node): Reset alias info.
1520         (cgraph_finalize_function): Update.
1521         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1522         (analyze_function): Simplify.
1523         (cgraph_process_same_body_aliases): Simplify.
1524         (analyze_functions): Fixup same body aliases.
1525         (handle_alias_pairs): Simplify.
1526         (assemble_thunk): Update.
1527         (assemble_thunks_and_aliases): Update.
1528         (output_weakrefs): Rewrite.
1529         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1530         (lto_output_varpool_node): Likewise.
1531         (compute_ltrans_boundary): Remve assert.
1532         (get_alias_symbol): New functoin.
1533         (input_node): Rewrite alias handling.
1534         (input_varpool_node): Likewise.
1535         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1536         * ipa.c (process_references): Handle weakrefs correctly.
1537         (symtab_remove_unreachable_nodes): Likewise.
1538         * trans-mem.c (get_cg_data): Update.
1539         (ipa_tm_create_version_alias): Update.
1540         (ipa_tm_execute): Update.
1541         * symtab.c (dump_symtab_base): Dump aliases.
1542         (verify_symtab_base): Verify aliases.
1543         (symtab_node_availability): New function.
1544         (symtab_alias_ultimate_target): Simplify.
1545         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1546         handle all the fixup cases.
1547         (symtab_resolve_alias): New function.
1548         * passes.c (ipa_write_summaries): Handle weakrefs.
1549         * varpool.c (varpool_analyze_node): Simplify.
1550         (assemble_aliases): Update.
1551         (varpool_create_variable_alias): Simplify.
1552         (varpool_extra_name_alias): Simplify.
1553         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1554         (lto_symtab_merge_symbols): ... this one.
1556 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1558         Revert
1559         PR rtl-optimization/57268
1560         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1561         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1563 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1565         Partially reverted:
1566         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1568         PR middle-end/57073
1569         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1570         further up.
1572 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1574         PR rtl-optimization/57268
1575         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1576         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1578 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1580         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1581         unordered comparison operators when -fno-trapping-math is in effect
1582         on the e500.
1583         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1584         and implement unordered comparison operators properly on the e500.
1586 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1588         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1589         for constant scalar integers.
1590         (simplify_relational_operation_1): Likewise.
1592 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1594         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1595         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1596         Fix comment.
1598 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1599             Igor Zamyatin  <igor.zamyatin@intel.com>
1601         Silvermont (SLM) architecture performance tuning.
1602         * config/i386/i386.h (enum ix86_tune_indices): Add
1603         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1604         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1606         * config/i386/i386.c (initial_ix86_tune_features)
1607         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1608         (ix86_lea_outperforms): Handle Silvermont tuning.
1609         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1610         call.
1611         (ix86_use_lea_for_mov): Likewise.
1612         (ix86_avoid_lea_for_addr): Likewise.
1613         (ix86_lea_for_add_ok): Likewise.
1614         (exact_dependency_1): New function.
1615         (exact_store_load_dependency): Likewise.
1616         (ix86_adjust_cost): Handle Silvermont tuning.
1617         (do_reoder_for_imul): Likewise.
1618         (swap_top_of_ready_list): New function.
1619         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1621         * config/i386/i386.md (peepholes that split memory operand in fp
1622         converts): New.
1624 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1626         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1627         Remove un-necessary braces.
1629 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1631         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1632         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1634 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1636         PR middle-end/57073
1637         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1639 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1641         PR target/56315
1642         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1643         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1644         * config/arm/neon.md (iordi3_neon): Remove.
1645         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1646         * config/arm/predicates.md (imm_for_neon_logic_operand):
1647         Move to earlier in the file.
1648         (neon_logic_op2): Likewise.
1649         (arm_iordi_operand_neon): New predicate.
1651 2013-05-31  Richard Biener  <rguenther@suse.de>
1653         PR tree-optimization/57478
1654         PR tree-optimization/57453
1655         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1656         are life as well.
1658 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1660         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1661         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1663 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1664             Thomas Koenig  <tkoenig@gcc.gnu.org>
1666         PR middle-end/57073
1667         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1668         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1670 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1672         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1674 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1676         * target.def (register_usage_leveling_p): New hook.
1677         * targhooks.c (default_register_usage_leveling_p): New.
1678         * targhooks.h (default_register_usage_leveling_p): New prototype.
1679         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1680         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1681         * doc/tm.texi: Update.
1682         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1684 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1686         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1687         (*insv_reg<mode>): New define_insn.
1689 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1691         PR rtl-optimization/57439
1692         * postreload.c (move2add_valid_value_p): Check that we have
1693         a zero subreg_regno_offset when accessing the register in
1694         the requested mode.
1696 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1697             Igor Zamyatin  <igor.zamyatin@intel.com>
1699         Silvermont (SLM) architecture pipeline model, tuning and
1700         insn selection.
1701         * config.gcc: Add slm config options and target.
1703         * config/i386/slm.md: New.
1705         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1707         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
1708         PROCESSOR_SLM.
1709         (ix86_target_macros_internal): Likewise.
1711         * gcc/config/i386/i386.c (slm_cost): New cost.
1712         (m_SLM): New macro flag.
1713         (initial_ix86_tune_features): Set m_SLM.
1714         (x86_accumulate_outgoing_args): Likewise.
1715         (x86_arch_always_fancy_math_387): Likewise.
1716         (processor_target_table): Add slm cost.
1717         (cpu_names): Add slm cpu name.
1718         (x86_option_override_internal): Set SLM ISA.
1719         (ix86_issue_rate): New case PROCESSOR_SLM.
1720         (ia32_multipass_dfa_lookahead): Likewise.
1721         (fold_builtin_cpu): Add slm.
1723         * config/i386/i386.h (TARGET_SLM): New target macro.
1724         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1725         (processor_type): Add PROCESSOR_SLM.
1727         * config/i386/i386.md (cpu): Add new value "slm".
1728         (slm.md): Include slm.md.
1730 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
1731             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1733         * config/arm/arm-protos.h: Add and update function protos.
1734         * config/arm/arm.c (use_simple_return_p): New added.
1735         (thumb2_expand_return): Check simple_return flag.
1736         * config/arm/arm.md: Add simple_return and conditional simple_return.
1737         * config/arm/iterators.md: Add iterator for return and simple_return.
1739 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1741         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1742         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1743         (arm_emit_vfp_multi_reg_pop): Likewise.
1744         (thumb2_emit_ldrd_pop): Likewise.
1745         (arm_expand_epilogue): Add misc REG_CFA notes.
1746         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1748 2013-05-29  Lawrence Crowl  <crowl@google.com>
1750         * config/arm/t-arm: Update for below.
1752         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1753         Change type to hash_table.  Update dependent calls and types.
1755         * config/i386/t-cygming: Update for below.
1757         * config/i386/t-interix: Update for below.
1759         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1760         Change type to hash_table.  Update dependent calls and types.
1761         (i386_find_on_wrapper_list::wrappers): Likewise.
1763         * config/ia64/t-ia64: Update for below.
1765         * config/ia64/ia64.c (bundle_state_table):
1766         Change type to hash_table.  Update dependent calls and types.
1768         * config/mips/mips.c (mips_reorg_process_insns::htab):
1769         Change type to hash_table.  Update dependent calls and types.
1771         * config/sol2.c (solaris_comdat_htab):
1772         Change type to hash_table.  Update dependent calls and types.
1774         * config/t-sol2: Update for above.
1776 2013-05-29  Teresa Johnson  <tejohnson@google.com>
1778         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1779         functions are not yet marked as defined.
1781 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1782             Pat Haugen <pthaugen@us.ibm.com>
1783             Peter Bergner <bergner@vnet.ibm.com>
1785         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1786         instructions.
1787         (VEC_A): Likewise.
1788         (VEC_C): Likewise.
1789         (vrotl<mode>3): Likewise.
1790         (vashl<mode>3): Likewise.
1791         (vlshr<mode>3): Likewise.
1792         (vashr<mode>3): Likewise.
1794         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1795         support for power8 V2DI builtins.
1797         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1798         power8 V2DI builtins.
1799         (vupkhsw): Likewise.
1800         (vupklsw): Likewise.
1801         (vaddudm): Likewise.
1802         (vminsd): Likewise.
1803         (vmaxsd): Likewise.
1804         (vminud): Likewise.
1805         (vmaxud): Likewise.
1806         (vpkudum): Likewise.
1807         (vpksdss): Likewise.
1808         (vpkudus): Likewise.
1809         (vpksdus): Likewise.
1810         (vrld): Likewise.
1811         (vsld): Likewise.
1812         (vsrd): Likewise.
1813         (vsrad): Likewise.
1814         (vsubudm): Likewise.
1815         (vcmpequd): Likewise.
1816         (vcmpgtsd): Likewise.
1817         (vcmpgtud): Likewise.
1818         (vcmpequd_p): Likewise.
1819         (vcmpgtsd_p): Likewise.
1820         (vcmpgtud_p): Likewise.
1821         (vupkhsw): Likewise.
1822         (vupklsw): Likewise.
1823         (vaddudm): Likewise.
1824         (vmaxsd): Likewise.
1825         (vmaxud): Likewise.
1826         (vminsd): Likewise.
1827         (vminud): Likewise.
1828         (vpksdss): Likewise.
1829         (vpksdus): Likewise.
1830         (vpkudum): Likewise.
1831         (vpkudus): Likewise.
1832         (vrld): Likewise.
1833         (vsld): Likewise.
1834         (vsrad): Likewise.
1835         (vsrd): Likewise.
1836         (vsubudm): Likewise.
1838         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1839         support for power8 V2DI instructions.
1841         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1842         power8 V2DI instructions.  Combine pack and unpack insns to use an
1843         iterator for each mode.  Check whether a particular mode supports
1844         Altivec instructions instead of just checking TARGET_ALTIVEC.
1845         (UNSPEC_VPKUWUM): Likewise.
1846         (UNSPEC_VPKSHSS): Likewise.
1847         (UNSPEC_VPKSWSS): Likewise.
1848         (UNSPEC_VPKUHUS): Likewise.
1849         (UNSPEC_VPKSHUS): Likewise.
1850         (UNSPEC_VPKUWUS): Likewise.
1851         (UNSPEC_VPKSWUS): Likewise.
1852         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1853         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1854         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1855         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1856         (UNSPEC_VUPKHSB): Likewise.
1857         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1858         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1859         (UNSPEC_VUPKHSH): Likewise.
1860         (UNSPEC_VUPKLSB): Likewise.
1861         (UNSPEC_VUPKLSH): Likewise.
1862         (VI2): Likewise.
1863         (VI_char): Likewise.
1864         (VI_scalar): Likewise.
1865         (VI_unit): Likewise.
1866         (VP): Likewise.
1867         (VP_small): Likewise.
1868         (VP_small_lc): Likewise.
1869         (VU_char): Likewise.
1870         (add<mode>3): Likewise.
1871         (altivec_vaddcuw): Likewise.
1872         (altivec_vaddu<VI_char>s): Likewise.
1873         (altivec_vadds<VI_char>s): Likewise.
1874         (sub<mode>3): Likewise.
1875         (altivec_vsubcuw): Likewise.
1876         (altivec_vsubu<VI_char>s): Likewise.
1877         (altivec_vsubs<VI_char>s): Likewise.
1878         (altivec_vavgs<VI_char>): Likewise.
1879         (altivec_vcmpbfp): Likewise.
1880         (altivec_eq<mode>): Likewise.
1881         (altivec_gt<mode>): Likewise.
1882         (altivec_gtu<mode>): Likewise.
1883         (umax<mode>3): Likewise.
1884         (smax<mode>3): Likewise.
1885         (umin<mode>3): Likewise.
1886         (smin<mode>3): Likewise.
1887         (altivec_vpkuhum): Likewise.
1888         (altivec_vpkuwum): Likewise.
1889         (altivec_vpkshss): Likewise.
1890         (altivec_vpkswss): Likewise.
1891         (altivec_vpkuhus): Likewise.
1892         (altivec_vpkshus): Likewise.
1893         (altivec_vpkuwus): Likewise.
1894         (altivec_vpkswus): Likewise.
1895         (altivec_vpks<VI_char>ss): Likewise.
1896         (altivec_vpks<VI_char>us): Likewise.
1897         (altivec_vpku<VI_char>us): Likewise.
1898         (altivec_vpku<VI_char>um): Likewise.
1899         (altivec_vrl<VI_char>): Likewise.
1900         (altivec_vsl<VI_char>): Likewise.
1901         (altivec_vsr<VI_char>): Likewise.
1902         (altivec_vsra<VI_char>): Likewise.
1903         (altivec_vsldoi_<mode>): Likewise.
1904         (altivec_vupkhsb): Likewise.
1905         (altivec_vupkhs<VU_char>): Likewise.
1906         (altivec_vupkls<VU_char>): Likewise.
1907         (altivec_vupkhsh): Likewise.
1908         (altivec_vupklsb): Likewise.
1909         (altivec_vupklsh): Likewise.
1910         (altivec_vcmpequ<VI_char>_p): Likewise.
1911         (altivec_vcmpgts<VI_char>_p): Likewise.
1912         (altivec_vcmpgtu<VI_char>_p): Likewise.
1913         (abs<mode>2): Likewise.
1914         (vec_unpacks_hi_v16qi): Likewise.
1915         (vec_unpacks_hi_v8hi): Likewise.
1916         (vec_unpacks_lo_v16qi): Likewise.
1917         (vec_unpacks_hi_<VP_small_lc>): Likewise.
1918         (vec_unpacks_lo_v8hi): Likewise.
1919         (vec_unpacks_lo_<VP_small_lc>): Likewise.
1920         (vec_pack_trunc_v8h): Likewise.
1921         (vec_pack_trunc_v4si): Likewise.
1922         (vec_pack_trunc_<mode>): Likewise.
1924         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1925         V2DI builtins.
1926         (vec_vmaxsd): Likewise.
1927         (vec_vmaxud): Likewise.
1928         (vec_vminsd): Likewise.
1929         (vec_vminud): Likewise.
1930         (vec_vpksdss): Likewise.
1931         (vec_vpksdus): Likewise.
1932         (vec_vpkudum): Likewise.
1933         (vec_vpkudus): Likewise.
1934         (vec_vrld): Likewise.
1935         (vec_vsld): Likewise.
1936         (vec_vsrad): Likewise.
1937         (vec_vsrd): Likewise.
1938         (vec_vsubudm): Likewise.
1939         (vec_vupkhsw): Likewise.
1940         (vec_vupklsw): Likewise.
1942 2013-05-29  Jan Hubicka  <jh@suse.cz>
1944         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1945         flags; reorder rest of fields in more consistent way.
1946         (varpool_node): Remove analyzed, finalized and alias.
1947         (cgraph_ndoe): Likewise.
1948         (symtab_alias_ultimate_target): New function.
1949         (cgraph_function_node): Move offline.
1950         (cgraph_reset_node): Declare.
1951         (cgraph_comdat_can_be_unshared_p): Remove.
1952         (varpool_remove_initializer): Declare.
1953         (varpool_first_defined_variable, varpool_next_defined_variable
1954         cgraph_first_defined_function, cgraph_next_defined_function): Update.
1955         (cgraph_function_with_gimple_body_p): Update.
1956         (varpool_all_refs_explicit_p): Update.
1957         (symtab_alias_target): New function.
1958         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1959         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1960         (cgraph_function_or_thunk_node): Simplify using
1961         symtab_alias_ultimate_target.
1962         (varpool_variable_node): Likewise.
1963         * cgraph.c (cgraph_create_function_alias): Update.
1964         (cgraph_add_thunk): Update.
1965         (cgraph_remove_node): Update.
1966         (dump_cgraph_node): Do not dump removed flags.
1967         (cgraph_function_body_availability): Update.
1968         (cgraph_propagate_frequency): Update.
1969         (verify_cgraph_node): Check sanity of local flag.
1970         (cgraph_function_node): Move here from cgraph.h; revamp for
1971         cgraph_function_or_thunk_node.
1972         * lto-symtab.c (lto_varpool_replace_node): Update.
1973         (lto_symtab_resolve_can_prevail_p): Update.
1974         (lto_symtab_merge_cgraph_nodes): Update.
1975         * ipa-cp.c (determine_versionability, initialize_node_lattices,
1976         propagate_constants_accross_call, devirtualization_time_bonus,
1977         ipcp_propagate_stage): Update.
1978         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1979         * ipa-inline-transform.c (clone_inlined_nodes,
1980         preserve_function_body_p): Update.
1981         * ipa-reference.c (propagate): Update.
1982         (write_node_summary_p): Update.
1983         * toplev.c (wrapup_global_declaration_2): Update.
1984         * cgraphunit.c (cgraph_analyze_function): Rename to ...
1985         (analyze_function) ... this one.
1986         (cgraph_process_new_functions): Update.
1987         (cgraph_reset_node): Export.
1988         (cgraph_finalize_function): Update.
1989         (cgraph_add_new_function): Update.
1990         (process_function_and_variable_attributes): Update.
1991         (varpool_finalize_decl): Update.
1992         (symbol_finalized): Remove.
1993         (symbol_finalized_and_needed): Rename to ...
1994         (symbol_defined_and_needed): ... update.
1995         (cgraph_analyze_functions): Update.
1996         (handle_alias_pairs): Update.
1997         (mark_functions_to_output): Update.
1998         (assemble_thunk): Update.
1999         (output_in_order): Update.
2000         (output_weakrefs): Update.
2001         (finalize_compilation_unit): Update.
2002         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2003         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2004         input_node, input_varpool_node): Update.
2005         * dbxout.c (dbxout_expand_expr): Update.
2006         * cgraphclones.c (cgraph_clone_node): Update.
2007         (cgraph_copy_node_for_versioning): Update.
2008         (cgraph_materialize_clone): Update.
2009         (cgraph_materialize_all_clones): Update.
2010         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2011         propagate_pure_const, propagate_nothrow): Update.
2012         * lto-streamer-out.c (lto_output, write_symbol): Update.
2013         * ipa-utils.c (ipa_reverse_postorder): Update.
2014         * ipa-inline.c (can_inline_edge_p): Update.
2015         (update_caller_keys, ipa_inline): Update.
2016         * dwarf2out.c (reference_to_unused,
2017         premark_types_used_by_global_vars_helper): Update.
2018         * tree-eh.c (tree_could_trap_p): Update.
2019         * ipa-split.c (consider_split, execute_split_functions): Update.
2020         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2021         has_addr_references_p): Update; move ahead in file for better
2022         readability.
2023         (process_references): Simplify.
2024         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2025         bodies are removed.
2026         (cgraph_comdat_can_be_unshared_p): Make static.
2027         (cgraph_externally_visible_p): Update.
2028         (varpool_externally_visible_p): Update.
2029         (function_and_variable_visibility): Update.
2030         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2031         ipa_tm_mark_force_output_node): Update.
2032         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2033         estimate_edge_devirt_benefit, inline_generate_summary,
2034         inline_write_summary): Update.
2035         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2036         * ipa-prop.c (ipa_compute_jump_functions): Update.
2037         (ipa_print_node_params, ipa_prop_read_section,
2038         ipa_update_after_lto_read, read_replacements_section): Update.
2039         * varasm.c (mark_decl_referenced): Update.
2040         (assemble_alias, dump_tm_clone_pairs): Update.
2041         * tree-inline.c (copy_bb): Update.
2042         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2043         Update.
2044         * symtab.c (dump_symtab_base): Print new flags.
2045         (verify_symtab_base): Verify new flags.
2046         (symtab_alias_ultimate_target): New function.
2047         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2048         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2049         Update.
2050         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2051         Update.
2052         * i386.c (ix86_get_function_versions_dispatcher,
2053         ix86_generate_version_dispatcher_body): Update.
2054         (fold_builtin_cpu): Use varpool_add_new_variable.
2055         * varpool.c (varpool_remove_initializer): Break out from ...
2056         (varpool_remove_node): ... this one.
2057         (dump_varpool_node, varpool_node_for_asm,
2058         cgraph_variable_initializer_availability, varpool_analyze_node,
2059         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2060         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2061         Update.
2063 2013-05-29  Jan Hubicka  <jh@suse.cz>
2065         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2067 2013-05-29  Easwaran Raman  <eraman@google.com>
2069         PR tree-optimization/57442
2070         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2071         when control exits the main loop.
2073 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2075         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2076         and RX600.
2077         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2078         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2079         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2080         option.
2082 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2084         PR tree-optimization/57441
2085         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2086         Don't limit size of incr_vec to number of candidates.
2088 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2090         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2091         and mips16 directories.
2092         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2093         (MULTILIB_DIRNAMES): Ditto.
2094         (MULTILIB_EXCEPTIONS): Add new exceptions.
2095         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2096         (MULTILIB_DIRNAMES): Ditto.
2097         (MULTILIB_EXCEPTIONS): Add new exceptions.
2099 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2100             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2102         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2103         SYMBOL_TINY_ABSOLUTE.
2104         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2105         SYMBOL_TINY_ABSOLUTE.
2106         (aarch64_expand_mov_immediate): Likewise.
2107         (aarch64_classify_symbol): Likewise.
2108         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2109         Permit SYMBOL_TINY_ABSOLUTE.
2110         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2112 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2113             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2115         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2116         Refactor if/switch.  Replace gcc_assert with if.
2118 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2120         * config/i386/i386.c (initial_ix86_tune_features): Enable
2121         FP Reassociation for AMD bdver1 and bdver2.
2123 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2125         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2126         and IMAGPART_EXPR do not occur within other handled_components.
2128 2013-05-29  Richard Biener  <rguenther@suse.de>
2130         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2131         access on whether the use is in the BB we currently try to
2132         vectorize.
2133         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2134         vectorize to vect_bb_slp_scalar_cost.
2136 2013-05-29  Richard Biener  <rguenther@suse.de>
2138         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2139         computing scalar cost offsetted by stmts that are kept live
2140         by scalar uses.
2141         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2142         for computation of scalar cost.
2144 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2146         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2148 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2150         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2151         array notation built-in reduction functions.
2152         * doc/passes.texi (Passes): Added documentation about changes done
2153         for Cilk Plus.
2154         * doc/invoke.texi (C Dialect Options): Added documentation about
2155         the -fcilkplus flag.
2156         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2157         (BUILTINS_DEF): Depend on cilkplus.def.
2158         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2159         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2160         * cilkplus.def: New file.
2162 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2164         PR rtl-optimization/57439
2165         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2167 2013-05-28  Easwaran Raman  <eraman@google.com>
2169         PR tree-optimization/57337
2170         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2171         (find_insert_point): Correctly identify the insertion point
2172         when two statements with the same UID is compared.
2174 2013-05-28  Richard Biener  <rguenther@suse.de>
2176         PR tree-optimization/56787
2177         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2178         from the list of data references.
2179         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2180         clobbers.
2181         (vect_analyze_loop_operations): Likewise.
2182         (vect_transform_loop): Remove clobbers.
2184 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2186         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2187         and REALPART_EXPRs have scalar type.
2189 2013-05-28  Richard Biener  <rguenther@suse.de>
2191         PR tree-optimization/57411
2192         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2193         virtual operands.
2194         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2195         virtual operand propagation.
2197 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2199         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2200         destination register for bmasksi_vis.
2201         (vector_init_bshuffle): Likewise.
2202         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2204 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2206         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2207         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2208         mode if the instruction isn't available in the original mode.
2209         * config/sparc/sparc.opt (mfix-ut699): New option.
2210         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2211         (divdf3): Turn into expander.
2212         (divdf3_nofix): New insn.
2213         (divdf3_fix): Likewise.
2214         (divsf3): Disable if -mfix-ut699.
2215         (sqrtdf2): Turn into expander.
2216         (sqrtdf2_nofix): New insn.
2217         (sqrtdf2_fix): Likewise.
2218         (sqrtsf2): Disable if -mfix-ut699.
2220 2013-05-27  Richard Biener  <rguenther@suse.de>
2222         PR middle-end/57412
2223         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2224         block for the new loop.
2226 2013-05-27  Richard Biener  <rguenther@suse.de>
2228         PR tree-optimization/57343
2229         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2230         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2231         (number_of_iterations_cond): Do not build the folded tree.
2233 2013-05-27  Richard Biener  <rguenther@suse.de>
2235         Revert
2236         PR middle-end/57381
2237         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2238         OEP_CONSTANT_ADDRESS_OF retained.
2240         PR tree-optimization/57417
2241         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2242         for unchanged base.
2243         (set_ssa_val_to): Compare addresses using
2244         get_addr_base_and_unit_offset.
2246 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2248         PR rtl-optimization/56833
2249         * postreload.c (move2add_record_mode): New function.
2250         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2251         (move2add_use_add2_insn): Use move2add_record_sym_value.
2252         (move2add_use_add3_insn): Likewise.
2253         (reload_cse_move2add): Use move2add_valid_value_p and
2254         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2255         affected regs by setting reg_mode to VOIDmode.
2256         (move2add_note_store): Don't pretend the inside of a SUBREG is
2257         the actual destination.  Invalidate single/leading registers by
2258         setting reg_mode to VOIDmode.
2259         Use move2add_record_sym_value, move2add_valid_value_p and
2260         move2add_record_mode.
2262 2013-05-27  Richard Biener  <rguenther@suse.de>
2264         PR tree-optimization/57396
2265         * tree-affine.c (double_int_constant_multiple_p): Properly
2266         return false for val == 0 and div != 0.
2268 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2270         * config/mips/mips.h: Use #elif in preprocessor conditions.
2272 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2274         PR target/53916
2275         * config/mips/constraints.md (kl): New constraint.
2276         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2277         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2278         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2279         from LO for MIPS16.
2280         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2282 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2284         PR target/55777
2285         * config/mips/mips.c (mips_can_inline_p): New function.
2286         (TARGET_CAN_INLINE_P): Define.
2288 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2290         * sched-int.h (ds_t, dw_t): Make unsigned int.
2291         Fix documentation that describes how all the ds_t bits are used.
2292         Reserve the last bit for delayed-branch scheduling.
2293         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2294         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2295         (gen_dep_weak_1): Remove prototype.
2296         * sched-deps.c (get_dep_weak_1): Make static.
2297         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2298         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2299         * doc/tm.texi: Regenerate.
2300         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2302 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2304         PR debug/56950
2305         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2307 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2308             Sandra Loosemore  <sandra@codesourcery.com>
2310         * config.gcc (powerpc-*): Allow native for with-cpu.
2312 2013-05-24  Jeff Law  <law@redhat.com>
2314         PR tree-optimization/57124
2315         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2316         conversion feeding a condition if the range has an overflow
2317         if -fstrict-overflow.  Add warnings for when we do make the
2318         transformation.
2320 2013-05-24  Dehao Chen  <dehao@google.com>
2322         * tree-cfg.c (locus_discrim_map): Fix the typo.
2323         (locus_discrim_hasher): Likewise.
2324         (locus_discrim_hasher::hash): Likewise.
2325         (locus_discrim_hasher::equal): Likewise.
2327 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2329         PR tree-optimization/57294
2330         * cgraph.h (ipa_record_stmt_references): Declare.
2331         * cgraphbuild.c (ipa_record_stmt_references): New function.
2332         (build_cgraph_edges): Use ipa_record_stmt_references.
2333         (rebuild_cgraph_edges): Likewise.
2334         (cgraph_rebuild_references): Likewise.
2335         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2336         associated with the old statement and build references from the
2337         newly built statements.
2338         * ipa-ref.c (ipa_remove_stmt_references): New function.
2339         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2341 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2343         * lra-constraints.c (emit_spill_move): Use smaller mode for
2344         mem-mem moves.
2345         (check_and_process_move): Consider mem-reg moves for secondary
2346         too.
2347         (curr_insn_transform): Don't lose insns emitted before for
2348         secondary memory moves.
2349         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2350         reg set up in the current insn.
2352 2013-05-24  Dehao Chen  <dehao@google.com>
2354         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2355         hash function.
2356         (locus_descrim_hasher::equal): Likewise.
2357         (build_gimple_cfg): New discriminator assignment algorithm.
2358         (make_edges): Likewise.
2359         (next_discriminator_for_locus): Likewise.
2360         (same_line_p): Likewise.
2361         (assign_discriminators): Likewise.
2362         (make_cond_expr_edges): Likewise.
2363         (make_gimple_switch_edges): Likewise.
2364         (make_goto_expr_edges): Likewise.
2365         (make_gimple_asm_edges): Likewise.
2367 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2369         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2370         X format specifier to only display bottom 16 bits.
2371         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2372         immediate to match for operand 2, since it will be masked.
2374 2013-05-24  Richard Biener  <rguenther@suse.de>
2376         PR tree-optimization/57287
2377         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2378         all SSA names that occur in abnormal PHIs.
2380 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2382         PR tree-ssa/57385
2383         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2384         that index is not negative.
2386 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2388         PR rtl-optimization/55177
2389         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2390         (simplify_byte_swapping_operation): New.
2391         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2392         (simplify_relational_operation_1): Deal with BSWAP.
2394 2013-05-23  Richard Henderson  <rth@redhat.com>
2396         PR target/56742
2397         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2398         (ix86_reorg): Call it.
2400 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2402         PR target/57379
2403         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2404         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2405         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2407 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2409         PR debug/57351
2410         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2412 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2413             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2415         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2416         * config/aarch64/constraints.md (Usa): Remove.
2417         * doc/md.texi (AArch64 Usa): Remove.
2419 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2420             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2422         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2423         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2424         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2425         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2427 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2429         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2430         instruction (AdvSIMD).
2431         * config/aarch64/aarch64-builtins.c
2432         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2433         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2435 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2437         PR middle-end/57347
2438         * tree.h (contains_bitfld_component_ref_p): Declare.
2439         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2440         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2441         caller.
2442         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2443         not access a bit-field.  Assert all final offsets are byte-aligned.
2445 2013-05-23  Richard Biener  <rguenther@suse.de>
2447         PR tree-optimization/57380
2448         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2449         least one invariant or re-used load.
2450         * passes.c (init_optimization_passes): Move pass_phiprop before
2451         pass_forwprop.
2453 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2455         * config/aarch64/aarch64-simd.md
2456         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2458 2013-05-23  Richard Biener  <rguenther@suse.de>
2460         PR middle-end/57381
2461         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2462         OEP_CONSTANT_ADDRESS_OF retained.
2464 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2466         PR middle-end/57344
2467         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2468         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2470 2013-05-23  Richard Biener  <rguenther@suse.de>
2472         PR rtl-optimization/57341
2473         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2474         instead of true_dependence.
2476 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2478         * bb-reorder.c (branch_threshold): Make const.
2479         (exec_threshold): Ditto.
2481 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2482             Pat Haugen <pthaugen@us.ibm.com>
2483             Peter Bergner <bergner@vnet.ibm.com>
2485         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2486         documentation for the power8 crypto builtins.
2488         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2490         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2491         macros for defining power8 builtin functions.
2492         (BU_P8V_AV_2): Likewise.
2493         (BU_P8V_AV_P): Likewise.
2494         (BU_P8V_VSX_1): Likewise.
2495         (BU_P8V_OVERLOAD_1): Likewise.
2496         (BU_P8V_OVERLOAD_2): Likewise.
2497         (BU_CRYPTO_1): Likewise.
2498         (BU_CRYPTO_2): Likewise.
2499         (BU_CRYPTO_3): Likewise.
2500         (BU_CRYPTO_OVERLOAD_1): Likewise.
2501         (BU_CRYPTO_OVERLOAD_2): Likewise.
2502         (XSCVSPDP): Fix typo, point to the correct instruction.
2503         (VCIPHER): Add power8 crypto builtins.
2504         (VCIPHERLAST): Likewise.
2505         (VNCIPHER): Likewise.
2506         (VNCIPHERLAST): Likewise.
2507         (VPMSUMB): Likewise.
2508         (VPMSUMH): Likewise.
2509         (VPMSUMW): Likewise.
2510         (VPERMXOR_V2DI): Likewise.
2511         (VPERMXOR_V4SI: Likewise.
2512         (VPERMXOR_V8HI: Likewise.
2513         (VPERMXOR_V16QI: Likewise.
2514         (VSHASIGMAW): Likewise.
2515         (VSHASIGMAD): Likewise.
2516         (VPMSUM): Likewise.
2517         (VPERMXOR): Likewise.
2518         (VSHASIGMA): Likewise.
2520         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2521         __CRYPTO__ if the crypto instructions are available.
2522         (altivec_overloaded_builtins): Add support for overloaded power8
2523         builtins.
2525         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2526         support for power8 crypto builtins.
2527         (builtin_function_type): Likewise.
2528         (altivec_init_builtins): Add support for builtins that take vector
2529         long long (V2DI) arguments.
2531         * config/rs6000/crypto.md: New file, define power8 crypto
2532         instructions.
2534 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2535             Pat Haugen <pthaugen@us.ibm.com>
2536             Peter Bergner <bergner@vnet.ibm.com>
2538         * doc/invoke.texi (Option Summary): Add power8 options.
2539         (RS/6000 and PowerPC Options): Likewise.
2541         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2542         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2543         wm, wn, wr documentation.
2545         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2546         registers if direct move instructions are enabled.
2547         (wn): New constraint for no registers.
2548         (wq): New constraint for quad word even GPR registers.
2549         (wr): New constraint if 64-bit instructions are enabled.
2550         (wv): New constraint if power8 vector instructions are enabled.
2551         (wQ): New constraint for quad word memory locations.
2553         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2554         constraint for 0..15 for crypto instructions.
2555         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2556         as GPR and floating point registers.
2557         (int_reg_operand): New predicate to match only GPR registers.
2558         (base_reg_operand): New predicate to match base registers.
2559         (quad_int_reg_operand): New predicate to match even GPR registers
2560         for quad memory operations.
2561         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2562         operations in both GPR and VSX registers.
2563         (quad_memory_operand): New predicate for quad memory operations.
2564         (reg_or_indexed_operand): New predicate for direct move support.
2566         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2567         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2568         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2569         (POWERPC_MASKS): Add power8 options.
2570         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2571         various options.
2573         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2574         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2576         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2577         (-mpower8-fusion): New power8 options.
2578         (-mpower8-fusion-sign): Likewise.
2579         (-mpower8-vector): Likewise.
2580         (-mcrypto): Likewise.
2581         (-mdirect-move): Likewise.
2582         (-mquad-memory): Likewise.
2584         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2585         power8.
2586         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2587         registers.
2588         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2589         (rs6000_debug_vector_unit): Add p8_vector.
2590         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2591         definitions.  Also print fusion state.
2592         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2593         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2594         (rs6000_option_override_internal): Add support for power8.
2595         (rs6000_common_init_builtins): Add debugging for skipped builtins
2596         if -mdebug=builtin.
2597         (rs6000_adjust_cost): Add power8 support.
2598         (rs6000_issue_rate): Likewise.
2599         (insn_must_be_first_in_group): Likewise.
2600         (insn_must_be_last_in_group): Likewise.
2601         (force_new_group): Likewise.
2602         (rs6000_register_move_cost): Likewise.
2603         (rs6000_opt_masks): Likewise.
2605         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2606         power8 capable assembler, default to power7 options.
2607         (TARGET_DIRECT_MOVE): Likewise.
2608         (TARGET_CRYPTO): Likewise.
2609         (TARGET_P8_VECTOR): Likewise.
2610         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2611         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2612         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2613         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2614         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2615         (TARGET_XSCVDPSPN): Likewise.
2616         (TARGET_XSCVSPDPN): Likewsie.
2617         (TARGET_SYNC_HI_QI): Likewise.
2618         (TARGET_SYNC_TI): Likewise.
2619         (MASK_CRYPTO): Likewise.
2620         (MASK_DIRECT_MOVE): Likewise.
2621         (MASK_P8_FUSION): Likewise.
2622         (MASK_P8_VECTOR): Likewise.
2623         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2624         temporary used by some of the direct move instructions to get two FP
2625         temporary registers does not force creation of a stack frame.
2626         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2627         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2628         that any VSX registers are tieable, even if they are also an
2629         Altivec vector mode.
2630         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2631         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2632         (RS6000_BTM_CRYPTO): Likewise.
2633         (RS6000_BTM_COMMON): Likewise.
2635         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2636         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2637         (enum rs6000_vector): Add power8 vector support.
2639 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2641         PR target/19599
2642         PR target/57340
2643         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2644         (any_sibcall_could_use_r3): this and handle indirect calls.
2645         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2647 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2649         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2651 2013-05-22  Richard Biener  <rguenther@suse.de>
2653         PR middle-end/57349
2654         * profile.c (branch_prob): Do not split blocks that are
2655         abnormally receiving from ECF_RETURNS_TWICE functions.
2657 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2659         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2660         address mode.  Move pointer mode initialization to the same place.
2662 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2664         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2665         while it has any effect.
2667 2013-05-21  Easwaran Raman  <eraman@google.com>
2669         PR tree-optimization/57322
2670         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2671         UID of the statement added to the BB to be 1.
2673 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2675         PR tree-optimization/57331
2676         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2677         of conversion from pointer type to integral type with integer.
2679 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2681         PR lto/57289
2682         * ipa-prop.c (ipa_read_node_info): Process param_used and
2683         controlled_uses in the same order as when writing.
2685 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2687         PR plugins/56754
2688         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2690 2013-05-21  Richard Biener  <rguenther@suse.de>
2692         PR tree-optimization/57318
2693         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2694         estimate stmts with side-effects as likely eliminated.
2696 2013-05-21  Richard Biener  <rguenther@suse.de>
2698         PR tree-optimization/57330
2699         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2700         preserve the call stmts fntype.
2702 2013-05-21  Richard Biener  <rguenther@suse.de>
2704         PR tree-optimization/57303
2705         * tree-ssa-sink.c (statement_sink_location): Improve killing
2706         stmt detection and properly handle self-assignments.
2708 2013-05-21  Christian Bruel  <christian.bruel@st.com>
2710         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2711         spanning registers. LEAF_REG_REMAP is supported only for contiguous
2712         registers. Set register size out of the PARALLEL loop.
2714 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
2716         PR target/56547
2717         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2718         (*fmasf4, *fmasf4_media): New insns.
2720 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2722         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2723         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2724         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2725         (mips_idiv_insns): Update the comments to say that the returned
2726         instruction counts are in units of BASE_INSN_LENGTH.
2727         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2728         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
2729         using 2 rather than 4 as the length of indirect MIPS16 and
2730         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
2731         length of a NOP.  Don't divide MIPS16 lengths by 2.
2732         (mips16_split_long_branches): Assume a branch is long if the
2733         length is greater than 4 rather than 8.
2734         * config/mips/mips.md (length): Give MIPS16 lengths directly,
2735         rather than multiplying them by 2.  Multiply instruction counts
2736         by BASE_INSN_LENGTH rather than 4.
2737         (*jump_mips16, tls_get_tp_mips16_<mode>)
2738         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2740 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2742         * config/mips/mips.md (extended_mips16): Remove branch case.
2743         (length): Remove duplicated extended_mips16 test.
2745 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2747         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2749 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
2751         * recog.h (Recog_data): Rename to...
2752         (recog_data_d): ...this.
2753         (recog_data): Update accordingly.
2754         * recog.c (recog_data): Likewise.
2755         * reload.c (save_recog_data): Likewise.
2756         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2757         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2759 2013-05-17  Julian Brown  <julian@codesourcery.com>
2761         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2762         found in a REG_EQUAL note, invalidate it.
2764 2013-05-17   Easwaran Raman  <eraman@google.com>
2766         * tree-ssa-reassoc.c (find_insert_point): New function.
2767         (insert_stmt_after): Likewise.
2768         (get_def_stmt): Likewise.
2769         (ensure_ops_are_available): Likewise.
2770         (not_dominated_by): Likewise.
2771         (rewrite_expr_tree): Do not move statements beyond what is
2772         necessary. Remove call to swap_ops_for_binary_stmt...
2773         (reassociate_bb): ... and move it here.
2774         (build_and_add_sum): Assign UIDs for new statements.
2775         (linearize_expr): Likewise.
2776         (do_reassoc): Renumber gimple statement UIDs.
2778 2013-05-17  Jan Hubicka  <jh@suse.cz>
2780         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2781         weakrefs.
2782         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2783         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2784         weakrefs.
2785         (output_weakrefs): Update.
2787 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
2788             Martin Jambor  <mjambor@suse.cz>
2790         PR middle-end/57276
2791         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2792         value that corresponds to the given aggval is found in values vector.
2794 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
2796         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2797         sse, sse2, sse3, ssse3 and sse4a flags to options.
2799 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
2801         * gengtype-state.c: (s_expr_writer): New class, to handle
2802         prettifying of output layout of s-expressions.
2803         (state_writer): New class, to write out gtype.state.
2804         (state_written_type_count): Move this variable into member data of
2805         state_writer.
2806         (s_expr_writer::s_expr_writer): New code: constructor for new class
2807         (state_writer::state_writer(): ditto
2808         (s_expr_writer::write_new_line): New function
2809         (s_expr_writer::write_any_indent): ditto
2810         (s_expr_writer::begin_s_expr): ditto
2811         (s_expr_writer::end_s_expr): ditto
2812         (write_state_fileloc): convert to method of state_writer...
2813         (state_writer:: write_state_fileloc): ...and use methods of
2814         s_expr_writer to write indentation into the gtype.state output file
2815         to visually represent the hierarchical structure of the list
2816         structures
2817         (write_state_fields): ditto, renaming to...
2818         (state_writer::write_state_fields)
2819         (write_state_a_string): ditto, renaming to...
2820         (state_writer::write_state_a_string)
2821         (write_state_string_option): ditto, renaming to...
2822         (state_writer::write_state_string_option)
2823         (write_state_type_option): ditto, renaming to...
2824         (state_writer::write_state_type_option)
2825         (write_state_nested_option): ditto, renaming to...
2826         (state_writer::write_state_nested_option)
2827         (write_state_option): ditto, renaming to...
2828         (state_writer::write_state_option)
2829         (write_state_options): ditto, renaming to...
2830         (state_writer::write_state_options)
2831         (write_state_lang_bitmap): ditto, renaming to...
2832         (state_writer::write_state_lang_bitmap)
2833         (write_state_version): ditto, renaming to...
2834         (state_writer::write_state_version)
2835         (write_state_scalar_type): ditto, renaming to...
2836         (state_writer::write_state_scalar_type)
2837         (write_state_string_type): ditto, renaming to...
2838         (state_writer::write_state_string_type)
2839         (write_state_undefined_type): ditto, renaming to...
2840         (state_writer::write_state_undefined_type)
2841         (write_state_struct_union_type): ditto, renaming to...
2842         (state_writer::write_state_struct_union_type)
2843         (write_state_struct_type): ditto, renaming to...
2844         (state_writer::write_state_struct_type)
2845         (write_state_user_struct_type): ditto, renaming to...
2846         (state_writer::write_state_user_struct_type)
2847         (write_state_lang_struct_type): ditto, renaming to...
2848         (state_writer::write_state_lang_struct_type)
2849         (write_state_param_struct_type): ditto, renaming to...
2850         (state_writer::write_state_param_struct_type)
2851         (write_state_pointer_type): ditto, renaming to...
2852         (state_writer::write_state_pointer_type)
2853         (write_state_array_type): ditto, renaming to...
2854         (state_writer::write_state_array_type)
2855         (write_state_gc_used): ditto, renaming to...
2856         (state_writer::write_state_gc_used)
2857         (write_state_common_type_content): ditto, renaming to...
2858         (state_writer::write_state_common_type_content)
2859         (write_state_type): ditto, renaming to...
2860         (state_writer::write_state_type)
2861         (write_state_pair_list): ditto, renaming to...
2862         (state_writer::write_state_pair_list)
2863         (write_state_pair): ditto, renaming to...
2864         (state_writer::write_state_pair)
2865         (write_state_typedefs): ditto, renaming to...
2866         (state_writer::write_state_typedefs)
2867         (write_state_structures): ditto, renaming to...
2868         (state_writer::write_state_structures)
2869         (write_state_param_structs): ditto, renaming to...
2870         (state_writer::write_state_param_structs)
2871         (write_state_variables): ditto, renaming to...
2872         (state_writer::write_state_variables)
2873         (write_state_srcdir): ditto, renaming to...
2874         (state_writer::write_state_srcdir)
2875         (write_state_files_list): ditto, renaming to...
2876         (state_writer::write_state_files_list)
2877         (write_state_languages): ditto, renaming to...
2878         (state_writer::write_state_languages)
2879         (write_state): create a state_writer instance and use it when
2880         writing out the state file
2882 2013-05-17  Mike Stump  <mikestump@comcast.net>
2884         PR rtl-optimization/57304
2885         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2886         accessing DF_REF_REAL_LOC.
2888 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2890         PR rtl-optimization/57281
2891         PR rtl-optimization/57300
2892         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2893         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2894         what the other splitter did if the registers are dead.
2896 2013-05-17  Richard Biener  <rguenther@suse.de>
2898         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2899         MEM_REF offsets.
2901 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2903         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2904         linking.
2906 2013-05-17  Marek Polacek  <polacek@redhat.com>
2908         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2909         length when doing non-zero store of storing '\0' to '\0'.
2911 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2913         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2914         vect_external_def oprnd1 with loop_vinfo, try to emit
2915         optional cast, negation and and stmts on the loop preheader
2916         edge instead of into the pattern def seq.
2918         PR tree-optimization/57051
2919         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2920         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2922 2013-05-16  Nick Clifton  <nickc@redhat.com>
2924         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2925         (rl78_is_naked_func): New function.
2926         (rl78_expand_prologue): Skip prologue generation for naked functions.
2927         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2928         * doc/extend.texi (naked): Add RL78 to the list of processors
2929         that supports this attribute.
2931 2013-05-16  Jeff Law  <law@redhat.com>
2933         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2935 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2937         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2938         cache parameters using detect_caches_amd also for CYRIX,
2939         NSC and TM2 signatures.
2941 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2942             Dzianis Kahanovich  <mahatma@eu.by>
2944         PR target/45359
2945         PR target/46396
2946         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2947         VIA/Centaur processors and determine their cache parameters
2948         using detect_caches_amd.
2950 2013-05-16  Teresa Johnson  <tejohnson@google.com>
2952         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2953         (rtl_verify_edges): New function.
2954         (rtl_verify_bb_insns): Ditto.
2955         (rtl_verify_bb_pointers): Ditto.
2956         (rtl_verify_bb_insn_chain): Ditto.
2957         (rtl_verify_fallthru): Ditto.
2958         (rtl_verify_bb_layout): Ditto.
2959         (rtl_verify_flow_info_1): Outline checks into new functions.
2960         (rtl_verify_flow_info): Ditto.
2962 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
2964         * cfghooks.c (copy_bbs): Add update_dominance argument.
2965         * cfghooks.h (copy_bbs): Update prototype.
2966         * tree-cfg.c (gimple_duplicate_sese_region):
2967         Add update_dominance argument.
2968         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2969         * tree-ssa-loop-ch.c (copy_loop_headers): Update
2970         gimple_duplicate_sese_region call.
2971         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2972         Update copy_bbs call.
2973         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2974         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2976 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2978         * tree-vectorizer.h (NUM_PATTERNS): Increment.
2979         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2980         vect_recog_rotate_pattern.
2981         (vect_recog_rotate_pattern): New function.
2983 2013-05-16  Jason Merrill  <jason@redhat.com>
2985         * Makefile.in (LLINKER): New variable.
2986         (mostlyclean): Remove link mutex.
2987         * configure.ac: Handle --enable-link-mutex.
2988         * lock-and-run.sh: New script.
2990 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2992         PR target/19599
2993         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2994         for NULL decl.
2996 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2998         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3000 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3002         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3003         * config/arm/arm.c (next_consecutive_mem): New function.
3004         (gen_movmem_ldrd_strd): Likewise.
3005         * config/arm/arm.md (movmemqi): Update condition and code.
3006         (unaligned_loaddi, unaligned_storedi): New patterns.
3008 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3010         * config.gcc: Obsolete *-*-solaris2.9*.
3011         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3013 2013-05-16  Richard Biener  <rguenther@suse.de>
3015         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3016         earlier, after GRAPHITE transforms and IV canonicalization.
3018 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3020         * omp-low.c (extract_omp_for_data): For collapsed loops,
3021         if at least one of the loops is known at compile time to
3022         iterate zero times, set count to 0.
3023         (expand_omp_regimplify_p): New function.
3024         (expand_omp_for_generic): For collapsed loops, if at least
3025         one of the loops isn't known to iterate at least once,
3026         add runtime check with setting count to 0.
3027         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3028         For unsigned types if it isn't known at compile time that
3029         the loop will iterate at least once, add runtime check to bypass
3030         the whole loop if initial condition isn't true.
3032 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3034         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3036 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3038         PR middle-end/57286
3039         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3040         transformations to avoid an infinite loop.
3042 2013-05-16  Marek Polacek  <polacek@redhat.com>
3044         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3046 2013-05-15  Leif Ekblad  <leif@rdos.net>
3048         * config/i386/i386.c (ix86_decompose_address): Use
3049         DEFAULT_TLS_SEG_REG to access TLS segment register.
3050         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3051         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3052         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3054 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3056         PR target/57260
3057         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3058         sibling calls to functions that would normally be lazily bound,
3059         unless $gp is call-clobbered.
3061 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3063         * config/i386/i386.c (ix86_option_override_internal): Update
3064         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3065         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3066         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3067         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3068         of TARGET_3DNOW.
3069         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3071 2013-05-15  Andreas Schwab  <schwab@suse.de>
3073         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3074         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3075         third operand.
3077 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3079         * loop-unroll.c (report_unroll_peel): Check decision before
3080         emitting unroll/peel message.
3082 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3084         * function.h (has_bb_partition): New rtl_data flag.
3085         (bb_reorder_complete): Ditto.
3086         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3087         instead of flag_reorder_blocks_and_partition.
3088         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3089         with some enhancements.
3090         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3091         * bb-reorder.c (connect_traces): Check for has_bb_partition
3092         instead of flag_reorder_blocks_and_partition.
3093         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3094         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3095         verify_hot_cold_block_grouping.
3096         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3098 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3100         PR target/19599
3101         * config/arm/predicates.md (call_insn_operand): New predicate.
3102         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3103         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3104         if insn is not a tail call.
3105         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3106         registers.
3107         * config/arm/arm.h (enum reg_class): New caller save register class.
3108         (REG_CLASS_NAMES): Likewise.
3109         (REG_CLASS_CONTENTS): Likewise.
3110         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3111         without decls.
3113 2013-05-15  Richard Biener  <rguenther@suse.de>
3115         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3116         of MSG_OPTIMIZED_LOCATIONS.
3117         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3118         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3119         message.
3120         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3121         of MSG_OPTIMIZED_LOCATIONS.
3122         (execute_vect_slp): Likewise.
3123         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3124         (vect_create_cond_for_alias_checks): Likewise.
3125         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3126         (vect_recog_widen_mult_pattern): Likewise.
3127         (vect_recog_widen_sum_pattern): Likewise.
3128         (vect_recog_over_widening_pattern): Likewise.
3129         (vect_recog_widen_shift_pattern): Likewise.
3130         (vect_recog_vector_vector_shift_pattern): Likewise.
3131         (vect_recog_divmod_pattern): Likewise.
3132         (vect_recog_mixed_size_cond_pattern): Likewise.
3133         (vect_recog_bool_pattern): Likewise.
3134         (vect_pattern_recog_1): Likewise.
3136 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3138         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3139         non-functions to builtin_unreachable.
3140         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3141         correct when new direct edges were discovered.
3143 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3145         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3146         header, print symbol order instead of node uid, print more information
3147         about indirect edge targets.
3148         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3149         uids.
3150         (ipa_make_edge_direct_to_target): Likewise.
3151         (remove_described_reference): Likewise.
3152         (propagate_controlled_uses): Likewise.
3153         (ipa_print_node_params): Also print symbol order.
3154         (ipcp_transform_function): Print symbol order instead of node uids.
3155         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3156         (cgraph_get_create_real_symbol_node): Likewise.
3157         * ipa-cp.c (print_lattice): Likewise.
3158         (print_all_lattices): Likewise.
3159         (determine_versionability): Likewise.
3160         (initialize_node_lattices): Likewise.
3161         (estimate_local_effects): Likewise.
3162         (update_profiling_info): Likewise.
3163         (create_specialized_node): Likewise.
3164         (perhaps_add_new_callers): Likewise.
3165         (decide_about_value): Likewise.
3166         (decide_whether_version_node): Likewise.
3167         (identify_dead_nodes): Likewise.
3168         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3169         (dump_inline_summary): Likewise.
3170         (estimate_node_size_and_time): Likewise.
3171         (inline_analyze_function): Likewise.
3172         * ipa-inline.c (report_inline_failed_reason): Likewise.
3173         (want_early_inline_function_p): Likewise.
3174         (edge_badness): Likewise.
3175         (update_edge_key): Likewise.
3176         (inline_small_functions): Likewise.  Add dumping of order to two other
3177         dumps.
3178         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3179         instead of node uids.
3180         (propagate_pure_const): Likewise.
3181         (propagate_pure_const): Likewise.
3182         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3183         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3184         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3185         of node uids.
3186         * tree-pretty-print.c (dump_function_header): Likewise.
3187         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3188         Print symbol order instead of node uids.
3190 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3192         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3193         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3195 2013-05-15  Richard Biener  <rguenther@suse.de>
3197         PR tree-optimization/57275
3198         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3199         return value for fail to do runtime alias checks for gather loads.
3201 2013-05-15  Jan Hubicka  <jh@suse.cz>
3203         PR lto/57038
3204         PR lto/47375
3205         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3206         weakrefs are not external.
3207         (lto_symtab_merge_decls): Fix thinko when dealing with
3208         non-lto_symtab decls.
3209         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3210         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3211         * varpool.c (dump_varpool_node): Dump more flags.
3213 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3215         * config/i386/i386.c (processor_alias_table): Add instruction
3216         FSGSBASE for AMD bdver3 architecture.
3218 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3220         * tree.c (warn_deprecated_use): Print file:line using locus color.
3221         * diagnostic.c (diagnostic_report_current_module): Print file:line
3222         and file:line:column using locus color.
3224 2013-05-14  Mike Stump  <mikestump@comcast.net>
3226         * gdbinit.in: Add __null.
3228 2013-05-14  Mike Stump  <mikestump@comcast.net>
3230         * recog.h: Rename struct recog_data to Recog_data.
3231         * recog.c: Likewise.
3232         * reload.c (can_reload_into): Likewise.
3233         * config/picochip/picochip.c: Likewise.
3235 2013-05-14  Mike Stump  <mikestump@comcast.net>
3237         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3239 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3241         * resource.h (struct resources): Remove unch_memory member.
3242         (CLEAR_RESOURCE): Don't clear unch_memory.
3243         * resource.c (mark_referenced_resources): Don't set it.
3244         (mark_set_resources): Likewise.
3245         (mark_target_live_regs): Don't clear it.
3246         (init_resource_info): Likewise.
3247         * reorg.c (resource_conflicts_p): Don't compare it.
3248         (redundant_insn): Don't set it.
3250         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3251         Remove prototypes.
3252         * emit-rtl.c (next_label): Remove unused function.
3253         (skip_consecutive_labels, link_cc0_insns): Move to ...
3254         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3255         only place where these functions are used, and make them static.
3257 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3259         * fold-const.c (fold_negate_expr): Handle vectors.
3260         (fold_truth_not_expr): Make it static.
3261         (fold_invert_truthvalue): New static function.
3262         (invert_truthvalue_loc): Handle vectors. Do not call
3263         fold_truth_not_expr directly.
3264         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3265         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3266         (fold_comparison): Handle vector constants.
3267         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3268         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3269         * tree.h (fold_truth_not_expr): Remove declaration.
3271 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3273         * config/aarch64/aarch64-simd.md
3274         (aarch64_vcond_internal<mode>): Rename to...
3275         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3276         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3277         float modes. Clarify all iterator modes.
3278         (vcond<mode><mode>): Use new name for vcond expanders.
3279         (vcond<v_cmp_result><mode>): Likewise.
3280         (vcondu<mode><mode>: Likewise.
3281         * config/aarch64/iterators.md (VDQF_COND): New.
3283 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3285         PR bootstrap/57266
3286         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3287         variable for the shift amount. Check that we shift by non-negative
3288         amounts.
3290 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3292         PR target/42017
3293         * config/arm/arm.h (EPILOGUE_USES): Only return true
3294         for LR_REGNUM after epilogue_completed.
3296 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3298         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3299         is error_mark_node.
3301 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3303         PR target/57261
3304         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3305         and Solaris 11+/x86 with gld.
3306         * configure: Regenerate.
3308 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3310         * expmed.c (expand_shift_1): Canonicalize rotates by
3311         constant bitsize / 2 to bitsize - 1.
3312         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3313         case ROTATERT>: Likewise.
3315         Revert:
3316         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3318         * config/i386/i386.md (rotateinv): New code attr.
3319         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3320         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3321         roll $31, %eax, etc.
3323 2013-05-14  Richard Biener  <rguenther@suse.de>
3325         PR middle-end/57235
3326         * tree-eh.c (sink_clobbers): Give up for successors with
3327         multiple predecessors and no virtual uses.
3329 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3331         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3332         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3334 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3336         PR middle-end/57251
3337         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3338         the case when both op0 and op1 have VOIDmode.
3340 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3342         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3343         in multiply-accumulate mode.
3345 2013-05-13  Guozhi Wei  <carrot@google.com>
3347         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3349 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3351         PR target/56975
3352         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3353         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3354         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3355         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3356         (ix86_expand_prologue): Likewise.
3357         (ix86_expand_split_stack_prologue): Likewise.
3358         (legitimate_pic_address_disp_p): Likewise.
3359         (legitimize_pic_address): Likewise.
3360         (legitimize_tls_address): Likewise.
3361         (legitimize_pe_coff_symbol): Likewise.
3362         (output_pic_addr_const): Likewise.
3363         (construct_plt_address): Likewise.
3364         (ix86_expand_call): Likewise.
3365         (x86_output_mi_thunk): Likewise.
3366         (x86_function_profiler): Likewise.
3368 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3370         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3371         similar switch cases.
3372         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3373         (aarch64_simd_mov_to_<mode>low): Delete.
3374         (aarch64_simd_mov_to_<mode>high): Delete.
3375         (move_lo_quad_<mode>): Add w<-r alternative.
3376         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3377         (aarch64_simd_mov_from_*): Update type attribute.
3378         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3379         statement.
3381 2013-05-13  Jan Hubicka  <jh@suse.cz>
3383         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3384         * config/i386/i386.c (ix86_compute_frame_layout,
3385         ix86_expand_epilogue, emit_i387_cw_initialization,
3386         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3387         ix86_local_alignment): Fix use of size/speed predicates.
3389 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3391         PR tree-optimization/45216
3392         PR tree-optimization/57157
3393         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3394         the (-Y) & (B - 1) variant if OP is |.
3395         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3396         return shifted.  Use (-op1) & (prec - 1) as other_amount
3397         instead of prec - op1.
3399 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3401         PR middle-end/42371
3402         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3403         (ipa_constant_data): New type.
3404         (ipa_jump_func): Use ipa_constant_data to hold information about
3405         constant jump functions.
3406         (ipa_get_jf_constant): Adjust to jump function type changes.
3407         (ipa_get_jf_constant_rdesc): New function.
3408         (ipa_param_descriptor): New field controlled_uses.
3409         (ipa_get_controlled_uses): New function.
3410         (ipa_set_controlled_uses): Likewise.
3411         * ipa-ref.h (ipa_find_reference): Declare.
3412         * ipa-prop.c (ipa_cst_ref_desc): New type.
3413         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3414         changes.
3415         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3416         New parameter cs.  Adjust all callers.
3417         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3418         (remove_described_reference): New function.
3419         (jfunc_rdesc_usable): Likewise.
3420         (try_make_edge_direct_simple_call): Decrement controlled use count,
3421         attempt to remove reference if it hits zero.
3422         (combine_controlled_uses_counters): New function.
3423         (propagate_controlled_uses): Likewise.
3424         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3425         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3426         (ipa_print_node_params): Print described use counter.
3427         (ipa_write_jump_function): Adjust to jump function type changes.
3428         (ipa_read_jump_function): New parameter CS, pass it to
3429         ipa_set_jf_constant.  Adjust caller.
3430         (ipa_write_node_info): Stream controlled use count
3431         (ipa_read_node_info): Likewise.
3432         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3433         asserting.
3434         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3435         count.  Remove cloning-added reference if it reaches zero.
3436         * ipa-ref.c (ipa_find_reference): New function.
3438 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3440         * config/i386/i386.c (processor_target_table): Modified default
3441         alignment values for AMD BD and BT architectures.
3443 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3445         * tree-vect-generic.c (uniform_vector_p): Move ...
3446         * tree.c (uniform_vector_p): ... here.
3447         * tree.h (uniform_vector_p): Declare it.
3448         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3449         into a scalar.
3451 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3453         PR tree-optimization/57230
3454         * tree-ssa-strlen.c (handle_char_store): Record length for
3455         array store from STRING_CST.
3457         PR tree-optimization/57230
3458         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3459         check.
3461 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3463         * config/epiphany/epiphany.c (epiphany_init): Check size of
3464         NUM_MODES_FOR_MODE_SWITCHING.
3465         (epiphany_expand_prologue):
3466         Remove CONFIG_REGNUM initial value handling code.
3467         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3468         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3469         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3470         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3471         Don't return 1 for FP_MODE_NONE.
3472         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3473         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3474         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3475         * config/epiphany/epiphany.md (save_config): New pattern.
3477 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3479         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3481 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3483         * config/i386/i386.md (memory): Handle sseishft1.
3484         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3485         (*vec_extractv2di_1): Ditto.
3487 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3489         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3490         saved registers.
3492 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3494         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3495         Add mthumb/march=armv7-a multilib.
3496         Add mthumb/march=armv7-r multilib.
3497         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3499 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3501         * config/v850/t-rtems: Add more multilibs.
3503 2013-05-10  Richard Biener  <rguenther@suse.de>
3505         PR tree-optimization/57214
3506         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3507         not propagate from SSA names that occur in abnormal PHI nodes.
3509 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3511         * stor-layout.c (element_precision): New function.
3512         * machmode.h (element_precision): Declare it.
3513         * tree.c (build_minus_one_cst): New function.
3514         (element_precision): Likewise.
3515         * tree.h (build_minus_one_cst): Declare new function.
3516         (element_precision): Likewise.
3517         * fold-const.c (operand_equal_p): Use element_precision.
3518         (fold_binary_loc): Handle vector types.
3519         * convert.c (convert_to_integer): Use element_precision.
3520         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3521         separately.
3523 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3525         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3526         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3527         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3528         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3529         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3530         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3531         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3532         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3533         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3534         (Uuw8): New constraints.
3535         (Usb4): Move into alphabetical order.
3536         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3537         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3538         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3539         previously unnamed patterns.
3540         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3541         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3542         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3543         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3544         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3545         of specific lengths.
3547 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3549         * config/i386/i386.md (rotateinv): New code attr.
3550         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3551         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3552         roll $31, %eax, etc.
3554         PR tree-optimization/45216
3555         PR tree-optimization/57157
3556         * tree-ssa-forwprop.c (simplify_rotate): New function.
3557         (ssa_forward_propagate_and_combine): Call it.
3559 2013-05-10  Richard Biener  <rguenther@suse.de>
3561         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3562         disable peeling when we version for aliasing.
3563         (vector_alignment_reachable_p): Honor explicit user alignment.
3564         (vect_supportable_dr_alignment): Likewise.
3565         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3566         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3567         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3568         then peeling to arrange for the cost-model check to come first.
3570 2013-05-10  Alan Modra  <amodra@gmail.com>
3572         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3573         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3574         * configure: Regenerate.
3576 2013-05-10  Alan Modra  <amodra@gmail.com>
3578         PR target/55033
3579         * varasm.c (default_elf_select_section): Move !DECL_P check..
3580         (get_named_section): ..to here before calling get_section_name.
3581         Adjust assertion.
3582         (default_section_type_flags): Add DECL_P check.
3583         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3584         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3586 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3588         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3589         When using gen_stack_adjust_str with a register offset, add a
3590         REG_FRAME_RELATED_EXPR note.
3592 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3594         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3595         (*vec_extractv4si_zext_mem): Ditto.
3596         (*vec_extractv2di): Add 0->x and x->x alternatives.
3597         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3598         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3600 2013-05-09  Jason Merrill  <jason@redhat.com>
3602         N3639 C++1y VLA support
3603         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3604         DECL_VALUE_EXPR.
3606         * tree.c (build_constructor_va): New.
3607         * tree.h: Declare it.
3609 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3611         PR lto/57084
3612         * gimple-fold.c (canonicalize_constructor_val): Call
3613         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3615 2013-05-09  Jan Hubicka  <jh@suse.cz>
3616             Richard Biener  <rguenther@suse.de>
3618         PR lto/54095
3619         * symtab.c (symtab_make_decl_local): Do not add private names.
3621 2013-05-09  Jan Hubicka  <jh@suse.cz>
3623         PR lto/54095
3624         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3625         (unlink_from_assembler_name_hash): Likewise.
3626         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3627         symtab_unregister_node, symtab_initialize_asm_name_hash,
3628         change_decl_assembler_name): Update.
3630 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3632         * config/aarch64/aarch64.md: New movtf split.
3633         (*movtf_aarch64): Update.
3634         (aarch64_movdi_tilow): Handle TF modes and rename to
3635         aarch64_movdi_<mode>low.
3636         (aarch64_movdi_tihigh): Handle TF modes and rename to
3637         aarch64_movdi_<mode>high
3638         (aarch64_movtihigh_di): Handle TF modes and rename to
3639         aarch64_mov<mode>high_di
3640         (aarch64_movtilow_di): Handle TF modes and rename to
3641         aarch64_mov<mode>low_di
3642         (aarch64_movtilow_tilow): Remove spurious whitespace.
3643         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3644         splits.
3645         (aarch64_print_operand): Update.
3647 2013-05-09  Alan Modra  <amodra@gmail.com>
3649         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3650         powerpc64le.
3651         * configure: Regenerate.
3653 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3655         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3656         splitter preparation statements.
3657         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3658         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3659         adjust_address_nv.
3661 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3663         * gimple-ssa-strength-reduction.c (count_candidates): Change
3664         return value to int.
3665         (analyze_candidates_and_replace): Change type of length to int.
3667 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3669         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3670         (*vec_extract<mode>): Use VI12_128 mode iterator.
3671         (*vec_extract<mode>_mem): Ditto.
3672         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3673         attribute.
3675 2013-05-08  Diego Novillo  <dnovillo@google.com>
3677         PR bootstrap/54659
3679         Revert:
3680         2012-08-17  Diego Novillo  <dnovillo@google.com>
3682         PR bootstrap/54281
3683         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3684         * config.in: Regenerate.
3685         * configure: Regenerate.
3686         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3688 2013-05-08  Jan Hubicka  <jh@suse.cz>
3690         PR lto/54095
3691         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3692         * cgraph.h (symtab_node_base): Add unique_name.
3693         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3694         input_overwrite_node, input_varpool_node): Stream unique_name.
3695         * cgraphclones.c (cgraph_create_virtual_clone,
3696         cgraph_function_versioning): Set unique_name.
3697         * ipa.c (function_and_variable_visibility): Set unique_name.
3699 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3701         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3702         (alloc_cand_and_find_basis): Restrict conditional candidate
3703         processing to CAND_MULTs.
3705 2013-05-08  Jan Hubicka  <jh@suse.cz>
3707         PR lto/54095
3708         lto-symtab.c (lto_symtab_symbol_p): New function.
3709         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3710         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3711         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3712         Skip static symbols.
3714 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
3716         PR tree-optimization/57200
3717         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3718         Only call inform if the preceding warning_at returns true.
3720 2013-05-07  Han Shen  <shenhan@google.com>
3722         * cfgexpand.c (record_or_union_type_has_array_p): New function.
3723         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3724         * common.opt (fstack-protector-strong): New option.
3725         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3726         * doc/invoke.texi (Optimization Options): Document
3727         "-fstack-protector-strong".
3728         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3730 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3732         * config/mips/mips.c (mips_machine_reorg2): Return 0.
3734 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
3736         * ira.c (update_equiv_regs): Add insn having equiv memory even if
3737         it is not lhs of the insn.
3738         (setup_reg_equiv): Remove insn having equiv memory which it is not
3739         lhs of the insn.
3740         * lra-constraints.c (process_address): Try to improve generation
3741         code for address base + disp.
3742         (lra_constraints): Make correct the code for checking insn setting
3743         up backward equivalence.  Remove insn only if it is in the init
3744         insn list.
3745         * lra-eliminations.c (update_reg_eliminate): Change return value.
3746         (lra_eliminate): Use the result.
3748 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
3750         * config/i386/sse.md (ssescalarnummask): New mode attribute.
3751         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3752         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3753         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3754         register target operands.
3755         (*vec_extractv8hi_sse2): New pattern.
3756         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3757         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3758         (*vec_extract<mode>_mem): New insn and split pattern.
3760 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
3762         * config/arm/arm.c (arm_asan_shadow_offset): New function.
3763         (TARGET_ASAN_SHADOW_OFFSET): Define.
3764         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3765         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3767 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3769         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3770         (incr_vec_index): Return -1 if increment not found.
3771         (create_add_on_incoming_edge): Assert if increment not found.
3772         (record_increment): Limit number of increments recorded.
3773         (all_phi_incrs_profitable): Return false if an increment not found.
3774         (replace_profitable_candidates): Don't process increments that were
3775         not recorded.
3776         (analyze_candidates_and_replace): Limit size of incr_vec.
3778 2013-05-07  Richard Biener  <rguenther@suse.de>
3780         * calls.c (special_function_p): setjmp-like functions are leaf.
3781         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3782         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3784 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
3786         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3787         (aarch64_simd_mov<mode>): New expander.
3788         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3789         (aarch64_simd_mov_to_<mode>high): Likewise.
3790         (aarch64_simd_mov_from_<mode>low): Likewise.
3791         (aarch64_simd_mov_from_<mode>high): Likewise.
3792         (aarch64_dup_lane<mode>): Update.
3793         (aarch64_dup_lanedi): New instruction pattern.
3794         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3795         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3797 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3799         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3800         (replace_mult_candidate): Remove unnecessary argument; remove
3801         unnecessary parameter from call to introduce_cast_before_cand.
3802         (replace_unconditional_candidate): Remove unnecessary parameter
3803         from call to replace_mult_candidate.
3804         (replace_conditional_candidate): Likewise.
3805         (insert_initializers): Use make_temp_ssa_name.
3806         (introduce_cast_before_cand): Remove unnecessary argument; use
3807         make_temp_ssa_name.
3808         (replace_one_candidate): Remove unnecessary argument; remove
3809         unnecessary parameter from calls to introduce_cast_before_cand.
3810         (replace_profitable_candidates): Remove unnecessary parameters
3811         from calls to replace_one_candidate.
3813 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3815         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3816         phi def as possibly hiding a basis for a CAND_ADD whose operands
3817         have been commuted in the analysis.
3818         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3820 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3822         * config/aarch64/aarch64.md
3823         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3824         shift value between 0-4.
3826 2013-05-07  Richard Biener  <rguenther@suse.de>
3828         * double-int.h (rshift): New overload.
3829         * double-int.c (rshift): New function.
3830         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3831         (create_reference_ops_from_ref): Remove.
3832         (vn_reference_insert): Use shared ops for constructing the
3833         reference and copy it.
3835 2013-05-07  Richard Biener  <rguenther@suse.de>
3837         PR middle-end/57190
3838         * tree-eh.c (sink_clobbers): Properly propagate
3839         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3841 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
3843         PR tree-optimization/57149
3844         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3845         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3846         collect_phi_def_edges, execute_late_warn_uninitialized): Use
3847         uninit_undefined_value_p instead of ssa_undefined_value_p.
3849         PR debug/57184
3850         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3851         for modifier == EXPAND_INITIALIZER.
3853 2013-05-07  Anton Blanchard  <anton@samba.org>
3855         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3856         for powerpc64 little endian.
3857         * configure: Regenerate.
3859 2013-05-06  Graham Stott  <grahams@btinternet.com>
3861         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3862         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3863         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3864         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3866 2013-05-06  Graham Stott  <grahams@btinternet.com>
3868         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3869         codes which allow non-lvalues.
3871 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
3873         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3874         components are all 1s.
3875         (integer_minus_onep): New function.
3876         * tree.h (integer_minus_onep): Declare it.
3877         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3878         integer_minus_onep instead of integer_all_onesp.
3880 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3882         PR target/52933
3883         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3884         variations of these patterns.
3886 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3888         * config/i386/i386.md (isa): Add x64_sse4 member.
3889         (enabled): Handle x64_sse4.
3890         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3891         instruction for 64bit SSE4_1 targets.  Update insn attributes.
3892         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3893         instruction for SSE4_1 targets.  Update insn attributes.
3894         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3895         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3896         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3897         const_1 selector.
3898         (*vec_extractv4si): Rename from *sse4_1_pextrd.
3899         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3900         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3902 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3904         PR target/57108
3905         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3907 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
3909         * final.c (do_assembler_dialects): Don't handle curly braces and
3910         vertical bar escaped by % as dialect delimiters.
3911         (output_asm_insn): Print curly braces and vertical bar if escaped
3912         by % and ASSEMBLER_DIALECT defined.
3913         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3914         * doc/tm.texi: Regenerated.
3916 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3918         * config/mips/mips.c: Include tree-pass.h.
3919         (mips_reorg): Split in pre- and post-dbr_schedule parts.
3920         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3921         (pass_mips_machine_reorg2): New machine specific pass.
3922         (insert_pass_mips_machine_reorg2): New pass plugin definition.
3923         (mips_option_override): Register the new pass.
3924         * rtl.h (cleanup_barriers): Remove prototype.
3925         (dbr_schedule): Likewise.
3926         * jump.c (cleanup_barriers): Make static.
3927         * reorg.c (dbr_schedule): Likewise.
3929 2013-05-06  Richard Biener  <rguenther@suse.de>
3931         PR tree-optimization/57185
3932         * tree-parloops.c (add_field_for_reduction): Handle anonymous
3933         SSA names properly.
3935 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3937         PR target/57106
3938         * config/i386/i386.c (add_parameter_dependencies): Add dependence
3939         between "first_arg" and "insn", not "last" and "insn".
3941 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3943         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3944         (find_candidates_in_block): Re-enable slsr_process_phi.
3945         (create_phi_basis): Fix double counting of candidate adjustment.
3947 2013-05-06  Richard Biener  <rguenther@suse.de>
3949         PR middle-end/57147
3950         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3951         the edge is also fallthru, preserve it and just clear the
3952         abnormal flag.
3953         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3954         also complex, preserve that and just clear the fallthru flag.
3955         * tree-inline.c (update_ssa_across_abnormal_edges): Also
3956         update virtual operands.
3958 2013-05-06  Alan Modra  <amodra@gmail.com>
3960         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3961         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3962         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3963         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3964         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3965         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3967 2013-05-06  Alan Modra  <amodra@gmail.com>
3969         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3970         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
3971         (DEFAULT_ASM_ENDIAN): Define.
3972         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3973         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3974         Update -K PIC clause from sysv4.h.
3975         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3976         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3978 2013-05-06  Alan Modra  <amodra@gmail.com>
3980         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3981         twice for little-endian.
3982         (ashrdi3_no_power, ashrdi3): Support little-endian.
3984 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3986         PR target/55303
3987         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3988         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3989         related expanders.
3990         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3991         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3992         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3993         New predicates.
3995 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3996             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3998         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3999         * config/pa/pa.opt: Make mbig-switch a no-op.
4000         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4001         (CASE_VECTOR_MODE): Always return SImode.
4002         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4003         for the !TARGET_BIG_SWITCH case.
4004         * config/pa/pa-linux.h: Likewise.
4005         * config/pa/pa-openbsd.h: Likewise.
4006         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4007         * config/pa/pa.md (short_jump): Remove define_insn.
4008         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4009         (casesi0): Remove define_insn.
4010         (type): Remove btable_branch.
4011         (pa_combine_type): Likewise.
4012         (in_nullified_branch_delay): Likewise.
4013         (in_call_delay): Likewise.
4014         (define_delay): Likewise.
4015         (define_insn_reservation "Z3"): Likewise.
4016         (define_insn_reservation "Z4"): Likewise.
4017         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4018         (pa_adjust_insn_length): Remove adjustment for btable branches.
4019         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4020         and mno-big-switch
4022 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4024         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4025         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4026         Add m->r,x alternatives.
4027         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4028         splitters using SWI48x mode iterator.
4029         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4030         TARGET_64BIT.  Add m->x alternative.
4031         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4032         Add o->x alternative.  Enable for TARGET_SSE.
4033         (sse_storeq): Remove expander.
4034         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4035         with memory input operand.
4036         (*vec_extractv2di_1 splitter): New.
4037         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4038         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4040 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4042         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4043         (INT_LOWPART): Delete.
4044         (extract_MB): Adjust.
4045         (extract_ME): Adjust.
4046         (print_operand): Adjust.
4048 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4050         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4051         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4052         (reg_or_logical_cint_operand, easy_fp_constant,
4053         logical_const_operand): Delete "CONST_DOUBLE" case.
4054         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4055         "HOST_BITS_PER_WIDE_INT == 64" test.
4056         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4057         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4058         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4059         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4060         test.
4061         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4062         CONST_DOUBLE DImode/VOIDmode case.
4063         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4064         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4065         CONST_DOUBLE VOIDmode case.
4066         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4067         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4068         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4069         Delete CONST_DOUBLE case.
4070         (splitters for mov FMOVE64 const_double): Delete
4071         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4072         "HOST_BITS_PER_WIDE_INT >= 64" test.
4073         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4074         case.
4075         (mov DI const_double): Delete.
4077 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4079         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4080         on op shows all bits zero in mode of a lowpart subreg, return zero.
4082 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4084         PR target/57150
4085         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4086         to save TFmode registers and DImode to save TImode registers for
4087         caller save operations.
4088         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4089         mark being partially clobbered since they only use the first
4090         double word.
4092         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4093         and TDmode only use the upper 64-bits of each VSX register.
4095 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4097         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4098         (find_candidates_in_block): Disable slsr_process_phi.
4100 2013-05-03  Guozhi Wei  <carrot@google.com>
4102         * coverage.c (coverage_obj_init): Move the construction of gcov
4103         constructor to ...
4104         (build_init_ctor): ... here.
4106 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4108         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4109         (slsr_cand_d): Redefine def_phi.
4110         (stride_status, phi_adjust_status, count_phis_status): New enums.
4111         (find_phi_def): New.
4112         (find_basis_for_base_expr): New.
4113         (find_basis_for_candidate): Handle hidden bases.
4114         (alloc_cand_and_find_basis): Handle phi candidates.
4115         (slsr_process_phi): New.
4116         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4117         (create_mul_imm_cand): Likewise.
4118         (create_add_ssa_cand): Exclude phi base candidates.
4119         (create_add_imm_cand): Likewise.
4120         (slsr_process_cast): Likewise.
4121         (slsr_process_copy): Likewise.
4122         (find_candidates_in_block): Handle phi candidates.
4123         (dump_candidate): Likewise.
4124         (unconditional_cands): Delete.
4125         (unconditional_cands_with_known_stride_p): Delete.
4126         (phi_dependent_cand_p): New.
4127         (cand_increment): Handle phi-dependent candidates.
4128         (replace_dependent): Delete.
4129         (replace_mult_candidate): New.
4130         (replace_unconditional_candidate): New.
4131         (incr_vec_index): Move to avoid forward reference.
4132         (create_add_on_incoming_edge): New.
4133         (create_phi_basis): New.
4134         (replace_dependents): Delete.
4135         (replace_conditional_candidate): New.
4136         (phi_add_costs): New.
4137         (replace_uncond_cands_and_profitable_phis): New.
4138         (record_increment): Handle phi adjustments.
4139         (record_phi_increments): New.
4140         (record_increments): Handle phi adjustments.
4141         (phi_incr_cost): New.
4142         (lowest_cost_path): Handle phis.
4143         (total_savings): Likewise.
4144         (analyze_increments): Likewise.
4145         (ncd_with_phi): New.
4146         (ncd_of_cand_and_phis): New.
4147         (nearest_common_dominator_for_cands): Handle phi increments.
4148         (all_phi_incrs_profitable): New.
4149         (replace_profitable_candidates): Handle phi-dependent candidates.
4150         (analyze_candidates_and_replace): Likewise.
4152 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4154         PR bootstrap/57154
4155         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4156         do not exceed REG_BR_PROB_BASE.
4158 2013-05-03  Jeff Law  <law@redhat.com>
4160         PR tree-optimization/57144
4161         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4162         operand of the condition will bit into the new type when eliminating
4163         a cast feeding a condition.
4165 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4167         PR rtl-optimization/57130
4168         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4169         of COMPARE as in_code to the recursive call if needed.
4171 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4173         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4174         (enabled): Handle new members.
4175         * config/i386/sse.md (*vec_concatv2si): Merge from
4176         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4177         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4179 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4181         PR tree-optimization/57027
4182         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4183         for fnms opportunity, check we got the prerequisite kind
4184         of tree / gimple before using accessor functions.
4186 2013-05-03  Richard Biener  <rguenther@suse.de>
4188         * double-int.h (lshift): New overload without precision
4189         and arith argument.
4190         (operator *=, operator +=, operator -=): Move ...
4191         * double-int.c (operator *=, operator +=, operator -=): ... here
4192         and implement more efficiently.
4193         (mul_double_with_sign): Remove.
4194         (lshift_double): Adjust to take unsinged shift argument, push
4195         dispatching code to callers.
4196         (mul_double_wide_with_sign): Add early out for callers that
4197         are not interested in high parts or overflow.
4198         (lshift): New function.
4199         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4200         dispatch code here.
4201         (lrotate, rrotate): Use logical shifts.
4202         * expr.c (get_inner_reference): Use lshift.
4203         * fixed-value.c (do_fixed_divide): Likewise.
4204         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4205         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4206         (indirect_refs_may_alias_p): Likewise.
4207         (stmt_kills_ref_p_1): Likewise.
4209 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4211         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4213 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4215         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4216         scalar form of FABD instruction.
4218 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4220         * lra-constraints.c (process_alt_operands): Add checking alt
4221         number to choose the best alternative.
4223 2013-05-02  Richard Biener  <rguenther@suse.de>
4225         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4226         bitmap and its handling.
4227         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4229 2013-05-02  Richard Biener  <rguenther@suse.de>
4231         PR middle-end/57140
4232         * tree-inline.c (copy_loops): Properly handle removed loops.
4233         (copy_cfg_body): Mark destination loops for fixup if source
4234         loops needed fixup.
4236 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4238         PR target/56732
4239         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4240         generating simple_return for naked functions.
4242 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4244         PR middle-end/56988
4245         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4246         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4247         flags match.
4248         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4249         ipa_agg_replacement_value structures.
4250         (known_aggs_to_agg_replacement_list): Likewise.
4251         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4252         (read_agg_replacement_chain): Likewise.
4253         (ipcp_transform_function): Also check that by_ref flags match.
4255 2013-05-02  Richard Biener  <rguenther@suse.de>
4257         * graphds.h (struct graph): Add obstack member.
4258         * graphds.c (new_graph): Initialize obstack and allocate
4259         vertices from it.
4260         (add_edge): Allocate edge from the obstack.
4261         (free_graph): Free the obstack instead of all edges and vertices.
4263 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4265         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4266         divides.
4267         * cfg.c (update_bb_profile_for_threading): Ditto.
4268         * tree-inline.c (copy_bb): Ditto.
4269         (copy_edges_for_bb): Ditto.
4270         (initialize_cfun): Ditto.
4271         (copy_cfg_body): Ditto.
4272         (expand_call_inline): Ditto.
4273         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4274         (estimate_node_size_and_time): Ditto.
4275         (inline_merge_summary): Ditto.
4276         * cgraphclones.c (cgraph_clone_edge): Ditto.
4277         (cgraph_clone_node): Ditto.
4278         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4279         (compute_trg_info): Ditto.
4281 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4283         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4284         S reg when fp attribute set.
4285         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4287 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4289         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4290         New pattern.
4291         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4292         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4293         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4295 2013-05-02  Richard Biener  <rguenther@suse.de>
4297         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4298         (struct instantiate_cache_entry): New type.
4299         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4300         (struct instantiate_cache_type): New type.
4301         (set_instantiated_value, get_instantiated_value): Remove.
4302         (get_instantiated_value_entry): New function.
4303         (instantiate_scev_name): Use the new cache and adjust.
4304         (instantiate_scev_poly): Adjust.
4305         (instantiate_scev_binary): Likewise.
4306         (instantiate_array_ref): Likewise.
4307         (instantiate_scev_convert): Likewise.
4308         (instantiate_scev_not): Likewise.
4309         (instantiate_scev_3): Likewise.
4310         (instantiate_scev_2): Likewise.
4311         (instantiate_scev_r): Likewise.
4312         (instantiate_scev): Likewise.
4313         (resolve_mixers): Likewise.
4315 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4317         PR target/57091
4318         * lra-constraints.c (best_small_class_operands_num): Remove.
4319         (process_alt_operands): Remove small_class_operands_num.  Take
4320         small classes operands into losers and only if the operand is not
4321         matched.  Modify debugging output.
4322         (curr_insn_transform): Remove best_small_class_operands_num.
4323         Print insn name.
4325 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4327         * config/aarch64/aarch64-builtins.c
4328         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4329         * config/aarch64/aarch64-simd-builtins.def
4330         (reduc_splus_): Add new modes.
4331         (reduc_uplus_): New.
4332         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4333         (reduc_uplus_v4sf): Likewise.
4334         (reduc_splus_v4sf): Likewise.
4335         (aarch64_addv<mode>): Likewise.
4336         (reduc_uplus_<mode>): Likewise.
4337         (reduc_splus_<mode>): Likewise.
4338         (aarch64_addvv2di): Likewise.
4339         (reduc_uplus_v2di): Likewise.
4340         (reduc_splus_v2di): Likewise.
4341         (aarch64_addvv2si): Likewise.
4342         (reduc_uplus_v2si): Likewise.
4343         (reduc_splus_v2si): Likewise.
4344         (reduc_<sur>plus_<mode>): New.
4345         (reduc_<sur>plus_v2di): Likewise.
4346         (reduc_<sur>plus_v2si): Likewise.
4347         (reduc_<sur>plus_v4sf): Likewise.
4348         (aarch64_addpv4sf): Likewise.
4349         * config/aarch64/arm_neon.h
4350         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4351         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4352         add UNSPEC_SADDV, UNSPEC_UADDV.
4353         (SUADDV): New.
4354         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4356 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4358         * config/aarch64/arm_neon.h
4359         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4361 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4363         * config/aarch64/aarch64-builtins
4364         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4366 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4368         * config/aarch64/aarch64-simd-builtins.def
4369         (reduc_smax_): New.
4370         (reduc_smin_): Likewise.
4371         (reduc_umax_): Likewise.
4372         (reduc_umin_): Likewise.
4373         (reduc_smax_nan_): Likewise.
4374         (reduc_smin_nan_): Likewise.
4375         (fmax): Remove.
4376         (fmin): Likewise.
4377         (smax): Update for V2SF, V4SF and V2DF modes.
4378         (smin): Likewise.
4379         (smax_nan): New.
4380         (smin_nan): Likewise.
4381         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4382         (<su><maxmin><mode>3): ...This, refactor.
4383         (s<maxmin><mode>3): New.
4384         (<maxmin_uns><mode>3): Likewise.
4385         (reduc_<maxmin_uns>_<mode>): Refactor.
4386         (reduc_<maxmin_uns>_v4sf): Likewise.
4387         (reduc_<maxmin_uns>_v2si): Likewise.
4388         (aarch64_<fmaxmin><mode>: Remove.
4389         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4390         new builtin names.
4391         (vmin<q>_f<32,64>): Likewise.
4392         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4393         (FMAXMIN): New.
4394         (su): Add mappings for smax, smin, umax, umin.
4395         (maxmin): New.
4396         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4397         (FMAXMIN): Rename as...
4398         (FMAXMIN_UNS): ...This.
4399         (maxminv): Remove.
4400         (fmaxminv): Likewise.
4401         (fmaxmin): Likewise.
4402         (maxmin_uns): New.
4403         (maxmin_uns_op): Likewise.
4405 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4407         * config/aarch64/arm_neon.h
4408         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4409         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4410         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4412 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4414         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4415         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4417 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4419         * config/aarch64/aarch64-simd.md
4420         (vcond<mode>_internal): Handle special cases for constant masks.
4421         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4422         (vcondu<mode><mode>): Likewise.
4423         (vcond<v_cmp_result><mode>): New.
4425 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4427         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4428         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4429         * config/aarch64/aarch64-simd-builtins.def
4430         (cmeq): Update to BUILTIN_VALLDI.
4431         (cmgt): Likewise.
4432         (cmge): Likewise.
4433         (cmle): Likewise.
4434         (cmlt): Likewise.
4435         * config/aarch64/arm_neon.h
4436         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4437         to builtins or C as appropriate.
4439 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4441         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4442         (cmgeu): ...This.
4443         (cmhi): Rename to...
4444         (cmgtu): ...This.
4445         * config/aarch64/aarch64-simd.md
4446         (simd_mode): Add SF.
4447         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4448         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4449         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4450         (cstore<mode>_neg): ...This.
4451         * config/aarch64/iterators.md
4452         (VALLF): new.
4453         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4454         (COMPARISONS): New.
4455         (UCOMPARISONS): Likewise.
4456         (optab): Add missing comparisons.
4457         (n_optab): New.
4458         (cmp_1): Likewise.
4459         (cmp_2): Likewise.
4460         (CMP): Likewise.
4461         (cmp): Remove.
4462         (VCMP_S): Likewise.
4463         (VCMP_U): Likewise.
4464         (V_cmp_result): Add DF, SF modes.
4465         (v_cmp_result): Likewise.
4466         (v): Likewise.
4467         (vmtype): Likewise.
4468         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4470 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4472         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4473         define_insn to define_insn_and_split.
4474         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4475         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4476         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4477         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4478         (thumb2_negscc): Likewise.
4480 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4482         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4484 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4486         * config/arm/thumb2.md: Remove trailing whitespaces.
4488 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4490         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4491         Use gen_int_mode rather than GEN_INT.
4493 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4495         * value-prof.c (stream_in_histogram_value): Remove the strayed
4496         debug_gimple_stmt.
4498 2013-04-30  Richard Biener  <rguenther@suse.de>
4500         PR middle-end/57122
4501         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4503 2013-04-30  Richard Biener  <rguenther@suse.de>
4505         PR middle-end/57107
4506         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4508 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4510         PR rtl-optimization/56957
4511         PR rtl-optimization/57105
4512         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4513         variable.  Use just INSN_UID for determining whether an insn
4514         should be only disconnected from the insn stream.
4515         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4517 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4519         PR tree-optimization/57104
4520         * tsan.c (instrument_expr): Don't instrument accesses to
4521         DECL_HARD_REGISTER VAR_DECLs.
4523 2013-04-30  Richard Biener  <rguenther@suse.de>
4525         * function.h (loops_for_fn): New inline function.
4526         (set_loops_for_fn): Likewise.
4527         * cfgloop.h (place_new_loop): Add struct function parameter.
4528         (get_loop): Likewise.
4529         (get_loops): Likewise.
4530         (number_of_loops): Likewise.
4531         (fel_next): Adjust.
4532         (fel_init): Likewise.
4533         * cfg.c (get_loop_copy): Adjust.
4534         * cfgloop.c (flow_loops_dump): Likewise.
4535         (record_loop_exits): Likewise.
4536         (verify_loop_structure): Likewise.
4537         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4538         (estimate_reg_pressure_cost): Likewise.
4539         (mark_loop_exit_edges): Likewise.
4540         * cfgloopmanip.c (place_new_loop): Likewise.
4541         (add_loop): Likewise.
4542         (duplicate_loop): Likewise.
4543         * graph.c (draw_cfg_nodes): Likewise.
4544         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4545         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4546         (extract_affine_chrec): Likewise.
4547         (build_scop_iteration_domain): Likewise.
4548         * graphite.c (graphite_initialize): Likewise.
4549         * ira-build.c (create_loop_tree_nodes): Likewise.
4550         (more_one_region_p): Likewise.
4551         (rebuild_regno_allocno_maps): Likewise.
4552         (mark_loops_for_removal): Likewise.
4553         (mark_all_loops_for_removal): Likewise.
4554         (remove_unnecessary_regions): Likewise.
4555         (ira_build): Likewise.
4556         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4557         * loop-init.c (fix_loop_structure): Likewise.
4558         (gate_rtl_move_loop_invariants): Likewise.
4559         (gate_rtl_unswitch): Likewise.
4560         (gate_rtl_unroll_and_peel_loops): Likewise.
4561         (rtl_doloop): Likewise.
4562         * lto-streamer-in.c (input_cfg): Likewise.
4563         * lto-streamer-out.c (output_cfg): Likewise.
4564         * modulo-sched.c (sms_schedule): Likewise.
4565         * predict.c (tree_estimate_probability): Likewise.
4566         (tree_estimate_probability_driver): Likewise.
4567         (estimate_loops): Likewise.
4568         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4569         (move_sese_region_to_fn): Likewise.
4570         (debug_loop_num): Likewise.
4571         * tree-chrec.c (chrec_evaluate): Likewise.
4572         (hide_evolution_in_other_loops_than_loop): Likewise.
4573         (chrec_component_in_loop_num): Likewise.
4574         (reset_evolution_in_loop): Likewise.
4575         (evolution_function_is_invariant_rec_p): Likewise.
4576         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4577         * tree-inline.c (copy_loops): Likewise.
4578         (copy_cfg_body): Likewise.
4579         (tree_function_versioning): Likewise.
4580         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4581         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4582         Likewise.
4583         (add_to_evolution_1): Likewise.
4584         (scev_const_prop): Likewise.
4585         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4586         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4587         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4588         (tree_ssa_lim_initialize): Likewise.
4589         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4590         (verify_loop_closed_ssa): Likewise.
4591         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4592         (tree_ssa_loop_im): Likewise.
4593         (tree_ssa_loop_unswitch): Likewise.
4594         (tree_vectorize): Likewise.
4595         (check_data_deps): Likewise.
4596         (tree_ssa_loop_ivcanon): Likewise.
4597         (tree_ssa_loop_bounds): Likewise.
4598         (tree_complete_unroll): Likewise.
4599         (tree_complete_unroll_inner): Likewise.
4600         (tree_parallelize_loops): Likewise.
4601         (tree_ssa_loop_prefetch): Likewise.
4602         (tree_ssa_loop_ivopts): Likewise.
4603         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4604         * tree-vectorizer.c (vectorize_loops): Likewise.
4606 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4608         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4609         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4610         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4611         with EABI_LINK_SPEC.
4613 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4615         PR target/44578
4616         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4617         alternative.
4619 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4621         PR target/57097
4622         * lra-constraints.c (process_alt_operands): Discourage a bit more
4623         using memory for pseudos.  Print cost dump for alternatives.
4624         Modify cost values for conflicts with early clobbers.
4625         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4627 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4629         PR target/57098
4630         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4632 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4634         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4635         from/to S register.
4636         (movdi_aarch64): Support LDR/STR from/to D register.
4638 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4640         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4641         or higher by default.
4643 2013-04-29  Richard Biener  <rguenther@suse.de>
4645         PR middle-end/57075
4646         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4647         even if not adding abnormal edges for calls that can make
4648         abnormal gotos.
4650 2013-04-29  Richard Biener  <rguenther@suse.de>
4652         PR middle-end/57103
4653         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4654         TREE_BLOCK.
4655         (move_stmt_r): Remove redundant checking.
4657 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4659         PR bootstrap/57077
4660         * basic-block.h (apply_scale): New function.
4661         (apply_probability): Use apply_scale.
4662         * gimple-streamer-in.c (input_bb): Ditto.
4663         * lto-streamer-in.c (input_cfg): Ditto.
4664         * lto-cgraph.c (merge_profile_summaries): Ditto.
4665         * tree-optimize.c (execute_fixup_cfg): Ditto.
4666         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4667         (copy_edges_for_bb): Ditto.
4668         (copy_cfg_body): Ditto.
4670 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4672         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4673         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4674         (tail_merge_optimize): Handle current_loops == NULL.
4676 2013-04-26  Jeff Law  <law@redhat.com>
4678         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4679         (simplify_cond_using_ranges): Generalize code to simplify
4680         COND_EXPRs where one argument is a constant and the other
4681         is an SSA_NAME created by an integral type conversion.
4683 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4685         * config/arm/arm.md (store_minmaxsi): Use only when
4686         optimize_insn_for_size_p.
4688 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4690         PR target/57108
4691         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4693 2013-04-29  Richard Biener  <rguenther@suse.de>
4695         PR middle-end/57089
4696         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4697         loop tree make sure to schedule a fixup for the child as well.
4698         (expand_omp_for_generic): Properly add loops.
4699         (expand_omp_for_static_nochunk): Likewise.
4700         (expand_omp_for_static_chunk): Likewise.
4701         (expand_omp_for): For the degenerate case fixup loops.
4702         (expand_omp_sections): Fix default bb placement in loops.
4703         (expand_omp_atomic_pipeline): Properly add loops.
4705 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4707         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4709 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4711         * tree-ssa-tail-merge.c: Update header comment.
4713 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4715         * config/aarch64/arm_neon.h
4716         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4717         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4718         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4719         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4720         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4721         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4722         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4723         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4725 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4727         * config/aarch64/aarch64-simd.md
4728         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4729         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4730         fix_trunc, fixuns_trunc.
4731         (ftrunc<VDQF:mode>2): New.
4732         * config/aarch64/iterators.md (optab): Add fix, fixuns.
4733         (fix_trunc_optab): New.
4735 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4737         * config/aarch64/aarch64-builtins.c
4738         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4739         iceilf, lround, iroundf.
4741 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4743         PR target/54349
4744         * config/i386/i386.h (enum ix86_tune_indices)
4745         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4746         New, split from X86_TUNE_INTER_UNIT_MOVES.
4747         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4748         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4749         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4750         (TARGET_INTER_UNIT_MOVES): Remove.
4751         * config/i386/i386.c (initial_ix86_tune_features): Update.
4752         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4753         (ix86_expand_convert_uns_didf_sse): Use
4754         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4755         (ix86_expand_vector_init_one_nonzero): Ditto.
4756         (ix86_expand_vector_init_interleave): Ditto.
4757         (inline_secondary_memory_needed): Return true for moves from SSE class
4758         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4759         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4760         * config/i386/constraints.md (Yi, Ym): Depend on
4761         TARGET_INTER_UNIT_MOVES_TO_VEC.
4762         (Yj, Yn): New constraints.
4763         * config/i386/i386.md (*movdi_internal): Change constraints of
4764         operand 1 from Yi to Yj and from Ym to Yn.
4765         (*movsi_internal): Ditto.
4766         (*movdf_internal): Ditto.
4767         (*movsf_internal): Ditto.
4768         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4769         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4770         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4771         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4772         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4773         * config/i386/sse.md (movdi_to_sse): Ditto.
4774         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4775         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4776         TARGET_INTER_UNIT_MOVES.
4777         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4778         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4779         instead of TARGET_INTER_UNIT_MOVES.
4780         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4781         operand 1 from Yi to Yj and from Ym to Yn.
4783 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4785         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4786         (float_truncate_hi_): Likewise.
4787         (float_extend_lo_): Likewise.
4788         (float_truncate_lo_): Likewise.
4789         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4790         (aarch64_float_extend_lo_v2df): Likewise.
4791         (vec_unpacks_hi_v4sf): Likewise.
4792         (aarch64_float_truncate_lo_v2sf): Likewise.
4793         (aarch64_float_truncate_hi_v4sf): Likewise.
4794         (vec_pack_trunc_v2df): Likewise.
4795         (vec_pack_trunc_df): Likewise.
4797 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4799         * config/aarch64/aarch64-builtins.c
4800         (aarch64_fold_builtin): Fold float conversions.
4801         * config/aarch64/aarch64-simd-builtins.def
4802         (floatv2si, floatv4si, floatv2di): New.
4803         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4804         * config/aarch64/aarch64-simd.md
4805         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4806         * config/aarch64/iterators.md (FLOATUORS): New.
4807         (optab): Add float, floatuns.
4808         (su_optab): Likewise.
4810 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4812         * config/aarch64/aarch64-builtins.c
4813         (aarch64_builtin_vectorized_function): Use new names for
4814         fcvt builtins.
4815         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4816         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4817         (fcvtzu): Split as...
4818         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4819         (fcvtas): Split as...
4820         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4821         (fcvtau): Split as...
4822         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4823         (fcvtps): Split as...
4824         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4825         (fcvtpu): Split as...
4826         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4827         (fcvtms): Split as...
4828         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4829         (fcvtmu): Split as...
4830         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4831         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4832         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4833         (lfrintnusf, lfrintnudf): Likewise.
4834         * config/aarch64/aarch64-simd.md
4835         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4836         define_insn.
4837         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4838         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4839         (fcvt_pattern): Likewise.
4841 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4843         * config/aarch64/aarch64-simd.md
4844         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4845         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4847 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4849         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4850         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4851         (vrnd<a,m,n,p>_f32): Implement using builtins.
4852         (vrnd<i,x><q>_f<32, 64>): New.
4854 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4856         * config/aarch64/aarch64-builtins.c
4857         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4858         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4859         (frintz): Rename to...
4860         (btrunc): ...this.
4861         (frintp): Rename to...
4862         (ceil): ...this.
4863         (frintm): Rename to...
4864         (floor): ...this.
4865         (frinti): Rename to...
4866         (nearbyint): ...this.
4867         (frintx): Rename to...
4868         (rint): ...this.
4869         (frinta): Rename to...
4870         (round): ...this.
4871         * config/aarch64/aarch64-simd.md
4872         (aarch64_frint<frint_suffix><mode>): Delete.
4873         (<frint_pattern><mode>2): Convert to insn.
4874         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4875         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4876         (frint_pattern): Likewise.
4877         (frint_suffix): Likewise.
4879 2013-04-29  Richard Biener  <rguenther@suse.de>
4881         PR tree-optimization/57081
4882         * loop-init.c: Include tree-flow.h.
4883         (loop_optimizer_finalize): Free number of iteration estimates.
4884         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4886 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
4888         PR tree-optimization/57083
4889         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4890         non-singleton shift count range, zero extend low_bound for uns case.
4892         * config/i386/predicates.md (general_vector_operand): New predicate.
4893         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4894         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4895         if they aren't nonimmediate operands.  If their original values
4896         satisfy const_vector_equal_evenodd_p, don't shift them.
4897         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4898         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
4899         if not nonimmediate_operand.
4900         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4901         instead of register_operand.
4902         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4904 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4906         * stor-layout.c (finalize_size_functions): Allocate a structure and
4907         reset cfun before dumping the functions.
4909 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
4911         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4913         PR target/56866
4914         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4915         use xop_pmacsdqh if uns_p.
4916         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4917         the immediate rotate count.
4919 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
4921         * rtl.h (struct rtx_def): Add comment for field jump.
4922         (LRA_SUBREG_P): New macro.
4923         * recog.c (register_operand): Check LRA_SUBREG_P.
4924         * lra.c (lra): Add note at the end of RTL code. Align non-empty
4925         stack frame.
4926         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4927         (lra_final_code_change): Skip subreg change for operators.
4928         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4929         if there are no operand changes.
4930         * lra-constraints.c (curr_insn_set): New.
4931         (match_reload): Set LRA_SUBREG_P.
4932         (emit_spill_move): Ditto.
4933         (check_and_process_move): Use curr_insn_set. Process only single
4934         set insns.  Don't initialize sec_mem_p and change_p.
4935         (simplify_operand_subreg): Use LRA_SUBREG_P.
4936         (reg_in_class_p): New function.
4937         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
4938         of #ifdef.  Add code to remove cycling.
4939         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4940         non-null disp.  Reload inner instead of disp when base and index
4941         are null.  Try to put lo_sum into register.
4942         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4943         (check_and_process_move): Move code for move cost check to
4944         simple_move_p.  Remove equiv_substitution.
4945         (simple_move_p): New function.
4946         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
4947         curr_insn_set.  Call check_and_process_move only for single set
4948         insns.  Use the new function.  Move call of check_and_process_move
4949         after operand equiv substitution and address process.
4951 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4953         PR go/57045
4954         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4955         with nonlocal goto receivers or returns twice calls, ignore
4956         unininitialized values from abnormal edges to nl goto receiver
4957         or returns twice call.
4959 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4961         PR tree-optimization/57051
4962         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4963         and VEC_RSHIFT_EXPR if shift count is a multiple of element
4964         bitsize.
4966 2013-04-26  Richard Biener  <rguenther@suse.de>
4968         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4969         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
4970         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4971         (fixup_loop_arrays_after_move): New function.
4972         (move_sese_region_to_fn): Properly outline the loop tree parts
4973         of the SESE region.
4975 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
4977         * config/i386/i386.md (type, unit): Fix long lines.
4979 2013-04-26  Richard Biener  <rguenther@suse.de>
4981         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4982         (lto-streamer-out.o): Likewise.
4983         * cfgloop.c (init_loops_structure): Export, add struct function
4984         argument and adjust.
4985         (flow_loops_find): Adjust.
4986         * cfgloop.h (enum loop_estimation): Add EST_LAST.
4987         (init_loops_structure): Declare.
4988         * lto-streamer-in.c: Include cfgloop.h.
4989         (input_cfg): Input the loop tree.
4990         * lto-streamer-out.c: Include cfgloop.h.
4991         (output_cfg): Output the loop tree.
4992         (output_struct_function_base): Do not drop PROP_loops.
4994 2013-03-26  Richard Biener  <rguenther@suse.de>
4996         * tree-cfg.c (execute_build_cfg): Build the loop tree.
4997         (pass_build_cfg): Provide PROP_loops.
4998         (move_sese_region_to_fn): Remove loops that are outlined into fn
4999         for now.
5000         * tree-inline.c: Include cfgloop.h.
5001         (initialize_cfun): Do not drop PROP_loops.
5002         (copy_loops): New function.
5003         (copy_cfg_body): Copy loop structure.
5004         (tree_function_versioning): Initialize destination loop tree.
5005         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5006         (pass_parallelize_loops): Do IL verification.
5007         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5008         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5009         the CFG make sure we fixup loops as well.
5010         * tree-ssa-tail-merge.c: Include cfgloop.h.
5011         (replace_block_by): When merging loop latches mark loops for fixup.
5012         * lto-streamer-out.c (output_struct_function_base): Drop
5013         PROP_loops for now.
5014         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5015         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5016         * ipa-split.c: Include cfgloop.h.
5017         (split_function): Add the new return block to the loop tree root.
5018         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5019         whether we have removed the forwarder block.
5020         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5021         * cfgloop.h (place_new_loop): Declare.
5022         * cfgloopmanip.c (place_new_loop): Export.
5023         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5024         (tree-switch-conversion.o): Likewise.
5025         (tree-complex.o): Likewise.
5026         (tree-inline.o): Likewise.
5027         (tree-ssa-tailmerge.o): Likewise.
5028         (ipa-split.o): Likewise.
5029         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5030         (tree-ssa-copy.o): Likewise.
5031         * tree-switch-conversion.c: Include cfgloop.h
5032         (process_switch): If we emit a bit-test cascade, schedule loops
5033         for fixup.
5034         * tree-complex.c: Include cfgloop.h.
5035         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5036         * asan.c: Include cfgloop.h.
5037         (create_cond_insert_point): Properly add new basic-blocks to
5038         loops, schedule loop fixup.
5039         * cfgloop.c (verify_loop_structure): Check that looks are not
5040         marked for fixup.
5041         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5042         to loops.
5043         (expand_omp_for_generic): Likewise.
5044         (expand_omp_sections): Likewise.
5045         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5046         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5047         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5048         is initialized, not when loops are present.
5049         * tree-parloops.c (parallelize_loops): Remove checking here.
5050         * passes.c (init_optimization_passes): Schedule a copy-propagation
5051         pass before complete unrolling of inner loops.
5053 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5055         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5056         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5057         (colorize_init): Add argument to _WIN32 version.
5058         * toplev.c: Include diagnostic-color.h.
5059         (process_options): Default to -fdiagnostics-color=auto if
5060         GCC_COLORS env var is in the environment.
5061         * common.opt (fdiagnostics-color=): Add Var and Init.
5062         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5063         env var is in the environment, the default is auto rather than never.
5065         * diagnostic.h (file_name_as_prefix): Add context argument.
5066         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5067         the string as locus.
5068         * langhooks.c (lhd_print_error_function): Adjust caller.
5070 2013-04-25  Lawrence Crowl  <crowl@google.com>
5072         * var-tracking.c (shared_hash_def::htab):
5073         Change type to hash_table.  Update dependent calls and types.
5075 2013-04-25  Lawrence Crowl  <crowl@google.com>
5077         * Makefile.in: Update as needed below.
5079         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5080         Move declaration to after the type's method definitons.
5082         * attribs.c (htab_t scoped_attributes::attribute_hash):
5083         Change type to hash_table.  Update dependent calls and types.
5085         * bitmap.c (htab_t bitmap_desc_hash):
5086         Change type to hash_table.  Update dependent calls and types.
5088         * cselib.c (htab_t cselib_hash_table):
5089         Change type to hash_table.  Update dependent calls and types.
5091         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5092         (hash_string_slot_node): Move implementation into lto-streamer.h
5093         struct string_slot_hasher.
5094         (eq_string_slot_node): Likewise.
5096         * data-streamer-out.c: Update output_block::string_hash_table
5097         dependent calls and types.
5099         * dwarf2cfi.c (htab_t trace_index):
5100         Change type to hash_table.  Update dependent calls and types.
5102         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5103         Change type to hash_table.  Update dependent calls and types.
5104         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5105         (htab_t optimize_external_refs::map): Likewise.
5106         (htab_t output_comp_unit::extern_map): Likewise.
5107         (htab_t output_comdat_type_unit::extern_map): Likewise.
5108         (htab_t output_macinfo::macinfo_htab): Likewise.
5109         (htab_t optimize_location_lists::htab): Likewise.
5110         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5112         * except.c (htab_t ehspec_hash_type):
5113         Change type to hash_table.  Update dependent calls and types.
5114         (assign_filter_values::ttypes): Likewise.
5115         (assign_filter_values::ehspec): Likewise.
5116         (sjlj_assign_call_site_values::ar_hash): Likewise.
5117         (convert_to_eh_region_ranges::ar_hash): Likewise.
5119         * gcse.c (htab_t pre_ldst_table):
5120         Change type to hash_table.  Update dependent calls and types.
5122         * ggc-common.c (htab_t saving_htab):
5123         Change type to hash_table.  Update dependent calls and types.
5124         (htab_t loc_hash): Likewise.
5125         (htab_t ptr_hash): Likewise.
5126         (call_count): Rename ggc_call_count.
5127         (call_alloc): Rename ggc_call_alloc.
5128         (loc_descriptor): Rename make_loc_descriptor.
5129         (add_statistics): Rename ggc_add_statistics.
5131         * ggc-common.c (saving_htab):
5132         Change type to hash_table.  Update dependent calls and types.
5134         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5135         (push_gimplify_context): Likewise.
5136         (pop_gimplify_context): Likewise.
5137         (struct gimple_temp_hash_elt): Added.
5138         (struct gimplify_hasher): Likewise.
5139         (struct gimplify_ctx.temp_htab):
5140         Change type to hash_table.  Update dependent calls and types.
5142         * gimple-fold.c: Include gimplify-ctx.h.
5144         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5145         Change type to hash_table.  Update dependent calls and types.
5146         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5147         avoid potential global name collision.
5149         * gimplify.c: Include gimplify-ctx.h.
5150         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5151         (htab_t gimplify_ctx::temp_htab):
5152         Update dependent calls and types for new type hash_table.
5153         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5154         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5156         * gimplify-ctx.h: New.
5157         (struct gimple_temp_hash_elt): Move from gimplify.c.
5158         (class gimplify_hasher): New.
5159         (struct gimplify_ctx): Move from gimple.h.
5160         (htab_t gimplify_ctx::temp_htab):
5161         Change type to hash_table.  Update dependent calls and types.
5163         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5164         (htab_t ivs_params::newivs_index):
5165         Change type to hash_table.  Update dependent calls and types.
5166         (htab_t ivs_params::params_index): Likewise.
5167         (htab_t print_generated_program::params_index): Likewise.
5168         (htab_t gloog::newivs_index): Likewise.
5169         (htab_t gloog::params_index): Likewise.
5171         * graphite.c: Include graphite-htab.h.
5172         4htab_t graphite_transform_loops::bb_pbb_mapping):
5173         Change type to hash_table.  Update dependent calls and types.
5175         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5176         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5177         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5179         * graphite-dependences.c: Include graphite-htab.h.
5180         (loop_is_parallel_p): Change hash table type of parameter.
5182         * graphite-htab.h: New.
5183         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5184         (extern find_pbb_via_hash): Move from graphite-poly.h.
5185         (extern loop_is_parallel_p): Move from graphite-poly.h.
5186         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5188         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5189         (extern loop_is_parallel_p): Move to graphite-htab.h.
5190         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5192         * haifa-sched.c (htab_t delay_htab):
5193         Change type to hash_table.  Update dependent calls and types.
5194         (htab_t delay_htab_i2): Likewise.
5196         * ira-color.c (htab_t allocno_hard_regs_htab):
5197         Change type to hash_table.  Update dependent calls and types.
5199         * ira-costs.c (htab_t cost_classes_htab):
5200         Change type to hash_table.  Update dependent calls and types.
5202         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5203         Change type to hash_table.  Update dependent calls and types.
5205         * loop-iv.c (htab_t bivs):
5206         Change type to hash_table.  Update dependent calls and types.
5208         * loop-unroll.c (htab_t opt_info::insns_to_split):
5209         Change type to hash_table.  Update dependent calls and types.
5210         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5212         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5213         (struct string_slot_hasher): New.
5214         (htab_t output_block::string_hash_table):
5215         Change type to hash_table.  Update dependent calls and types.
5217         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5218         (htab_t file_name_hash_table):
5219         Change type to hash_table.  Update dependent calls and types.
5221         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5222         calls and types.
5224         * lto-streamer.c (htab_t tree_htab):
5225         Change type to hash_table.  Update dependent calls and types.
5227         * omp-low.c: Include gimplify-ctx.h.
5229         * passes.c (htab_t name_to_pass_map):
5230         Change type to hash_table.  Update dependent calls and types.
5231         (pass_traverse): Rename to passes_pass_traverse.
5233         * plugin.c (htab_t event_tab):
5234         Change type to hash_table.  Update dependent calls and types.
5236         * postreload-gcse.c (htab_t expr_table):
5237         Change type to hash_table.  Update dependent calls and types.
5238         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5240         * sese.c (debug_rename_map_1): Make extern.
5241         (htab_t copy_bb_and_scalar_dependences::rename_map):
5242         Change type to hash_table.  Update dependent calls and types.
5244         * sese.h (extern debug_rename_map): Move to .c file.
5246         * store-motion.c (htab_t store_motion_mems_table):
5247         Change type to hash_table.  Update dependent calls and types.
5249         * trans-mem.c (htab_t tm_new_mem_hash):
5250         Change type to hash_table.  Update dependent calls and types.
5252         * tree-browser.c (htab_t TB_up_ht):
5253         Change type to hash_table.  Update dependent calls and types.
5255         * tree-cfg.c (htab_t discriminator_per_locus):
5256         Change type to hash_table.  Update dependent calls and types.
5258         * tree-complex.c: Include tree-hasher.h
5259         (htab_t complex_variable_components):
5260         Change type to hash_table.  Update dependent calls and types.
5262         * tree-eh.c (htab_t finally_tree):
5263         Change type to hash_table.  Update dependent calls and types.
5265         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5266         struct int_tree_hasher.
5267         (extern int_tree_map_eq): Likewise.
5268         (uid_decl_map_hash): Removed.
5269         (extern decl_tree_map_eq): Likewise.
5271         * tree-hasher.h: New.
5272         (struct int_tree_hasher): New.
5273         (typedef int_tree_htab_type): New.
5275         * tree-inline.c: Include gimplify-ctx.h.
5277         * tree-mudflap.c: Include gimplify-ctx.h.
5279         * tree-parloops.c: Include tree-hasher.h.
5280         (htab_t eliminate_local_variables_stmt::decl_address):
5281         Change type to hash_table.  Update dependent calls and types.
5282         (htab_t separate_decls_in_region::decl_copies): Likewise.
5284         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5285         Change type to hash_table.  Update dependent calls and types.
5287         * tree-sra.c (candidates):
5288         Change type to hash_table.  Update dependent calls and types.
5290         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5291         in tree-flow.h.
5292         (int_tree_map_hash): Likewise.
5294         * tree-ssa-dom.c (htab_t avail_exprs):
5295         Change type to hash_table.  Update dependent calls and types.
5297         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5298         Change type to hash_table.  Update dependent calls and types.
5300         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5301         Change type to hash_table.  Update dependent calls and types.
5303         * tree-ssa-phiopt.c (seen_ssa_names):
5304         Change type to hash_table.  Update dependent calls and types.
5306         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5307         Change type to hash_table.  Update dependent calls and types.
5309         * tree-ssa-uncprop.c (equiv):
5310         Change type to hash_table.  Update dependent calls and types.
5312 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5314         PR rtl-optimization/57003
5315         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5316         call note_stores with kill_clobbered_value callback again after
5317         killing regs_invalidated_by_call.
5319 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5321         * config/aarch64/aarch64-simd.md
5322         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5323         (aarch64_simd_bsl<mode>): Likewise.
5324         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5326 2013-04-25  Marek Polacek  <polacek@redhat.com>
5328         PR tree-optimization/57066
5329         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5331 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5333         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5335 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5337         * config/aarch64/aarch64-builtins.c
5338         (aarch64_fold_builtin): New.
5339         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5340         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5341         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5342         * config/aarch64/arm_neon.h
5343         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5345 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5346             Tejas Belagod  <tejas.belagod@arm.com>
5348         * config/aarch64/aarch64-builtins.c
5349         (aarch64_gimple_fold_builtin): New.
5350         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5351         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5352         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5353         (addvv4sf): Update.
5354         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5356 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5358         * config/aarch64/aarch64.md
5359         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5361 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5363         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5364         (*ngcsi_uxtw): New pattern.
5366 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5367             Julian Brown  <julian@codesourcery.com>
5369         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5370         (TB_DREG): Add T_V4HF.
5371         (v4hf_UP): New macro.
5372         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5373         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5374         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5375         built-ins.
5376         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5377         (arm_vector_mode_supported_p): Handle V4HF.
5378         (arm_mangle_map): Handle V4HFmode.
5379         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5380         * config/arm/arm_neon_builtins.def: Add entries for
5381         vcvtv4hfv4sf, vcvtv4sfv4hf.
5382         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5383         (neon_vcvtv4hfv4sf): Likewise.
5384         * config/arm/neon-gen.ml: Handle half-precision floating point
5385         features.
5386         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5387         * config/arm/arm_neon.h: Regenerate.
5388         * config/arm/neon.ml (type elts): Add F16.
5389         (type vectype): Add T_float16x4, T_floatHF.
5390         (type vecmode): Add V4HF.
5391         (type features): Add Requires_FP_bit feature.
5392         (elt_width): Handle F16.
5393         (elt_class): Likewise.
5394         (elt_of_class_width): Likewise.
5395         (mode_of_elt): Refactor.
5396         (type_for_elt): Handle F16, fix error messages.
5397         (vectype_size): Handle T_float16x4.
5398         (vcvt_sh): New function.
5399         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5400         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5401         (string_of_mode): Handle V4HF.
5402         * doc/arm-neon-intrinsics.texi: Regenerate.
5404 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5406         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5407         format specifier in 'X' case.
5409 2013-04-25  Alan Modra  <amodra@gmail.com>
5411         PR target/57052
5412         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5413         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5414         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5415         Repeat for many other rotate/shift and mask patterns using subregs.
5416         Name lshiftrt insns.
5417         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5418         on WORDS_BIG_ENDIAN.
5420 2013-04-25  Alan Modra  <amodra@gmail.com>
5422         * config.gcc: Support little-endian powerpc-linux targets.
5423         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5424         (LINK_OS_LINUX_SPEC): Define.
5425         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5426         Preserve MASK_LITTLE_ENDIAN.
5427         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5428         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5429         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5430         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5431         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5432         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5433         Correct fp word order for little-endian.  Don't shift toc entries
5434         smaller than a word for little-endian.
5435         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5436         (bswapdi2 splits): Correct low-part subreg for little-endian.
5437         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5438         low/high where such is correct only for be.
5439         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5440         little-endian for -mcall-aixdesc.
5442 2013-04-25  Alan Modra  <amodra@gmail.com>
5444         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5445         replace_equiv_address_nv.
5447 2013-04-25  Alan Modra  <amodra@gmail.com>
5449         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5451 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5453         Revert:
5454         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5455         * rtl.h (struct rtx_def): ...
5457 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5459         PR rtl-optimizations/57046
5460         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5461         for multi-reg splits.
5463 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5465         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5467 2013-04-24  Sterling Augustine  <saugustine@google.com>
5469         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5470         (comp_dir_string, debug_str_dwo_section): New.
5471         (DEBUG_STR_DWO_SECTION): Rename to ...
5472         (DEBUG_DWO_STR_SECTION): ... this.
5473         (DEBUG_NORM_STR_SECTION): Delete.
5474         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5475         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5476         (find_AT_string): Move most logic to ...
5477         (find_AT_string_in_table): ... here.  New.
5478         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5479         add_skeleton_AT_string.  Delete logic.
5480         (output_skeleton_debug_sections): Remove call to
5481         add_top_level_skeleton_die_attrs.
5482         (add_comp_dir_attribute): Move logic to comp_dir_string.
5483         (dwarf2out_init): Initialize debug_str_dwo_section.
5484         (output_indirect_string): Call find_string_form.
5485         (output_indirect_strings): Rewrite.
5486         (prune_unused_types): Empty skeleton_debug_str_hash.
5487         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5488         (dwarf2out_finish):  Call output_indirect_strings.
5490 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5492         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5494 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5496         * rtl.h (struct rtx_def): Add comment for field jump.
5497         (LRA_SUBREG_P): New macro.
5498         * recog.c (register_operand): Check LRA_SUBREG_P.
5499         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5500         stack frame.
5501         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5502         (lra_final_code_change): Skip subreg change for operators.
5503         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5504         if there are no operand changes.
5505         * lra-constraints.c (curr_insn_set): New.
5506         (match_reload): Set LRA_SUBREG_P.
5507         (emit_spill_move): Ditto.
5508         (check_and_process_move): Use curr_insn_set. Process only single
5509         set insns.  Don't initialize sec_mem_p and change_p.
5510         (simplify_operand_subreg): Use LRA_SUBREG_P.
5511         (reg_in_class_p): New function.
5512         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5513         of #ifdef.  Add code to remove cycling.
5514         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5515         non-null disp.  Reload inner instead of disp when base and index
5516         are null.  Try to put lo_sum into register.
5517         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5518         (check_and_process_move): Move code for move cost check to
5519         simple_move_p.  Remove equiv_substitution.
5520         (simple_move_p): New function.
5521         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5522         curr_insn_set.  Call check_and_process_move only for single set
5523         insns.  Use the new function.  Move call of check_and_process_move
5524         after operand equiv substitution and address process.
5526 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5528         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5529         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5530         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5532 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5534         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5536 2013-04-24  Marek Polacek  <polacek@redhat.com>
5538         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5539         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5540         (select_loops_exit_conditions): Likewise.
5541         (number_of_iterations_for_all_loops): Likewise.
5542         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5543         (scev_analysis): Likewise.
5545 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5546             Chao-ying Fu <fu@mips.com>
5548         * config/mips/micromips.md (jraddiusp): New pattern.
5549         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5550         instruction if possible.
5552 2013-04-24  Alan Modra  <amodra@gmail.com>
5554         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5556 2013-04-24  Julian Brown  <julian@codesourcery.com>
5557             Chung-Lin Tang  <cltang@codesourcery.com>
5559         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5560         dependency behavior in enumeration type DIE generation. Add TODO note
5561         to comments about future DW_FORM_sdata/udata re-work of related code.
5563 2013-04-23  Lawrence Crowl  <crowl@google.com>
5565         * Makefile.in: Update as needed below.
5567         * hash-table.h (class hash_table):
5568         Correct many methods with parameter types compare_type to the correct
5569         value_type.  (Correct code was unlikely to notice the change.)
5570         (hash_table::elements_with_deleted) New.
5571         (class hashtable::iterator): New.
5572         (hashtable::begin()): New.
5573         (hashtable::end()): New.
5574         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5576         * statistics.c (statistics_hashes):
5577         Change type to hash_table.  Update dependent calls and types.
5579         * tree-into-ssa.c (var_infos):
5580         Change type to hash_table.  Update dependent calls and types.
5582         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5583         Change type to hash_table.  Update dependent calls and types.
5585         * tree-ssa-loop-im.c (struct mem_ref.refs):
5586         Change type to hash_table.  Update dependent calls and types.
5588         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5589         Change type to hash_table.  Update dependent calls and types.
5591         * tree-ssa-sccvn.c (vn_tables_s::nary):
5592         Change type to hash_table.  Update dependent calls and types.
5593         (vn_tables_s::phis): Likewise.
5594         (vn_tables_s::references): Likewise.
5596         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5597         (vn_reference_eq): Update parameter and return types.
5599         * tree-ssa-structalias.c (pointer_equiv_class_table):
5600         Change type to hash_table.  Update dependent calls and types.
5601         (location_equiv_class_table): Likewise.
5603         * tree-vect-data-refs.c: Consequential changes for making
5604         peeling a hash_table.
5606         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5607         (destroy_loop_vec_info): Dependent hash_table update.
5609         * tree-vectorizer.h (peeling_htab):
5610         Change type to hash_table.  Update dependent calls and types.
5612 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5614         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5615         to check the register content is equal or not.
5616         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5617         to assign register content record.
5618         * lra-eliminations.c (update_reg_eliminate): Use
5619         lra_update_reg_val_offset to update register content offset.
5620         * lra-int.h (struct lra_reg): Add offset member.
5621         (lra_reg_val_equal_p): New static inline function.
5622         (lra_update_reg_val_offset): New static inline function.
5623         (lra_assign_reg_val): New static inline function.
5624         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5625         to assign register content record.
5626         (initialize_lra_reg_info_element): Initial offset to zero.
5628 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5630         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5631         operands.  Record compression.
5633 2013-04-23  Xinliang David Li  <davidxl@google.com>
5635         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5637 2013-04-23  Richard Biener  <rguenther@suse.de>
5639         PR middle-end/57036
5640         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5641         parameter, only add abnormal goto edges from the copied body
5642         if the call could perform abnormal gotos.
5643         (copy_cfg_body): Adjust.
5645 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5647         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5649 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5651         * coretypes.h (gimple_stmt_iterator): Add struct to make
5652         compatible with C.
5654 2013-04-23  Richard Biener  <rguenther@suse.de>
5656         PR tree-optimization/57026
5657         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5658         from SSA names occuring in abnormal PHI nodes.
5660 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5662         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5664 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5666         * lto/lto.c (print_lto_report_1): Declare early.
5667         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5669 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5671         * common.opt (-flto-report-wpa): Add.
5672         * doc/invoke.texi (-flto-report-wpa): Add.
5673         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5674         (lto_main): dito.
5676 2013-04-22  Xinliang David Li  <davidxl@google.com>
5678         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5679         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5680         * Makefile.in: New dependency
5682             David Daney <ddaney.cavm@gmail.com>
5684         * configure.ac (gcc_cv_as_micromips_support):  Use the
5685         --fatal-warnings option.
5686         * configure: Regenerate.
5688 2013-04-22  Marek Polacek  <polacek@redhat.com>
5690         PR sanitizer/56990
5691         * tsan.c (instrument_expr): Don't instrument expression
5692         in case its size is zero.
5694 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
5696         PR target/57032
5697         Revert:
5698         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5700         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5702 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5704         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5705         (gimple_stmt_iterator): New typedef.
5706         * gimple.h (gimple_stmt_iterator): Rename to...
5707         (gimple_stmt_iterator_d): ... This.
5708         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5709         trees be valid for GIMPLE and GENERIC.
5710         (TARGET_GIMPLE_FOLD_BUILTIN): New.
5711         * gimple-fold.c (gimple_fold_call): Call target hook
5712         gimple_fold_builtin.
5713         * hooks.c (hook_bool_gsiptr_false): New.
5714         * hooks.h (hook_bool_gsiptr_false): New.
5715         * target.def (fold_stmt): New.
5716         * doc/tm.texi: Regenerate.
5718 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
5720         PR target/57018
5721         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5722         a set sp if no stack realignment.
5724 2013-04-22  Nick Clifton  <nickc@redhat.com>
5726         * config.gcc (tilegx-linux): Extend extra_objs rather than
5727         overwriting it.
5728         (tilepro-linux): Likewise.
5730 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5732         * config/aarch64/aarch64-builtins.c
5733         (CF): Remove.
5734         (CF0, CF1, CF2, CF3, CF4, CF10): New.
5735         (VAR<1-12>): Add MAP parameter.
5736         (BUILTIN_*): Likewise.
5737         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5738         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5739         (aarch64_ushl_n<mode>): Likewise.
5740         (aarch64_sshr_n<mode>): Likewise.
5741         (aarch64_ushr_n<mode>): Likewise.
5742         (aarch64_<maxmin><mode>): Likewise.
5743         (aarch64_sqrt<mode>): Likewise.
5744         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5745         (vshr<q>_n_*): Likewise.
5747 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5749         * config/aarch64/aarch64-builtins.c
5750         (aarch64_simd_builtin_type_mode): Handle SF types.
5751         (sf_UP): Define.
5752         (BUILTIN_GPF): Define.
5753         (aarch64_init_simd_builtins): Handle SF types.
5754         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5755         (frecps): Likewise.
5756         (frecpx): Likewise.
5757         * config/aarch64/aarch64-simd.md
5758         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5759         (aarch64_frecpe<mode>): New.
5760         (aarch64_frecps<mode>): Likewise.
5761         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5762         (v8type): Add frecp<esx>.
5763         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5764         (aarch64_frecps<mode>): Likewise.
5765         * config/aarch64/iterators.md (FRECP): New.
5766         (frecp_suffix): Likewise.
5767         * config/aarch64/arm_neon.h
5768         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5770 2013-04-22  Christian Bruel  <christian.bruel@st.com>
5772         PR target/56995
5773         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5774         (REG_CLASS_NAMES): Idem.
5775         (REG_CLASS_CONTENTS): Idem.
5776         (REGCLASS_HAS_FP_REG): Idem.
5777         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5778         (sh_conditional_register_usage): Idem.
5780 2013-04-21  Jeff Law  <law@redhat.com>
5782         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5783         (ssa_forward_propagate_and_combine): Use it.
5785 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5787         * lra.c: Update the flow chart diagram.
5789 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5791         PR rtl-optimization/56847
5792         * lra-constraints.c (process_alt_operands): Discourage alternative
5793         with non-matche doffsettable memory constraint fro memory with
5794         known offset.
5796 2013-04-19  Richard Biener  <rguenther@suse.de>
5798         PR tree-optimization/56982
5799         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5800         function.
5801         * gimplify.c (gimplify_call_expr): Notice special calls.
5802         (gimplify_modify_expr): Likewise.
5803         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5804         abnormal control flow receivers.
5805         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5806         in the same way as cfun->has_nonlocal_labels.
5807         (gimple_purge_dead_abnormal_call_edges): Likewise.
5808         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5809         receivers start a basic-block.
5811 2013-04-19  Richard Biener  <rguenther@suse.de>
5813         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5814         member ...
5815         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
5816         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5817         (SLP_TREE_LOAD_PERMUTATION): Add.
5818         (vect_transform_slp_perm_load): Adjust prototype.
5819         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5820         (vect_free_slp_instance): Likewise.
5821         (vect_create_new_slp_node): Likewise.
5822         (vect_supported_slp_permutation_p): Remove.
5823         (vect_slp_rearrange_stmts): Adjust.
5824         (vect_supported_load_permutation_p): Likewise.  Inline
5825         vect_supported_slp_permutation_p here.
5826         (vect_analyze_slp_instance): Compute load permutations per
5827         slp node instead of per instance.
5828         (vect_get_slp_defs): Adjust.
5829         (vect_transform_slp_perm_load): Likewise.
5830         (vect_schedule_slp_instance): Remove redundant code.
5831         (vect_schedule_slp): Remove hack for PR56270, add it ...
5832         * tree-vect-stmts.c (vectorizable_load): ... here, do not
5833         CSE loads for SLP.  Adjust.
5835 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5837         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5838         spelling in two comments.
5840 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5842         PR target/56797
5843         * config/arm/arm.c (load_multiple_sequence): Require SP
5844         as base register for loads if SP is in the register list.
5846 2013-04-19  Martin Jambor  <mjambor@suse.cz>
5848         PR tree-optimization/56718
5849         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5850         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5851         and made public.  Adjusted all callers.
5852         (ipa_intraprocedural_devirtualization): New function.
5853         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5854         (ipa_intraprocedural_devirtualization): Likewise.
5855         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5857 2013-04-19  Richard Biener  <rguenther@suse.de>
5859         PR tree-optimization/57000
5860         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5862 2013-04-19  Terry Guo  <terry.guo@arm.com>
5864         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5865         Replace with ...
5866         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
5867         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5868         (cortex_m4_fmacs): Use new reservations.
5869         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5871 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5873         PR rtl-optimization/56999
5874         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5875         related code.
5876         (lra_coalesce): Remove split_origin_bitmap and related code.
5877         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
5878         ranges if necessary.
5880 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
5882         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5883         New array.
5884         (ix86_expand_call): Remove clobbered_registers array and use
5885         x86_64_ms_sysv_extra_clobbered_registers instead.
5886         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5887         Declare here.
5888         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5889         predicate.
5890         * config/i386/i386.md (*call_rex64_ms_sysv): Use
5891         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
5892         (*call_value_rex64_ms_sysv): Ditto.
5894 2013-04-18  Cary Coutant  <ccoutant@google.com>
5896         * dwarf2out.c (output_pubnames): Check die_perennial_p of
5897         parent instead of die_mark.
5899 2013-04-18  Diego Novillo  <dnovillo@google.com>
5901         * gimple.c (create_gimple_tmp): New.
5902         (get_expr_type): New.
5903         (build_assign): New.
5904         (build_type_cast): New.
5905         * gimple.h (enum ssa_mode): Define.
5906         (gimple_seq_set_location): New.
5907         * asan.c (build_check_stmt): Change some gimple_build_* calls
5908         to use build_assign and build_type_cast.
5910 2013-04-18  Richard Biener  <rguenther@suse.de>
5912         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5913         handle negative step.  Remove redundant checks.
5914         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5915         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5916         for negative step and grouped loads fail to vectorize.
5918 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5920         * emit-rtl.c (reset_insn_used_flags): New function.
5921         (reset_all_used_flags): Use it.
5922         (verify_insn_sharing): New function.
5923         (verify_rtl_sharing): Fix verification for SEQUENCEs.
5925 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
5927         PR tree-optimization/56984
5928         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5929         and (x >> M) >= N don't register any assertion if N << M is the
5930         minimum value.
5932 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5934         * lower-subreg.c (resolve_simple_move): If called self-recursive,
5935         do not delete_insn insns that have not yet been emitted, only
5936         unlink them with remove_insn.
5937         * df-scan.c (df_insn_delete): Revert r197492.
5939 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
5941         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5942         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5944 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5946         * config/arm/arm.md (movsicc_insn): Convert define_insn into
5947         define_insn_and_split.
5948         (and_scc,ior_scc,negscc): Likewise.
5949         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5951 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5953         * config/arm/arm.c (use_return_insn): Return 0 for targets that
5954         can benefit from using a sequence of LDRD instructions in epilogue
5955         instead of a single LDM instruction.
5957 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5959         PR 45688
5960         * doc/extend.texi: Fix typo.
5962 2013-04-17  Richard Biener  <rguenther@suse.de>
5964         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5965         (vect_build_slp_tree): ... here.
5966         (vect_build_slp_tree_1): Compute which stmts of the SLP group
5967         match.  Remove special-casing of mismatched complex loads.
5968         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5969         re-try the match with swapped commutative operands.
5970         (vect_supported_load_permutation_p): Remove special-casing of
5971         mismatched complex loads.
5972         (vect_analyze_slp_instance): Adjust.
5974 2013-04-17  Richard Biener  <rguenther@suse.de>
5976         PR rtl-optimization/56921
5977         * cfgloop.h (struct loop): Add simple_loop_desc member.
5978         (struct niter_desc): Mark with GTY(()).
5979         (simple_loop_desc): Do not use aux field but simple_loop_desc.
5980         * loop-iv.c (get_simple_loop_desc): Likewise.
5981         (free_simple_loop_desc): Likewise.
5983         Revert
5984         2013-04-16  Richard Biener  <rguenther@suse.de>
5986         PR rtl-optimization/56921
5987         * loop-init.c (pass_rtl_move_loop_invariants): Add
5988         TODO_do_not_ggc_collect to todo_flags_finish.
5989         (pass_rtl_unswitch): Same.
5990         (pass_rtl_unroll_and_peel_loops): Same.
5991         (pass_rtl_doloop): Same.
5993 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5995         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5996         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5997         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5998         references.
5999         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6000         * tree-streamer.c (record_common_node): Adjust reference in comment.
6002 2013-04-17  Terry Guo  <terry.guo@arm.com>
6004         * config/arm/cortex-m4.md: Add a new bypass.
6006 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6008         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6009         New pattern.
6010         (*subs_<optab><mode>_multp2): New pattern.
6011         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6012         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6014 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6016         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6017         (*subs_mul_imm_<mode>): New pattern.
6019 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6021         PR target/56948
6022         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6023         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6024         (vsx_movti_32bit): Change j->wa to O->wa.
6026 2013-04-16  Richard Biener  <rguenther@suse.de>
6028         PR rtl-optimization/56921
6029         * loop-init.c (pass_rtl_move_loop_invariants): Add
6030         TODO_do_not_ggc_collect to todo_flags_finish.
6031         (pass_rtl_unswitch): Same.
6032         (pass_rtl_unroll_and_peel_loops): Same.
6033         (pass_rtl_doloop): Same.
6035 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6037         * config/arm/arm.c (emit_multi_reg_push): New declaration
6038         for an existing function.
6039         (arm_emit_strd_push): New function.
6040         (arm_expand_prologue): Used here.
6041         (arm_emit_ldrd_pop): New function.
6042         (arm_expand_epilogue): Used here.
6043         (arm_get_frame_offsets): Update condition.
6044         (arm_emit_multi_reg_pop): Add a special case for load of a single
6045         register with writeback.
6047 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6049         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6050         description.
6052 2013-04-16  Richard Biener  <rguenther@suse.de>
6054         PR tree-optimization/56756
6055         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6056         (first_mem_ref_loc): New.
6057         (execute_sm): Place the load temporarily before a previous
6058         access instead of in the latch edge to ensure its SSA dependencies
6059         are defined at points dominating the load.
6061 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6063         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6064         correct fix by moving header and footer insn to the footer of
6065         the merged basic block.  Clear BB_END of the merged-away block.
6067         PR middle-end/43631
6068         * emit-rtl.c (make_note_raw): New function.
6069         (link_insn_into_chain): New static inline function.
6070         (add_insn): Use it.
6071         (add_insn_before, add_insn_after): Factor insn chain linking code...
6072         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6073         using link_insn_into_chain.
6074         (note_outside_basic_block_p): New helper function for emit_note_after
6075         and emit_note_before.
6076         (emit_note_after): Use nobb variant of add_insn_after if the note
6077         should not be contained in a basic block.
6078         (emit_note_before): Use nobb variant of add_insn_before if the note
6079         should not be contained in a basic block.
6080         (emit_note_copy): Use make_note_raw.
6081         (emit_note): Likewise.
6082         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6083         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6084         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6085         the moved barrier the tail of the basic block it follows.
6086         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6088 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6090         PR tree-optimization/56962
6091         * gimple-ssa-strength-reduction.c (record_increment): Only set
6092         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6093         either rhs1 or rhs2 is equal to c->base_expr.
6095 2013-04-15  Richard Biener  <rguenther@suse.de>
6097         PR tree-optimization/56933
6098         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6099         member.
6100         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6101         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6102         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6103         dependence check ...
6104         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6105         ... here.
6106         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6107         GROUP_READ_WRITE_DEPENDENCE.
6109 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6111         * emit-rtl.c (reset_all_used_flags): New function.
6112         (verify_rtl_sharing): Call reset_all_used_flags before and after
6113         performing the checks.
6115 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6117         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6118         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6119         * config/arm/constraints.md (De): New constraint.
6120         * config/arm/neon.md (anddi3_neon): Delete.
6121         (neon_vand<mode>): Expand to standard anddi3 pattern.
6122         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6123         Move earlier in the file.
6124         (neon_inv_logic_op2): Likewise.
6125         (arm_anddi_operand_neon): New predicate.
6127 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6129         * configure.ac (gcc_cv_ld_as_needed): Set
6130         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6131         Use -z ignore, -z record on *-*-solaris2*.
6132         (HAVE_LD_AS_NEEDED): Update comment.
6133         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6134         * configure: Regenerate.
6135         * config.in: Regenerate.
6136         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6137         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6138         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6139         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6140         equivalents.  Fix markup.
6141         * doc/tm.texi: Regenerate.
6143 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6145         * config/i386/i386.opt: New option mstack-protector-guard=.
6146         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6147         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6148         TARGET_SSP_TLS_GUARD.
6149         * config/i386/i386.c (ix86_option_override_internal): Set
6150         ix86_stack_protector_guard.
6151         * config/i386/i386.md (stack_protect_set): Enable for
6152         TARGET_SSP_TLS_GUARD only.
6153         (stack_protect_set_<mode>): Ditto.
6154         (stack_protect_test): Ditto.
6155         (stack_protect_test_<mode>): Ditto.
6156         * doc/invoke.texi (i386 Option): Document.
6158 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6160         PR target/56890
6161         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6162         (S_MODES): Set H_MODE bit.
6163         (SF_MODES): Set only S_MODE and SF_MODE bits.
6164         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6165         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6166         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6167         <MODE_FLOAT>: Likewise.
6169 2013-04-15  Joey Ye  <joey.ye@arm.com>
6171         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6173 2013-04-15  Joey Ye  <joey.ye@arm.com>
6175         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6176         for real far jump.
6177         (thumb_far_jump_used_p): Count instruction size and set
6178         far_jump_used.
6180 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6182         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6183         * resource.c (mark_target_live_regs): Reformat conditional block.
6185 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6187         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6188         notes, they are emitted only just before final.
6189         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6191 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6193         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6194         * cfgrtl.c (delete_insn): Call it here instead.
6195         * lra-spills.c (lra_final_code_change): Use delete_insn.
6196         * haifa-sched.c (sched_remove_insn): Likewise.
6197         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6198         returning to the nop pool.
6199         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6200         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6202 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6204         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6205         * doc/tm.texi: Regenerated.
6207 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6209         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6210         QImode checks.
6212 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6214         * df-core.c (df_find_def): Compare register numbers.
6215         (df_find_use): Likewise.
6217 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6219         PR target/56903
6220         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6221         lra_in_progress for return.
6223 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6225         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6226         define_insn into define_insn_and_split and emit movsicc patterns.
6228 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6230         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6232 2013-04-12  Richard Biener  <rguenther@suse.de>
6234         * tree-pass.h (TODO_do_not_ggc_collect): New.
6235         * passes.c (execute_one_ipa_transform_pass): Honor
6236         TODO_do_not_ggc_collect.
6237         (execute_one_pass): Likewise.
6239         Revert
6240         2013-04-10  Richard Biener  <rguenther@suse.de>
6242         * passes.c (init_optimization_passes): Remove reload pass.
6243         * ira.c (do_reload): Merge into ...
6244         (ira): ... this.
6245         (rest_of_handle_reload): Remove.
6246         (pass_reload): Likewise.
6247         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6248         of reload for vzeroupper pass placement.
6250 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6252         PR tree-optimization/56918
6253         PR tree-optimization/56920
6254         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6255         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6256         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6257         use wide_mul_with_sign method.
6259 2013-04-12  Richard Biener  <rguenther@suse.de>
6261         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6262         not be considered a gimple constant.
6264 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6266         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6267         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6268         operations.
6270 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6271             Jakub Jelinek  <jakub@redhat.com>
6273         * opts.c: Include diagnostic-color.h.
6274         (common_handle_option): Handle OPT_fdiagnostics_color_.
6275         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6276         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6277         (diagnostic-color.o): New.
6278         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6279         (diagnostic_color_rule): New enum.
6280         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6281         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6282         the location string.
6283         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6284         either NULL, or color kind.
6285         * diagnostic-color.c: New file.
6286         * diagnostic-color.h: New file.
6287         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6288         arguments.
6289         * doc/invoke.texi (-fdiagnostics-color): Document.
6290         * pretty-print.h (pp_show_color): Define.
6291         (struct pretty_print_info): Add show_color field.
6292         * diagnostic.c: Include diagnostic-color.h.
6293         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6294         macros.  Colorize error:, warning: etc. strings and also the location
6295         string.
6296         (diagnostic_show_locus): Colorize the caret line.
6297         * pretty-print.c: Include diagnostic-color.h.
6298         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6299         inside of %< %> quotes or quoted through q format modifier.
6301 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6303         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6305 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6307         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6308         code in CC_NZ mode.
6309         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6310         pattern.
6312 2013-04-11  Marek Polacek  <polacek@redhat.com>
6314         PR tree-optimization/48184
6315         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6317 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6319         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6320         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6321         (skip_simple_arithmetic): Tidy up.
6322         * tree.h (skip_simple_constant_arithmetic): Declare.
6324 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6326         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6328 2013-04-11  Richard Biener  <rguenther@suse.de>
6330         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6331         generate vector constants.
6333 2013-04-11  Richard Biener  <rguenther@suse.de>
6335         PR tree-optimization/56878
6336         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6337         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6338         New function.
6339         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6340         Prefer to align the DR with the most invariant base address.
6342 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6344         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6345         comment.
6347 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6349         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6350         floating-point vector comparisons against 0.
6352 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6354         PR tree-optimization/56899
6355         * fold-const.c (extract_muldiv_1): Apply distributive law
6356         only if TYPE_OVERFLOW_WRAPS (ctype).
6358 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6360         PR target/56124
6361         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6362         loading has side effect.
6364 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6366         * config/sparc/sparc.c: Include tree-pass.h.
6367         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6368         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6369         head of file.  Change return type.  Split off gate function.
6370         (sparc_gate_work_around_errata): New function.
6371         (pass_work_around_errata): New pass definition.
6372         (insert_pass_work_around_errata) New pass insert definition to
6373         insert pass_work_around_errata just after delayed-branch scheduling.
6374         (sparc_option_override): Insert the pass.
6375         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6377 2013-04-10  David S. Miller  <davem@davemloft.net>
6379         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6380         or -mcpu=hypersparc.
6382         * target.def (cstore_mode): New hook.
6383         * target.h: Include insn-codes.h
6384         * targhooks.c: Likewise.
6385         (default_cstore_mode): New function.
6386         * targhooks.h: Declare it.
6387         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6388         * doc/tm.texi: Rebuild.
6389         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6390         target hook, rather than inspecting the insn_data.
6391         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6392         (TARGET_CSTORE_MODE): Redefine.
6393         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6394         result patterns.
6395         * config/sparc/predicates.md (cstore_result_operand): New special
6396         predicate.
6397         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6398         Use it for operand 0.
6399         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6400         (*snesi_special): Likewise.
6401         (*snesi_zero): Likewise.
6402         (*seqsi_zero): Likewise.
6403         (*sltu_insn): Likewise.
6404         (*sgeu_insn): Likewise.
6405         (*seqdi_special): Make operand 0 and comparison operation be of
6406         DImode.
6407         (*snedi_special): Likewise.
6408         (*snedi_special_vis3): Likewise.
6409         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6410         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6411         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6412         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6413         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6414         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6415         (*sltu_extend_sp64): Likewise.
6416         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6417         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6418         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6419         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6420         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6422 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6424         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6425         (aarch64_start_file): Use the new function.
6427 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6428             Jason Merrill  <jason@redhat.com>
6430         * common.opt: Add -gdwarf.
6431         * opts.c (common_handle_option): Handle it.
6432         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6434 2013-04-10  Richard Biener  <rguenther@suse.de>
6436         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6437         (execute_one_ipa_transform_pass): But unconditionally here.
6438         (execute_one_pass): And here.
6439         (init_optimization_passes): Remove reload pass.
6440         * tree-pass.h (TODO_ggc_collect): Remove.
6441         (pass_reload): Likewise.
6442         * ira.c (do_reload): Merge into ...
6443         (ira): ... this.
6444         (rest_of_handle_reload): Remove.
6445         (pass_reload): Likewise.
6446         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6447         of reload for vzeroupper pass placement.
6448         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6449         and todo_flags_finish of all passes.
6451 2013-04-10  Richard Biener  <rguenther@suse.de>
6453         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6454         first_const_oprnd field, rename first_def_type to first_op_type.
6455         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6456         (vect_get_and_check_slp_defs): Always use the type of the
6457         operand.  Allow mixed vect_external_def, vect_constant_def types.
6458         (vect_get_constant_vectors): Handle mixed vect_external_def,
6459         vect_constant_def types.
6461 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6463         PR tree-optimization/55524
6464         * tree-ssa-math-opts.c
6465         (convert_mult_to_fma): Don't use an fms construct
6466         when we don't have an fms operation, but fnma, and it looks
6467         likely that we'll be able to use the latter.
6469 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6471         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6472         function.
6473         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6474         inline fail caused by overwritable functions.
6476 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6478         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6479         unnecessary bits in the constant power of two case.
6481 2013-04-10  Richard Biener  <rguenther@suse.de>
6483         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6484         broken code swapping operands.
6485         (vect_build_slp_tree): Do not compute load permutations here.
6486         (vect_analyze_slp_instance): Compute load permutations here,
6487         after building the SLP tree.
6489 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6491         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6492         of next/prev_real_insn.
6494 2013-04-09  Jan Hubicka  <jh@suse.cz>
6496         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6497         Drop aliased parameter.
6498         (function_and_variable_visibility): Do not handle alias pairs.
6499         * cgraph.c (varpool_externally_visible_p): Update prototype.
6500         * varpool.c (varpool_add_new_variable): Update.
6502 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6504         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6506 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6508         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6510         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6512 2013-04-09  Marek Polacek  <polacek@redhat.com>
6514         PR tree-optimization/48762
6515         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6517 2013-04-09  Richard Biener  <rguenther@suse.de>
6519         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6520         dealing with cost.
6521         (vect_build_slp_tree): Likewise.
6522         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6523         calculating the cost of a SLP instance.
6524         (vect_analyze_slp_instance): Use it from here, after building
6525         the SLP tree.
6527 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6529         PR middle-end/56883
6530         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6531         expand_omp_for_static_chunk): Use simple_p = true in
6532         force_gimple_operand_gsi calls when assigning to addressable decls.
6534 2013-04-09  Jeff Law  <law@redhat.com>
6536         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6537         when the boolean was created by converting a wider object which
6538         had a boolean range.
6540 2013-04-09  Richard Biener  <rguenther@suse.de>
6542         * tree-vectorizer.h (slp_void_p): Remove.
6543         (slp_tree): Typedef before _slp_tree declaration.
6544         (struct _slp_tree): Use a vector of slp_tree as children.
6545         (vect_get_place_in_interleaving_chain): Remove.
6546         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6547         Move ...
6548         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6549         and make static.
6550         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6551         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6552         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6553         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6554         Use slp_node instead of slp_void_p and adjust.
6556 2013-04-09  Richard Biener  <rguenther@suse.de>
6558         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6559         work that is not necessary.
6561 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6563         PR tree-optimization/56854
6564         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6565         forward into clobber stmts if it would change MEM_REF lhs into
6566         non-MEM_REF.
6568 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6570         * tree.c (type_hash_lookup, type_hash_add): Make static.
6571         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6573 2013-04-09  Richard Biener  <rguenther@suse.de>
6575         * tree.h (unsave_expr_now): Remove.
6576         * tree-inline.c (mark_local_for_remap_r): Remove.
6577         (unsave_expr_1): Likewise.
6578         (unsave_r): Likewise.
6579         (unsave_expr_now): Likewise.
6580         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6581         (propagate_tree_value): Likewise.
6583 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6585         * doc/rtl.texi (sequence): Rewrite documentation to match the
6586         current use of SEQUENCE rtl objects.
6587         * rtl.def (SEQUENCE): Likewise.
6589         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6590         Update documentation.
6591         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6592         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6594         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6596 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6598         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6599         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6600         methods.
6601         (estimate_edge_size_and_time): Add comment to suggest using rounding
6602         methods.
6603         (estimate_node_size_and_time): Ditto.
6604         (remap_edge_change_prob): Use helper rounding divide methods.
6605         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6606         (gimple_mod_pow2_value_transform): Ditto.
6607         (gimple_mod_subtract_transform): Ditto.
6608         (gimple_ic_transform): Ditto.
6609         (gimple_stringops_transform): Ditto.
6610         * stmt.c (conditional_probability): Ditto.
6611         (emit_case_dispatch_table): Ditto.
6612         * lto-cgraph.c (merge_profile_summaries): Ditto.
6613         * tree-optimize.c (execute_fixup_cfg): Ditto.
6614         * cfgcleanup.c (try_forward_edges): Ditto.
6615         * cfgloopmanip.c (scale_loop_profile): Ditto.
6616         (loopify): Ditto.
6617         (duplicate_loop_to_header_edge): Ditto.
6618         (lv_adjust_loop_entry_edge): Ditto.
6619         * tree-vect-loop.c (vect_transform_loop): Ditto.
6620         * profile.c (compute_branch_probabilities): Ditto.
6621         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6622         * lto-streamer-in.c (input_cfg): Ditto.
6623         * gimple-streamer-in.c (input_bb): Ditto.
6624         * ipa-cp.c (update_profiling_info): Ditto.
6625         (update_specialized_profile): Ditto.
6626         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6627         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6628         rounding methods.
6629         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6630         (compute_trg_info): Ditto.
6631         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6632         (purge_dead_edges): Ditto.
6633         * loop-unswitch.c (unswitch_loop): Ditto.
6634         * cgraphclones.c (cgraph_clone_edge): Ditto.
6635         (cgraph_clone_node): Ditto.
6636         * tree-inline.c (copy_bb): Ditto.
6637         (copy_edges_for_bb): Ditto.
6638         (initialize_cfun): Ditto.
6639         (copy_cfg_body): Ditto.
6640         (expand_call_inline): Ditto.
6642 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6644         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6645         TARGET_CYGWIN64 by TARGET_64BIT.
6647 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6649         * config/epiphany/epiphany.md (GPR_1): New constant.
6650         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6651         * config/epiphany/epiphany.c (gen_compare_reg):
6652         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6653         is already in place.
6654         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6655         Don't require being called during rtl expansion; If y operlaps r0,
6656         return 0.
6657         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6658         (epiphany_expand_epilogue): Likewise.
6660         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6661         Don't use CC_FPmode for ORDERED / UNORDERED.
6662         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6664         * config/epiphany/constraints.md (CnL): New constraint.
6665         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6666         * config/epiphany/predicates.md (add_operand): Allow 1024.
6668         * config/epiphany/epiphany.md (logical_op): New code iterator.
6669         (op_mnc): New code attribute.
6670         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6671         (mov_f+1, mov_f+2): New peephole2 patterns.
6673         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6674         (cstoresi4): Also allow re-use of zero result when doing a NE
6675         comparison to a non-zero operand.
6676         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6678         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6679         Use gen_addsi3_i / gen_subsi3_i.
6681 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6683         PR c++/34949
6684         PR c++/50243
6685         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6686         contain anything but clobbers, at most one __builtin_stack_restore,
6687         optionally debug stmts and final resx, and if it has at least one
6688         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6689         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6690         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6691         which isn't defaut definition, remove them.
6692         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6693         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6694         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6695         with MEM_REF LHS with SSA_NAME address.
6697 2013-04-08  Jeff Law  <law@redhat.com>
6699         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6701 2013-04-08  Richard Biener  <rguenther@suse.de>
6703         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6704         extra newline.
6705         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6706         determined vector type.
6707         (vect_analyze_data_refs): Likewise.
6708         (vect_get_new_vect_var): Adjust.
6709         (vect_create_destination_var): Preserve SSA name versions.
6710         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6711         not dump anything here.
6713 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6715         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6716         Add member lr_slot_known.
6717         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6718         if necessary.
6719         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6720         Remove code that sets lr_slot_offset according to what a previous
6721         version of epiphany_emit_save_restore used to do.
6722         (epiphany_emit_save_restore): When doing an lr save or restore,
6723         set/verify lr_slot_known and lr_slot_offset.
6725 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
6727         PR target/54338
6728         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6729         in ALL_REGS.
6731 2013-04-08  Richard Biener  <rguenther@suse.de>
6733         * alias.c (find_base_term): Fix thinko in previous change.
6735 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6737         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6738         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6739         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
6740         if possible to compute val.
6741         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6742         For QImode integers don't require anything about precision.  Use
6743         const_with_all_bytes_same to find out if the constant doesn't have
6744         repeated bytes in it.
6746 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6748         * config/s390/s390.c (s390_expand_insv): Only accept insertions
6749         within mode size.
6751 2013-04-08  Marek Polacek  <polacek@redhat.com>
6753         PR rtl-optimization/48182
6754         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6755         value to 1.
6757 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6759         PR target/55487
6760         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6761         nuses, make sure we have a label.
6763 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6765         PR target/56843
6766         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6767         (rs6000_emit_swdiv_low_precision): Remove.
6768         (rs6000_emit_swdiv): Rewrite to handle between one and four
6769         iterations of Newton-Raphson generally; modify required number of
6770         iterations for some cases.
6771         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6773 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6775         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6776         set-but-unused variable.
6778         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6779         basic blocks of released function bodies garbage-collectable.
6781         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6782         (struct rtl_opt_pass): Add TODO_df_finish.
6784         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6786 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6788         * config/arm/constraints.md (q): New constraint.
6789         * config/arm/ldrdstrd.md: New file.
6790         * config/arm/arm.md (ldrdstrd.md) New include.
6791         (arm_movdi): Use "q" instead of "r" constraint
6792         for double-word memory access.
6793         (movdf_soft_insn): Likewise.
6794         * config/arm/vfp.md (movdi_vfp): Likewise.
6795         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6796         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6797         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6798         (mem_ok_for_ldrd_strd): Likewise.
6799         (output_move_double): Update assertion.
6801 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6803         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6805 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6807         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6808         define_insn_and_split.
6809         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6811 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6813         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6814         define_insn_and_split.
6815         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6816         (shiftsi3_compare): New pattern.
6817         (rrx): New pattern.
6818         * config/arm/unspecs.md (UNSPEC_RRX): New.
6820 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6822         * config/arm/arm.md (negdi_extendsidi): New pattern.
6823         (negdi_zero_extendsidi): Likewise.
6825 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6827         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6828         define_insn_and_split.
6829         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6830         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6832 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6834         * config/arm/arm.md (arm_subdi3): Convert define_insn into
6835         define_insn_and_split.
6836         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6837         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6839 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6841         * config/arm/arm.md (subsi3_carryin): New pattern.
6842         (subsi3_carryin_const): Likewise.
6843         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6844         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6846 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6848         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6850 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6852         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6853         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6855 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6857         * config/arm/arm.c (arm_expand_builtin): Change fcode
6858         type to unsigned int.
6860 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6862         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6864 2013-04-04  Ian Lance Taylor  <iant@google.com>
6866         * doc/standards.texi (Standards): The Go frontend supports the Go 1
6867         language standard.
6869 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6871         PR middle-end/56729
6872         * df-scan.c (df_insn_delete): Disable failing assert.
6874 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6876         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6877         New function prototype.
6878         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6879         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6880         (arm_builtin_vectorized_function): New function.
6882 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6884         * config/arm/arm_neon_builtins.def: New file.
6885         * config/arm/arm.c (neon_builtin_data): Move contents to
6886         arm_neon_builtins.def.
6887         (enum arm_builtins): Include neon builtin definitions.
6888         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6889         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6891 2013-04-04  Marek Polacek  <polacek@redhat.com>
6893         PR tree-optimization/48186
6894         * predict.c (maybe_hot_frequency_p): Return false if
6895         HOT_BB_FREQUENCY_FRACTION is 0.
6896         (cgraph_maybe_hot_edge_p): Likewise.
6898 2013-04-04  Richard Biener  <rguenther@suse.de>
6900         PR tree-optimization/56826
6901         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6902         more accurately.
6904 2013-04-04  Richard Biener  <rguenther@suse.de>
6906         PR tree-optimization/56213
6907         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6908         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6910 2013-04-04  Richard Biener  <rguenther@suse.de>
6912         PR tree-optimization/56837
6913         * tree-loop-distribution.c (classify_partition): For non-zero
6914         values require that the value has the same precision as its
6915         mode to be useful as memset value.
6917 2013-04-03  Nick Clifton  <nickc@redhat.com>
6919         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6920         (fmssf4): Use fmsf.s on E3V5 architectures.
6921         (fnmasf4): Use fnmaf.s on E3V5 architectures.
6922         (fnmssf4): Use fnmsf.s on E3V5 architectures.
6924 2013-04-03  Jeff Law  <law@redhat.com>
6926         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6927         (lra-eliminations.o): Likewise.
6929 2013-04-03  Teresa Johnson  <tejohnson@google.com>
6931         * gcov-io.c (compute_working_sets): Moved most of body of old
6932         compute_working_sets here from profile.c.
6933         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6934         (gcov_working_set_t): Moved typedef here from basic-block.h
6935         (compute_working_set): Declare.
6936         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6937         (get_working_sets): Renamed from compute_working_set,
6938         replace most of body with call to new compute_working_sets.
6939         (get_exec_counts): Replace call to compute_working_sets
6940         to get_working_sets.
6941         * profile.h (get_working_sets): Renamed from compute_working_set.
6942         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6943         to get_working_sets.
6944         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6945         * gcov-dump.c (dump_working_sets): New function.
6947 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
6949         * hwint.c (sext_hwi, zext_hwi): New functions.
6950         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6951         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6952         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6953         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6954         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6955         (sext_hwi, zext_hwi): New functions.
6957 2013-04-03  Jeff Law  <law@redhat.com>
6959         PR tree-optimization/56799
6960         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6961         back test for widening conversion erroneously dropped in prior change.
6963 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6965         PR target/56809
6966         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6967         instead of next_real_insn.
6969 2013-04-03  Marek Polacek  <polacek@redhat.com>
6971         PR sanitizer/55702
6972         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6974 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6976         PR target/56809
6977         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6978         next_real_insn.
6979         (thumb1_output_casesi): Likewise.
6980         (thumb2_output_casesi): Likewise.
6982 2013-04-03  Richard Biener  <rguenther@suse.de>
6984         PR tree-optimization/56817
6985         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6986         Split out ...
6987         (tree_unroll_loops_completely_1): ... new function to manually
6988         walk the loop tree, properly defering outer loops of unrolled
6989         loops to later iterations.
6991 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6993         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6994         (vectorizable_load): Likewise.
6995         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6996         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6998 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7000         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7001         BIT_FIELD_REF.
7003 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7005         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7007 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7009         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7011 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7013         PR tree-optimization/56790
7014         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7015         folding.
7017 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7019         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7020         Handle VEC_MERGE.
7021         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7022         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7023         equal arguments.
7025 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7027         PR c/19449
7028         * tree.h (force_folding_builtin_constant_p): New decl.
7029         * builtins.c (force_folding_builtin_constant_p): New variable.
7030         (fold_builtin_constant_p): Fold immediately also if
7031         force_folding_builtin_constant_p.
7033 2013-04-03  Richard Biener  <rguenther@suse.de>
7035         PR tree-optimization/56812
7036         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7037         DRs of the same interleaving chain are independent.
7039 2013-04-02  Jason Merrill  <jason@redhat.com>
7041         * gdbinit.in (pbb): Use debug fn.
7043 2013-04-02  Lawrence Crowl  <crowl@google.com>
7045         * sese.h (struct ivtype_map_elt_s): Remove unused.
7046         (extern debug_ivtype_map): Remove unused.
7047         (extern eq_ivtype_map_elts): Remove unused.
7048         * sese.c (debug_ivtype_map): Removed unused.
7049         (debug_ivtype_map_1): Removed unused.
7050         (debug_ivtype_elt): Remove unused.
7051         (eq_ivtype_map_elts): Remove unused.
7054 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7056         PR target/52790
7057         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7058         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7059         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7060         function.
7061         (legitimize_pe_coff_symbol): Likewise.
7062         (is_imported_p): New helper-function.
7063         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7064         for Windows x64 targets.
7065         (ix86_expand_prologue): Optimize for pe-coff targets.
7066         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7067         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7068         medium/large code-model.
7069         (legitimize_pic_address): Likewise.
7070         (legitimize_tls_address): Likewise.
7071         (ix86_expand_call): Likewise.
7072         (x86_output_mi_thunk): Likewise.
7073         (get_dllimport_decl): Add new beimport argument.
7074         (construct_plt_address): Don't assert for x64 pe-coff targets.
7075         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7076         targets.
7077         (SYMBOL_FLAG_STUBVAR): New macro.
7078         (SYMBOL_REF_STUBVAR_P): Likewise.
7079         * config/i386/winnt.c (stub_list): New structure.
7080         (stub_head): New local variable.
7081         (i386_pe_record_stub): New function.
7082         (i386_pe_file_end): Emit refptr-stubs.
7084 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7086         PR rtl-optimization/56745
7087         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7088         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7090         PR c++/34949
7091         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7092         and both of them are MEM_REFs, just compare first argument for
7093         equality and attempt to deal even with differing offsets.
7095         PR c++/34949
7096         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7097         of gimple_clobber_p to be MEM_REF.
7098         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7099         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7100         after gimplification.
7101         * asan.c (get_mem_ref_of_assignment): Don't instrument
7102         gimple_clobber_p stmts.
7103         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7104         gimple_clobber_p stmt if they have MEM_REF lhs and
7105         are dead because of another gimple_clobber_p stmt.
7106         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7107         gimple_clobber_p stmts like debug stmts.
7108         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7109         that refer to unused VAR_DECLs or uninitialized values.
7110         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7111         gimple_clobber_p stmts if they refer to removed parameters.
7112         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7113         formatting.
7115 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7117         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7118         using SWI48 mode attribute.
7120 2013-04-02  Wei Mi  <wmi@google.com>
7122         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7123         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7124         *<rotate_insn><mode>3_mask in i386.md.
7126 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7128         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7130 2013-04-02  Richard Biener  <rguenther@suse.de>
7132         PR tree-optimization/56778
7133         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7134         Runtime alias tests are not supported for gather loads.
7135         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7136         stmts referenced from SSA operands before updating SSA form.
7138 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7139             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7141         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7142         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7143         * config/arm/cortex-a53.md: New file.
7144         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7145         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7146         * config/arm/arm.c (arm_issue_rate): Likewise.
7147         * config/arm/arm-tune.md: Regenerate
7148         * config/arm/arm-tables.opt: Regenerate.
7149         * config/arm/arm-cores.def: Add cortex-a53.
7151 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7153         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7154         non-static link.
7156 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7158         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7159         scalar load/store operations using B/H registers.
7160         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7162 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7164         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7165         scalar move.
7166         * config/aarch64/aarch64.c
7167         (aarch64_simd_scalar_immediate_valid_for_move): New.
7168         * config/aarch64/aarch64-protos.h
7169         (aarch64_simd_scalar_immediate_valid_for_move): New.
7170         * config/aarch64/constraints.md (Dh, Dq): New.
7171         * config/aarch64/iterators.md (hq): New.
7173 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7175         * reorg.c (get_branch_condition): Deal with conditional returns.
7176         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7178 2013-04-01  Wei Mi  <wmi@google.com>
7180         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7181         Truncate operand 2 using %b asm operand modifier.
7182         (*<shift_insn><mode>3_mask): Ditto.
7183         (*<rotate_insn><mode>3_mask): Ditto.
7185 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7187         PR middle-end/56798
7188         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7190 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7192         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7193         of next_real_insn.
7194         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7196 2013-03-30  Lawrence Crowl  <crowl@google.com>
7198         * dse.c (clear_alias_sets): Remove never set.
7199         (disqualified_clear_alias_sets): Remove never set.
7200         (clear_alias_mode_pool): Remove never set.
7201         (dse_step0): Remove condition that is never true.
7202         (canon_address): Remove condition that is never true.
7203         (dse_step7): Remove condition that is never true.
7204         (rest_of_handle_dse): Remove condition that is never true.
7205         (rest_of_handle_dse::did_global): Remove never read from above.
7206         (dse_step2_spill): Remove never called from above.
7207         (dse_step5_spill): Remove never called from above.
7209 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7211         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7212         JUMP_TABLE_DATA changes.
7213         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7214         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7215         (Insns) <jump_table_data>: New entry.
7216         * doc/tm.texi: Regenerate.
7218         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7220         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7221         for table jump at the end of a basic block using tablejump_p.
7222         * targhooks.c (default_invalid_within_doloop): Likewise.
7223         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7224         target hook implementation that is identical to the default hook.
7225         (rs6000_invalid_within_doloop): Remove.
7227         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7228         unused variable from tablejump_p call.
7230         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7231         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7232         (INSN_DELETED_P): Likewise.
7233         (emit_jump_table_data): New prototype.
7234         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7235         after 4th as unused.
7236         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7237         * sched-vis.c (print_insn): Likewise.
7238         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7239         insn for compatibility with back ends that use next_active_insn to
7240         identify jump table data.
7241         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7242         (remove_insn): Likewise.
7243         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7244         to be emitted.
7245         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7246         (emit_jump_table_data): New function.
7248         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7249         basic block, a JUMP_TABLE_DATA never is.
7250         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7251         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7252         off from code handling real insns.
7253         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7254         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7255         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7256         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7257         is not a NONDEBUG_INSN_P.
7258         * ira-costs.c (scan_one_insn): Likewise.
7259         * jump.c (mark_all_labels): Likewise.
7260         (mark_jump_label_1): Likewise.
7261         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7262         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7263         a basic block.
7264         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7265         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7266         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7267         JUMP_TABLE_DATA_P insns.
7268         (calculate_elim_costs_all_insns): Likewise.
7269         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7270         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7271         (delete_output_reload): Code style fixups.
7272         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7273         insn flags on this non-insn.
7274         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7275         as scheduling barriers, for pre-change compatibility.
7276         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7277         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7279         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7280         redundant JUMP_TABLE_DATA_P test.
7281         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7282         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7283         (frv_for_each_packet): Likewise.
7284         * config/i386/i386.c (min_insn_size): Likewise.
7285         (ix86_avoid_jump_mispredicts): Likewise.
7286         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7287         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7288         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7289         (mips16_insn_length): Robustify.
7290         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7291         (mips16_split_long_branches): Likewise.
7292         * config/pa/pa.c (pa_combine_instructions): Likewise.
7293         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7294         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7295         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7296         as contributing to pool range lengths.
7297         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7298         Remove redundant JUMP_TABLE_DATA_P test.
7299         (sh_loop_align): Likewise.
7300         (split_branches): Likewise.
7301         (sh_insn_length_adjustment): Likewise.
7302         * config/spu/spu.c (get_branch_target): Likewise.
7304 2013-03-29  Jan Hubicka  <jh@suse.cz>
7306         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7307         gcov streaming; stream hot bb threshold to ltrans.
7308         * predict.c (get_hot_bb_threshold): Break out from ....
7309         (maybe_hot_count_p): ... here.
7310         (set_hot_bb_threshold): New function.
7311         * lto-section-in.c (lto_section_name): Add profile.
7312         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7313         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7314         and data-streamer.h
7315         (histogram_entry): New structure.
7316         (histogram, histogram_pool): New global vars.
7317         (histogram_hash): New structure.
7318         (histogram_hash::hash): New method.
7319         (histogram_hash::equal): Likewise.
7320         (account_time_size): New function.
7321         (cmp_counts): New function.
7322         (dump_histogram): New function.
7323         (ipa_profile_generate_summary): New function.
7324         (ipa_profile_write_summary): New function.
7325         (ipa_profile_read_summary): New function.
7326         (ipa_profile): Decide on threshold.
7327         (pass_ipa_profile): Add ipa_profile_write_summary and
7328         ipa_profile_read_summary.
7329         * Makefile.in (ipa.o): Update dependencies.
7330         * lto-streamer.h (LTO_section_ipa_profile): New section.
7332 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7334         * tree.h (VAR_P): New.
7336 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7338         PR lto/56777
7339         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7341 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7343         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7344         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7345         (control_flow_insn_p): Likewise.
7346         * cfgrtl.c (duplicate_insn_chain): Likewise.
7347         * final.c (get_attr_length_1): Likewise.
7348         (shorten_branches): Likewise.
7349         (final_scan_insn): Likewise.
7350         * function.c (instantiate_virtual_regs): Likewise.
7351         * gcse.c (insert_insn_end_basic_block): Likewise.
7352         * ira-costs.c (scan_one_insn): Likewise.
7353         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7354         * lra.c (check_rtl): Likewise.
7355         * reload1.c (elimination_costs_in_insn): Likewise.
7356         * reorg.c (follow_jumps): Likewise.
7358         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7359         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7360         (thumb_far_jump_used_p): Likewise.
7361         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7362         (workaround_speculation): Likewise.
7363         (add_sched_insns_for_speculation): Likewise.
7364         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7365         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7366         (frv_for_each_packet): Likewise.
7367         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7368         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7369         (final_emit_insn_group_barriers): Likewise.
7370         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7371         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7372         (mips16_insn_length): Likewise.
7373         * config/pa/pa.c (pa_reorg): Likewise.
7374         (pa_combine_instructions): Likewise.
7375         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7376         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7377         (sh_reorg): Likewise.
7378         (split_branches): Likewise.
7379         * config/spu/spu.c (get_branch_target): Likewise.
7381         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7382         JUMP_TABLE_DATA_P.
7384 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7386         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7387         Fix declaration name.
7389 2013-03-28  Lawrence Crowl  <crowl@google.com>
7391         * graphds.h (struct graph.indicies): Remove unused.
7392         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7393         (SCOP_ORIGINAL_PDDRS): Remove unused.
7394         * sese.h (extern insert_loop_close_phis): Removed unused.
7395         (extern insert_guard_phis): Removed unused.
7396         (extern ivtype_map_elt_info): Removed unused.
7397         (new_ivtype_map_elt): Removed unused.
7398         * sese.c (ivtype_map_elt_info): Removed unused.
7400 2013-03-28  Lawrence Crowl  <crowl@google.com>
7402         * Makefile.in: Add several missing include dependences.
7403         (DUMPFILE_H): New.
7404         (test-dump.o): New.  This object is not added to any executable,
7405         but is present for ad-hoc testing.
7406         * bitmap.c
7407         (debug (const bitmap_head_def &)): New.
7408         (debug (const bitmap_head_def *)): New.
7409         * bitmap.h
7410         (extern debug (const bitmap_head_def &)): New.
7411         (extern debug (const bitmap_head_def *)): New.
7412         * cfg.c
7413         (debug (edge_def &)): New.
7414         (debug (edge_def *)): New.
7415         * cfghooks.c
7416         (debug (basic_block_def &)): New.
7417         (debug (basic_block_def *)): New.
7418         * dumpfile.h
7419         (dump_node (const_tree, int, FILE *)): Correct source file.
7420         * dwarf2out.c
7421         (debug (die_struct &)): New.
7422         (debug (die_struct *)): New.
7423         * dwarf2out.h
7424         (extern debug (die_struct &)): New.
7425         (extern debug (die_struct *)): New.
7426         * gimple-pretty-print.c
7427         (debug (gimple_statement_d &)): New.
7428         (debug (gimple_statement_d *)): New.
7429         * gimple-pretty-print.h
7430         (extern debug (gimple_statement_d &)): New.
7431         (extern debug (gimple_statement_d *)): New.
7432         * ira-build.c
7433         (debug (ira_allocno_copy &)): New.
7434         (debug (ira_allocno_copy *)): New.
7435         (debug (ira_allocno &)): New.
7436         (debug (ira_allocno *)): New.
7437         * ira-int.h
7438         (extern debug (ira_allocno_copy &)): New.
7439         (extern debug (ira_allocno_copy *)): New.
7440         (extern debug (ira_allocno &)): New.
7441         (extern debug (ira_allocno *)): New.
7442         * ira-lives.c
7443         (debug (live_range &)): New.
7444         (debug (live_range *)): New.
7445         * lra-int.h
7446         (debug (lra_live_range &)): New.
7447         (debug (lra_live_range *)): New.
7448         * lra-lives.c
7449         (debug (lra_live_range &)): New.
7450         (debug (lra_live_range *)): New.
7451         * omega.c
7452         (debug (omega_pb_d &)): New.
7453         (debug (omega_pb_d *)): New.
7454         * omega.h
7455         (extern debug (omega_pb_d &)): New.
7456         (extern debug (omega_pb_d *)): New.
7457         * print-rtl.c
7458         (debug (const rtx_def &)): New.
7459         (debug (const rtx_def *)): New.
7460         * print-tree.c
7461         (debug_tree (tree): Move within file.
7462         (debug_raw (const tree_node &)): New.
7463         (debug_raw (const tree_node *)): New.
7464         (dump_tree_via_hooks (const tree_node *, int)): New.
7465         (debug (const tree_node &)): New.
7466         (debug (const tree_node *)): New.
7467         (debug_verbose (const tree_node &)): New.
7468         (debug_verbose (const tree_node *)): New.
7469         (debug_head (const tree_node &)): New.
7470         (debug_head (const tree_node *)): New.
7471         (debug_body (const tree_node &)): New.
7472         (debug_body (const tree_node *)): New.
7473         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7474         (debug (vec<tree, va_gc> &)): New.
7475         (debug (vec<tree, va_gc> *)): New.
7476         * rtl.h
7477         (extern debug (const rtx_def &)): New.
7478         (extern debug (const rtx_def *)): New.
7479         * sbitmap.c
7480         (debug_raw (simple_bitmap_def &)): New.
7481         (debug_raw (simple_bitmap_def *)): New.
7482         (debug (simple_bitmap_def &)): New.
7483         (debug (simple_bitmap_def *)): New.
7484         * sbitmap.h
7485         (extern debug (simple_bitmap_def &)): New.
7486         (extern debug (simple_bitmap_def *)): New.
7487         (extern debug_raw (simple_bitmap_def &)): New.
7488         (extern debug_raw (simple_bitmap_def *)): New.
7489         * sel-sched-dump.c
7490         (debug (vinsn_def &)): New.
7491         (debug (vinsn_def *)): New.
7492         (debug_verbose (vinsn_def &)): New.
7493         (debug_verbose (vinsn_def *)): New.
7494         (debug (expr_def &)): New.
7495         (debug (expr_def *)): New.
7496         (debug_verbose (expr_def &)): New.
7497         (debug_verbose (expr_def *)): New.
7498         (debug (vec<rtx> &)): New.
7499         (debug (vec<rtx> *)): New.
7500         * sel-sched-dump.h
7501         (extern debug (vinsn_def &)): New.
7502         (extern debug (vinsn_def *)): New.
7503         (extern debug_verbose (vinsn_def &)): New.
7504         (extern debug_verbose (vinsn_def *)): New.
7505         (extern debug (expr_def &)): New.
7506         (extern debug (expr_def *)): New.
7507         (extern debug_verbose (expr_def &)): New.
7508         (extern debug_verbose (expr_def *)): New.
7509         (extern debug (vec<rtx> &)): New.
7510         (extern debug (vec<rtx> *)): New.
7511         * sel-sched-ir.h
7512         (_list_iter_cond_expr): Make inline instead of static.
7513         * sreal.c
7514         (debug (sreal &)): New.
7515         (debug (sreal *)): New.
7516         * sreal.h
7517         (extern debug (sreal &)): New.
7518         (extern debug (sreal *)): New.
7519         * tree.h
7520         (extern debug_raw (const tree_node &)): New.
7521         (extern debug_raw (const tree_node *)): New.
7522         (extern debug (const tree_node &)): New.
7523         (extern debug (const tree_node *)): New.
7524         (extern debug_verbose (const tree_node &)): New.
7525         (extern debug_verbose (const tree_node *)): New.
7526         (extern debug_head (const tree_node &)): New.
7527         (extern debug_head (const tree_node *)): New.
7528         (extern debug_body (const tree_node &)): New.
7529         (extern debug_body (const tree_node *)): New.
7530         (extern debug (vec<tree, va_gc> &)): New.
7531         (extern debug (vec<tree, va_gc> *)): New.
7532         * tree-cfg.c
7533         (debug (struct loop &)): New.
7534         (debug (struct loop *)): New.
7535         (debug_verbose (struct loop &)): New.
7536         (debug_verbose (struct loop *)): New.
7537         * tree-dump.c: Add header dependence.
7538         * tree-flow.h
7539         (extern debug (struct loop &)): New.
7540         (extern debug (struct loop *)): New.
7541         (extern debug_verbose (struct loop &)): New.
7542         (extern debug_verbose (struct loop *)): New.
7543         * tree-data-ref.c
7544         (debug (data_reference &)): New.
7545         (debug (data_reference *)): New.
7546         (debug (vec<data_reference_p> &)): New.
7547         (debug (vec<data_reference_p> *)): New.
7548         (debug (vec<ddr_p> &)): New.
7549         (debug (vec<ddr_p> *)): New.
7550         * tree-data-ref.h
7551         (extern debug (data_reference &)): New.
7552         (extern debug (data_reference *)): New.
7553         (extern debug (vec<data_reference_p> &)): New.
7554         (extern debug (vec<data_reference_p> *)): New.
7555         (extern debug (vec<ddr_p> &)): New.
7556         (extern debug (vec<ddr_p> *)): New.
7557         * tree-ssa-alias.c
7558         (debug (pt_solution &)): New.
7559         (debug (pt_solution *)): New.
7560         * tree-ssa-alias.h
7561         (extern debug (pt_solution &)): New.
7562         (extern debug (pt_solution *)): New.
7563         * tree-ssa-alias.c
7564         (debug (_var_map &)): New.
7565         (debug (_var_map *)): New.
7566         (debug (tree_live_info_d &)): New.
7567         (debug (tree_live_info_d *)): New.
7568         * tree-ssa-alias.h
7569         (extern debug (_var_map &)): New.
7570         (extern debug (_var_map *)): New.
7571         (extern debug (tree_live_info_d &)): New.
7572         (extern debug (tree_live_info_d *)): New.
7574 2013-03-28  Jan Hubicka  <jh@suse.cz>
7576         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7578 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7580         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7581         record only when desired or required.
7583 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7585         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7586         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7588 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7590         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7591         (*andsi3_compare0_uxtw): New pattern.
7592         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7593         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7595 2013-03-28  Jan Hubicka  <jh@suse.cz>
7597         * data-streamer-in.c (streamer_read_gcov_count): New function.
7598         * gimple-streamer-out.c: Include value-prof.h.
7599         (output_gimple_stmt): Output histogram.
7600         (output_bb): Use streamer_write_gcov_count.
7601         * value-prof.c: Include data-streamer.h
7602         (dump_histogram_value): Add HIST_TYPE_MAX.
7603         (stream_out_histogram_value): New function.
7604         (stream_in_histogram_value): New function.
7605         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7606         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7607         * data-streamer-out.c (streamer_write_gcov_count): New function.
7608         (streamer_write_gcov_count_stream): New function.
7609         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7610         (lto_output_node): Likewise.
7611         (input_node, input_edge): Likewise.
7612         * lto-streamer-out.c (output_cfg): Update streaming.
7613         * lto-streamer-in.c (input_cfg): Likewise.
7614         * data-streamer.h (streamer_write_gcov_count,
7615         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7616         * gimple-streamer-in.c: Include value-prof.h
7617         (input_gimple_stmt): Input histograms.
7618         (input_bb): Update profile streaming.
7620 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7622         * genmodes.c (emit_max_int): New function.
7623         (emit_insn_modes_h): Added call to emit_max_function.
7624         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7625         Added doc.
7626         * machmode.def: Fixed comment.
7628 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7630         * combine.c (try_combine): Removed useless assert.
7631         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7633 2013-03-28  Marek Polacek  <polacek@redhat.com>
7634             Richard Biener  <rguenther@suse.de>
7636         PR tree-optimization/56695
7637         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7638         build signed result of a vector comparison.
7639         * tree-cfg.c (verify_gimple_comparison): Check that a result
7640         of a vector comparison has signed type.
7642 2013-03-28  Richard Biener  <rguenther@suse.de>
7644         PR tree-optimization/37021
7645         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7646         do not restrict gaps between groups.
7647         * tree-vect-stmts.c (vectorizable_load): Properly account for
7648         a gap between groups.
7650 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7652         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7653         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7654         is not enabled.
7656 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7658         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7659         * doc/extend.texi (Named Address Spaces): Ditto.
7660         (Variable Attributes): Ditto.
7662 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7664         * config.build: Add support for cygwin x64 target.
7665         * config.gcc: Likewise.
7666         * config.host: Likewise.
7667         * configure.ac: Likewise
7668         * configure: Regenerated.
7670 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7672         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7673         * config/i386/t-cygwin-w64: New file.
7674         * config/i386/cygwin-w64.h: New file.
7675         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7676         and add support for x64-cygwin target.
7677         (CPP_SPEC): Likewise.
7678         (CXX_WRAP_SPEC_LIST): Undefine before define.
7679         (LIBGCJ_SONAME): Use 15 as version.
7681 2013-03-27  Richard Biener  <rguenther@suse.de>
7683         PR tree-optimization/56716
7684         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7685         dumping for ref nodes.
7687 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7689         PR tree-optimization/55334
7690         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7691         restricted pointers to arrays.
7693 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7695         * Makefile.in (.SUFFIXES): Add .cc.
7696         (.c.o): Apply same recipe for implicit rule .cc.o.
7698 2013-03-27  Richard Biener  <rguenther@suse.de>
7700         PR tree-optimization/37021
7701         * tree-vect-data-refs.c (vect_check_strided_load): Allow
7702         REALPART/IMAGPART_EXPRs around the supported refs.
7703         * tree-ssa-structalias.c (find_func_aliases): Assume that
7704         floating-point values are not used to transfer pointers.
7706 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7708         * target.def (TARGET_HAS_IFUNC_P): New target hook.
7709         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7710         * doc/tm.texi: Regenerate.
7711         * targhooks.h (default_has_ifunc_p): New.
7712         * targhooks.c (default_has_ifunc_p): Ditto.
7713         * config/linux-protos.h: New file.
7714         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7715         this hook for linux which disables support of indirect functions in
7716         android.
7717         * config/linux-android.c: New file.
7718         * config/t-linux-android.c: Ditto.
7719         * config.gcc: Added new object file linux-android.o.
7720         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7721         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7722         * varasm.c (do_assemble_alias): Likewise.
7723         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7724         doesn't support indirect functions.
7725         * configure: Regenerate.
7727 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
7729         PR target/56102
7730         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7731         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7732         mult-word mode.
7734 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7736         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7738 2013-03-27  Terry Guo  <terry.guo@arm.com>
7740         * config/arm/arm-cores.def: Added core cortex-r7.
7741         * config/arm/arm-tune.md: Regenerated.
7742         * config/arm/arm-tables.opt: Regenerated.
7743         * doc/invoke.texi: Added entry for core cortex-r7.
7745 2013-03-27  Walter Lee  <walt@tilera.com>
7747         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7748         double-decrement of next_scratch_regno.
7750 2013-03-27  Walter Lee  <walt@tilera.com>
7752         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7753         input operands.
7754         (insn_v1mulus): Ditto.
7755         (insn_v2muls): Ditto.
7757 2013-03-27  Walter Lee  <walt@tilera.com>
7759         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7760         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7762 2013-03-27  Walter Lee  <walt@tilera.com>
7764         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7765         (*sibcall_value): Ditto.
7767 2013-03-27  Walter Lee  <walt@tilera.com>
7769         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7770         (insn_mnz_v8qi): ... this ...
7771         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
7772         vector equivalent.
7773         (insn_v<n>mnz): Replaced by ...
7774         (insn_v1mnz): ... this ...
7775         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
7776         equivalent.
7777         (insn_mz_<mode>): Replaced by ...
7778         (insn_mz_v8qi): ... this ...
7779         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
7780         vector equivalent.
7781         (insn_v<n>mz): Replaced by ...
7782         (insn_v1mz): ... this ...
7783         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
7784         equivalent.
7786 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7788         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7790 2013-03-26  Roland McGrath  <mcgrathr@google.com>
7792         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7793         than fprintf with a non-constant, non-format string.
7795 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7797         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7798         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
7799         operand 0 predicate.
7800         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7801         attribute.  Use general_x64nomem_operand as operand 1 predicate.
7802         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7803         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7804         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7805         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7806         (mov<mode>_insv_1): Remove expander.  Merge insn with
7807         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7808         Use general_x64nomem_operand as operand 1 predicate.
7809         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7810         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7811         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7812         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7813         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
7814         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7815         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7816         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7817         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
7818         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7819         (general_x64nomem_operand): Ditto.
7821 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7823         * config/rtems.opt: Add -pthread option.
7825 2013-03-26  Richard Biener  <rguenther@suse.de>
7827         * alias.c (find_base_term): Avoid redundant and not used recursion.
7828         (base_alias_check): Get the initial base term from the caller.
7829         (true_dependence_1): Compute and pass base terms to base_alias_check.
7830         (write_dependence_p): Likewise.
7831         (may_alias_p): Likewise.
7833 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
7835         * config/aarch64/aarch64.c (aarch64_classify_address): Support
7836         PC-relative load in SI modes and above only.
7838 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
7840         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7841         * config/arm/iwmmxt.md (WCGR0): Update.
7842         (WCGR1, WCGR2, WCGR3): Likewise.
7844 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7846         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7847         Use x64 and nox64 isa attributes.
7849 2013-03-26  Richard Biener  <rguenther@suse.de>
7851         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7852         alignment computations and rely on get_object_alignment_1
7853         for the !TYPE_P case.
7854         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7856 2013-03-26  Walter Lee  <walt@tilera.com>
7858         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7859         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7861 2013-03-25  Jeff Law  <law@redhat.com>
7863         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7864         check for INTEGRAL_TYPE_P that was missing due to checking in
7865         wrong version of prior patch.
7867 2013-03-25  Walter Lee  <walt@tilera.com>
7869         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7870         TILEGX_INSN_SHUFFLEBYTES1.
7871         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7872         shufflebytes1.
7873         (tilegx_builtins): Ditto.
7874         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7876 2013-03-25  Walter Lee  <walt@tilera.com>
7878         * config/tilegx/tilegx.md (floatsisf2): New pattern.
7879         (floatunssisf2): New pattern.
7880         (floatsidf2): New pattern.
7881         (floatunssidf2): New pattern.
7883 2013-03-25  Walter Lee  <walt@tilera.com>
7885         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7886         tests for constraint J, K, N, P.
7888 2013-03-25  Walter Lee  <walt@tilera.com>
7890         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7891         Use indirect/pcrel encoding.
7892         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7893         Ditto.
7895 2013-03-25  Steve Ellcey  <sellcey@mips.com>
7897         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7898         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7899         * config/mips/mips.c (mips_option_override): Set IMADD default.
7900         * config/mips/mips.h (PTF_AVOID_IMADD): New.
7901         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7902         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7903         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7904         * doc/invoke.texi (-mimadd/-mno-imadd): New.
7906 2013-03-25  Jeff Law  <law@redhat.com>
7908         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7909         slightly to avoid creating and folding useless trees.  Simplify
7910         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7912 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
7914         * config/i386/i386.md (*zero_extendsidi2): Merge with
7915         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
7916         * config/i386/predicates.md (x86_64_zext_operand): Rename from
7917         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
7918         targets.  Clarify comment.
7920 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7922         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7923         pass-through jump functions differently.
7924         (ipa_read_jump_function): Likewise.  Also use setter functions to set
7925         up jump functions.
7927 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7929         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7930         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7931         process it.
7932         (ipa_get_indirect_edge_target): New function.
7933         (devirtualization_time_bonus): New parameter known_aggs, pass it to
7934         ipa_get_indirect_edge_target.  Update all callers.
7935         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
7936         ipa_get_indirect_edge_target_1 instead of calling
7937         ipa_get_indirect_edge_target.
7938         (create_specialized_node): Pass aggvlas to
7939         ipcp_discover_new_direct_edges.
7941 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7943         * config/arm/arm.md (f_sels, f_seld): New types.
7944         (*cmov<mode>): New pattern.
7945         * config/arm/predicates.md (arm_vsel_comparison_operator): New
7946         predicate.
7948 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7950         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7951         POSIX-printf for mingw-hosted  builds.
7953 2013-03-25  Richard Biener  <rguenther@suse.de>
7955         PR middle-end/56694
7956         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7957         must-not-throw stmt location.
7959 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7961         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7962         Emit load-acquire versions when acq is true.
7963         (arm_emit_store_exclusive): Add rel parameter.
7964         Emit store-release versions when rel is true.
7965         (arm_split_compare_and_swap): Use acquire-release instructions
7966         instead.
7967         of barriers when appropriate.
7968         (arm_split_atomic_op): Likewise.
7969         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7970         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7971         (VUNSPEC_SLX): Likewise.
7972         (VUNSPEC_LDA): Likewise.
7973         (VUNSPEC_STL): Likewise.
7974         * config/arm/sync.md (atomic_load<mode>): New pattern.
7975         (atomic_store<mode>): Likewise.
7976         (arm_load_acquire_exclusive<mode>): Likewise.
7977         (arm_load_acquire_exclusivesi): Likewise.
7978         (arm_load_acquire_exclusivedi): Likewise.
7979         (arm_store_release_exclusive<mode>): Likewise.
7981 2013-03-25  Catherine Moore  <clm@codesourcery.com>
7983         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7984         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7985         * config/mip/predicates.md (lwsp_swsp_operand,
7986         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7987         sb16_operand, db4_operand, db7_operand, ib3_operand,
7988         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7989         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7990         andi16_operand): New predicates.
7991         * config/mips/mips.md (compression): New attribute.
7992         (enabled): New attribute.
7993         (length): Consider compression in computing length.
7994         (shift_compression): New code attribute.
7995         (*add<mode>3): New operands. Record compression.
7996         (sub<mode>3): Likewise.
7997         (one_cmpl<mode>2): Likewise.
7998         (*and<mode>3): Likewise.
7999         (*ior<mode>3): Likewise.
8000         (unnamed pattern for xor): Likewise.
8001         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8002         (*<optab><mode>3): Likewise.
8003         (*mov<mode>_internal: Likewise.
8004         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8005         (mips_unsigned_immediate_p): New.
8006         (umips_lwsp_swsp_address_p): New.
8007         (m16_based_address_p): New.
8008         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8009         (mips_unsigned_immediate_p): New prototype.
8010         (lwsp_swsp_address_p): New prototype.
8011         (m16_based_address_p): New prototype.
8012         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8013         (mips_signed_immediate_p): New function.
8014         (m16_based_address_p): New function.
8015         (lwsp_swsp_address_p): New function.
8016         (mips_print_operand_punctuation): Recognize short delay slot insns
8017         for microMIPS.add<mode>3"
8019 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8021         PR target/56720
8022         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8023         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8025 2013-03-25  Richard Biener  <rguenther@suse.de>
8027         PR tree-optimization/56689
8028         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8029         any edge.
8031 2013-03-25  Richard Biener  <rguenther@suse.de>
8033         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8034         of bitmap.
8035         (memory_references): Likewise.
8036         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8037         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8038         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8039         (gather_mem_refs_in_loops): Fold into ...
8040         (analyze_memory_references): ... this.  Move initialization
8041         to tree_ssa_lim_initialize.
8042         (fill_always_executed_in): Rename to ...
8043         (fill_always_executed_in_1): ... this.
8044         (fill_always_executed_in): Move contains_call computation to
8045         this new function from ...
8046         (tree_ssa_lim_initialize): ... here.
8047         (tree_ssa_lim): Call fill_always_executed_in.
8049 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8051         * postreload.c (reload_combine): Fix code detecting returns.
8053 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8055         * function.c (emit_use_return_register_into_block): On cc0 targets,
8056         do not emit the sequence between cc0 setter and user.
8058 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8060         * config/i386/predicates.md (local_symbolic_operand): Interpret
8061         dll-imported symbols as none-local.
8063 2013-03-25  Richard Biener  <rguenther@suse.de>
8065         * tree-ssa-loop-im.c (struct depend): Remove.
8066         (struct lim_aux_data): Make depends a vec of gimples.
8067         (free_lim_aux_data): Adjust.
8068         (add_dependency): Likewise.
8069         (set_level): Likewise.
8071 2013-03-25  Richard Biener  <rguenther@suse.de>
8073         PR middle-end/56434
8074         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8075         the pointer returned by calls with ECF_MALLOC set.
8077 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8079         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8081 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8083         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8084         using MMXMODE mode iterator.
8085         (*move<mode>_internal): Merge with *movv2sf_internal and
8086         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8088 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8090         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8091         (record_last_mem_set_info): Likewise.
8093         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8094         of XNEWVEC followed by memset.
8095         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8097 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8099         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8100         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8101         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8102         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8103         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8104         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8105         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8106         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8107         BARRIER_P instead of GET_CODE.
8109 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8111         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8112         inaccuracy in the probing code.
8114         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8115         (ctrapdi4): Likewise.
8117 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8119         * calls.c (expand_call): Add missing guard to code handling return
8120         of non-BLKmode structures in MSB.
8121         * function.c (expand_function_end): Likewise.
8123 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8125         * combine.c (try_combine): Adjust comment.  Do not add the set of
8126         insn #0 if the destination indirectly is set or dies in insn #2.
8127         Tidy up code to distribute a new note.
8129 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8131         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8132         also for alternatives 16 and 17.
8134 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8136         * config/i386/sse.md (*mov<mode>_internal): Merge with
8137         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8138         Emit insn template depending on type attribute.  Use
8139         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8140         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8141         attribute calculation.  Remove unit attribute calculation.
8142         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8143         Set prefix_data16 attribute for DImode ssemov types.
8144         Use Ym instead of y for SSE-MMX conversion alternatives.
8145         Reorder operand constraints.
8147 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8149         * df.h (df_insn_delete): Adjust prototype.
8150         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8151         and let it decide whether mark the basic block dirty.
8152         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8153         * df-scan.c (df_insn_info_delete): New helper function, split
8154         off from df_insn_delete.
8155         (df_scan_free_bb_info): Use it.
8156         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8157         Likewise.
8158         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8159         that the insn is actually an insn and it has a non-NULL basic block.
8160         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8162 2013-03-22  Richard Biener  <rguenther@suse.de>
8164         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8165         dep_ref members.
8166         (mem_ref_alloc): Do not allocate them.
8167         (refs_independent_p): Do not query or maintain a cache.
8169 2013-03-22  Richard Biener  <rguenther@suse.de>
8171         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8172         (gather_mem_refs_in_loops): Do not compute it.
8173         (analyze_memory_references): Do not allocate it.
8174         (tree_ssa_lim_finalize): Do not free it.
8175         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8177 2013-03-22  Richard Biener  <rguenther@suse.de>
8179         * is-a.h (as_a): Use gcc_checking_assert.
8181 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8183         * config/aarch64/aarch64.c (aarch64_print_operand): New
8184         format specifier for printing a constant in hex.
8185         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8186         format specifier for printing second operand.
8188 2013-03-22  Richard Biener  <rguenther@suse.de>
8190         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8191         bitmaps.
8192         (gather_mem_refs_in_loops): Perform store accumulation here.
8193         (create_vop_ref_mapping_loop): Remove.
8194         (create_vop_ref_mapping): Likewise.
8195         (analyze_memory_references): Initialize refs_stored_in_loop.
8196         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8197         (record_indep_loop): Remove.
8198         (record_dep_loop): New function.
8199         (ref_indep_loop_p_1): Adjust to only walk over references
8200         in the loop, not its subloops.
8201         (ref_indep_loop_p): Rename to ...
8202         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8203         maintaining a more fine-grained cache.
8204         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8205         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8207 2013-03-22  Richard Biener  <rguenther@suse.de>
8209         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8210         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8211         aggregate mem_ref_loc.
8212         (free_mem_ref_locs): Inline into ...
8213         (memref_free): ... this and adjust.
8214         (mem_ref_alloc): Adjust.
8215         (mem_ref_locs_alloc): Remove.
8216         (record_mem_ref_loc): Adjust.
8217         (get_all_locs_in_loop): Rewrite into ...
8218         (for_all_locs_in_loop): ... this iterator.
8219         (rewrite_mem_ref_loc): New functor.
8220         (rewrite_mem_refs): Use for_all_locs_in_loop.
8221         (sm_set_flag_if_changed): New functor.
8222         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8223         (ref_always_accessed): New functor.
8224         (ref_always_accessed_p): Use for_all_locs_in_loop.
8226 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8228         * tree-pass.h (PROP_gimple_lvec): New.
8229         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8230         (init_optimization_passes): Move pass_lower_vector.
8231         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8232         PROP_gimple_lvec.
8233         (pass_lower_vector): Provide PROP_gimple_lvec.
8234         (pass_lower_vector_ssa): Likewise.
8235         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8237 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8239         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8241 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8243         * config/i386/i386.md (*movdi_internal): Disparage slightly
8244         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8245         conversion alternatives.
8247 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8249         PR middle-end/48087
8250         * diagnostic.def (DK_WERROR): New kind.
8251         * diagnostic.h (werrorcount): Define.
8252         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8253         promoted to DK_ERROR, increment DK_WERROR counter instead of
8254         DK_ERROR counter.
8255         * toplev.c (toplev_main): Call print_ignored_options even if
8256         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8257         even if just werrorcount is non-zero.
8259         PR debug/55608
8260         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8261         on failure.
8262         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8263         (string_cst_pool_decl): New function.
8264         (optimize_one_addr_into_implicit_ptr): New function.
8265         (resolve_addr_in_expr): Optimize DWARF location expression
8266         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8267         which doesn't live in memory, but has DW_AT_location or
8268         DW_AT_const_value, or refers to a string literal, into
8269         DW_OP_GNU_implicit_pointer.
8270         (optimize_location_into_implicit_ptr): New function.
8271         (resolve_addr): If removing DW_AT_location of a variable because
8272         it was DW_OP_addr of address of the variable, but the variable doesn't
8273         live in memory, try to emit const value attribute for the initializer.
8275 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8277         * tree.h (VECTOR_TYPE_P): New macro.
8278         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8279         TYPE_MODE): Use it.
8280         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8281         VEC_COND_EXPR cannot be lvalues.
8282         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8284 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8286         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8287         Restrict the transformation to equal modes.
8289 2013-03-21  Richard Biener  <rguenther@suse.de>
8291         PR tree-optimization/39326
8292         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8293         (MEM_ANALYZABLE): Adjust.
8294         (record_mem_ref_loc): Move bitmap ops ...
8295         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8296         unanalyzable refs, do not record locations for it.
8297         (analyze_memory_references): Allocate ref zero as shared
8298         unanalyzable ref.
8299         (refs_independent_p): Do not test for unanalyzed mems here.
8300         (ref_indep_loop_p_1): Special-case disambiguation against
8301         the unanalyzed ref.
8302         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8304 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8306         * config/arm/arm-protos.h (tune_params): Add
8307         prefer_neon_for_64bits field.
8308         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8309         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8310         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8311         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8312         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8313         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8314         (arm_option_override): Handle -mneon-for-64bits new option.
8315         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8316         (prefer_neon_for_64bits): Declare new variable.
8317         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8318         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8319         (arch_enabled): Handle new arch types. Remove support for onlya8
8320         and nota8.
8321         (one_cmpldi2): Use new arch names.
8322         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8323         * config/arm/arm.opt (mneon-for-64bits): Add option.
8324         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8325         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8326         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8327         of onlya8.
8328         * doc/invoke.texi (-mneon-for-64bits): Document.
8330 2013-03-21  Richard Biener  <rguenther@suse.de>
8332         PR tree-optimization/39326
8333         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8334         (sort_bbs_in_loop_postorder_cmp): New function.
8335         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8337 2013-03-21  Richard Biener  <rguenther@suse.de>
8339         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8340         (vect_insert_into_interleaving_chain): Likewise.
8341         (vect_drs_dependent_in_basic_block): Inline ...
8342         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8343         split out from ...
8344         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8345         (vect_check_interleaving): Simplify.
8346         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8347         (vect_slp_analyze_data_ref_dependences): ... this new function.
8348         (dr_group_sort_cmp): New function.
8349         (vect_analyze_data_ref_accesses): Compute data-reference groups
8350         here instead of in vect_analyze_data_ref_dependence.  Use
8351         a more efficient algorithm.
8352         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8353         vect_slp_analyze_data_ref_dependences.  Call
8354         vect_analyze_data_ref_accesses earlier.
8355         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8356         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8357         (vect_slp_analyze_data_ref_dependences): New prototype.
8359 2013-03-21  Richard Biener  <rguenther@suse.de>
8361         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8362         ref is stored in the loop.
8363         (find_refs_for_sm): Walk only over all stores.
8364         (store_motion_loop): Allocate from lim_bitmap_obstack.
8365         (store_motion): Likewise.
8367 2013-03-21  Richard Biener  <rguenther@suse.de>
8369         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8370         Update virtual SSA form.
8372 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8374         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8375         * configure: Regenerate.
8376         * config.in: Regenerate.
8377         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8378         if !HAVE_LD_EH_FRAME_CIEV3.
8380 2013-03-21  Richard Biener  <rguenther@suse.de>
8382         * tree-cfg.c (verify_expr_no_block): New function.
8383         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8384         nor DECL_VALUE_EXPR have locations with associated blocks.
8385         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8386         (clear_unused_block_pointer): Remove code dealing with
8387         blocks in DECL_DEBUG_EXPR locations.
8389 2013-03-21  Richard Biener  <rguenther@suse.de>
8391         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8392         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8393         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8394         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8395         instead of DECL_DEBUG_EXPR_IS_FROM.
8396         * gimplify.c (gimplify_modify_expr): Likewise.
8397         * tree-cfg.c (verify_expr_location_1): Likewise.
8398         * tree-complex.c (create_one_component_var): Likewise.
8399         * tree-sra.c (create_access_replacement): Likewise.
8400         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8401         (clear_unused_block_pointer): Likewise.
8402         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8403         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8404         * var-tracking.c (var_debug_decl): Likewise.
8405         (track_expr_p): Likewise.
8406         * tree-inline.c (add_local_variables): Likewise.  Set
8407         DECL_HAS_DEBUG_EXPR_P after copying it.
8408         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8409         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8411 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8413         PR bootstrap/56656
8414         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8415         * configure: Regenerate.
8416         * config.in: Regenerate.
8417         * config/i386/i386.md (*movdf_internal): Use
8418         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8419         movd instead of movq mnemonic for interunit moves.
8420         (*movdi_internal): Ditto.
8422 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8424         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8425         (abd<mode>_3): New pattern.
8426         (aba<mode>_3): New pattern.
8427         (fabd<mode>_3): New pattern.
8429 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8431         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8432         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8433         occurrence of REGISTER_PREFIX as its empty string.
8435 2013-03-20  Jeff Law  <law@redhat.com>
8437         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8438         addititional equivalences for equality comparisons between an SSA_NAME
8439         and a constant where the SSA_NAME was set from a widening conversion.
8441 2013-03-20  Walter Lee  <walt@tilera.com>
8443         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8445 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8447         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8448         depending on type attribute.
8449         (*movti_internal): Ditto.
8450         (*movtf_internal): Ditto.
8451         (*movxf_internal): Ditto.
8452         (*movdf_internal): Ditto.
8453         (*movsf_internal): Ditto.
8455 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8457         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8458         maybe_vex for sselog1 and ssemov types.
8459         (*movdi_internal): Reorder operand constraints.
8460         (*movsi_internal): Ditto.  Set prefix attribute to
8461         maybe_vex for sselog1 and ssemov types.
8462         (*movtf_internal): Set prefix attribute to maybe_vex
8463         for sselog1 and ssemov types.
8464         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8465         DImode ssemov types.  Reorder operand constraints.
8466         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8467         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8468         attribute for SImode ssemov types.  Reorder operand constraints.
8470 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8472         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8473         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8475 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8477         * config/rs6000/predicates.md (indexed_address, update_address_mem
8478         update_indexed_address_mem): New predicates.
8479         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8480         attribute for load/store instructions.
8481         * config/rs6000/dfp.md (movsd_store): Likewise.
8482         (movsd_load): Likewise.
8483         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8484         (unnamed HI->DI extend define_insn): Likewise.
8485         (unnamed SI->DI extend define_insn): Likewise.
8486         (unnamed QI->SI extend define_insn): Likewise.
8487         (unnamed QI->HI extend define_insn): Likewise.
8488         (unnamed HI->SI extend define_insn): Likewise.
8489         (unnamed HI->SI extend define_insn): Likewise.
8490         (extendsfdf2_fpr): Likewise.
8491         (movsi_internal1): Likewise.
8492         (movsi_internal1_single): Likewise.
8493         (movhi_internal): Likewise.
8494         (movqi_internal): Likewise.
8495         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8496         attribute for load/store instructions.
8497         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8498         instructions.
8499         (mov<mode>_softfloat): Likewise.
8500         (mov<mode>_hardfloat32): Likewise.
8501         (mov<mode>_hardfloat64): Likewise.
8502         (mov<mode>_softfloat64): Likewise.
8503         (movdi_internal32): Likewise.
8504         (movdi_internal64): Likewise.
8505         (probe_stack_<mode>): Likewise.
8507 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8509         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8510         floating point, and decimal floating point to reload iterator.
8512         * config/rs6000/constraints.md (wl constraint): New constraints to
8513         return FLOAT_REGS if certain options are used to reduce the number
8514         of separate patterns that exist in the file.
8515         (wx constraint): Likewise.
8516         (wz constraint): Likewise.
8518         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8519         -mdebug=reg, print wg, wl, wx, and wz constraints.
8520         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8521         Initialize the reload functions for 64-bit binary/decimal floating
8522         point types.
8523         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8524         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8525         create the buffer on the stack to overcome not having a 32-bit
8526         load and store.
8527         (rs6000_emit_move): Likewise.
8528         (rs6000_secondary_memory_needed_rtx): Likewise.
8529         (rs6000_alloc_sdmode_stack_slot): Likewise.
8530         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8531         via xxlxor, just like DFmode 0.0.
8533         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8534         define as 1 if we are running on a power7 or newer.
8535         (enum r6000_reg_class_enum): Add new constraints.
8537         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8538         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8539         with other moves by using conditional constraits (wg).  Use LFIWZX
8540         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8541         (movsd splitter): Likewise.
8542         (movsd_hardfloat): Likewise.
8543         (movsd_softfloat): Likewise.
8545         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8546         binary and decimal floating point moves.
8547         (fmove_ok): New attributes to combine binary and decimal floating
8548         point moves, and to combine power6x (mfpgpr) moves along normal
8549         floating moves.
8550         (real_value_to_target): Likewise.
8551         (f32_lr): Likewise.
8552         (f32_lm): Likewise.
8553         (f32_li): Likewise.
8554         (f32_sr): Likewise.
8555         (f32_sm): Likewise.
8556         (f32_si): Likewise.
8557         (movsf): Combine binary and decimal floating point moves.  Combine
8558         power6x (mfpgpr) moves with other moves by using conditional
8559         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8560         (mov<mode> for SFmode/SDmode); Likewise.
8561         (SFmode/SDmode splitters): Likewise.
8562         (movsf_hardfloat): Likewise.
8563         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8564         (movsf_softfloat): Likewise.
8565         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8567         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8568         wx and wz constraints.
8570         * config/rs6000/constraints.md (wg constraint): New constraint to
8571         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8573         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8574         constraint.
8576         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8577         -mdebug=reg, print wg, wl, wx, and wz constraints.
8578         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8579         Initialize the reload functions for 64-bit binary/decimal floating
8580         point types.
8581         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8582         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8583         create the buffer on the stack to overcome not having a 32-bit
8584         load and store.
8585         (rs6000_emit_move): Likewise.
8586         (rs6000_secondary_memory_needed_rtx): Likewise.
8587         (rs6000_alloc_sdmode_stack_slot): Likewise.
8588         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8589         via xxlxor, just like DFmode 0.0.
8591         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8592         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8593         with other moves by using conditional constraits (wg).  Use LFIWZX
8594         and STFIWX for loading SDmode on power7.
8595         (movdd splitters): Likewise.
8596         (movdd_hardfloat32): Likewise.
8597         (movdd_softfloat32): Likewise.
8598         (movdd_hardfloat64_mfpgpr): Likewise.
8599         (movdd_hardfloat64): Likewise.
8600         (movdd_softfloat64): Likewise.
8602         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8603         64-bit binary and decimal floating point moves.
8604         (FMOVE64X): Likewise.
8605         (movdf): Combine 64-bit binary and decimal floating point moves.
8606         Combine power6x (mfpgpr) moves with other moves by using
8607         conditional constraits (wg).
8608         (mov<mode> for DFmode/DDmode): Likewise.
8609         (DFmode/DDmode splitters): Likewise.
8610         (movdf_hardfloat32): Likewise.
8611         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8612         (movdf_softfloat32): Likewise.
8613         (movdf_hardfloat64_mfpgpr): Likewise.
8614         (movdf_hardfloat64): Likewise.
8615         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8616         (movdf_softfloat64): Likewise.
8617         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8618         (reload_<mode>_load): Move to later in the file so they aren't in
8619         the middle of the floating point move insns.
8620         (reload_<mode>_store): Likewise.
8622         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8623         constraint.
8625         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8626         constraint if -mdebug=reg.
8627         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8628         Enable using dd reload support if needed.
8630         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8631         binary and decimal floating point moves in rs6000.md.
8632         (movtd_internal): Likewise.
8634         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8635         decimal floating point moves.
8636         (movtf): Likewise.
8637         (movtf_internal): Likewise.
8638         (mov<mode>_internal, TDmode/TFmode): Likewise.
8639         (movtf_softfloat): Likewise.
8640         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8642         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8643         movdi_internal64, using wg constraint for move direct operations.
8644         (movdi_internal64): Likewise.
8646         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8647         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8648         the various virtual registers. Use GPR/FPR first/last values,
8649         instead of hard coding the register numbers.  Print which modes
8650         have reload functions registered.
8651         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8652         settings before/after setting cpu, target and subtarget settings.
8653         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8654         and for secondary reload failures in rs6000_secondary_reload_inner.
8655         (rs6000_secondary_reload_fail): Likewise.
8656         (rs6000_secondary_reload_inner): Likewise.
8658         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8659         macros for first/last GPR and FPR registers.
8660         (LAST_GPR_REGNO): Likewise.
8661         (FIRST_FPR_REGNO): Likewise.
8662         (LAST_FPR_REGNO): Likewise.
8664         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8665         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8666         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8667         (vcond<mode><mode>): Likewise.
8668         (vcondu<mode><mode>): Likewise.
8669         (vector_gtu<mode>): Likewise.
8670         (vector_gte<mode>): Likewise.
8671         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8672         to prevent the compiler from converting DImode operations to TImode.
8673         (ior<mode>3): Likewise.
8674         (and<mode>3): Likewise.
8675         (one_cmpl<mode>2): Likewise.
8676         (nor<mode>3): Likewise.
8677         (andc<mode>3): Likewise.
8679         * config/rs6000/constraints.md (wt constraint): New constraint
8680         that returns VSX_REGS if TImode is allowed in VSX registers.
8682         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8683         constant under VSX.
8685         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8686         similar to TImode, but it is restricted to being in the GPRs.
8688         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8689         TImode to occupy a single VSX register.
8691         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8692         -mvsx-timode for power7/power8.
8693         (power7 cpu): Likewise.
8694         (power8 cpu): Likewise.
8696         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8697         sure that TFmode/TDmode take up two registers if they are ever
8698         allowed in the upper VSX registers.
8699         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8700         registers.
8701         (rs6000_init_hard_regno_mode_ok): Likewise.
8702         (rs6000_debug_reg_global): Add debugging for PTImode and wt
8703         constraint.  Print if LRA is turned on.
8704         (rs6000_option_override_internal): Give an error if -mvsx-timode
8705         and VSX is not enabled.
8706         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
8707         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8708         to reg+offset addressing.  Use PTImode when checking offset
8709         addresses for validity.
8710         (reg_offset_addressing_ok_p): Likewise.
8711         (rs6000_legitimate_offset_address_p): Likewise.
8712         (rs6000_legitimize_address): Likewise.
8713         (rs6000_legitimize_reload_address): Likewise.
8714         (rs6000_legitimate_address_p): Likewise.
8715         (rs6000_eliminate_indexed_memrefs): Likewise.
8716         (rs6000_emit_move): Likewise.
8717         (rs6000_secondary_reload): Likewise.
8718         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
8719         reloads to fpr registers to continue to use reg+offset addressing,
8720         but 64-bit reloads to altivec registers need reg+reg addressing.
8721         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8722         it.  Treat LO_SUM like a PLUS operation.
8723         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8724         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8725         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8726         registers to share a register with a smaller sized type, since VSX
8727         puts scalars in the upper 64-bits.
8728         (print_operand): Add support for PTImode.
8729         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8730         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8731         registers, but don't have arithmetic support.
8732         (rs6000_memory_move_cost): Add test for VSX.
8733         (rs6000_opt_masks): Add -mvsx-timode.
8735         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8736         for TImode.
8737         (VSs): Likewise.
8738         (VSr): Use wt constraint for TImode.
8739         (VSv): Drop TImode support.
8740         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8741         (vsx_movti_64bit): Likewise.
8742         (vsx_movti_32bit): Likewise.
8743         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8744         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8745         one '?' on the appropriate output constraint.  Do not allow TImode
8746         logical operations on 32-bit systems.
8747         (vsx_ior<mode>3): Likewise.
8748         (vsx_xor<mode>3): Likewise.
8749         (vsx_one_cmpl<mode>2): Likewise.
8750         (vsx_nor<mode>3): Likewise.
8751         (vsx_andc<mode>3): Likewise.
8752         (vsx_concat_<mode>): Likewise.
8753         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8755         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8756         OPTION_MASK_VSX_TIMODE.
8757         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8758         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8760         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8761         (TI2 iterator): New iterator for TImode, PTImode.
8762         (wd mode attribute): Add values for vector types.
8763         (movti_string): Replace TI move operations with operations for TImode
8764         and PTImode.  Add support for TImode being allowed in VSX registers.
8765         (mov<mode>_string, TImode/PTImode): Likewise.
8766         (movti_ppc64): Likewise.
8767         (mov<mode>_ppc64, TImode/PTImode): Likewise.
8768         (TI mode splitters): Likewise.
8770         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8771         constraint.
8773 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
8775         PR tree-optimization/56355
8776         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8777         Also handle integers with undefined overflow.
8779 2013-03-20  Catherine Moore  <clm@codesourcery.com>
8780             Maciej W. Rozycki  <macro@codesourcery.com>
8781             Tom de Vries  <tom@codesourcery.com>
8782             Nathan Sidwell <nathan@codesourcery.com>
8783             Iain Sandoe  <iain@codesourcery.com>
8784             Nathan Froyd  <froydnj@codesourcery.com>
8785             Chao-ying Fu <fu@mips.com>
8787         * doc/extend.texi: (micromips, nomicromips, nocompression):
8788         Document new function attributes.
8789         * doc/invoke.texi (minterlink-compressed, mmicromips,
8790         m14k, m14ke, m14kec): Document new options.
8791         (minterlink-mips16): Update documentation.
8792         * doc/md.texi (ZC, ZD): Document new constraints.
8793         * configure.ac (gcc_cv_as_micromips): Check if linker
8794         supports the .set micromips directive.
8795         * configure: Regenerate.
8796         * config.in: Regenerate.
8797         * config/mips/mips-tables.opt: Regenerate.
8798         * config/mips/micromips.md: New file.
8799         * constraints.md (ZC, ZD): New constraints.
8800         * config/mips/predicates.md (movep_src_register): New predicate.
8801         (movep_src_operand): New predicate.
8802         (non_volatile_mem_operand): New predicate.
8803         * config/mips/mips.md (multimem): New type.
8804         (length): Differentiate between 17-bit and 18-bit branch offsets.
8805         (MOVEP1, MOVEP2): New mode iterator.
8806         (mov_<load>l): Use ZC constraint.
8807         (mov_<load>r): Likewise.
8808         (mov_<store>l): Likewise.
8809         (mov_<store>r): Likewise.
8810         (*branch_equality<mode>_inverted): Add microMIPS support.
8811         (*branch_equality<mode>): Likewise.
8812         (*jump_absolute): Likewise.
8813         (indirect_jump_<mode>): Likewise.
8814         (tablejump_<mode>): Likewise.
8815         (<optab>_internal): Likewise.
8816         (sibcall_internal): Likewise.
8817         (sibcall_value_internal): Likewise.
8818         (prefetch): Use constraint ZD.
8819         * config/mips/mips.opt (minterlink-compressed): New option.
8820         (minterlink-mips16): Now an alias for minterlink-compressed.
8821         (mmicromips): New option.
8822         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8823         (compare_and_swap_12): Likewise.
8824         (sync_add<mode>): Likewise.
8825         (sync_<optab>_12): Likewise.
8826         (sync_old_<optab>_12): Likewise.
8827         (sync_new_<optab>_12): Likewise.
8828         (sync_nand_12): Likewise.
8829         (sync_old_nand_12): Likewise.
8830         (sync_new_nand_12): Likewise.
8831         (sync_sub<mode>): Likewise.
8832         (sync_old_add<mode>): Likewise.
8833         (sync_old_sub<mode>): Likewise.
8834         (sync_new_add<mode>): Likewise.
8835         (sync_new_sub<mode>): Likewise.
8836         (sync_<optab><mode>): Likewise.
8837         (sync_old_<optab><mode>): Likewise.
8838         (sync_new_<optab><mode>): Likewise.
8839         (sync_nand<mode>): Likewise.
8840         (sync_old_nand<mode>): Likewise.
8841         (sync_new_nand<mode>): Likewise.
8842         (sync_lock_test_and_set<mode>): Likewise.
8843         (test_and_set_12): Likewise.
8844         (atomic_compare_and_swap<mode>): Likewise.
8845         (atomic_exchange<mode>_llsc): Likewise.
8846         (atomic_fetch_add<mode>_llsc): Likewise.
8847         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8848         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8849         (umips_save_restore_pattern_p): Likewise.
8850         (umips_load_store_pair_p): Likewise.
8851         (umips_output_load_store_pair): Likewise.
8852         (umips_movep_target_p): Likewise.
8853         (umips_12bit_offset_address_p): Likewise.
8854         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8855         (mips_base_mips16): Rename this...
8856         (mips_base_compression_flags): ...to this. Update all uses.
8857         (mips_attribute_table): Add micromips, nomicromips and nocompression.
8858         (mips_mips16_decl_p): Delete.
8859         (mips_nomips16_decl_p): Delete.
8860         (mips_get_compress_on_flags): New function.
8861         (mips_get_compress_off_flags): New function.
8862         (mips_get_compress_mode): New function.
8863         (mips_get_compress_on_name): New function.
8864         (mips_get_compress_off_name): New function.
8865         (mips_insert_attributes): Support multiple compression types.
8866         (mips_merge_decl_attributes): Likewise.
8867         (umips_12bit_offset_address_p): New function.
8868         (mips_start_function_definition): Emit .set micromips directive.
8869         (mips_call_may_need_jalx_p): New function.
8870         (mips_function_ok_for_sibcall): Add microMIPS support.
8871         (mips_print_operand_punctuation): Support short delay slots and
8872         compact jumps.
8873         (umips_swm_mask, umips_swm_encoding): New.
8874         (umips_build_save_restore): New function.
8875         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8876         (was_mips16_p): Remove.
8877         (old_compression_mode): New.
8878         (mips_set_compression_mode): New function.
8879         (mips_set_current_function): Add microMIPS support.
8880         (mips_option_override): Likewise.
8881         (umips_save_restore_pattern_p): New function.
8882         (umips_output_save_restore): New function.
8883         (umips_load_store_pair_p_1): New function.
8884         (umips_load_store_pair_p): New function.
8885         (umips_output_load_store_pair_1): New function.
8886         (umips_output_load_store_pair): New function.
8887         (umips_movep_target_p) New function.
8888         (mips_prepare_pch_save): Add microMIPS support.
8889         * config/mips/mips.h (TARGET_COMPRESSION): New.
8890         (TARGET_CPU_CPP_BUILTINS): Update macro
8891         to use new compression flags and to support microMIPS.
8892         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8893         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8894         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8895         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8896         (ASM_SPEC): Support mmicromips and mno-micromips.
8897         (M16STORE_REG_P): New macro.
8898         (MIPS_CALL): Support TARGET_MICROMIPS.
8899         (MICROMIPS_J): New macro.
8900         (mips_base_mips16): Rename this...
8901         (mips_base_compression_flags): ...to this.
8902         (UMIPS_12BIT_OFFSET_P): New macro.
8903         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8904         (MULTILIB_DIRNAMES): Likewise.
8905 2013-03-20  Richard Biener  <rguenther@suse.de>
8907         PR tree-optimization/56661
8908         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8909         the result does not have to be distinct.
8911 2013-03-20  Richard Biener  <rguenther@suse.de>
8913         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8914         remap_gimple_op_r.
8916 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8917             Steven Bosscher <steven@gcc.gnu.org>
8919         PR rtl-optimization/56605
8920         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8922 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8924         PR bootstrap/56656
8925         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8926         that require movd instead of movq.
8928 2013-03-20  Richard Biener  <rguenther@suse.de>
8930         * tree-ssa-structalias.c (struct variable_info): Add pointer
8931         to the first field of an aggregate with sub-vars.  Make
8932         this and the pointer to the next subfield its ID.
8933         (vi_next): New function.
8934         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8935         storedanything_id, integer_id): Increment by one.
8936         (new_var_info, get_call_vi, lookup_call_clobber_vi,
8937         get_call_clobber_vi): Adjust.
8938         (solution_set_expand): Simplify and speedup.
8939         (solution_set_add): Inline into ...
8940         (set_union_with_increment): ... this.  Adjust accordingly.
8941         (do_sd_constraint): Likewise.
8942         (do_ds_constraint): Likewise.
8943         (do_complex_constraint): Simplify.
8944         (build_pred_graph): Adjust.
8945         (solve_graph): Likewise.  Simplify and speedup.
8946         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8947         get_constraint_for_component_ref, get_constraint_for_1,
8948         first_vi_for_offset, first_or_preceding_vi_for_offset,
8949         create_function_info_for, create_variable_info_for_1,
8950         create_variable_info_for, intra_create_variable_infos): Adjust.
8951         (init_base_vars): Push NULL for ID zero.
8952         (compute_points_to_sets): Adjust.
8954 2013-03-20  Richard Biener  <rguenther@suse.de>
8956         * cfgloop.c (verify_loop_structure): Streamline and avoid
8957         ICEing on corrupt loop tree.
8958         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8959         loop tree.
8961 2013-03-20  Richard Biener  <rguenther@suse.de>
8963         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8964         check whether an SSA update is needed.
8966 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
8968         * config/mips/constraints.md (T): Rename to...
8969         (Yf): ...this.
8970         (U): Rename to...
8971         (Yd): ...this.
8972         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8973         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8975 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8977         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8978         (*subsi3_carryin_uxtw): Likewise.
8980 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8982         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8983         (*rorsi3_insn_uxtw): Likewise.
8985 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8987         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8988         (*extrsi5_insn_uxtw): Likewise.
8990 2013-03-19  Richard Biener  <rguenther@suse.de>
8992         PR tree-optimization/56273
8993         * passes.c (init_optimization_passes): Move second VRP after DOM.
8995 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
8997         * config/i386/i386.md (*movti_internal): Merge from
8998         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
8999         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9000         nox64 isa attributes.
9002 2013-03-18  Richard Biener  <rguenther@suse.de>
9004         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9005         (unite): Likewise.
9006         (merge_node_constraints): Likewise.
9007         (build_succ_graph): Likewise.
9008         (valid_graph_edge): Inline into single caller.
9009         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9010         and cache varinfo.
9011         (scc_visit): Fix formatting and variable use.
9012         (do_sd_constraint): Use gcc_checking_assert.
9013         (do_ds_constraint): Likewise.
9014         (do_complex_constraint): Likewise.
9015         (condense_visit): Likewise.  Cleanup.
9016         (dump_pred_graph): New function.
9017         (perform_var_substitution): Dump the pred-graph before
9018         variable substitution.
9019         (find_equivalent_node): Use gcc_checking_assert.
9020         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9022 2013-03-18  Richard Biener  <rguenther@suse.de>
9024         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9025         Remove cond_expr_stmt_list argument and do not gimplify the
9026         built expression.
9027         (vect_loop_versioning): Adjust.
9028         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9029         Cleanup to use less temporaries.
9030         (vect_create_data_ref_ptr): Cleanup.
9032 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9034         PR tree-optimization/56635
9035         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9036         require types_compatible_p types.
9038 2013-03-18  Nick Clifton  <nickc@redhat.com>
9040         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9041         spurious backslash.
9043         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9044         Add missing line to comment describing function.
9046 2013-03-18  Richard Biener  <rguenther@suse.de>
9048         PR tree-optimization/56210
9049         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9050         Handle string / character search functions.
9051         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9053 2013-03-18  Richard Biener  <rguenther@suse.de>
9055         PR middle-end/56483
9056         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9057         and implement properly.
9058         * gimple.h (gimple_cond_single_var_p): Remove.
9060 2013-03-18  Richard Biener  <rguenther@suse.de>
9062         * tree-data-ref.h (find_data_references_in_loop): Declare.
9063         * tree-data-ref.c (get_references_in_stmt): Use a stack
9064         vector pre-allocated in the callers.
9065         (find_data_references_in_stmt): Adjust.
9066         (graphite_find_data_references_in_stmt): Likewise.
9067         (create_rdg_vertices): Likewise.
9068         (find_data_references_in_loop): Export.
9069         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9070         Compute dependences here...
9071         (vect_analyze_data_refs): ...not here.  When we encounter
9072         a non-vectorizable data reference in basic-block vectorization
9073         truncate the data reference vector.  Do not bother to
9074         fixup data-dependence information for gather loads.
9075         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9076         of data references, as reported.
9078 2013-03-18  Richard Biener  <rguenther@suse.de>
9080         PR tree-optimization/3713
9081         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9082         has_constants and expr.
9083         (stmt_has_constants): Properly valueize SSA names when deciding
9084         whether the stmt has constants.
9086 2013-03-18  Richard Biener  <rguenther@suse.de>
9088         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9089         whole function when there is nothing to do.
9090         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9091         * tree-vectorizer.c (vectorize_loops): Update virtual and
9092         loop-closed SSA once.
9093         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9095 2013-03-18  Richard Biener  <rguenther@suse.de>
9097         PR middle-end/56113
9098         * domwalk.c (bb_postorder): New global static.
9099         (cmp_bb_postorder): New function.
9100         (walk_dominator_tree): Replace scheme imposing an order for
9101         visiting dominator sons by one sorting them at the time they
9102         are pushed on the stack.
9104 2013-03-18  Richard Biener  <rguenther@suse.de>
9106         PR tree-optimization/39326
9107         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9108         (struct mem_ref): Replace mem member with ao_ref typed member.
9109         (MEM_ANALYZABLE): Adjust.
9110         (memref_eq): Likewise.
9111         (mem_ref_alloc): Likewise.
9112         (gather_mem_refs_stmt): Likewise.
9113         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9114         (execute_sm_if_changed_flag_set): Adjust.
9115         (execute_sm): Likewise.
9116         (ref_always_accessed_p): Likewise.
9117         (refs_independent_p): Likewise.
9118         (can_sm_ref_p): Likewise.
9120 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9122         PR c/56566
9123         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9124         return 1 even for !unsignedp.
9126 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9128         * config/i386/i386.md (isa): Add x64 and nox64.
9129         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9130         (*pushtf): Enable *roF alternative for x64 isa only.
9131         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9132         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9133         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9134         (*movtf_internal): Merge from *movtf_internal_rex64 and
9135         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9136         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9137         nox64 isa attributes.
9138         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9139         nox64 isa attributes.
9140         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9142 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9144         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9146 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9148         PR target/56640
9149         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9150         class names.  Remove trailing comma after "ALL_REGS".
9152 2013-03-16  Jan Hubicka  <jh@suse.cz>
9154         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9155         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9156         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9157         of cgraph_get_create_node.
9158         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9160 2013-03-16  Jason Merrill  <jason@redhat.com>
9162         PR debug/49090
9163         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9164         with DW_AT_default_value.
9166 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9168         * BASE-VER: Set to 4.9.0.
9170 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9172         PR target/56619
9173         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9174         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9175         Document _x* TSX intrinsics.
9177 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9178             David Holsgrove  <david.holsgrove@xilinx.com>
9180         * configure.ac: Add MicroBlaze TLS support detection.
9181         * configure: Regenerate.
9182         * config/microblaze/microblaze-protos.h
9183         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9184         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9185         * config/microblaze/microblaze.c (microblaze_address_type): Add
9186         ADDRESS_TLS and tls_reloc address types.
9187         (microblaze_address_info): Add tls_reloc.
9188         (TARGET_HAVE_TLS): Define.
9189         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9190          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9191          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9192         load_tls_operand,  microblaze_call_tls_get_addr,
9193         microblaze_legitimize_tls_address): New functions.
9194         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9195         (get_base_reg): Use microblaze_tls_symbol_p.
9196         (microblaze_classify_address): Handle TLS.
9197         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9198         label_mentioned_p and microblaze_tls_referenced_p.
9199         (microblaze_legitimize_address): Handle TLS.
9200         (microblaze_address_insns): Handle ADDRESS_TLS.
9201         (pic_address_needs_scratch): Handle TLS.
9202         (print_operand_address): Handle TLS.
9203         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9204         (microblaze_expand_move): Handle TLS.
9205         (microblaze_legitimate_constant_p): Check
9206         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9207         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9208         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9209         (PIC_OFFSET_TABLE_REGNUM): Set.
9210         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9211         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9212         (addsi3, movsi_internal2, movdf_internal): Update constraints
9213         * config/microblaze/predicates.md (arith_plus_operand): Define
9214         (move_operand): Redefine as move_src_operand,
9215         check microblaze_tls_referenced_p.
9217 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9219         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9220         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9222 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9224         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9225         CC mode for AND.
9227 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9229         PR tree-optimization/53265
9230         * common.opt (Waggressive-loop-optimizations): New option.
9231         * tree-ssa-loop-niter.c: Include tree-pass.h.
9232         (do_warn_aggressive_loop_optimizations): New function.
9233         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9234         if number_of_latch_executions returned constant.
9235         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9236         early.  If number_of_latch_executions returned constant, set
9237         nb_iterations_upper_bound back to it.
9238         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9239         field.
9240         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9241         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9243         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9244         (MULTILIB_OSDIRNAMES): Set.
9245         * genmultilib: If defaultosdirname doesn't start with :: , set
9246         defaultosdirname2 instead, clear it and emit two . multilib_raw
9247         entries instead of just one.
9249 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9251         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9252         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9253         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9254         (SUBTARGET_OVERRIDE_OPTIONS): New.
9256 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9258         PR target/49880
9259         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9260         (musermode): Convert to Var(TARGET_USERMODE).
9261         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9262         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9263         * config/sh/sh.c (sh_option_override): Use
9264         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9265         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9266         condition.
9267         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9268         TARGET_SH4.
9269         (udivsi3_i4_single, divsi3_i4_single): Use
9270         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9272 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9274         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9275         default setting.
9277 2013-03-13  Richard Biener  <rguenther@suse.de>
9279         PR tree-optimization/56608
9280         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9281         calls when vectorizing basic-blocks.
9283 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9285         PR plugins/45078
9286         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9287         tm_file.
9289 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9291         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9293 2013-03-11  Jan Hubicka  <jh@suse.cz>
9295         PR lto/56557
9296         * lto-streamer-out.c (output_symbol_p): Skip references from
9297         constructors of external variables.
9299 2013-03-11  Jan Hubicka  <jh@suse.cz>
9301         PR middle-end/56571
9302         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9303         from pseudos.
9304         * emit-rtl.c (verify_rtx_sharing): Likewise.
9305         (copy_insn_1): Likewise.
9306         * rtl.c (copy_rtx): Likewise.
9308 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9310         PR target/56591
9311         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9312         output_operand_lossage message.
9314 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9316         PR target/56470
9317         * arm.c (shift_op): Validate RTL pattern on the fly.
9318         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9319         the RTL.
9321 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9323         PR target/56347
9324         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9325         new call patterns that clobber %fr12.
9326         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9327         split and postreload patterns.
9328         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9329         registers %fr12 and %fr12R as call used.
9331 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9333         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9334         (canon_address, record_store, replace_read, check_mem_read_rtx,
9335         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9336         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9337         rest_of_handle_dse): Likewise.
9339 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9341         PR middle-end/56524
9342         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9343         Add base_optabs.
9344         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9345         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9346         (save_optabs_if_changed): Replace with...
9347         (init_tree_optimization_optabs): ...this.
9348         * optabs.c (save_optabs_if_changed): Rename to...
9349         (init_tree_optimization_optabs): ...this.  Take the optimization node
9350         as argument.  Do nothing if the base optabs are already correct.
9351         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9352         to recompute optabs.
9353         * function.h (function): Remove optabs field.
9354         * function.c (invoke_set_current_function_hook): Call
9355         init_tree_optimization_optabs.  Use the result to initialize
9356         this_fn_optabs.
9358 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9360         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9361         if GTMA_HAS_NO_INSTRUMENTATION.
9362         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9363         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9364         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9365         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9366         GTMA_HAS_NO_INSTRUMENTATION.
9368 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9370         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9371         libasan_preinit.o.
9373 2013-03-08  Marek Polacek  <polacek@redhat.com>
9374             Jakub Jelinek  <jakub@redhat.com>
9376         PR tree-optimization/56478
9377         * predict.c (is_comparison_with_loop_invariant_p): Change the
9378         type of loop_step to tree.
9379         (predict_loops): Adjust.
9380         (predict_iv_comparison): Perform the computations on double_ints.
9382 2013-03-08  Richard Biener  <rguenther@suse.de>
9384         PR tree-optimization/56570
9385         * tree-cfg.c (verify_expr_location_1): Verify locations for
9386         DECL_DEBUG_EXPR.
9387         * tree-sra.c (create_access_replacement): Strip locations
9388         from DECL_DEBUG_EXPRs.
9390 2013-03-08  Richard Biener  <rguenther@suse.de>
9392         * tree-inline.c (expand_call_inline): Do not associate
9393         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9394         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9396 2013-03-08  Richard Biener  <rguenther@suse.de>
9398         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9399         or block changes with -Og.  Fix for location / block encoding
9400         changes and PHI arguments with locations.
9402 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9404         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9405         for all counters.
9406         (struct output_info): Likewise.
9407         (register_overhead): Remove bad gcc_assert.
9408         (bitmap_find_bit): If there is only a single bitmap element, do not
9409         count a miss as a search.
9410         (print_statistics): Update for counter type changes.
9411         (dump_bitmap_statistics): Likewise.  Print headers such that they
9412         are properly lined up with the printed counters.
9414 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9416         PR tree-optimization/56559
9417         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9418         check that it has only a single use.
9420 2013-03-07  Richard Biener  <rguenther@suse.de>
9422         * doc/invoke.texi (fwhole-program): Discourage use in combination
9423         with -flto.
9425 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9427         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9429         PR tree-optimization/56539
9430         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9431         instead of GSI_CONTINUE_LINKING as last argument to
9432         force_gimple_operand_gsi.  Adjust function comment.
9434         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9435         aarch64-cores.def.
9437         PR middle-end/56548
9438         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9439         promoted mode, convert the result back to the original mode.
9441 2013-03-06  Richard Biener  <rguenther@suse.de>
9443         PR middle-end/56294
9444         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9445         (insert_updated_phi_nodes_compare_uids): New function.
9446         (update_ssa): Sort symbols_to_rename after UID before
9447         traversing it to insert PHI nodes.
9449 2013-03-06  Richard Biener  <rguenther@suse.de>
9451         PR middle-end/50494
9452         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9453         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9455         Revert
9456         2013-02-13  Richard Biener  <rguenther@suse.de>
9458         PR lto/50494
9459         * varasm.c (output_constant_def_1): Get the decl representing
9460         the constant as argument.
9461         (output_constant_def): Wrap output_constant_def_1.
9462         (make_decl_rtl): Use output_constant_def_1 with the decl
9463         representing the constant.
9464         (build_constant_desc): Optionally re-use a decl already
9465         representing the constant.
9466         (tree_output_constant_def): Adjust.
9468 2013-03-06  Joey Ye  <joey.ye@arm.com>
9470         PR lto/50293
9471         * gcc.c (convert_white_space): New function.
9472         (main): Handles white space in function name.
9474 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9476         PR target/56529
9477         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9478         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9479         to SH_DIV_CALL_TABLE for TARGET_SH2.
9480         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9481         list.
9482         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9483         call-table options.
9485 2013-03-05  Sterling Augustine  <saugustine@google.com>
9486             Cary Coutant  <ccoutant@google.com>
9488         PR debug/55364
9489         * dwarf2out.c (resolve_addr): Don't call
9490         remove_loc_list_addr_table_entries a second time for the same
9491         expression.
9493 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9495         PR debug/56510
9496         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9497         (avoid_complex_debug_insns): New function.
9498         (expand_debug_locations): Call it.
9500         PR rtl-optimization/56484
9501         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9502         lifetimes of hard registers on small register class machines.
9504 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9506         * config/microblaze/microblaze-protos.h: Rename
9507         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9508         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9509         fast_interrupt.
9510         (microblaze_fast_interrupt_function_p): New function.
9511         (microblaze_is_interrupt_handler): Rename to
9512         microblaze_is_interrupt_variant and add fast_interrupt check.
9513         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9514         (save_restore_insns): Likewise.
9515         (compute_frame_size): Likewise.
9516         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9517         (microblaze_globalize_label): Likewise.
9518         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9519         * config/microblaze/microblaze.md: Use wrapper
9520         microblaze_is_interrupt_variant.
9522 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9524         * sdbout.c (sdbout_one_type): Switch to current function's section
9525         supporting cold/hot.
9527 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9529         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9530         -mxl-reorder.
9532 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9534         PR middle-end/56461
9535         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9536         if VALGRIND_GET_VBITS is defined, temporarily make object
9537         memory all defined, and restore previous valgrind addressability
9538         and definability afterwards.  Free this_object at the end.
9540         PR middle-end/56461
9541         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9542         right before calling lra_create_live_ranges, also call it
9543         when clearing live_p.  Only call lra_clear_live_ranges
9544         at the end if live_p.
9546         PR middle-end/56461
9547         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9549 2013-03-05  Richard Biener  <rguenther@suse.de>
9551         PR tree-optimization/56521
9552         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9553         value-id.
9555 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9557         PR c++/55135
9558         * except.h (remove_unreachable_eh_regions): New prototype.
9559         * except.c (remove_eh_handler_splicer): New function, split out
9560         of remove_eh_handler.
9561         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9562         warning about running it on many EH regions one at a time.
9563         (remove_unreachable_eh_regions_worker): New function, walk the
9564         EH tree in depth-first order and remove non-marked regions.
9565         (remove_unreachable_eh_regions): New function.
9566         * tree-eh.c (mark_reachable_handlers): New function, split out
9567         from remove_unreachable_handlers.
9568         (remove_unreachable_handlers): Use mark_reachable_handlers and
9569         remove_unreachable_eh_regions.
9570         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9571         and remove_unreachable_eh_regions.
9573 2013-03-05  Richard Biener  <rguenther@suse.de>
9575         PR middle-end/56525
9576         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9577         not freeing them until the end.
9579 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9581         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9583 2013-03-05  Richard Biener  <rguenther@suse.de>
9585         PR tree-optimization/56270
9586         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9587         of loads after scheduling an SLP instance.
9589 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9591         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9592         tic6x.exp.
9593         (check_gcc_parallelize): Run guality.exp as a separate job from
9594         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9595         struct-layout-1.exp with stackalign.exp.
9597         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9599         PR middle-end/56461
9600         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9601         load_index sbitmap even if some bit in it isn't set.
9603         PR middle-end/56461
9604         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9605         (discover_iteration_bound_by_body_walk): Change queues to
9606         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9607         spelling in comment.  Call safe_push on queues[bound_index] directly.
9608         Release queues[queue_index] in every iteration unconditionally.
9609         Release bounds vector.
9611         PR middle-end/56461
9612         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9613         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9614         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9615         inner_phis vector.
9617 2013-03-05  Richard Biener  <rguenther@suse.de>
9619         PR lto/56515
9620         * tree-inline.c (remap_blocks_to_null): New function.
9621         (expand_call_inline): When expanding a call stmt without
9622         an associated block inline remap all callee blocks to NULL.
9624 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9626         PR rtl-optimization/56494
9627         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9628         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9629         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9631         PR middle-end/56461
9632         * sel-sched-ir.c (free_sched_pools): Release
9633         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9634         if succs_info_pool.max_top isn't -1.
9636         PR bootstrap/56509
9637         * opts.c (opts_obstack, opts_concat): Moved to...
9638         * opts-common.c (opts_obstack, opts_concat): ... here.
9640 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9642         PR middle-end/56461
9643         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9645 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9647         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9648         all appropriate places.
9650 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9652         PR tree-optimization/56424
9653         * ipa-split.c (split_function): Do not set the RSO flag if result is
9654         not by reference and its type is a register type.
9656 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9658         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9659         (microblaze_legitimate_pic_operand): Likewise
9660         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9661         new function microblaze_legitimate_pic_operand
9662         * config/microblaze/microblaze-protos.h
9663         (microblaze_legitimate_pic_operand): Declare.
9665 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9667         * config/microblaze/predicates.md (call_insn_simple_operand):
9668         New predicate for supported rtx code types.
9669         * config/microblaze/microblaze.md (call_internal1): Use
9670         call_insn_simple_operand predicate.
9672 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9674         PR middle-end/56461
9675         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9676         partitions.ordered_remove.
9678         PR middle-end/56461
9679         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9680         vec_oprnds0.create (1) for modifier == NONE.
9682         PR middle-end/56461
9683         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9684         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9685         vec_oprnds1 right before pushing anything to it for
9686         scalar_shift_arg.
9688         PR middle-end/56461
9689         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9690         set nbbs to 0 instead of having separate code path.
9691         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9692         instead of false as last argument if returning NULL.
9694 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
9696         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9697         the attribute is now called "target" instead of "option".
9698         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9699         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
9700         attribute/pragma name for TARGET_OPTION_VALID_P and
9701         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9702         * doc/tm.texi: Regenerated.
9704 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
9706         * config/microblaze/microblaze.c:
9707         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9708         * config/microblaze/microblaze.h: Add -mxl-reorder to
9709         DRIVER_SELF_SPECS.
9710         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9711         instructions emitted if TARGET_REORDER.
9712         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9713         or 0 for -m/-mno case, but initialises as 2 to detect default use case
9714         separately.
9716 2013-03-01  Xinliang David Li  <davidxl@google.com>
9718         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9719         walk length.
9721 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
9723         PR middle-end/56461
9724         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9725         vector even when returning true.  Fix up function comment formatting.
9727         PR middle-end/56461
9728         * ira-build.c (ira_loop_nodes_count): New variable.
9729         (create_loop_tree_nodes): Initialize it.
9730         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9732         PR middle-end/56461
9733         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9734         method on dr_chain and result_chain.
9735         * tree-vect-stmts.c (vectorizable_store): Only call
9736         result_chain.create if j == 0.
9738         PR middle-end/56461
9739         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9740         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9741         before overwriting it.
9743 2013-03-01  Tobias Burnus  <burnus@net-b.de>
9745         * doc/extended.texi (C Extensions): Change order in @menu
9746         to match @node.
9747         (Other MIPS Built-in Functions): Move last MIPS entry before
9748         "picoChip Built-in Functions".
9749         (SH Built-in Functions): Move after RX Built-in Functions.
9750         * doc/gcc.texi (Introduction): Change order in @menu
9751         to match @node.
9752         * doc/md.texi (Constraints): Ditto.
9753         * gty.texi (Type Information): Ditto.
9754         (User-provided marking routines for template types): Make
9755         subsection.
9756         * doc/invoke.texi (AArch64 Options): Move before
9757         "Adapteva Epiphany Options".
9759 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
9760             Jakub Jelinek  <jakub@redhat.com>
9762         PR sanitizer/56454
9763         * asan.c (gate_asan): Lookup no_sanitize_address instead of
9764         no_address_safety_analysis attribute.
9765         * doc/extend.texi (no_address_safety_attribute): Rename to
9766         no_sanitize_address attribute, mention no_address_safety_analysis
9767         attribute as deprecated alias.
9769 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
9771         PR middle-end/56461
9772         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9773         type to vec<vec<tree> > *.
9774         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
9775         to be vec<tree> instead of vec<tree> *, set vec_defs
9776         to vNULL and call vec_defs.create (number_of_vects), adjust other
9777         uses of vec_defs.
9778         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9779         vectorizable_condition): Adjust vect_get_slp_defs callers.
9781 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9783         * config/aarch64/aarch64.c
9784         (aarch64_float_const_representable): Remove unused variable.
9786 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9788         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9790 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9792         * config/aarch64/aarch64-builtins.c
9793         (aarch64_init_simd_builtins): Make static.
9795 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9797         * config/aarch64/aarch64.c
9798         (aarch64_simd_make_constant): Make static.
9800 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9802         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9803         with no initialization to the RHS of debug statements.
9805 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9807         PR tree-optimization/56294
9808         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9809         Adjust dumping.
9810         (get_access_replacement): Do not call create_access_replacement.
9811         Assert a replacement exists.
9812         (get_repl_default_def_ssa_name): Create the replacement declaration
9813         itself.
9815 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9817         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9818         final_end_function.
9820 2013-02-28  Marek Polacek  <polacek@redhat.com>
9822         PR rtl-optimization/56466
9823         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9824         if we're changing a loop.
9825         (peel_loops_completely): Likewise.
9827 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
9829         PR c++/55813
9830         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9832 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9834         PR target/56445
9835         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9836         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9837         INTX_FTYPE_FX, FX_FTYPE_INTX.
9838         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9840 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9842         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9843         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9844         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9845         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9846         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9847         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9848         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9849         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9850         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9851         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9852         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9853         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9854         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9855         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9856         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9857         (avrxmega6): Increase max flash segments from 5 to 6.
9858         * config/avr/t-multilib: Regenerate.
9859         * config/avr/avr-tables.opt: Regenerate.
9860         * doc/avr-mmcu.texi: Regenerate.
9862 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9864         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9865         (avr_device_to_arch): Rename to avr_device_to_ld.
9866         (avr_device_to_as): New prototype.
9867         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9868         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9869         * config/avr/driver-avr.c (avr_device_to_as): New.
9870         (avr_device_to_arch): Rename to avr_device_to_ld.
9872 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9874         PR middle-end/56461
9875         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9876         method on dr_chain and result_chain.
9878         PR middle-end/56461
9879         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9880         pointer_set_destroy on not_executed_last_iteration.
9882         PR middle-end/56461
9883         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9885         PR middle-end/56461
9886         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9887         FOR_EACH_DEFINED_FUNCTION when freeing state.
9889         PR middle-end/56461
9890         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9891         pool_free.
9892         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9893         overwriting it.
9895         PR middle-end/56461
9896         * ipa-cp.c (decide_whether_version_node): Call vec_free on
9897         known_aggs[i].items and release known_aggs vector.
9899         PR middle-end/56461
9900         * ipa-reference.c (propagate): Free node_info even for alias nodes.
9902 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9904         * config/microblaze/microblaze.c (microblaze_emit_compare):
9905         Use xor for EQ/NE comparisions.
9906         * config/microblaze/microblaze.md (cstoresf4): Add constraints
9907         (cbranchsf4): Adjust operator to comparison_operator.
9909 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9911         PR middle-end/56461
9912         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9913         vector.
9914         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9915         vec_safe_push, always update *slot.
9916         (redirect_edge_var_map_clear): Use vec_free.
9917         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9918         (free_var_map_entry): Use vec_free.
9919         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9920         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9922 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
9924         PR middle-end/45472
9925         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9926         when the may_trap_p bit of the exprs being merged differs.
9927         Reorder tests for speculativeness in the logical and operator.
9929 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9931         * incpath.c (add_standard_paths): Use reconcat instead of concat
9932         where appropriate and avoid leaking memory.
9934         * opts.h: Include obstack.h.
9935         (opts_concat): New prototype.
9936         (opts_obstack): New declaration.
9937         * opts.c (opts_concat): New function.
9938         (opts_obstack): New variable.
9939         (init_options_struct): Call gcc_init_obstack on opts_obstack.
9940         (finish_options): Use opts_concat instead of concat
9941         and XOBNEWVEC instead of XNEWVEC.
9942         * opts-common.c (generate_canonical_option, decode_cmdline_option,
9943         generate_option): Likewise.
9944         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9945         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9947         PR target/56455
9948         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9949         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9951 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9953         PR middle-end/56461
9954         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9956 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9958         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9959         (arm_block_move_unaligned_straight): Likewise.
9960         (arm_adjust_block_mem): Likewise.
9962 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9964         PR target/48901
9965         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9966         temp, cond and label.
9967         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9969         PR target/52500
9970         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9971         * config/c6x/c6x.h (dbx_register_map): Update declaration.
9973         PR target/52501
9974         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9975         of prologue/epilogue functions.
9977         PR target/52550
9978         * config/tilegx/tilegx.c (tilegx_expand_prologue):
9979         Remove unused variable cfa_offset.
9980         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9982         PR target/54639
9983         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9984         type promotion to unsigned.
9986         PR target/54640
9987         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9988         for HOST_WIDE_INT of 32 bit / same size as int.
9989         (arm_block_move_unaligned_straight): Likewise.
9990         (arm_adjust_block_mem): Likewise.
9992         PR target/54662
9993         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9994         ALL_CFLAGS.
9996 2013-02-26  Marek Polacek  <polacek@redhat.com>
9998         PR tree-optimization/56426
9999         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10001 2013-02-26  Richard Biener  <rguenther@suse.de>
10003         PR target/56444
10004         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10005         unused variable loops.
10007 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10009         PR tree-optimization/56448
10010         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10011         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10012         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10013         later operands of the references, or even first operand for
10014         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10016         PR tree-optimization/56443
10017         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10018         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10019         to type_for_mode langhook.
10021 2013-02-25  Matt Turner  <mattst88@gmail.com>
10023         * doc/invoke.texi: Document r4700.
10025 2013-02-25  Richard Biener  <rguenther@suse.de>
10027         PR tree-optimization/56175
10028         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10029         split out from ...
10030         (simplify_bitwise_binary): ... here.  Also guard the conversion
10031         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10033 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10035         Revert:
10036         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10037             Maciej W. Rozycki  <macro@codesourcery.com>
10038             Tom de Vries  <tom@codesourcery.com>
10039             Nathan Sidwell  <nathan@codesourcery.com>
10040             Iain Sandoe  <iain@codesourcery.com>
10041             Nathan Froyd  <froydnj@codesourcery.com>
10042             Chao-ying Fu  <fu@mips.com>
10044         * doc/extend.texi: (micromips, nomicromips, nocompression):
10045         Document new function attributes.
10046         * doc/invoke.texi (minterlink-compressed, mmicromips,
10047         m14k, m14ke, m14kec): Document new options.
10048         (minterlink-mips16): Update documentation.
10049         * doc/md.texi (ZC, ZD): Document new constraints.
10050         * configure.ac (gcc_cv_as_micromips): Check if linker
10051         supports the .set micromips directive.
10052         * configure: Regenerate.
10053         * config.in: Regenerate.
10054         * config/mips/mips-tables.opt: Regenerate.
10055         * config/mips/micromips.md: New file.
10056         * constraints.md (ZC, AD): New constraints.
10057         * config/mips/predicates.md (movep_src_register): New predicate.
10058         (movep_src_operand): New predicate.
10059         (non_volatile_mem_operand): New predicate.
10060         * config/mips/mips.md (multimem): New type.
10061         (length): Differentiate between 17-bit and 18-bit branch offsets.
10062         (MOVEP1, MOVEP2): New mode iterator.
10063         (mov_<load>l): Use ZC constraint.
10064         (mov_<load>r): Likewise.
10065         (mov_<store>l): Likewise.
10066         (mov_<store>r): Likewise.
10067         (*branch_equality<mode>_inverted): Add microMIPS support.
10068         (*branch_equality<mode>): Likewise.
10069         (*jump_absolute): Likewise.
10070         (indirect_jump_<mode>): Likewise.
10071         (tablejump_<mode>): Likewise.
10072         (<optab>_internal): Likewise.
10073         (sibcall_internal): Likewise.
10074         (sibcall_value_internal): Likewise.
10075         (prefetch): Use constraint ZD.
10076         * config/mips/mips.opt (minterlink-compressed): New option.
10077         (minterlink-mips16): Now an alias for minterlink-compressed.
10078         (mmicromips): New option.
10079         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10080         (compare_and_swap_12): Likewise.
10081         (sync_add<mode>): Likewise.
10082         (sync_<optab>_12): Likewise.
10083         (sync_old_<optab>_12): Likewise.
10084         (sync_new_<optab>_12): Likewise.
10085         (sync_nand_12): Likewise.
10086         (sync_old_nand_12): Likewise.
10087         (sync_new_nand_12): Likewise.
10088         (sync_sub<mode>): Likewise.
10089         (sync_old_add<mode>): Likewise.
10090         (sync_old_sub<mode>): Likewise.
10091         (sync_new_add<mode>): Likewise.
10092         (sync_new_sub<mode>): Likewise.
10093         (sync_<optab><mode>): Likewise.
10094         (sync_old_<optab><mode>): Likewise.
10095         (sync_new_<optab><mode>): Likewise.
10096         (sync_nand<mode>): Likewise.
10097         (sync_old_nand<mode>): Likewise.
10098         (sync_new_nand<mode>): Likewise.
10099         (sync_lock_test_and_set<mode>): Likewise.
10100         (test_and_set_12): Likewise.
10101         (atomic_compare_and_swap<mode>): Likewise.
10102         (atomic_exchange<mode>_llsc): Likewise.
10103         (atomic_fetch_add<mode>_llsc): Likewise.
10104         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10105         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10106         (umips_save_restore_pattern_p): Likewise.
10107         (umips_load_store_pair_p): Likewise.
10108         (umips_output_load_store_pair): Likewise.
10109         (umips_movep_target_p): Likewise.
10110         (umips_12bit_offset_address_p): Likewise.
10111         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10112         (mips_base_mips16): Rename this...
10113         (mips_base_compression_flags): ...to this. Update all uses.
10114         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10115         (mips_mips16_decl_p): Delete.
10116         (mips_nomips16_decl_p): Delete.
10117         (mips_get_compress_on_flags): New function.
10118         (mips_get_compress_off_flags): New function.
10119         (mips_get_compress_mode): New function.
10120         (mips_get_compress_on_name): New function.
10121         (mips_get_compress_off_name): New function.
10122         (mips_insert_attributes): Support multiple compression types.
10123         (mips_merge_decl_attributes): Likewise.
10124         (umips_12bit_offset_address_p): New function.
10125         (mips_start_function_definition): Emit .set micromips directive.
10126         (mips_call_may_need_jalx_p): New function.
10127         (mips_function_ok_for_sibcall): Add microMIPS support.
10128         (mips_print_operand_punctuation): Support short delay slots and
10129         compact jumps.
10130         (umips_swm_mask, umips_swm_encoding): New.
10131         (umips_build_save_restore): New function.
10132         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10133         (was_mips16_p): Remove.
10134         (old_compression_mode): New.
10135         (mips_set_compression_mode): New function.
10136         (mips_set_current_function): Add microMIPS support.
10137         (mips_option_override): Likewise.
10138         (umips_save_restore_pattern_p): New function.
10139         (umips_output_save_restore): New function.
10140         (umips_load_store_pair_p_1): New function.
10141         (umips_load_store_pair_p): New function.
10142         (umips_output_load_store_pair_1): New function.
10143         (umips_output_load_store_pair): New function.
10144         (umips_movep_target_p) New function.
10145         (mips_prepare_pch_save): Add microMIPS support.
10146         * config/mips/mips.h (TARGET_COMPRESSION): New.
10147         (TARGET_CPU_CPP_BUILTINS): Update macro
10148         to use new compression flags and to support microMIPS.
10149         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10150         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10151         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10152         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10153         (ASM_SPEC): Support mmicromips and mno-micromips.
10154         (M16STORE_REG_P): New macro.
10155         (MIPS_CALL): Support TARGET_MICROMIPS.
10156         (MICROMIPS_J): New macro.
10157         (mips_base_mips16): Rename this...
10158         (mips_base_compression_flags): ...to this.
10159         (UMIPS_12BIT_OFFSET_P): New macro.
10160         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10161         (MULTILIB_DIRNAMES): Likewise.
10163 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10165         PR rtl-optimization/56131
10166         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10167         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10168         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10170 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10172         * doc/invoke.texi (-fsanitize=): Move from optimization
10173         to debugging options.
10175 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10177         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10179 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10180             Alexander Monakov  <amonakov@ispras.ru>
10182         PR middle-end/56077
10183         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10184         flush pending lists also on non-jumps.  Adjust comment.
10186 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10187             Maciej W. Rozycki  <macro@codesourcery.com>
10188             Tom de Vries  <tom@codesourcery.com>
10189             Nathan Sidwell  <nathan@codesourcery.com>
10190             Iain Sandoe  <iain@codesourcery.com>
10191             Nathan Froyd  <froydnj@codesourcery.com>
10192             Chao-ying Fu  <fu@mips.com>
10194         * doc/extend.texi: (micromips, nomicromips, nocompression):
10195         Document new function attributes.
10196         * doc/invoke.texi (minterlink-compressed, mmicromips,
10197         m14k, m14ke, m14kec): Document new options.
10198         (minterlink-mips16): Update documentation.
10199         * doc/md.texi (ZC, ZD): Document new constraints.
10200         * configure.ac (gcc_cv_as_micromips): Check if linker
10201         supports the .set micromips directive.
10202         * configure: Regenerate.
10203         * config.in: Regenerate.
10204         * config/mips/mips-tables.opt: Regenerate.
10205         * config/mips/micromips.md: New file.
10206         * constraints.md (ZC, AD): New constraints.
10207         * config/mips/predicates.md (movep_src_register): New predicate.
10208         (movep_src_operand): New predicate.
10209         (non_volatile_mem_operand): New predicate.
10210         * config/mips/mips.md (multimem): New type.
10211         (length): Differentiate between 17-bit and 18-bit branch offsets.
10212         (MOVEP1, MOVEP2): New mode iterator.
10213         (mov_<load>l): Use ZC constraint.
10214         (mov_<load>r): Likewise.
10215         (mov_<store>l): Likewise.
10216         (mov_<store>r): Likewise.
10217         (*branch_equality<mode>_inverted): Add microMIPS support.
10218         (*branch_equality<mode>): Likewise.
10219         (*jump_absolute): Likewise.
10220         (indirect_jump_<mode>): Likewise.
10221         (tablejump_<mode>): Likewise.
10222         (<optab>_internal): Likewise.
10223         (sibcall_internal): Likewise.
10224         (sibcall_value_internal): Likewise.
10225         (prefetch): Use constraint ZD.
10226         * config/mips/mips.opt (minterlink-compressed): New option.
10227         (minterlink-mips16): Now an alias for minterlink-compressed.
10228         (mmicromips): New option.
10229         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10230         (compare_and_swap_12): Likewise.
10231         (sync_add<mode>): Likewise.
10232         (sync_<optab>_12): Likewise.
10233         (sync_old_<optab>_12): Likewise.
10234         (sync_new_<optab>_12): Likewise.
10235         (sync_nand_12): Likewise.
10236         (sync_old_nand_12): Likewise.
10237         (sync_new_nand_12): Likewise.
10238         (sync_sub<mode>): Likewise.
10239         (sync_old_add<mode>): Likewise.
10240         (sync_old_sub<mode>): Likewise.
10241         (sync_new_add<mode>): Likewise.
10242         (sync_new_sub<mode>): Likewise.
10243         (sync_<optab><mode>): Likewise.
10244         (sync_old_<optab><mode>): Likewise.
10245         (sync_new_<optab><mode>): Likewise.
10246         (sync_nand<mode>): Likewise.
10247         (sync_old_nand<mode>): Likewise.
10248         (sync_new_nand<mode>): Likewise.
10249         (sync_lock_test_and_set<mode>): Likewise.
10250         (test_and_set_12): Likewise.
10251         (atomic_compare_and_swap<mode>): Likewise.
10252         (atomic_exchange<mode>_llsc): Likewise.
10253         (atomic_fetch_add<mode>_llsc): Likewise.
10254         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10255         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10256         (umips_save_restore_pattern_p): Likewise.
10257         (umips_load_store_pair_p): Likewise.
10258         (umips_output_load_store_pair): Likewise.
10259         (umips_movep_target_p): Likewise.
10260         (umips_12bit_offset_address_p): Likewise.
10261         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10262         (mips_base_mips16): Rename this...
10263         (mips_base_compression_flags): ...to this. Update all uses.
10264         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10265         (mips_mips16_decl_p): Delete.
10266         (mips_nomips16_decl_p): Delete.
10267         (mips_get_compress_on_flags): New function.
10268         (mips_get_compress_off_flags): New function.
10269         (mips_get_compress_mode): New function.
10270         (mips_get_compress_on_name): New function.
10271         (mips_get_compress_off_name): New function.
10272         (mips_insert_attributes): Support multiple compression types.
10273         (mips_merge_decl_attributes): Likewise.
10274         (umips_12bit_offset_address_p): New function.
10275         (mips_start_function_definition): Emit .set micromips directive.
10276         (mips_call_may_need_jalx_p): New function.
10277         (mips_function_ok_for_sibcall): Add microMIPS support.
10278         (mips_print_operand_punctuation): Support short delay slots and
10279         compact jumps.
10280         (umips_swm_mask, umips_swm_encoding): New.
10281         (umips_build_save_restore): New function.
10282         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10283         (was_mips16_p): Remove.
10284         (old_compression_mode): New.
10285         (mips_set_compression_mode): New function.
10286         (mips_set_current_function): Add microMIPS support.
10287         (mips_option_override): Likewise.
10288         (umips_save_restore_pattern_p): New function.
10289         (umips_output_save_restore): New function.
10290         (umips_load_store_pair_p_1): New function.
10291         (umips_load_store_pair_p): New function.
10292         (umips_output_load_store_pair_1): New function.
10293         (umips_output_load_store_pair): New function.
10294         (umips_movep_target_p) New function.
10295         (mips_prepare_pch_save): Add microMIPS support.
10296         * config/mips/mips.h (TARGET_COMPRESSION): New.
10297         (TARGET_CPU_CPP_BUILTINS): Update macro
10298         to use new compression flags and to support microMIPS.
10299         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10300         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10301         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10302         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10303         (ASM_SPEC): Support mmicromips and mno-micromips.
10304         (M16STORE_REG_P): New macro.
10305         (MIPS_CALL): Support TARGET_MICROMIPS.
10306         (MICROMIPS_J): New macro.
10307         (mips_base_mips16): Rename this...
10308         (mips_base_compression_flags): ...to this.
10309         (UMIPS_12BIT_OFFSET_P): New macro.
10310         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10311         (MULTILIB_DIRNAMES): Likewise.
10313 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10315         PR target/52555
10316         * target-globals.c (save_target_globals): For init_reg_sets and
10317         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10319 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10321         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10322         * config/aarch64/t-aarch64
10323         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10325 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10327         PR inline-asm/56148
10328         * lra-constraints.c (process_alt_operands): Reload operand
10329         conflicting with earlier clobber only if no more other conflicting
10330         operands.
10332 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10334         PR sanitizer/56393
10335         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10336         if not linking a shared library.
10338 2013-02-22  Seth LaForge  <sethml@google.com>
10340         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10342 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10344         * config/arm/arm.md (split for extendsidi): Update condition.
10345         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10346         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10347         (qhs_zextenddi_cstr): Likewise.
10349 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10351         PR middle-end/56420
10352         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10353         avoid signed wrapping.
10354         (expand_mult): Handle properly multiplication by
10355         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10356         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10357         in the compiler if coeff is HOST_WIDE_INT_MIN.
10358         (expand_divmod): Don't make ext_op1 static, change it's type to
10359         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10361         PR rtl-optimization/50339
10362         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10363         field.
10364         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10365         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10366         into splitting_ashiftrt field.
10367         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10368         ASHIFTRT.
10369         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10370         choices.
10372 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10374         PR middle-end/56108
10375         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10376         are sure to go irrevocable.
10378 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10380         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10381         scalars are valid operands.
10383 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10385         PR tree-optimization/56310
10386         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10387         only matching indices and non-negative final offsets.
10388         (intersect_aggregates_with_edge): Pass src_idx to
10389         agg_replacements_to_vector.  Pass src_idx insstead of index to
10390         intersect_with_agg_replacements.
10392 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10394         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10395         instead of hard-wired defaults.
10397 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10399         * doc/invoke.texi (MIPS Options): Update documentation of the
10400         floating-point multiply-accumulate instruction restrictions.
10402 2013-02-21  Kostya Serebryany  <kcc@google.com>
10404         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10405         asan_shadow_offset on x86_64 linux.
10407 2013-02-21  Richard Biener  <rguenther@suse.de>
10409         PR tree-optimization/56415
10410         Revert
10411         2013-02-11  Richard Biener  <rguenther@suse.de>
10413         PR tree-optimization/56273
10414         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10415         first VRP run.
10417 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10419         PR bootstrap/56258
10420         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10421         instead of @itemx.
10423         PR inline-asm/56405
10424         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10425         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10427 2013-02-20  Jan Hubicka  <jh@suse.cz>
10429         PR tree-optimization/56265
10430         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10431         when target is referenced for first time.
10433 2013-02-20  Richard Biener  <rguenther@suse.de>
10435         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10436         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10437         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10438         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10439         not return anything.
10440         (rename_ssa_copies): Do not remove unused locals.
10441         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10442         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10443         * passes.c (execute_function_todo): Do not schedule unused locals
10444         removal if cleanup_tree_cfg did something.
10445         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10446         about the number of removed locals.
10448 2013-02-20  Richard Biener  <rguenther@suse.de>
10450         PR tree-optimization/56398
10451         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10453 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10455         PR tree-optimization/55334
10456         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10457         restricted pointers to arrays.
10459 2013-02-20  Richard Biener  <rguenther@suse.de>
10460             Jakub Jelinek  <jakub@redhat.com>
10462         PR tree-optimization/56396
10463         * tree-ssa-ccp.c (n_const_val): New static variable.
10464         (get_value): Return NULL for SSA names we don't have a lattice
10465         entry for.
10466         (ccp_initialize): Initialize n_const_val.
10467         * tree-ssa-copy.c (n_copy_of): New static variable.
10468         (init_copy_prop): Initialize n_copy_of.
10469         (get_value): Return NULL_TREE for SSA names we don't have a
10470         lattice entry for.
10472 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10474         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10476 2013-02-20  Richard Biener  <rguenther@suse.de>
10478         * genpreds.c (write_lookup_constraint): Do not compare first
10479         letter of the constraint again.
10481 2013-02-20  Richard Biener  <rguenther@suse.de>
10483         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10484         and ceil_log2.
10485         (get_use_iv_cost): Terminate hashtable walk when coming across
10486         an empty entry.
10488 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10490         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10491         reassociation for avx2 targets.
10493 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10495         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10496         Add version check for v8.10.a to enable microblaze_has_clz
10497         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10498         version and TARGET_PATTERN_COMPARE check
10499         * config/microblaze/microblaze.md: New clzsi2 instruction
10501 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10503         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10504         function before branching.
10506 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10508         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10509         DUMP_INSN_RTX_UID.
10510         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10512 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10514         PR middle-end/55889
10515         * sel-sched.c: Include ira.h.
10516         (implicit_clobber_conflict_p): New function.
10517         (moveup_expr): Use it.
10518         * Makefile.in (sel-sched.o): Depend on ira.h.
10520 2013-02-19  Richard Biener  <rguenther@suse.de>
10522         PR tree-optimization/56384
10523         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10524         (vn_hash_type): Split out from ...
10525         (vn_hash_constant_with_type): ... here.
10526         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10527         (vn_phi_eq): Compare types from vn_phi_s structure.
10528         (vn_phi_lookup): Populate vn_phi_s type.
10529         (vn_phi_insert): Likewise.
10531 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10533         PR tree-optimization/56350
10534         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10535         if haven't found reduction or nested cycle operand, rather than
10536         asserting we must find it.
10538         PR tree-optimization/56381
10539         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10540         to fold_build3.
10542 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10543             Jakub Jelinek  <jakub@redhat.com>
10545         PR target/52555
10546         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10547         (swap_optab_enable): Same.
10548         (init_all_optabs): Use argument instead of global.
10549         * tree.h (struct tree_optimization_option): New field target_optabs.
10550         * expr.h (init_all_optabs): Add argument to prototype.
10551         (TREE_OPTIMIZATION_OPTABS): New.
10552         (save_optabs_if_changed): Protoize.
10553         * optabs.h: Declare this_fn_optabs.
10554         * optabs.c (save_optabs_if_changed): New.
10555         Declare this_fn_optabs.
10556         (init_optabs): Add argument to init_all_optabs() call.
10557         * function.c (invoke_set_current_function_hook): Handle per
10558         function optabs.
10559         * function.h (struct function): New field optabs.
10560         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10561         optimization_current_node has changed.
10562         * target-globals.h (save_target_globals_default_opts): Protoize.
10563         * target-globals.c (save_target_globals_default_opts): New.
10565 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10567         PR target/56347
10568         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10569         registers %fr12 and %fr12R as call used.
10571         PR target/56214
10572         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10573         and HImode, require all displacements to be an integer multiple of
10574         their mode size.
10575         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10576         only allow QImode and HImode when reload is in progress and strict is
10577         true.  Likewise for symbolic addresses.  Use base14_operand to check
10578         displacements in REG+BASE addresses.
10580 2013-02-18  Richard Biener  <rguenther@suse.de>
10582         PR tree-optimization/56366
10583         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10584         handle sign-conversion of outer-loop initial induction value.
10586 2013-02-18  Richard Biener  <rguenther@suse.de>
10588         PR middle-end/56349
10589         * cfghooks.c (merge_blocks): If we merge a latch into another
10590         block adjust references to it.
10591         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10592         (verify_loop_structure): Verify that a recorded latch is in fact
10593         a latch.
10595 2013-02-18  Richard Biener  <rguenther@suse.de>
10597         PR tree-optimization/56321
10598         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10599         order SSA name release and virtual operand unlinking.
10601 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10603         * config/microblaze/microblaze.md (save_stack_block): Define.
10604         (restore_stack_block): Likewise.
10606 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10608         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10609         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10610         * config/microblaze/microblaze.c (microblaze_option_override):
10611         Bail out early for PIC modes when target does not support PIC.
10613 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10615         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10616         Replace with a microblaze version.
10617         (microblaze_trampoline_init): Adapt for microblaze.
10618         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10619         microblaze.
10621 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10622             Dodji Seketeli  <dodji@redhat.com>
10624         PR asan/56330
10625         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10626         (instrument_mem_region_access): Do not forget to always put
10627         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10628         0) statement, even for cases where either 'base' or 'base + len'
10629         are not instrumented -- because they have been previously
10630         instrumented.  Simplify the logic by putting all the statements
10631         instrument 'base + len' inside a sequence, and then insert that
10632         sequence right before the current insertion point.  Then, to
10633         instrument 'base + len', just get an iterator on that statement.
10634         And do not forget to update the pointer to iterator the function
10635         received as argument.
10637 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10639         PR rtl-optimization/56348
10640         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10642 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10644         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10645         (clean_graph_dump_file): Pass base to start_graph_dump.
10647 2013-02-14  Richard Henderson  <rth@redhat.com>
10649         PR target/55941
10650         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10652 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10654         * collect2-aix.h: Define F_LOADONLY.
10656 2013-02-14  Richard Biener  <rguenther@suse.de>
10658         PR lto/50494
10659         * varasm.c (output_constant_def_1): Get the decl representing
10660         the constant as argument.
10661         (output_constant_def): Wrap output_constant_def_1.
10662         (make_decl_rtl): Use output_constant_def_1 with the decl
10663         representing the constant.
10664         (build_constant_desc): Optionally re-use a decl already
10665         representing the constant.
10666         (tree_output_constant_def): Adjust.
10668 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10670         Fix an asan crash
10671         * asan.c (instrument_builtin_call):  Really put the length of the
10672         second source argument into src1_len.
10674 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10676         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10677         argument.  If it is false, don't create edge from then_bb to
10678         fallthru_bb.
10679         (insert_if_then_before_iter): Pass true to it.
10680         (build_check_stmt): Pass false to it.
10681         (transform_statements): Flush hash table only on extended basic
10682         block boundaries, rather than at the beginning of every bb.
10683         Don't flush hash table on nonfreeing_call_p calls.
10684         * tree-flow.h (nonfreeing_call_p): New prototype.
10685         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10687 2013-02-13  David S. Miller  <davem@davemloft.net>
10689         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10691 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10693         PR target/56184
10694         * ira.c (max_regno_before_ira): Move from ...
10695         (ira): ... here.
10696         (fix_reg_equiv_init): Use max_regno_before_ira instead of
10697         vec_safe_length.
10699 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10701         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10703 2013-02-13  Richard Biener  <rguenther@suse.de>
10705         PR lto/56295
10706         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10707         globals in MEM_REFs.
10709 2013-02-13  Richard Biener  <rguenther@suse.de>
10711         * loop-init.c (loop_optimizer_init): Clear loop state when
10712         re-initializing preserved loops.
10713         * loop-unswitch.c (unswitch_single_loop): Return whether
10714         we unswitched the loop.  Do not verify loop state here.
10715         (unswitch_loops): When we unswitched a loop discover new loops.
10717 2013-02-13  Kostya Serebryany  <kcc@google.com>
10719         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10720         on x86_64 linux.
10721         * sanitizer.def: Rename __asan_init to __asan_init_v1.
10723 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
10725         Avoid instrumenting duplicated memory access in the same basic block
10726         * Makefile.in (asan.o): Add new dependency on hash-table.h
10727         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10728         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10729         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10730         (free_mem_ref_resources, has_mem_ref_been_instrumented)
10731         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10732         (get_mem_ref_of_assignment): New functions.
10733         (get_mem_refs_of_builtin_call): Extract from
10734         instrument_builtin_call and tweak a little bit to make it fit with
10735         the new signature.
10736         (instrument_builtin_call): Use the new
10737         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
10738         of is_gimple_builtin_call.
10739         (instrument_derefs, instrument_mem_region_access): Insert the
10740         instrumented memory reference into the hash table.
10741         (maybe_instrument_assignment): Renamed instrument_assignment into
10742         this, and change it to advance the iterator when instrumentation
10743         actually happened and return true in that case.  This makes it
10744         homogeneous with maybe_instrument_assignment, and thus give a
10745         chance to callers to be more 'regular'.
10746         (transform_statements): Clear the memory reference hash table
10747         whenever we enter a new BB, when we cross a function call, or when
10748         we are done transforming statements.  Use
10749         maybe_instrument_assignment instead of instrumentation.  No more
10750         need to special case maybe_instrument_assignment and advance the
10751         iterator after calling it; it's now handled just like
10752         maybe_instrument_call.  Update comment.
10754 2013-02-13  Richard Biener  <rguenther@suse.de>
10756         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10757         Fix loop discovery code.
10759 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
10761         PR inline-asm/56148
10762         * lra-constraints.c (process_alt_operands): Match early clobber
10763         operand with itself.  Check conflicts with earlyclobber only if
10764         the operand is not reloaded.  Prefer to reload conflicting operand
10765         if earlyclobber and matching operands are the same.
10767 2013-02-12  Richard Biener  <rguenther@suse.de>
10769         PR lto/56297
10770         * lto-streamer-out.c (write_symbol): Do not output symbols
10771         for hard register variables.
10773 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
10775         PR target/54222
10776         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10777         (umulsidi3_insn, mulsidi3_insn): New insns.
10779 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
10781         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10782         (struct tune_params): Add vec_costs field.
10783         * config/arm/arm.c (arm_builtin_vectorization_cost)
10784         (arm_add_stmt_cost): New functions.
10785         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10786         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10787         (arm_default_vec_cost): New struct of type cpu_vec_costs.
10788         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10789         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10790         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10791         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10793 2013-02-12  Richard Biener  <rguenther@suse.de>
10795         PR lto/56295
10796         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10797         decls again if possible.
10799 2013-02-12  Richard Biener  <rguenther@suse.de>
10801         PR middle-end/56288
10802         * tree-ssa.c (verify_ssa_name): Fix check, move
10803         SSA_NAME_IN_FREE_LIST check up.
10805 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
10806             Steven Bosscher   <steven@gcc.gnu.org>
10808         PR rtl-optimization/56151
10809         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10810         equal to op0 or op1, and last_insn pattern is CODE operation
10811         with MEM dest and one of the operands matches that MEM.
10813 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
10815         * doc/extend.texi: Document Function Multiversioning and "default"
10816         parameter string to target attribute.
10817         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10818         target attribute parameter is "default".
10819         (ix86_compare_version_priority): Remove checks for target attribute.
10820         (ix86_mangle_function_version_assembler_name): Change error to sorry.
10821         Remove check for target attribute equal to NULL. Add assert.
10822         (ix86_generate_version_dispatcher_body): Change error to sorry.
10824 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
10825             Jack Howarth  <howarth@bromo.med.uc.edu>
10826             Patrick Marlier  <patrick.marlier@gmail.com>
10828         PR libitm/55693
10829         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10830         define ENDFILE_SPEC as TM_DESTRUCTOR.
10831         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10833 2013-02-11  Alexander Potapenko  <glider@google.com>
10834             Jack Howarth  <howarth@bromo.med.uc.edu>
10835             Jakub Jelinek  <jakub@redhat.com>
10837         PR sanitizer/55617
10838         * config/darwin.c (cdtor_record): Rename ctor_record.
10839         (sort_cdtor_records): Rename sort_ctor_records.
10840         (finalize_dtors): New routine to sort destructors by
10841         priority before use in assemble_integer.
10842         (machopic_asm_out_destructor): Use finalize_dtors if needed.
10844 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
10846         PR rtl-optimization/56275
10847         * simplify-rtx.c (avoid_constant_pool_reference): Check that
10848         offset is non-negative and less than cmode size before
10849         calling simplify_subreg.
10851 2013-02-11  Richard Biener  <rguenther@suse.de>
10853         PR tree-optimization/56264
10854         * cfgloop.h (fix_loop_structure): Adjust prototype.
10855         * loop-init.c (fix_loop_structure): Return the number of
10856         newly discovered loops.
10857         * tree-cfgcleanup.c (repair_loop_structures): When new loops
10858         are discovered, do a full loop-closed SSA rewrite.
10860 2013-02-11  Richard Biener  <rguenther@suse.de>
10862         PR tree-optimization/56273
10863         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10864         first VRP run.
10865         (check_array_ref): Fix missing newline in dumps.
10866         (search_for_addr_array): Likewise.
10868 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
10870         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10872 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
10874         PR target/56256
10875         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10877 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
10879         PR rtl-optimization/56246
10880         * lra-constraints.c (simplify_operand_subreg): Try to reuse
10881         reload pseudo.
10882         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10883         constraints are satisfied.
10885 2013-02-08  Jeff Law  <law@redhat.com>
10887         PR debug/53948
10888         * emit-rtl.c (reg_is_parm_p): New function.
10889         * regs.h (reg_is_parm_p): New prototype.
10890         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10891         callee-clobbered registers.
10893 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10895         PR target/56043
10896         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10897         If there is no implicit builtin declaration, just return NULL.
10899 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10901         * config/i386/sse.md (FMAMODEM): New mode iterator.
10902         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10903         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10905 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10907         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10908         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10909         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10911 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10913         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10914         (microblaze*-*-elf): Likewise.
10915         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10916         LINK_SPEC.
10917         * config/microblaze/microblaze-c.c: Add builtin defines for
10918         _LITTLE_ENDIAN and _BIG_ENDIAN.
10919         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10920         add to TARGET_DEFAULT flags.
10921         Expand ASM_SPEC and LINK_SPEC.
10922         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10923         * config/microblaze/microblaze.md: Update extendsidi2 and
10924         movdi_internal instructions to use low-order / high-order reg
10925         print_operands.
10926         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10927         options and inversemask / mask of LITTLE_ENDIAN.
10928         * config/microblaze/t-microblaze: Expand multilib options to
10929         include mlittle-endian (le) and update exceptions patterns.
10931 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
10933         PR rtl-optimization/56195
10934         * lra-constraints.c (get_reload_reg): Don't reuse regs
10935         if they have smaller mode than requested, if they have
10936         wider mode than requested, try to return a SUBREG.
10938         PR tree-optimization/56250
10939         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10940         if type is unsigned and code isn't MULT_EXPR.
10942 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10944         PR tree-optimization/56064
10945         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10946         bits according to mode.
10947         * fixed-value.h (fixed_from_double_int)
10948         (const_fixed_from_double_int): Adjust comments.
10950 2013-02-08  Richard Biener  <rguenther@suse.de>
10952         PR lto/56231
10953         * lto-streamer.h (struct data_in): Remove current_file, current_line
10954         and current_col members.
10955         * lto-streamer-out.c (lto_output_location): Stream changed bits
10956         en-block for efficiency.
10957         * lto-streamer-in.c (clear_line_info): Remove.
10958         (lto_input_location): Cache current file, line and column
10959         globally via local statics.  Read changed bits en-block.
10960         (input_function): Do not call clear_line_info.
10961         (lto_read_body): Likewise.
10962         (lto_input_toplevel_asms): Likewise.
10964 2013-02-08  Michael Matz  <matz@suse.de>
10966         PR tree-optimization/52448
10967         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10968         (nt_call_phase): New static.
10969         (add_or_mark_expr): Only mark accesses with newer phase than any
10970         call seen.
10971         (nonfreeing_call_p): New.
10972         (nt_init_block): Update nt_call_phase, mark blocks as visited.
10973         (nt_fini_block): Keep blocks marked as visited.
10974         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10976 2013-02-08  Richard Biener  <rguenther@suse.de>
10978         * ira.c (ira): Free broken dominator information.
10980 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10982         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10984 2013-02-08  Marek Polacek  <polacek@redhat.com>
10986         * cfgloop.c (verify_loop_structure): Add more checking of headers.
10988 2013-02-08  Richard Biener  <rguenther@suse.de>
10990         PR middle-end/56181
10991         * cfgloop.h (flow_loops_find): Adjust.
10992         (bb_loop_header_p): Declare.
10993         * cfgloop.c (bb_loop_header_p): New function split out from ...
10994         (flow_loops_find): ... here.  Adjust function signature,
10995         support incremental loop structure update.
10996         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
10997         * cfgloopmanip.c (fix_loop_structure): Move ...
10998         * loop-init.c (fix_loop_structure): ... here.
10999         (apply_loop_flags): Split out from ...
11000         (loop_optimizer_init): ... here.
11001         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11002         in incremental mode, only remove dead loops here.
11004 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11006         PR target/54222
11007         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11008         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11009         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11010         (*round<mode>3.libgcc): New insns for fixed-modes.
11011         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11012         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11013         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11014         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11015         implementations.  Define to __builtin_avr_absFX,
11016         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11017         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11018         __builtin_avr_countlsFX, respectively.
11019         * config/avr/avr-c.c (target.h): Include it.
11020         (enum avr_builtin_id): New enum.
11021         (avr_resolve_overloaded_builtin): New static function.
11022         (avr_register_target_pragmas): Use it to set
11023         targetm.resolve_overloaded_builtin.
11024         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11025         tree nodes used by DEF_BUILTIN.
11026         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11027         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11028         <AVR_BUILTIN_xxBITS>: Same.
11030 2013-02-08  Richard Biener  <rguenther@suse.de>
11032         * cfgloop.c (verify_loop_structure): Properly handle
11033         a loop exiting to another loop header.
11034         * ira-int.h (ira_loops): Remove.
11035         * ira.c (ira_loops): Remove.
11036         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11037         (do_reload): Use loop_optimizer_finalize.
11038         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11039         number_of_loops to access the loop tree.
11040         (more_one_region_p): Likewise.
11041         (finish_loop_tree_nodes): Likewise.
11042         (rebuild_regno_allocno_maps): Likewise.
11043         (mark_loops_for_removal): Likewise.
11044         (mark_all_loops_for_removal): Likewise.
11045         (remove_unnecessary_regions): Likewise.
11046         (ira_build): Likewise.
11047         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11049 2013-02-08  Richard Biener  <rguenther@suse.de>
11051         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11052         * ipa-pure-const.c (analyze_function): Avoid calling
11053         mark_irreducible_loops twice.
11054         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11056 2013-02-07  David S. Miller  <davem@davemloft.net>
11058         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11059         on 'reg'.
11060         * var-tracking.c (vt_add_function_parameter): Test the presence of
11061         HAVE_window_save properly and do not remap argument registers when
11062         we have a leaf function.
11064 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11066         PR bootstrap/56227
11067         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11068         instead of "ll".
11069         * config/i386/i386.c (ix86_print_operand): Ditto.
11071 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11073         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11075 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11077         PR rtl-optimization/56225
11078         * lra-constraints.c (process_alt_operands): Check that reload hard
11079         reg can hold value for strict_low_part.
11081 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11083         PR debug/56154
11084         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11085         dwarf2out_end_function.
11086         (in_first_function_p, maybe_at_text_label_p,
11087         first_loclabel_num_not_at_text_label): New variables.
11088         (dwarf2out_var_location): In the first function find out
11089         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11090         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11091         functions.
11093 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11095         PR rtl-optimization/56178
11096         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11097         SUBREG of a register.  Tidy up related block of code.
11098         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11099         note if the source is a register or a SUBREG of a register.
11101 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11103         PR target/56228
11104         * config/rs6000/rs6000.md (ptrm): New mode attr.
11105         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11106         call_value_indirect_aix<pttrsize>,
11107         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11108         m in constraints.
11110 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11112         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11113         if -bnortl. Convert to strcmp and strncmp.
11115 2013-02-07  Alan Modra  <amodra@gmail.com>
11117         PR target/54009
11118         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11119         addresses won't wrap when offsetting.
11120         (rs6000_secondary_reload): Provide secondary reloads needed for
11121         wrapping LO_SUM addresses.
11123 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11125         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11126         MACH, just __MACH__.
11128 2013-02-06  Richard Biener  <rguenther@suse.de>
11130         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11131         instead of calling fix_loop_structure.
11133 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11135         PR middle-end/56217
11136         * omp-low.c (use_pointer_for_field): Return false if
11137         lower_send_shared_vars doesn't generate any copy-out code.
11139 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11141         PR rtl-optimization/56131
11142         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11143         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11144         of the label is NULL.  Add comment.
11146 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11148         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11150         PR sanitizer/55374
11151         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11152         (STATIC_LIBTSAN_LIBS): Likewise.
11153         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11154         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11155         is defined, don't add anything else beyond that.
11156         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11157         (LINK_COMMAND_SPEC): Use them.
11159         PR tree-optimization/56205
11160         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11161         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11162         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11164 2013-02-05  Richard Biener  <rguenther@suse.de>
11166         PR tree-optimization/53342
11167         PR tree-optimization/53185
11168         * tree-vectorizer.h (vect_check_strided_load): Remove.
11169         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11170         not disallow peeling for vectorized strided loads.
11171         (vect_check_strided_load): Make static and simplify.
11172         (vect_analyze_data_refs): Adjust.
11173         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11174         correctly when vectorizing strided loads.
11176 2013-02-05  Richard Biener  <rguenther@suse.de>
11178         * doc/install.texi: Refer to ISL, not PPL.
11180 2013-02-05  Jan Hubicka  <jh@suse.cz>
11182         PR tree-optimization/55789
11183         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11185 2013-02-05  Jan Hubicka  <jh@suse.cz>
11187         PR tree-optimization/55789
11188         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11189         the dead call anyway.
11191 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11193         PR sanitizer/55374
11194         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11196 2013-02-04  Alexander Potapenko  <glider@google.com>
11197             Jack Howarth  <howarth@bromo.med.uc.edu>
11198             Jakub Jelinek  <jakub@redhat.com>
11200         PR sanitizer/55617
11201         * config/darwin.c (sort_ctor_records): Stabilized qsort
11202         on constructor priority by using original position.
11203         (finalize_ctors): New routine to sort constructors by
11204         priority before use in assemble_integer.
11205         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11207 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11209         PR libstdc++/54314
11210         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11211         about visibility on artificial decls.
11212         * config/sol2.c (solaris_assemble_visibility): Likewise.
11214 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11216         PR target/56186
11217         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11218         argument and improve checking of return-argument types for 16-byte
11219         modes.
11220         (ix86_function_value_1): Add additional valtype argument on call
11221         of function_value_64.
11222         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11223         handling infunction_value_64 function.
11225 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11227         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11229 2013-02-04  Richard Biener  <rguenther@suse.de>
11231         PR tree-optimization/56188
11232         * tree-ssa-structalias.c (label_visit): Consider case with
11233         initially non-empty points-to set.
11234         (perform_var_substitution): Dump node mapping and clean up.
11236 2013-02-04  Richard Guenther  <rguenther@suse.de>
11238         PR lto/56168
11239         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11240         node prevail as last resort.
11241         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11242         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11244 2013-02-04  Richard Biener  <rguenther@suse.de>
11246         PR tree-optimization/56113
11247         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11248         Merge into ...
11249         (equiv_class_lookup_or_add): ... this.
11250         (label_visit): Adjust and fix error in previous patch.
11251         (perform_var_substitution): Adjust.
11253 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11255         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11256         * config/sh/sh4-300.md: Likewise.
11257         * config/sh/sh4a.md: Likewise.
11258         * config/sh/constraints.md: Likewise.
11259         * config/sh/sh.md: Likewise.
11260         * config/sh/netbsd-elf.h: Likewise.
11261         * config/sh/predicates.md: Likewise.
11262         * config/sh/sh-protos.h: Likewise.
11263         * config/sh/ushmedia.h: Likewise.
11264         * config/sh/linux.h: Likewise.
11265         * config/sh/sh.c: Likewise.
11266         * config/sh/superh.h: Likewise.
11267         * config/sh/elf.h: Likewise.
11268         * config/sh/sh4.md: Likewise.
11269         * config/sh/sh.h: Likewise.
11271 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11273         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11274         constraint to match_test floating_point_store_memory_operand().
11275         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11276         (base14_operand): New.
11277         (floating_point_store_memory_operand): New.
11278         (integer_store_memory_operand): Revise to use base14_operand and
11279         reg_plus_base_memory_operand.
11280         (move_dest_operand): Allow symbolic_memory_operands.
11281         (symbolic_memory_operand): Check for LO_SOM.
11282         (symbolic_operand): Change default case to break.
11283         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11284         CONST_DOUBLE values to be reloaded by putting them into memory when
11285         the destination is a floating point register.
11286         (movdf): Remove code to handle CONST_DOUBLE.
11287         (movsf): Likewise.
11288         (reload_indf_r1): New.
11289         (reload_insf_r1): New.
11290         Consistently use "Q" and "T" constraints with integer and floating
11291         point move instructions, respectively.
11292         (movdi): Remove FAIL.
11293         Change predicate for source operand unamed DImode move from
11294         general_operand to move_src_operand.
11295         (umulsidi3): Change predicate for destination operand to
11296         register_operand.
11297         Likewise for similar unamed patterns.
11298         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11299         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11300         (hppa_legitimize_address): Simplify mask calculation.
11301         (pa_emit_move_sequence): Revised handling of secondary reloads from
11302         REG+D addresses for floating point loads and stores.  Directly handle
11303         loading CONST0_RTX (mode) to a floating point register.
11304         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11305         to floating point registers.  Don't restrict secondary reloads to
11306         floating point registers to integer modes.  Revise some comments and
11307         cleanup some code.
11308         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11309         (pa_legitimate_address_p): New.
11310         (pa_legitimize_reload_address): New.
11311         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11312         (STRICT_REG_OK_FOR_BASE_P): New.
11313         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11314         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11316 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11317             Andrew Dixie  <andrewd@gentrack.com>
11319         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11320         flag set.
11322 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11324         * expmed.c (extract_bit_field_1): Pass the full width of the
11325         structure to get_best_reg_extraction_insn.
11327 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11329         PR target/54601
11330         * configure.ac (use_cxa_atexit): Add AIX.
11331         * configure: Regenerate.
11333         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11335 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11337         PR debug/54793
11338         * final.c (need_profile_function): New variable.
11339         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11340         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11341         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11342         notes, targetm.asm_out.function_prologue doesn't emit anything,
11343         HAVE_prologue and profiler should be emitted before prologue,
11344         set need_profile_function instead of emitting it.
11345         (final_scan_insn): If need_profile_function, emit
11346         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11347         NOTE_INSN_FUNCTION_BEG note.
11349 2013-02-01  Richard Henderson  <rth@redhat.com>
11351         * config/rs6000/rs6000.md (smulditi3): New.
11352         (umulditi3): New.
11354         * config/alpha/alpha.md (umulditi3): New.
11356 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11358         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11359         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11361 2013-02-01  Richard Biener  <rguenther@suse.de>
11363         PR tree-optimization/56113
11364         * tree-ssa-structalias.c (label_visit): Reduce work for
11365         single-predecessor nodes.
11367 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11369         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11370         range isn't testing for zero.
11372 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11374         PR middle-end/56113
11375         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11377 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11378             Nick Clifton  <nickc@redhat.com>
11380         * config/v850/constraints.md (Q): Define as a memory constraint.
11381         * config/v850/predicates.md (label_ref_operand): New predicate.
11382         (e3v5_shift_operand): New predicate.
11383         (ior_operator): New predicate.
11384         * config/v850/t-v850: Add e3v5 multilib.
11385         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11386         (v850_gen_movdi): Prototype.
11387         * config/v850/v850.c: Add support for e3v5 architecture.
11388         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11389         TARGET_V850E_UP.
11390         (construct_save_jarl): Add e3v5 long JARL support.
11391         (v850_adjust_insn_length): New function.  Adjust length of call
11392         insns when using e3v5 instructions.
11393         (v850_gen_movdi): New function: Generate instructions to move a
11394         DImode value.
11395         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11396         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11397         (TARGET_USE_FPU): Enable for e3v5.
11398         (CONST_OK_FOR_W): New macro.
11399         (ADJUST_INSN_LENGTH): Define.
11400         * config/v850/v850.md (UNSPEC_LOOP): Define.
11401         (attr cpu): Add v850e3v5.
11402         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11403         (movdi): New pattern.
11404         (movdi_internal): New pattern.
11405         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11406         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11407         (cstoresf4): Likewise.
11408         (cstoredf4): Likewise.
11409         (insv): New pattern.
11410         (rotlso3_a): New pattern.
11411         (rotlsi3_b): New pattern
11412         (rotlsi3_v850e3v5): New pattern.
11413         (doloop_begin): New pattern.
11414         (fix_loop_counter): New pattern.
11415         (doloop_end): New pattern.
11416         (branch_normal): Add e3v5 long branch support.
11417         (branch_invert): Likewise.
11418         (branch_z_normal): Likewise.
11419         (branch_z_invert): Likewise.
11420         (branch_nz_normal): Likewise.
11421         (branch_nz_invert): Likewise.
11422         (call_internal_short): Add e3v5 register-indirect JARL support.
11423         (call_internal_long): Likewise.
11424         (call_value_internal_short): Likewise.
11425         (call_value_internal_long): Likewise.
11426         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11427         (mloop): New option.
11428         * config.gcc: Add support for configuring v840e3v5 target.
11429         * doc/invoke.texi: Document new v850 specific command line options.
11431 2013-01-31  Paul Koning  <ni1d@arrl.net>
11433         PR debug/55059
11434         PR debug/54508
11435         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11436         children if parent is a class.
11437         (prune_unused_types_prune): Don't add DW_AT_declaration.
11439 2013-01-31  Richard Biener  <rguenther@suse.de>
11441         PR tree-optimization/56157
11442         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11443         match up operand with SLP child.
11445 2013-01-31  Jason Merrill  <jason@redhat.com>
11447         PR debug/54410
11448         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11449         parameters the first time.
11450         (gen_scheduled_generic_parms_dies): Check completeness here.
11452 2013-01-31  Richard Biener  <rguenther@suse.de>
11454         PR middle-end/53073
11455         * common.opt (faggressive-loop-optimizations): New flag,
11456         enabled by default.
11457         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11458         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11459         infer_loop_bounds_from_undefined by it.
11461 2013-01-31  Richard Biener  <rguenther@suse.de>
11463         PR tree-optimization/56150
11464         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11465         visit virtual operands.
11466         (find_uses_to_rename_bb): Likewise.
11468 2013-01-31  Richard Biener  <rguenther@suse.de>
11470         PR tree-optimization/56150
11471         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11472         mixed store non-store stmts.
11474 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11476         PR sanitizer/55374
11477         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11478         LIBASAN_EARLY_SPEC is defined.
11479         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11480         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11481         before %o.
11482         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11484         PR c++/55742
11485         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11486         invalid args instead of ICEing on it.
11487         (ix86_valid_target_attribute_tree): Return error_mark_node if
11488         ix86_valid_target_attribute_inner_p failed.
11489         (ix86_valid_target_attribute_p): Return false only if
11490         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11491         target("default") attribute.
11492         (sorted_attr_string): Change argument from const char * to tree,
11493         merge in all target attribute arguments rather than just one.
11494         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11495         instead of free.  Avoid using strcat.
11496         (ix86_mangle_function_version_assembler_name): Mangle
11497         target("default") as if no target attribute is present.  Adjust
11498         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11499         instead of xmalloc and XDELETEVEC instead of free.
11500         (ix86_function_versions): Don't return true if one of the decls
11501         doesn't have target attribute.  If they don't and one of the decls
11502         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11503         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11504         (ix86_supports_function_versions): Remove.
11505         (make_name): Fix up formatting.
11506         (make_dispatcher_decl): Remove resolver_name and its initialization.
11507         Avoid leaking memory.
11508         (is_function_default_version): Return true if there is
11509         target("default") attribute rather than no target attribute at all.
11510         (make_resolver_func): Avoid leaking memory.
11511         (ix86_generate_version_dispatcher_body): Likewise.
11512         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11513         * target.def (supports_function_versions): Remove.
11514         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11515         * doc/tm.texi: Regenerated.
11517 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11519         PR rtl-optimization/56144
11520         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11521         for values with side effects.
11523 2013-01-30  Richard Biener  <rguenther@suse.de>
11525         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11526         (sparseset_pop): Likewise.
11527         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11528         to be able to use quick_push in the worker loop.
11530 2013-01-30  Marek Polacek  <polacek@redhat.com>
11532         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11534 2013-01-30  Richard Biener  <rguenther@suse.de>
11536         PR lto/56147
11537         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11539 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11541         PR tree-optimization/56064
11542         * fixed-value.c (fixed_from_double_int): New function.
11543         * fixed-value.h (fixed_from_double_int): New prototype.
11544         (const_fixed_from_double_int): New static inline function.
11545         * fold-const.c (native_interpret_fixed): New static function.
11546         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11547         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11548         (native_encode_fixed): New static function.
11549         (native_encode_expr) <FIXED_CST>: Use it.
11550         (native_interpret_int): Move double_int worker code to...
11551         * double-int.c (double_int::from_buffer): ...this new static method.
11552         * double-int.h (double_int::from_buffer): Prototype it.
11554 2013-01-30  Richard Biener  <rguenther@suse.de>
11556         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11557         New pointer-map and obstack.
11558         (init_alias_vars): Allocate pointer-map and obstack.
11559         (delete_points_to_sets): Free them.
11560         (find_what_var_points_to): Cache result.
11561         (find_what_p_points_to): Adjust for changed interface of
11562         find_what_var_points_to.
11563         (compute_points_to_sets): Likewise.
11564         (ipa_pta_execute): Likewise.
11566 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11568         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11569         * configure: Regenerate.
11570         * config.in: Regenerate.
11571         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11572         #nobits/#progbits if supported.
11574 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11576         PR target/56121
11577         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11578         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11579         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11581 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11583         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11584         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11586 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11588         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11589         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11591 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11593         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11594         declaration.
11595         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11596         * config/arm/cortex-a7.md: New bypasses using
11597         arm_mac_accumulator_is_result.
11599 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11601         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11602         (cortex_a7_neon_mla): Likewise.
11603         (cortex_a7_fpfmad): New reservation.
11604         (cortex_a7_fpmacs): Use ffmas and update required units.
11605         (cortex_a7_fpmuld): Update required units and latency.
11606         (cortex_a7_fpmacd): Likewise.
11607         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11608         (cortex_a7_neon). Likewise.
11609         (bypass) Update participating units.
11611 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11613         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11614         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11615         from fmac to ffma.
11616         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11617         (vfp_fmul): Use ffmad.
11618         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11619         (cortex_r4_fmacd): Use ffmad.
11620         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11621         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11622         (cortex_a9_fmacd): Use ffmad.
11623         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11624         (cortex_a8_vfp_macd): Use ffmad.
11625         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11626         (cortex_a5_fpmacd): Use ffmad.
11627         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11628         (cortex_a15_vfp_macd): Use ffmad.
11629         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11631 2013-01-29  Jason Merrill  <jason@redhat.com>
11633         PR libstdc++/54314
11634         * varasm.c (default_assemble_visibility): Don't warn about
11635         visibility on artificial decls.
11637 2013-01-29  Richard Biener  <rguenther@suse.de>
11639         PR tree-optimization/56113
11640         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11641         the bitmap leader.
11642         (label_visit): Free duplicate bitmaps and record the leader instead.
11643         (perform_var_substitution): Adjust.
11645 2013-01-29  Richard Biener  <rguenther@suse.de>
11647         PR tree-optimization/55270
11648         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11649         the CFG, schedule loops for fixup.
11651 2013-01-29  Nick Clifton  <nickc@redhat.com>
11653         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11654         SP_REG.
11656 2013-01-28  Leif Ekblad  <leif@rdos.net>
11658         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11659         * config/i386/i386.h (TARGET_RDOS): New macro.
11660         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11661         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11662         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11663         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11664         DEFAULT_LARGE_SECTION_THRESHOLD.
11665         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11666         * config/i386/rdos.h: New file.
11667         * config/i386/rdos64.h: New file.
11669 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11671         PR other/54814
11672         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11673         TEST_HARD_REG_BIT.
11675 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11677         PR rtl-optimization/56117
11678         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11679         call cselib_lookup_from_insn on the MEM before calling
11680         add_insn_mem_dependence.
11682 2013-01-28  Richard Biener  <rguenther@suse.de>
11684         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11685         to a stmt that didn't have one.
11686         (copy_phis_for_bb): Likewise for PHI arguments.
11687         (copy_debug_stmt): Likewise for debug stmts.
11689 2013-01-28  Richard Biener  <rguenther@suse.de>
11691         PR tree-optimization/56034
11692         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11693         (partition_builtin_p): Adjust.
11694         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
11695         it is the last partition.
11696         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11697         up the vertex for the definition.
11698         (classify_partition): Classify whether a partition is a
11699         PKIND_REDUCTION, thus has uses outside of the loop.
11700         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11701         Merge all PKIND_REDUCTION partitions into the last partition.
11702         (tree_loop_distribution): Seed partitions from reductions as well.
11704 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11706         PR tree-optimization/56125
11707         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11708         pow(x,c) into sqrt(x) * powi(x, n/2) or
11709         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11710         optimizing for size.
11711         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11712         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11713         integer.
11715         PR tree-optimization/56094
11716         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11717         to UNKNOWN_LOCATION while gimplifying expr.
11719 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
11721         PR target/56114
11722         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11723         operand 0 in movabs insn template for -masm=intel asm alternative.
11724         (*movabs<mode>_2): Ditto for operand 1.
11726 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
11728         PR target/54663
11729         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11730         of microblaze-c.o
11732 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11734         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11735         tm_file.
11737 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11739         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11740         Undef to avoid warning.
11742 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11744         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11745         * configure: Regenerate.
11747 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
11749         PR tree-optimization/56098
11750         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11751         for stmts with volatile ops.
11752         (cond_store_replacement): Don't optimize if assign has volatile ops.
11753         (cond_if_else_store_replacement_1): Don't optimize if either
11754         then_assign or else_assign have volatile ops.
11755         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11756         volatile ops.
11758 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11760         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11762 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11764         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11765         missing ':' in asm example.
11767 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
11769         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11770         entries into lane and laneq entries.
11771         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11772         Remove AdvSIMD scalar modes.
11773         (aarch64_sq<r>dmulh_laneq<mode>): New.
11774         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11775         modes.
11776         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11777         builtin implementations to relfect changes in RTL in aarch64-simd.md.
11778         * config/aarch64/iterators.md (VCOND): New.
11779         (VCONQ): New.
11781 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11783         PR target/54222
11784         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11785         Add NULL LIBNAME argument to existing definitions.
11786         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11787         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11788         * config/avr/avr.c (DEF_BUILTIN): Same.
11789         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11790         (avr_expand_builtin): Expand to a vanilla call if a libgcc
11791         implementation is available (DECL_ASSEMBLER_NAME is set).
11792         (avr_fold_absfx): New static function.
11793         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11794         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11795         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11796         AVR_BUILTIN_ABSLLK.
11797         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11798         (abshk, absk, abslk, absllk): Provide as static inline functions.
11800 2013-01-25  Marek Polacek  <polacek@redhat.com>
11802         PR tree-optimization/56035
11803         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11805 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
11807         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11808         (*movtf_internal_rex64): Add (!o,C) alternative
11809         (*movxf_internal_rex64): Ditto.
11810         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11812 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
11814         * doc/invoke.texi: fix typo.
11815         * doc/objc.texi: fix typo.
11817 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
11819         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11820         for the first two alternatives.
11822 2013-01-24  Diego Novillo  <dnovillo@google.com>
11824         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
11825         (ggc-zone.o): Remove.
11826         * configure.ac: Remove option --with-gc.
11827         * configure: Re-generate.
11828         * doc/install.texi: Remove documentation for --with-gc.
11829         * gengtype.c (write_enum_defn): Remove.  Update all users.
11830         (write_Types_process_field): Remove generation of gt_e_* argument.
11831         (output_type_enum): Remove.  Update all users.
11832         (write_enum_defn): Remove.  Update all users.
11833         (enum alloc_zone): Remove.  Update all users.
11834         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11835         * ggc-common.c (ggc_splay_alloc): Remove first argument.
11836         Update all callers.
11837         (struct ptr_data): Remove field TYPE.  Update all users.
11838         (gt_pch_note_object): Remove argument TYPE.  Update all users.
11839         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11840         Update all users.
11841         * ggc-none.c (ggc_alloc_typed_stat): Remove.
11842         (struct alloc_zone): Remove.
11843         (ggc_internal_alloc_zone_stat): Remove.
11844         (ggc_internal_cleared_alloc_zone_stat): Remove.
11845         * ggc-page.c (ggc_alloc_typed_stat): Remove.
11846         (ggc_pch_count_object): Remove last argument.  Update all users.
11847         (ggc_pch_alloc_object): Remove last argument.  Update all users.
11848         (struct alloc_zone): Remove.
11849         * ggc-zone.c: Remove.
11850         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
11851         (struct alloc_zone): Remove.
11852         (ggc_alloc_typed_stat): Remove.
11853         (ggc_alloc_typed): Remove.
11854         (ggc_splay_alloc): Remove first argument.
11855         (rtl_zone): Remove.  Update all users.
11856         (tree_zone): Remove.  Update all users.
11857         (tree_id_zone): Remove.  Update all users.
11858         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
11859         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
11860         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
11861         * tree-ssanames.c: Remove references to zone allocator in comments.
11863 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
11865         * config/avr/avr.c (avr_out_fract): Make register numbers that
11866         might be outside of source operand signed.
11868 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
11870         * config/i386/constraints.md (Yf): New constraint.
11871         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11872         of f constraint to conditionaly disable x87 register preferences.
11873         (*movdf_internal): Ditto.
11874         (*movsf_internal): Ditto.
11876 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
11878         PR inline-asm/55934
11879         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11880         that have operands with impossible constraints.
11881         Add a FIXME for a speed-up opportunity.
11882         * lra-constraints.c (process_alt_operands): Verify that a class
11883         selected from constraints on asms is valid for the operand mode.
11884         (curr_insn_transform): Remove incorrect comment.
11886 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
11888         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11889         TOC operand is a valid symbol ref in the constant pool.
11891 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11893         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11895 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
11897         PR target/54222
11898         * config/avr/stdfix.h: New file.
11899         * t-avr (stdfix-gcc.h): New rule to build it.
11900         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11902 2013-01-23  Kostya Serebryany  <kcc@google.com>
11904         * config/darwin.h: remove dependency on
11905         CoreFoundation (asan on Mac OS).
11907 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
11909         PR target/49069
11910         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11911         instead of cmpdi_operand for first comparison operand.
11912         Don't assert that comparison operands aren't both constants.
11914 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11916         * doc/install.texi (Downloading the Source): Update references to
11917         downloading separate components.
11919 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11921         * doc/extend.texi (__int128): Improve grammar.
11923 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
11925         PR target/56028
11926         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11927         alternative to (o,r).
11928         (*movdi_internal_rex64): Remove (!o,n) alternative.
11929         (DImode immediate->memory splitter): Remove.
11930         (DImode immediate->memory peephole2): Remove.
11931         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11932         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11933         alternative to (!o,*r).
11934         (*movtf_internal_sse): New pattern.
11935         (*movxf_internal_rex64): New pattern.
11936         (*movxf_internal): Disable for TARGET_64BIT.
11937         (*movdf_internal_rex64): Remove (!o,F) alternative.
11939 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
11941         PR middle-end/56074
11942         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11943         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11944         * tree-vect-loop-manip.c (find_loop_location): Also ignore
11945         stmt locations where LOCATION_LOCUS of the stmt location is
11946         UNKNOWN_LOCATION or BUILTINS_LOCATION.
11948         PR target/55686
11949         * config/i386/i386.md (UNSPEC_STOS): New.
11950         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11951         *strsetqi_1): Add UNSPEC_STOS.
11953 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
11955         PR c++/56067
11956         * doc/invoke.texi: Remove left over -Wsynth example.
11958 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11960         PR tree-optimization/56051
11961         * fold-const.c (fold_binary_loc): Don't fold
11962         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11963         a narrowing conversion, or widening conversion from signed
11964         to unsigned.
11966 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
11968         PR rtl-optimization/56023
11969         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11970         dependent on debug instruction.
11972 2013-01-21  Martin Jambor  <mjambor@suse.cz>
11974         PR middle-end/56022
11975         * function.c (allocate_struct_function): Call
11976         invoke_set_current_function_hook earlier.
11978 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11980         * reload1.c (init_reload): Only initialize reload_obstack
11981         during the first call.
11983 2013-01-21  Marek Polacek  <polacek@redhat.com>
11985         * cfgloop.c (verify_loop_structure): Fix up grammar.
11987 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
11989         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11990         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11992 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11994         PR target/56058
11995         * config/arm/marvell-pj4.md: Update copyright year.
11996         Fix up use of alu to alu_reg and simple_alu_imm.
11998 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12000         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12002 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12004         PR target/55433
12005         * lra-constraints.c (curr_insn_transform): Don't reuse original
12006         insn for secondary memory move when memory mode should be different.
12008 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12010         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12011         atomic_storedi_1): New patterns.
12013 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12015         btver2 pipeline descriptions.
12016         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12017         descriptions.
12018         * config/i386/i386.md (btver2_decode): New type attributes.
12019         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12020         type attributes.
12021         * config/i386/btver2.md: New file describing btver2 pipelines.
12023 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12025         PR tree-optimization/52631
12026         * tree-ssa-sccvn (visit_use): Before looking up the original
12027         statement, try looking up the simplified expression.
12029 2013-01-19  Anthony Green  <green@moxielogic.com>
12031         * config/moxie/moxie.c (moxie_expand_prologue): Set
12032         current_function_static_stack_size.
12034 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12036         PR tree-optimization/56029
12037         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12038         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12040 2013-01-18  Sharad Singhai  <singhai@google.com>
12042         PR tree-optimization/55995
12043         * dumpfile.c (dump_loc): Print location only if available.
12044         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12046 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12048         PR target/55433
12049         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12050         secondary memory move.
12051         (inherit_reload_reg): Use rclass instead of cl for
12052         check_secondary_memory_needed_p.
12054 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12056         PR middle-end/56015
12057         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12058         the case where writing real complex part of target modifies op1.
12060 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12062         * config/aarch64/aarch64-simd.md
12063         (aarch64_vcond_internal<mode>): Handle unordered cases.
12064         * config/aarch64/iterators.md (v_cmp_result): New.
12066 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12067             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12069         * config/arm/marvell-pj4.md: New file.
12070         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12071         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12072         (generic_vfp): Likewise.
12073         * config/arm/arm-cores.def: Add marvell-pj4.
12074         * config/arm/arm-tune.md: Regenerate.
12075         * config/arm/arm-tables.opt: Regenerate.
12076         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12077         * doc/invoke.texi: Document marvell-pj4.
12079 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12081         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12083 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12085         PR debug/54114
12086         PR debug/54402
12087         PR debug/49888
12088         * var-tracking.c (negative_power_of_two_p): New.
12089         (global_get_addr_cache, local_get_addr_cache): New.
12090         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12091         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12092         heading comment.
12093         (vt_stack_offset_p): Remove.
12094         (vt_canon_true_dep): Always canonicalize loc's address.
12095         (clobber_overlapping_mems): Make sure we have a MEM.
12096         (local_get_addr_clear_given_value): New.
12097         (val_reset): Clear local cached entries.
12098         (compute_bb_dataflow): Create and release the local cache.
12099         Disable duplicate MEMs clobbering.
12100         (emit_notes_in_bb): Clobber MEMs likewise.
12101         (vt_emit_notes): Create and release the local cache.
12102         (vt_initialize, vt_finalize): Create and release the global
12103         cache, respectively.
12104         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12106 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12108         PR libmudflap/53359
12109         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12110         not found in the symtab.
12112 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12114         PR debug/56006
12115         PR rtl-optimization/55547
12116         PR rtl-optimization/53827
12117         PR debug/53671
12118         PR debug/49888
12119         * alias.c (offset_overlap_p): New, factored out of...
12120         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12121         the conservative special case for symbolic constants.  Don't
12122         adjust zero sizes on alignment.
12124 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12126         PR rtl-optimization/52573
12127         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12128         REG_UNUSED for the same register.
12130 2013-01-17  Richard Biener  <rguenther@suse.de>
12131             Marek Polacek  <polacek@redhat.com>
12133         PR rtl-optimization/55833
12134         * loop-unswitch.c (unswitch_loops): Move loop verification...
12135         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12136         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12137         Set it to true when we're removing a loop from hierarchy tree in
12138         an irreducible region.
12139         (fix_bb_placements): Adjust caller.
12140         (fix_loop_placements): Likewise.
12142 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12144         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12145         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12146         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12147         Remove ID.  Adjust comments.
12148         * config/avr/avr-c.c (avr_builtin_name): Remove.
12149         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12150         * config/avr/avr.c (avr_tolower): New static function.
12151         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12152         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12153         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12154         default expansion.
12156 2013-01-17  Jan Hubicka  <jh@suse.cz>
12158         PR tree-optimization/55273
12159         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12161 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12163         PR target/55981
12164         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12165         store through atomic_store<mode>_1.
12166         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12168 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12170         PR tree-optimizations/55264
12171         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12172         for virtual methods.
12173         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12174         virtual methods before inlining is over.
12175         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12176         virtual functions.
12177         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12178         non-virtual.
12180 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12182         PR rtl-optimization/56005
12183         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12184         pending reads for prefetch.
12186 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12188         * config/aarch64/aarch64.md
12189         (*cstoresi_neg_uxtw): New pattern.
12190         (*cmovsi_insn_uxtw): New pattern.
12191         (*<optab>si3_uxtw): New pattern.
12192         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12193         (*<optab>si3_insn_uxtw): New pattern.
12194         (*bswapsi2_uxtw): New pattern.
12196 2013-01-16  Richard Biener  <rguenther@suse.de>
12198         * tree-inline.c (tree_function_versioning): Remove set but
12199         never used variable.
12201 2013-01-16  Richard Biener  <rguenther@suse.de>
12203         PR tree-optimization/55964
12204         * tree-flow.h (rename_variables_in_loop): Remove.
12205         (rename_variables_in_bb): Likewise.
12206         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12207         (copy_loop_before): Adjust and delete update-ssa status.
12208         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12209         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12210         (rename_variables_in_loop): Remove.
12211         (slpeel_update_phis_for_duplicate_loop): Likewise.
12212         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12213         use available cfg machinery instead of duplicating it.
12214         Update PHI nodes and perform poor-mans SSA update here.
12215         (slpeel_tree_peel_loop_to_edge): Adjust.
12217 2013-01-16  Richard Biener  <rguenther@suse.de>
12219         PR tree-optimization/54767
12220         PR tree-optimization/53465
12221         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12222         (vrp_visit_phi_node): For PHI arguments coming via backedges
12223         drop all symbolical range information.
12224         (execute_vrp): Compute backedges.
12226 2013-01-16  Richard Biener  <rguenther@suse.de>
12228         * doc/install.texi: Update CLooG and ISL requirements to
12229         0.18.0 and 0.11.1.
12231 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12233         PR target/55301
12234         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12235         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12236         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12238 2013-01-16  DJ Delorie  <dj@redhat.com>
12240         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12241         (UNSPECV_SP_SWITCH_E): New.
12242         (sp_switch_1): Change to an unspec.
12243         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12244         replace $r15.
12246 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12248         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12249         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12250         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12251         (expand_mem_thread_fence): Ditto.
12252         (expand_mem_signal_fence): Ditto.
12253         (expand_atomic_load): Ditto.
12254         (expand_atomic_store): Ditto.
12256 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12258         PR rtl-optimization/55547
12259         PR rtl-optimization/53827
12260         PR debug/53671
12261         PR debug/49888
12262         * alias.c (memrefs_conflict_p): Set sizes to negative after
12263         AND adjustments.
12265 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12267         PR target/55940
12268         * function.c (thread_prologue_and_epilogue_insns): Always
12269         add crtl->drap_reg to set_up_by_prologue.set, even if
12270         stack_realign_drap is false.
12272 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12274         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12275         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12276         *call): Fix indention.
12278 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12280         PR target/55876
12281         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12282         Update comment.
12284 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12286         PR rtl-optimization/55153
12287         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12289 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12291         PR tree-optimization/55920
12292         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12293         accesses as grp_to_be_debug_replaced.
12295 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12297         PR tree-optimization/55920
12298         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12299         there is non-useless type conversion needed from debug rhs to lhs,
12300         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12302 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12303             Mikael Pettersson  <mikpe@it.uu.se>
12305         PR target/43961
12306         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12307         Thumb.
12308         (ASM_OUTPUT_CASE_LABEL): Remove.
12309         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12310         * final.c (shorten_branches): Update alignment of labels before
12311         jump tables if CASE_VECTOR_SHORTEN_MODE.
12313 2013-01-15  Richard Biener  <rguenther@suse.de>
12315         PR bootstrap/55961
12316         * system.h: Do not include gmp.h for building host tools.
12318 2013-01-15  Richard Biener  <rguenther@suse.de>
12320         PR middle-end/55882
12321         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12322         account for bitpos when computing alignment.
12324 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12326         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12327         (ix86_target_macros_internal): Likewise.
12329         * config/i386/i386.c (m_CORE2I7): Removed.
12330         (m_CORE_HASWELL): New macro.
12331         (m_CORE_ALL): Likewise.
12332         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12333         (initial_ix86_arch_features): Likewise.
12334         (processor_target_table): Initializations for Core avx2.
12335         (cpu_names): New names "core-avx2".
12336         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12337         PROCESSOR_CORE_HASWELL.
12338         (ix86_issue_rate): New case.
12339         (ia32_multipass_dfa_lookahead): Likewise.
12340         (ix86_sched_init_global): Likewise.
12342         * config/i386/i386.h (TARGET_HASWELL): New macro.
12343         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12344         (processor_type): New PROCESSOR_HASWELL.
12346 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12348         PR tree-optimization/55955
12349         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12350         *SHIFT_EXPR and *ROTATE_EXPR codes.
12352         PR tree-optimization/48766
12353         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12354         -ftrapv disable -fwrapv.
12356 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12358         PR target/55974
12359         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12360         etc. to 1 and not to __flash.
12361         Use LL suffix for __INT24_MAX__ with -mint8.
12362         Use ULL suffix for __UINT24_MAX__ with -mint8.
12364 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12366         * config/avr/avr-arch.h
12367         (struct base_arch_s): Use typedef avr_arch_t instead.
12368         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12369         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12370         * config/avr/avr.c: Same.
12371         * config/avr/avr-devices.c: Same.
12372         * config/avr/driver-avr.c: Same.
12373         * config/avr/gen-avr-mmcu-texi.c: Same.
12374         * config/avr/avr-mcus.def: Adjust comment.
12376 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12378         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12379         * config/aarch64/iterators.md (VALLDI): New.
12381 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12382             Andi Kleen  <ak@linux.intel.com>
12384         PR target/55948
12385         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12386         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12387         memmodel flag.
12389 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12391         * config/avr/avr-stdint.h: Remove trailing blanks.
12392         * config/avr/avr-log.h: Same.
12393         * config/avr/avr-arch.h: Same.
12394         * config/avr/avr-devices.c: Same.
12395         * config/avr/avr-dimode.md: Same.
12396         * config/avr/predicates.md: Same.
12397         * config/avr/avr-c.c: Same.  And fix typo.
12399         * config/avr/avr-protos.h: Same.  And:
12400         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12401         (init_cumulative_args): Rename to avr_init_cumulative_args.
12402         (expand_prologue): Rename to avr_expand_prologue.
12403         (expand_epilogue): Rename to avr_expand_epilogue.
12404         (adjust_insn_length): Rename to avr_adjust_insn_length.
12405         (notice_update_cc): Rename to avr_notice_update_cc.
12406         (final_prescan_insn): Rename to avr_final_prescan_insn.
12407         * config/avr/avr.c: Same.
12408         * config/avr/avr.h: Same.
12409         * config/avr/avr.md: Remove trailing blanks.
12410         (prologue): Use avr_expand_prologue.
12411         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12413 2013-01-14  Richard Biener  <rguenther@suse.de>
12415         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12416         verify_location, collect_subblocks): New functions.
12417         (verify_gimple_in_cfg): Verify that locations only reference
12418         BLOCKs in the functions BLOCK tree.
12420 2013-01-14  Richard Biener  <rguenther@suse.de>
12422         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12423         PHI argument.
12424         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12425         unshare reference.
12426         (insert_out_of_ssa_copy_on_edge): Likewise.
12427         (rewrite_close_phi_out_of_ssa): Likewise.
12428         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12429         debug expressions.
12430         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12431         propagated constants.
12432         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12433         can not be shared.
12435 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12437         * config/avr/avr-modes.def: Add GPL copyright notice.
12439 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12441         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12442         MEMMODEL_MASK to determine memory model.
12443         (atomic_store<mode>): Ditto from operands[2].
12444         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12446 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12448         PR fortran/55935
12449         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12450         (fold_gimple_assign): Don't call unshare_expr here.
12451         (fold_ctor_reference): Call unshare_expr.
12453 2013-01-13  Terry Guo  <terry.guo@arm.com>
12455         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12456         * doc/fragments.texi: Document MULTILIB_REUSE.
12457         * gcc.c (multilib_reuse): New internal spec.
12458         (set_multilib_dir): Also search multilib from multilib_reuse.
12459         * genmultilib (tmpmultilib3): Refactor code.
12460         (tmpmultilib4): Ditto.
12461         (multilib_reuse): New multilib argument.
12463 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12465         * Makefile.in: Update copyright.
12467 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12469         PR middle-end/55890
12470         * calls.c (expand_call): Check if arg_nr is valid.
12472 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12474         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12475         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12476         documentation.  Add missing '__' in front of
12477         __builtin_ia32_packssdw256.
12479 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12481         PR target/55719
12482         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12483         NO_REGS for larl operands.
12484         (s390_reload_larl_operand): Use s390_load_address instead of
12485         emit_move_insn.
12487 2013-01-11  Richard Biener  <rguenther@suse.de>
12489         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12490         (verify_node_sharing): ... here.
12491         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12493 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12495         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12496         Substitute TREECHECKING.
12497         * configure: Regenerate.
12498         * Makefile.in (TREECHECKING): New.
12500 2013-01-11  Richard Guenther  <rguenther@suse.de>
12502         PR tree-optimization/44061
12503         * tree-vrp.c (extract_range_basic): Compute zero as
12504         value-range for __builtin_constant_p of function parameters.
12506 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12508         Update copyright years.
12510 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12512         PR rtl-optimization/55672
12513         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12514         const to be eliminable.
12516 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12518         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12519         * configure: Regenerate.
12521 2013-01-10  Richard Biener  <rguenther@suse.de>
12523         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12525 2013-01-10  Richard Biener  <rguenther@suse.de>
12527         PR bootstrap/55792
12528         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12529         locations for virtual PHI arguments.
12530         (rewrite_update_phi_arguments): Likewise.
12532 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12534         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12535         on to assembler.
12537 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12539         PR tree-optimization/55921
12540         * tree-complex.c (expand_complex_asm): New function.
12541         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12543 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12545         PR target/55718
12546         * config/s390/s390.c (s390_symref_operand_p)
12547         (s390_loadrelative_operand_p): Merge the two functions.
12548         (s390_check_qrst_address, print_operand_address): Add parameters
12549         to s390_loadrelative_operand_p invokation.
12550         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12551         (s390_reload_larl_operand, s390_secondary_reload): Use
12552         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12553         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12555 2013-01-09  Mike Stump  <mikestump@comcast.net>
12557         * dse.c (record_store): Remove unnecessary assert.
12559 2013-01-09  Jan Hubicka  <jh@suse.cz>
12561         PR tree-optimization/55569
12562         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12563         * cfgloop.h (scale_loop_profile): Likewise.
12565 2013-01-09  Jan Hubicka  <jh@suse.cz>
12567         PR lto/45375
12568         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12569         functions.
12570         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12572 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12574         PR middle-end/55114
12575         * expr.h (maybe_emit_group_store): Declare.
12576         * expr.c (maybe_emit_group_store): New function.
12577         * builtins.c (expand_builtin_int_roundingfn): Call it.
12578         (expand_builtin_int_roundingfn_2): Likewise.
12580 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12582         PR rtl-optimization/55829
12583         * lra-constraints.c (match_reload): Add code for absent output.
12584         (curr_insn_transform): Add code for reloads of matched inputs
12585         without output.
12587 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12589         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12590         attribute of movddup insn to DF.
12591         (*vec_interleave_lowv2df): Ditto.
12592         (vec_dupv2df): Ditto.
12594 2013-01-09  Jan Hubicka  <jh@suse.cz>
12596         PR tree-optimiation/55875
12597         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12598         EVERY_ITERATION parameter.
12599         (number_of_iterations_exit): Check if exit is executed every iteration.
12600         (idx_infer_loop_bounds): Similarly here.
12601         (n_of_executions_at_most): Simplify
12602         to only test for cases where statement is dominated by the
12603         particular bound; handle correctly the "postdominance" test.
12604         (scev_probably_wraps_p): Use max loop iterations info
12605         as a global bound first.
12607 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12608             Nick Clifton  <nickc@redhat.com>
12610         * config/v850/v850.md (cbranchsf4): New pattern.
12611         (cstoresf4): New pattern.
12612         (cbranchdf4): New pattern.
12613         (cstoredf4): New pattern.
12614         (movsicc): Disallow floating point comparisons.
12615         (cmpsf_le_insn): Fix order of operators.
12616         (cmpsf_lt_insn): Likewise.
12617         (cmpsf_eq_insn): Likewise.
12618         (cmpdf_le_insn): Likewise.
12619         (cmpdf_lt_insn): Likewise.
12620         (cmpdf_eq_insn): Likewise.
12621         (cmpsf_ge_insn): Use LE comparison.
12622         (cmpdf_ge_insn): Likewise.
12623         (cmpsf_gt_insn): Use LT comparison.
12624         (cmpdf_gt_insn): Likewise.
12625         (cmpsf_ne_insn): Delete pattern.
12626         (cmpdf_ne_insn): Delete pattern.
12627         * config/v850/v850.c (v850_gen_float_compare): Use
12628         gen_cmpdf_eq_insn for NE comparison.
12629         (v850_float_z_comparison_operator)
12630         (v850_float_nz_comparison_operator): Move from here ...
12631         * config/v850/predicates.md: ... to here.  Move GT and GE
12632         comparisons into v850_float_z_comparison_operator.
12633         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12634         Delete prototype.
12635         (v850_float_nz_comparison_operator): Likewise.
12637 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12639         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12640         with calls to gen_insvsi/gen_insvdi.
12642 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12644         * config/i386/i386.c (initial_ix86_tune_features): Set up
12645         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12647 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12648             Jakub Jelinek  <jakub@redhat.com>
12650         PR tree-optimization/48189
12651         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12652         If nitercst is 0, don't predict the exit edge.
12654 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12656         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12657         in asm_fprintf with reg_names.
12658         (aarch64_print_operand_address): Likewise.
12659         (aarch64_return_addr): Likewise.
12660         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12662 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12664         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12665         (INT_U6_BITS): Likewise.
12666         * config/pa/predicates.md (uint6_operand): New predicate.
12667         (shift5_operand, shift6_operand): Likewise.
12668         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12669         arith32_operand.
12670         (lshrdi3): Use shift6_operand.
12671         (shrpsi4, shrpdi4): New insn patterns.
12672         (extzv): Delete expander.
12673         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12674         predicates in unamed zero extract patterns.  Tighten common constraint.
12675         (extv): Delete expander.
12676         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12677         predicates in unamed sign extract patterns.  Tighten common constraint.
12678         (insv): Delete expander.
12679         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12680         predicates in unamed insert patterns.  Tighten common constraint.
12681         Change uint32_operand predicate to uint6_operand predicate in unamed
12682         DImode pattern to insert constant values of type 1...1xxxx.
12684 2013-01-04  Jan Hubicka  <jh@suse.cz>
12686         PR tree-optimization/55823
12687         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12688         issue.
12690 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12691             Uros Bizjak  <ubizjak@gmail.com>
12693         PR rtl-optimization/55845
12694         * df-problems.c (can_move_insns_across): Stop scanning at
12695         volatile_insn_p source instruction or give up if
12696         across_from .. across_to range contains any volatile_insn_p
12697         instructions.
12699 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12701         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12702         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12703         Declare.
12704         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12705         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12707 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12709         PR fortran/55341
12710         * asan.c (asan_clear_shadow): New function.
12711         (asan_emit_stack_protection): Use it.
12713 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12715         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12716         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12717         with tab instead of space.
12719 2013-01-08  Nick Clifton  <nickc@redhat.com>
12721         * config/rl78/rl78.c (rl78_expand_prologue): Always select
12722         register bank 0 at the start of an interrupt handler.
12723         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12724         MDBH registers.
12726 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12728         * config/aarch64/aarch64-simd.md
12729         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12730         (aarch64_simd_bsl): Likewise.
12731         (aarch64_vcond_internal<mode>): Likewise.
12732         (vcond<mode><mode>): Likewise.
12733         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12734         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12736 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12738         * config/aarch64/aarch64-builtins.c
12739         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12741 2013-01-08  Martin Jambor  <mjambor@suse.cz>
12743         PR debug/55579
12744         * tree-sra.c (analyze_access_subtree): Return true also after
12745         potentially creating a debug-only replacement.
12747 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12749         PR middle-end/55890
12750         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12752         PR tree-optimization/54120
12753         * tree-vrp.c (range_fits_type_p): Don't allow
12754         src_precision < precision from signed vr to unsigned_p
12755         if vr->min or vr->max is negative.
12756         (simplify_float_conversion_using_ranges): Test can_float_p
12757         against CODE_FOR_nothing.
12759 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12760             Richard Biener  <rguenther@suse.de>
12762         PR middle-end/55851
12763         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12764         types instead of just INTEGER_TYPE types.
12766 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
12768         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12769         TF_SIZE): Define.
12771 2013-01-07  Steve Ellcey  <sellcey@mips.com>
12773         PR target/42661
12774         * config/mips/mips.opt: Change mad to mmad to match documentation.
12776 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12778         PR target/55897
12779         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12780         .progmemx.data now.
12782 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12784         PR target/55897
12785         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12786         (avr_addrspace_t): Add .section_name field.
12787         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12788         array size.
12789         (avr_addrspace): Same.  Initialize .section_name.  Remove last
12790         NULL entry.  Put __memx into .progmemx.data.
12791         (progmem_section_prefix): Remove.
12792         (avr_asm_init_sections): No need to initialize progmem_section.
12793         (avr_asm_named_section): Use avr_addrspace[].section_name to get
12794         section name prefix.
12795         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
12796         retrieve the progmem section.
12797         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12798         boundary to run over avr_addrspace[].
12799         (avr_register_target_pragmas): Ditto.
12801 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
12803         * varasm.c (output_constant_def_contents): For asan_protect_global
12804         protected strings, adjust DECL_ALIGN if needed, before testing for
12805         anchored symbols.
12806         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12807         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
12808         normal decls.
12809         (output_object_block): For asan protected decls, emit asan padding
12810         after their contents.
12811         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12812         (asan_finish_file): Test it here instead.
12814 2013-01-07  Nick Clifton  <nickc@redhat.com>
12815             Matthias Klose  <doko@debian.org>
12816             Doug Kwan  <dougkwan@google.com>
12817             H.J. Lu  <hongjiu.lu@intel.com>
12819         PR driver/55470
12820         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12822         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12824         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12826         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12828         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12830 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12832         PR target/54461
12833         * doc/install.texi (Cross-Compiler-Specific Options): Document
12834         --with-avrlibc.
12836 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
12838         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12839         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12840         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12841         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12842         vqmovun_high_s64): Fix source operand number and update copyright.
12844 2013-01-07  Richard Biener  <rguenther@suse.de>
12846         PR middle-end/55890
12847         * gimple.h (gimple_call_builtin_p): New overload.
12848         * gimple.c (validate_call): New function.
12849         (gimple_call_builtin_p): Likewise.
12850         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12851         Use gimple_call_builtin_p.
12852         (find_func_clobbers): Likewise.
12853         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12854         (strlen_optimize_stmt): Likewise.
12856 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12858         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12859         (vld1q_dup_*): Likewise.
12860         (vld1_*): Likewise.
12861         (vld1q_*): Likewise.
12862         (vld1_lane_*): Likewise.
12863         (vld1q_lane_*): Likewise.
12865 2013-01-07  Richard Biener  <rguenther@suse.de>
12867         * lto-streamer.h (LTO_minor_version): Bump to 2.
12869 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12871         * config/aarch64/aarch64-protos.h
12872         (aarch64_const_double_zero_rtx_p): Rename to...
12873         (aarch64_float_const_zero_rtx_p): ...this.
12874         (aarch64_float_const_representable_p): New.
12875         (aarch64_output_simd_mov_immediate): Likewise.
12876         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12877         move immediate case.
12878         * config/aarch64/aarch64.c
12879         (aarch64_const_double_zero_rtx_p): Rename to...
12880         (aarch64_float_const_zero_rtx_p): ...this.
12881         (aarch64_print_operand): Allow printing of new constants.
12882         (aarch64_valid_floating_const): New.
12883         (aarch64_legitimate_constant_p): Check for valid floating-point
12884         constants.
12885         (aarch64_simd_valid_immediate): Likewise.
12886         (aarch64_vect_float_const_representable_p): New.
12887         (aarch64_float_const_representable_p): Likewise.
12888         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12889         (aarch64_output_simd_mov_immediate): New.
12890         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12891         (*movdf_aarch64): Likewise.
12892         * config/aarch64/constraints.md (Ufc): New.
12893         (Y): call aarch64_float_const_zero_rtx.
12894         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12896 2013-01-07  Richard Biener  <rguenther@suse.de>
12898         PR tree-optimization/55888
12899         PR tree-optimization/55862
12900         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12901         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12902         not if it is contained therein.
12904 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12906         * config/avr/t-avr: Typo.
12908 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12910         PR55243
12911         * config/avr/t-avr: Don't automatically rebuild
12912         $(srcdir)/config/avr/t-multilib
12913         $(srcdir)/config/avr/avr-tables.opt
12914         $(srcdir)/doc/avr-mmcu.texi
12915         (avr-mcus): New phony target to build them on request.
12916         (s-avr-mlib, s-avr-mmcu-texi): Remove.
12917         * avr/avr-mcus.def: Adjust comments.
12919 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
12921         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12923 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12925         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12927 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12929         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12931 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
12933         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12934         to generate profiling.
12935         * config/rs6000/aix64.h (LIB_SPEC): Same.
12937 2013-01-04  Andrew Pinski  <apinski@cavium.com>
12939         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12940         New function.
12941         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12943 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
12945         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12946         unconditionally.
12947         (ix86_expand_move): Ditto.
12948         (ix86_zero_extend_to_Pmode): Ditto.
12949         (ix86_expand_call): Ditto.
12950         (ix86_expand_special_args_builtin): Ditto.
12951         (ix86_expand_builtin): Ditto.
12953 2013-01-04  Richard Biener  <rguenther@suse.de>
12955         PR tree-optimization/55862
12956         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12957         translating them through PHI nodes.
12959 2013-01-04  Martin Jambor  <mjambor@suse.cz>
12961         PR tree-optimization/55755
12962         * tree-sra.c (sra_modify_assign): Do not check that an access has no
12963         children when trying to avoid producing a VIEW_CONVERT_EXPR.
12965 2013-01-04  Marek Polacek  <polacek@redhat.com>
12967         PR middle-end/55859
12968         * opts.c (default_options_optimization): Clarify error message.
12970 2013-01-04  Richard Biener  <rguenther@suse.de>
12972         PR middle-end/55863
12973         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12974         reassociation.
12976 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12978         PR target/53789
12979         * config/pa/pa.md (movsi): Revert previous change.
12980         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12981         references.
12983 2013-01-03  Richard Henderson  <rth@redhat.com>
12985         * config/i386/i386.c (ix86_expand_move): Always assign to op1
12986         after eliminating TLS symbols.
12988 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
12990         PR bootstrap/50167
12991         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12992         * graphite-poly.c (debug_gmp_value): Likewise.
12994 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
12996         PR target/55712
12997         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12998         selected code model, define __code_mode_small__, __code_model_medium__,
12999         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13000         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13001         xchg temporary register with %k.  Declare temporary register as
13002         early clobbered.
13003         [__x86_64__]: For medium and large code models, preserve %rbx register.
13005 2013-01-03  Richard Biener  <rguenther@suse.de>
13007         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13008         (dump_subscript): Adjust.
13009         (finalize_ddr_dependent): Do not dump redundant info.
13010         (analyze_siv_subscript): Adjust.
13011         (subscript_dependence_tester): Likewise.
13012         (compute_affine_dependence): Likewise.
13014 2013-01-03  Richard Biener  <rguenther@suse.de>
13016         Revert
13017         2013-01-03  Richard Biener  <rguenther@suse.de>
13019         PR tree-optimization/55857
13020         * tree-vect-stmts.c (vectorizable_load): Do not setup
13021         re-alignment for invariant loads.
13023         2013-01-02  Richard Biener  <rguenther@suse.de>
13025         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13026         invariant load do not generate a vector load from the scalar location.
13028 2013-01-03  Richard Biener  <rguenther@suse.de>
13030         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13031         for not vectorizing.
13032         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13033         not build INDIRECT_REFs, call get_name once only.
13034         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13035         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13037 2013-01-03  Richard Biener  <rguenther@suse.de>
13039         PR tree-optimization/55857
13040         * tree-vect-stmts.c (vectorizable_load): Do not setup
13041         re-alignment for invariant loads.
13043 2013-01-03  Richard Biener  <rguenther@suse.de>
13045         PR lto/55848
13046         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13047         prefer a built-in decl.
13049 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13051         * gcc.c (process_command): Update copyright notice dates.
13052         * gcov.c (print_version): Likewise.
13053         * gcov-dump.c (print_version): Likewise.
13055         PR rtl-optimization/55838
13056         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13057         iv0.step, iv1.step and step.
13059 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13060             Marc Glisse  <marc.glisse@inria.fr>
13062         PR tree-optimization/55832
13063         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13064         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13065         integer_{one,zero}_node.
13067 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13069         PR debug/54402
13070         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13071         * var-tracking.c (reverse_op): Don't add reverse ops to
13072         VALUEs that have already
13073         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13075 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13077         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13079 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13081         * dumpfile.c (dump_loc): Print filename with location.
13082         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13083         new location_t parameter to emit complete unroll message with
13084         new dump framework.
13085         (canonicalize_loop_induction_variables): Compute loops location
13086         and pass to try_unroll_loop_completely.
13087         * loop-unroll.c (report_unroll_peel): New function.
13088         (peel_loops_completely): Use new dump format with location
13089         for main dumpfile message, and invoke report_unroll_peel on success.
13090         (decide_unrolling_and_peeling): Ditto.
13091         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13092         by report_unroll_peel.
13093         (decide_peel_completely): Ditto.
13094         (decide_unroll_constant_iterations): Ditto.
13095         (decide_unroll_runtime_iterations): Ditto.
13096         (decide_peel_simple): Ditto.
13097         (decide_unroll_stupid): Ditto.
13098         * cfgloop.c (get_loop_location): New function.
13099         * cfgloop.h (get_loop_location): Declare.
13101 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13103         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13104         NULL.
13106 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13108         PR middle-end/55198
13109         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13110         BLKmode objects when EXPAND_MEMORY is specified.
13112 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13114         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13115         in loop predicate.
13116         (fold_builtin_cpu): Do not share cpu model decls across statements.
13118 2013-01-02  Jason Merrill  <jason@redhat.com>
13120         PR c++/55804
13121         * tree.c (build_array_type_1): Revert earlier change.
13123 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13125         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13126         "cortex-a57".
13127         * config/aarch64/aarch64-tune.md: Re-generate.
13129 2013-01-02  Richard Biener  <rguenther@suse.de>
13131         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13132         invariant load do not generate a vector load from the scalar location.
13134 2013-01-02  Richard Biener  <rguenther@suse.de>
13136         PR bootstrap/55784
13137         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13138         * configure: Regenerate.
13140 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13142         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13143         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13144         (expand_builtin_int_roundingfn_2): Keep the original target around
13145         for the fallback case.
13147 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13149         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13150         to be clear for sign changes.
13152 2013-01-01  Jan Hubicka  <jh@suse.cz>
13154         * ipa-inline-analysis.c: Fix formatting.
13156 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13158         PR tree-optimization/55831
13159         * tree-vect-loop.c (get_initial_def_for_induction): Use
13160         gsi_after_labels instead of gsi_start_bb.
13162 Copyright (C) 2013 Free Software Foundation, Inc.
13164 Copying and distribution of this file, with or without modification,
13165 are permitted in any medium without royalty provided the copyright
13166 notice and this notice are preserved.