re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin)
[official-gcc.git] / gcc / ChangeLog
blobc754159ed1326e84df1991b7a00999598fce71cf
1 2013-06-19  Matthias Klose  <doko@ubuntu.com>
3         PR driver/57651
4         * file-find.h (find_a_file): Add a mode parameter.
5         * file-find.c (find_a_file): Likewise.
6         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
7         with X_OK for the executables.
8         * collect2.c (main): Call find_a_file with X_OK.
10 2013-06-19  Steve Ellcey  <sellcey@mips.com>
12         PR target/56942
13         * config/mips/mips.md (casesi_internal_mips16_<mode>):
14         Use NEXT_INSN instead of next_real_insn.
16 2013-06-19  Jan Hubicka  <jh@suse.cz>
18         * cgraph.h (const_value_known_p): Replace by ...
19         (ctor_for_folding): .. this one.
20         * cgraphunit.c (process_function_and_variable_attributes): Use it.
21         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
22         * expr.c (expand_expr_real_1): Likewise.
23         (string_constant): Likewise.
24         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25         * ipa.c (process_references): Likewise.
26         (symtab_remove_unreachable_nodes): Likewise.
27         * ipa-inline-analysis.c (param_change_prob): Likewise.
28         * gimple-fold.c (canonicalize_constructor_val): Likewise.
29         (get_base_constructor): Likwise.
30         * varpool.c (varpool_remove_node): Likewise.
31         (varpool_remove_initializer): LIkewise.
32         (dump_varpool_node): LIkwise.
33         (const_value_known_p): Rewrite to ...
34         (ctor_for_folding): ... this one.
36 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
38         PR driver/57651
39         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
40         PERSONALITY in $PATH derived prefixes.
42 2013-06-19  Jeff Law  <law@redhat.com>
44         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
45         in comment.
47         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
48         (simplify_bitwise_binary): Use it to simpify certain binary ops on
49         booleans.
51 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
53         * config/arm/vfp.md: Move VFP instruction classification documentation
54         to ...
55         * config/arm/arm.md: ... here.  Update instruction classification
56         documentation.
58 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
60         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
61         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
62         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
64 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
66         PR target/57609
67         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
68         with NEXT_INSN.  Use tablejump_p to check for jump table data
69         insns.
71 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
73         PR c++/56544
74         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
75         that now in C++ the value is correct per the C++ standards.
77 2013-06-19  Richard Biener  <rguenther@suse.de>
79         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
80         for global context.
82 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
84         Revert:
85         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87         PR target/57609
88         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
89         with next_active_insn.
91 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
93         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
94         functions are inlined during failures to flag an error.
95         * tree-inline.c (expand_call_inline): Allow the error to be flagged
96         in early inline pass.
98 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
100         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
101         in comments.
103 2013-06-18  Julian Brown  <julian@codesourcery.com>
105         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
106         Permit virtual register pre-reload if !strict.
107         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
108         change.
109         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
110         prototype.
111         * config/arm/neon.md (movmisalign<mode>): Use
112         neon_perm_struct_or_reg_operand instead of
113         neon_struct_or_register_operand.
114         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
115         neon_permissive_struct_operand instead of neon_struct_operand.
116         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
117         neon_vector_mem_operand.
118         * config/arm/predicates.md (neon_struct_operand): Adjust call to
119         neon_vector_mem_operand.
120         (neon_permissive_struct_operand): New.
121         (neon_struct_or_register_operand): Rename to...
122         (neon_perm_struct_or_reg_operand): This. Adjust call to
123         neon_vector_mem_operand.
125 2013-06-18  Richard Biener  <rguenther@suse.de>
127         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
128         * lto-streamer.h: Include pointer-set.h.
129         (struct lto_decl_slot): Remove.
130         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
131         Remove next_index entry.
132         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
133         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
134         (lto_init_tree_ref_encoder): Adjust.
135         (lto_destroy_tree_ref_encoder): Likewise.
136         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
137         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
138         (lto_output_decl_index): Adjust.
139         (lto_new_out_decl_state): Likewise.
140         (lto_record_function_out_decl_state): Likewise.
141         * lto-streamer-out.c (copy_function): Likewise.
143 2013-06-18  Richard Biener  <rguenther@suse.de>
145         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
146         * cgraphunit.c: Include cfgloop.h.
147         (init_lowered_empty_function): Initialize the loop tree.
148         (assemble_thunk): Insert new BBs into loops.
150 2013-06-18  Richard Biener  <rguenther@suse.de>
152         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
153         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
154         the map from cache entry to cache index optional.
155         (streamer_tree_cache_replace_tree): Adjust accordingly.
156         (streamer_tree_cache_append): Likewise.
157         (streamer_tree_cache_delete): Likewise.
158         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
159         streamer cache map from cache entry to cache index.
160         * lto-streamer-out.c (create_output_block): Adjust.
162 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
164         * config/arm/arm.md (attribute "insn"): Move multiplication and
165         division attributes to...
166         (attribute "type"): ... here.  Remove mult.
167         (attribute "mul32"): New attribute.
168         (attribute "mul64"): Add umaal.
169         (*arm_mulsi3): Update attributes.
170         (*arm_mulsi3_v6): Likewise.
171         (*thumb_mulsi3): Likewise.
172         (*thumb_mulsi3_v6): Likewise.
173         (*mulsi3_compare0): Likewise.
174         (*mulsi3_compare0_v6): Likewise.
175         (*mulsi_compare0_scratch): Likewise.
176         (*mulsi_compare0_scratch_v6): Likewise.
177         (*mulsi3addsi): Likewise.
178         (*mulsi3addsi_v6): Likewise.
179         (*mulsi3addsi_compare0): Likewise.
180         (*mulsi3addsi_compare0_v6): Likewise.
181         (*mulsi3addsi_compare0_scratch): Likewise.
182         (*mulsi3addsi_compare0_scratch_v6): Likewise.
183         (*mulsi3subsi): Likewise.
184         (*mulsidi3adddi): Likewise.
185         (*mulsi3addsi_v6): Likewise.
186         (*mulsidi3adddi_v6): Likewise.
187         (*mulsidi3_nov6): Likewise.
188         (*mulsidi3_v6): Likewise.
189         (*umulsidi3_nov6): Likewise.
190         (*umulsidi3_v6): Likewise.
191         (*umulsidi3adddi): Likewise.
192         (*umulsidi3adddi_v6): Likewise.
193         (*smulsi3_highpart_nov6): Likewise.
194         (*smulsi3_highpart_v6): Likewise.
195         (*umulsi3_highpart_nov6): Likewise.
196         (*umulsi3_highpart_v6): Likewise.
197         (mulhisi3): Likewise.
198         (*mulhisi3tb): Likewise.
199         (*mulhisi3bt): Likewise.
200         (*mulhisi3tt): Likewise.
201         (maddhisi4): Likewise.
202         (*maddhisi4tb): Likewise.
203         (*maddhisi4tt): Likewise.
204         (maddhidi4): Likewise.
205         (*maddhidi4tb): Likewise.
206         (*maddhidi4tt): Likewise.
207         (divsi3): Likewise.
208         (udivsi3): Likewise.
209         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
210         (thumb2_mulsi_short_compare0): Likewise.
211         (thumb2_mulsi_short_compare0_scratch): Likewise.
212         * config/arm/arm1020e.md (1020mult1): Update attribute change.
213         (1020mult2): Likewise.
214         (1020mult3): Likewise.
215         (1020mult4): Likewise.
216         (1020mult5): Likewise.
217         (1020mult6): Likewise.
218         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
219         change.
220         (cortex_a15_mult64): Likewise.
221         (cortex_a15_sdiv): Likewise.
222         (cortex_a15_udiv): Likewise.
223         * config/arm/arm1026ejs.md (mult1): Update attribute change.
224         (mult2): Likewise.
225         (mult3): Likewise.
226         (mult4): Likewise.
227         (mult5): Likewise.
228         (mult6): Likewise.
229         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
230         (pj4_ir_div): Likewise.
231         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
232         (11_mult2): Likewise.
233         (11_mult3): Likewise.
234         (11_mult4): Likewise.
235         (11_mult5): Likewise.
236         (11_mult6): Likewise.
237         (11_mult7): Likewise.
238         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
239         (cortex_a8_mla): Likewise.
240         (cortex_a8_mull): Likewise.
241         (cortex_a8_smulwy): Likewise.
242         (cortex_a8_smlald): Likewise.
243         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
244         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
245         (cortex_r4_mul_3): Likewise.
246         (cortex_r4_mla_4): Likewise.
247         (cortex_r4_mla_3): Likewise.
248         (cortex_r4_smlald): Likewise.
249         (cortex_r4_mull): Likewise.
250         (cortex_r4_sdiv): Likewise.
251         (cortex_r4_udiv): Likewise.
252         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
253         (cortex_a7_idiv): Likewise.
254         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
255         (9_mult2): Likewise.
256         (9_mult3): Likewise.
257         (9_mult4): Likewise.
258         (9_mult5): Likewise.
259         (9_mult6): Likewise.
260         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
261         (cortex_a53_sdiv): Likewise.
262         (cortex_a53_udiv): Likewise.
263         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
264         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
265         (mp626_mult2): Likewise.
266         (mp626_mult3): Likewise.
267         (mp626_mult4): Likewise.
268         * config/arm/fa526.md (526_mult1): Update attribute change.
269         (526_mult2): Likewise.
270         * config/arm/arm-generic.md (mult): Update attribute change.
271         (mult_ldsched_strongarm): Likewise.
272         (mult_ldsched): Likewise.
273         (multi_cycle): Likewise.
274         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
275         * config/arm/fa606te.md (606te_mult1): Update attribute change.
276         (606te_mult2): Likewise.
277         (606te_mult3): Likewise.
278         (606te_mult4): Likewise.
279         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
280         (cortex_a9_mac16): Likewise.
281         (cortex_a9_multiply): Likewise.
282         (cortex_a9_mac): Likewise.
283         (cortex_a9_multiply_long): Likewise.
284         * config/arm/fa626te.md (626te_mult1): Update attribute change.
285         (626te_mult2): Likewise.
286         (626te_mult3): Likewise.
287         (626te_mult4): Likewise.
289 2013-06-18  Richard Biener  <rguenther@suse.de>
291         PR lto/57334
292         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
294 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
296         PR target/57609
297         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
298         with next_active_insn.
300 2013-06-18  Alan Modra  <amodra@gmail.com>
302         * config/rs6000/rs6000.h (enum data_align): New.
303         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
304         (DATA_ABI_ALIGNMENT): Define.
305         (CONSTANT_ALIGNMENT): Correct comment.
306         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
307         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
309 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
311         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
312         ATTRIBUTE_UNUSED marking.
314 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
316         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
317         alternative and update.
318         (aarch64_dup_lanedi): Delete.
319         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
320         * config/aarch64/aarch64-simd-builtins.def: Update.
322 2013-06-17  Richard Biener  <rguenther@suse.de>
324         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
325         (lto_input_scc): Declare.
326         (lto_input_tree_1): Likewise.
327         (struct lto_stats_d): Add num_tree_bodies_output and
328         num_pickle_refs_output.
329         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
330         (lto_read_tree_1): Split out from ...
331         (lto_read_tree): ... this.
332         (lto_input_scc): New function.
333         (lto_input_tree_1): Split out from ...
334         (lto_input_tree): ... this.  Handle LTO_tree_scc.
335         (lto_data_in_create): Create the streamer cache without hashes.
336         * lto-streamer-out.c (create_output_block): Create the streamer
337         cache with hashes when not doing WPA.
338         (lto_write_tree_1): Split out from ...
339         (lto_write_tree): ... this.
340         (get_symbol_initial_value): New function.
341         (lto_output_tree_1): Split out from ...
342         (lto_output_tree): ... this.  Write trees as series of SCCs
343         using a DFS walk via DFS_write_tree.
344         (struct sccs, struct scc_entry): New types.
345         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
346         (DFS_write_tree_body): New function.
347         (DFS_write_tree): Likewise.
348         (hash_tree): Likewise.
349         (scc_entry_compare): Likewise.
350         (hash_scc): Likewise.
351         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
352         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
353         TREE_CHAIN as regular reference.
354         (streamer_read_integer_cst): Remove.
355         (streamer_get_pickled_tree): Adjust.
356         * tree-streamer-out.c (streamer_write_chain): Disable streaming
357         of DECL_EXTERNALs in BLOCK_VARS for now.
358         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
359         reference.
360         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
361         Add hash value argument and record that if hashes are recorded
362         in the cache.
363         (streamer_tree_cache_insert_1): Adjust.
364         (streamer_tree_cache_insert): Likewise.
365         (streamer_tree_cache_insert_at): Rename to ...
366         (streamer_tree_cache_replace_tree): ... this and adjust.
367         (streamer_tree_cache_append): Adjust.
368         (record_common_node): Likewise.
369         (streamer_tree_cache_create): Add argument whether to
370         record hash values together with trees.
371         (streamer_tree_cache_delete): Adjust.
372         * tree-streamer.h (struct streamer_tree_cache_d): Add
373         vector of hashes.
374         (streamer_read_integer_cst): Remove.
375         (streamer_tree_cache_insert): Adjust.
376         (streamer_tree_cache_append): Likewise.
377         (streamer_tree_cache_insert_at): Rename to ...
378         (streamer_tree_cache_replace_tree): ... this and adjust.
379         (streamer_tree_cache_create): Add argument whether to record hashes.
380         (streamer_tree_cache_get): Rename to ...
381         (streamer_tree_cache_get_tree): ... this.
382         (streamer_tree_cache_get_hash): New function.
383         * tree.c (cache_integer_cst): New function.
384         * tree.h (cache_integer_cst): Declare.
385         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
386         * lto-symtab.c (lto_varpool_replace_node): Only release
387         DECL_INITIAL of non-prevailing decls.
388         * varpool.c (varpool_remove_initializer): Do not release
389         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
391 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
393         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
394         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
395         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
396         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
397         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
398         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
399         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
400         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
401         instead of TARGET_64BIT.
402         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
403         Require ISA_HAS_<D>DIV.
405 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
407         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
408         (mips*-*-linux*): Move default with_llsc setting to where other
409         defaults are set.
410         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
411         with_arch block.
412         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
413         Likewise.  Remove default with_tune setting.  Move default float
414         setting to its own block.  Handle with_llsc in the same block as above.
416 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
418         PR rtl-optimization/57425
419         PR rtl-optimization/57569
420         * alias.c (write_dependence_p): Add new parameters mem_mode,
421         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
422         Changed all callers.
423         (canon_anti_dependence): New function.
424         * cse.c (check_dependence): Use canon_anti_dependence.
425         * cselib.c (cselib_invalidate_mem): Likewise.
426         * rtl.h (canon_anti_dependence): Declare.
428 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
430         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
431         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
432         ".set mips3" for 64-bit targets.
434 2013-06-15  Dehao Chen  <dehao@google.com>
436         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
437         * gimple-low.c (gimple_check_call_matching_types): Likewise.
438         (gimple_check_call_args): Likewise.
439         * value-prof.c (check_ic_target): Likewise.
440         * ipa-inline.c (early_inliner): Likewise.
441         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
442         * cgraph.c (cgraph_create_edge_1): Likewise.
443         (cgraph_make_edge_direct): Likewise.
445 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
447         PR target/57615
448         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
449         rs6000_output_move_128bit to handle emitting quad memory
450         operations.  Set attribute length to 8 bytes.
452 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
454         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
455         New pattern.
456         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
457         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
458         (aarch64_<su>mlsl<mode>): Likewise.
460 2013-06-14  Mike Stump  <mikestump@comcast.net>
462         * Makefile.in (TARGET_H): Add insn-codes.h.
464 2013-06-14  Alan Modra  <amodra@gmail.com>
466         PR middle-end/57134
467         PR middle-end/57586
468         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
469         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
470         bitfield expansion when EXPAND_MEMORY.
471         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
473 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
475         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
476         test for clearing quad memory on 32-bit later.
478 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
480         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
481         (fold_negate_expr): Likewise.
482         (fold_real_zero_addition_p): Handle vectors.
483         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
485 2013-06-14  Alan Modra  <amodra@gmail.com>
487         * varasm.c (force_const_mem): Revert 2013-06-07 change.
489 2013-06-13  Jan Hubicka  <jh@suse.cz>
491         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
492         Local comdats are not externally visible.
493         * symtab.c (dump_symtab_base): Dump externally visible.
494         (verify_symtab_base): Verify back links in the symtab hash.
496 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
498         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
499         CONVERT_EXPR as equal nodes.
501 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
503         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
505 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
507         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
508         Generalize to complex and vector.
509         * tree.c (build_all_ones_cst): New function.
510         * tree.h (build_all_ones_cst): Declare it.
512 2013-06-13  Alan Modra  <amodra@gmail.com>
514         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
515         * config/rs6000/rs6000.md (signbittf2): New insn.
516         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
517         (abstf2_internal, cmptf_internal2): Likewise.
518         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
520 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
521             Pat Haugen <pthaugen@us.ibm.com>
522             Peter Bergner <bergner@vnet.ibm.com>
524         * config/rs6000/rs6000.c (emit_load_locked): Add support for
525         power8 byte, half-word, and quad-word atomic instructions.
526         (emit_store_conditional): Likewise.
527         (rs6000_expand_atomic_compare_and_swap): Likewise.
528         (rs6000_expand_atomic_op): Likewise.
530         * config/rs6000/sync.md (larx): Add new modes for power8.
531         (stcx): Likewise.
532         (AINT): New mode iterator to include TImode as well as normal
533         integer modes on power8.
534         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
535         that VSX registers are not considered.  Use AINT mode iterator
536         instead of INT1 to allow inclusion of quad word atomic operations
537         on power8.
538         (load_locked<mode>): Likewise.
539         (store_conditional<mode>): Likewise.
540         (atomic_compare_and_swap<mode>): Likewise.
541         (atomic_exchange<mode>): Likewise.
542         (atomic_nand<mode>): Likewise.
543         (atomic_fetch_<fetchop_name><mode>): Likewise.
544         (atomic_nand_fetch<mode>): Likewise.
545         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
546         each type.
547         (ATOMIC): On power8, add QImode, HImode modes.
548         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
549         modes that promote to SImode.
550         (load_lockedti): Convert TImode arguments to PTImode, so that we
551         get a guaranteed even/odd register pair.
552         (load_lockedpti): Likewise.
553         (store_conditionalti): Likewise.
554         (store_conditionalpti): Likewise.
556         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
557         atomic load/store instructions.
558         (HSI): Likewise.
560 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
562         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
563         loads.
564         (insn_count): New attribute, with most cases extracted from...
565         (length): ...here.  Redefine most cases in terms of insn_count.
566         (single_insn): Delete.
567         (can_delay): Use insn_count to check for single instructions.
568         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
569         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
570         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
571         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
572         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
573         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
574         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
575         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
576         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
577         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
578         rather than "length".
579         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
580         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
581         Use "insn_count" rather than "length".
582         * config/mips/mips-dsp.md
583         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
584         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
585         length attributes.
587 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
589         PR tree-optimization/57361
590         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
592 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
594         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
595         to split.
596         (aarch64_simd_combine<mode>): New instruction expansion.
597         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
598         function prototype.
599         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
600         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
602 2013-06-12  Jan Hubicka  <jh@suse.cz>
604         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
605         decl has when in streaming stage.
606         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
607         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
609 2013-06-12  Roland Stigge <stigge@antcom.de>
611         PR target/57578
612         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
614 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
616         PR tree-optimization/57537
617         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
618         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
620 2013-06-12  Richard Biener  <rguenther@suse.de>
622         * data-streamer.h (streamer_write_char_stream): CSE
623         obs->current_pointer.
624         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
625         streamer_write_char_stream manually and optimize the resulting loop.
626         (streamer_write_hwi_stream): Likewise.
628 2013-06-12  Jan Hubicka  <jh@suse.cz>
630         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
631         * cgraph.h (varpool_create_empty_node): Declare.
632         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
633         duplicated nodes.
634         * symtab.c (symtab_unregister_node): Be lax about missin entries
635         in node hash.
636         (symtab_get_node): Update comment.
637         * varpool.c (varpool_create_empty_node): Break out from ...
638         (varpool_node_for_decl): ... here.
639         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
641 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
643         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
644         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
645         part.  Use straight-line flow at the end.
646         <COMPONENT_REF>: Remove superfluous else.
647         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
649 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
651         PR target/56564
652         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
653         target hook even for !TREE_PUBLIC decls.  If no resolution info
654         is available, return false for common and external decls.
656 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
658         * config/rl78/constraints.md (U): New constraint.
659         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
660         valloc attribute.
662 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
664         PR target/57589
665         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
666         to allow returning address to AT_PLATFORM name.
668 2013-06-11  Jan Hubicka  <jh@suse.cz>
670         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
671         * cgraph.h (symtab_node_base): Add weakref flag.
672         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
673         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
674         (output_weakrefs): Use weakref flag.
675         * fold-const.c (simple_operand_p): Handle WEAK.
676         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
677         * ipa.c (varpool_externally_visible_p): Drop weakref.
678         (function_and_variable_visibility): Update comment; fix weakref
679         sanity checks; do not clear DECL_WEAK on them.
680         * lto-cgraph.c (lto_output_node): update.
681         (lto_output_varpool_node): Update.
682         (input_overwrite_node): Update.
683         (input_node): Update.
684         (input_varpool_node): Update.
685         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
686         (lto_symtab_merge_symbols): Add sanity check.
687         (lto_symtab_prevailing_decl): Do not special case weakrefs.
688         * passes.c (rest_of_decl_compilation): Set static flag, too.
689         * symtab.c (dump_symtab_base): Dump weakref.
690         (verify_symtab_base): Sanity check weakrefs.
691         (symtab_make_decl_local): Remove duplicated code.
692         (symtab_alias_ultimate_target): Simplify.
693         * varpool.c (varpool_create_variable_alias): Set weakref flag.
695 2013-06-11  DJ Delorie  <dj@redhat.com>
697         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
698         (rl78_unwind_word_mode): New.
700 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
702         * final.c (debug_prefix_maps): Make static.
704 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
706         * function.c (initial_trampoline): Remove stray copy.
708 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
710         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
712 2013-06-11  Martin Jambor  <mjambor@suse.cz>
714         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
715         within bounds at the beginning of the function.
717 2013-06-11  Alan Modra  <amodra@gmail.com>
719         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
720         reporting.
721         (get_named_section): Don't NULL !DECL_P decl.
723 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
725         * doc/invoke.texi (core-avx2): Document.
726         (slm): Likewise.
727         (atom): Updated with MOVBE.
729 2013-06-11  Richard Biener  <rguenther@suse.de>
731         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
733 2013-06-11  Anton Blanchard  <anton@samba.org>
735         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
736         correct shift value in little-endian mode.
738 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
740         PR target/56564
741         * varasm.c (get_variable_align): Move #endif to the right place.
743 2013-06-10  Cary Coutant  <ccoutant@google.com>
745         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
746         for hash so that hash table traversal order is deterministic.
748 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
749             Pat Haugen <pthaugen@us.ibm.com>
750             Peter Bergner <bergner@vnet.ibm.com>
752         * config/rs6000/vector.md (GPR move splitter): Do not split moves
753         of vectors in GPRS if they are direct moves or quad word load or
754         store moves.
756         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
757         declaration.
758         (direct_move_p): Likewise.
759         (quad_load_store_p): Likewise.
761         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
762         classes into bins based on the physical register type.
763         (reg_class_to_reg_type): Likewise.
764         (IS_STD_REG_TYPE): Likewise.
765         (IS_FP_VECT_REG_TYPE): Likewise.
766         (reload_fpr_gpr): Arrays to determine what insn to use if we can
767         use direct move instructions.
768         (reload_gpr_vsx): Likewise.
769         (reload_vsx_gpr): Likewise.
770         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
771         information that is a simplification of register classes.  Also
772         precalculate direct move reload helpers.
773         (direct_move_p): New function to return true if the operation can
774         be done as a direct move instruciton.
775         (quad_load_store_p): New function to return true if the operation
776         is a quad memory operation.
777         (rs6000_legitimize_address): If quad memory, only allow register
778         indirect for TImode addresses.
779         (rs6000_legitimate_address_p): Likewise.
780         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
781         (rs6000_reload_register_type): Likewise.
782         (register_to_reg_type): Return register type.
783         (rs6000_secondary_reload_simple_move): New helper function for
784         secondary reload and secondary memory needed to identify anything
785         that is a simple move, and does not need reloading.
786         (rs6000_secondary_reload_direct_move): New helper function for
787         secondary reload to identify cases that can be done with several
788         instructions via the direct move instructions.
789         (rs6000_secondary_reload_move): New helper function for secondary
790         reload to identify moves between register types that can be done.
791         (rs6000_secondary_reload): Add support for quad memory operations
792         and for direct move.
793         (rs6000_secondary_memory_needed): Likewise.
794         (rs6000_debug_secondary_memory_needed): Change argument names.
795         (rs6000_output_move_128bit): New function to return the move to
796         use for 128-bit moves, including knowing about the various
797         limitations of quad memory operations.
799         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
800         memory operations.  call rs6000_output_move_128bit for the actual
801         instruciton(s) to generate.
802         (vsx_movti_64bit): Likewise.
804         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
805         (UNSPEC_P8V_MTVSRWZ): Likewise.
806         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
807         (UNSPEC_P8V_MTVSRD): Likewise.
808         (UNSPEC_P8V_XXPERMDI): Likewise.
809         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
810         (UNSPEC_FUSION_GPR): Likewise.
811         (FMOVE128_GPR): New iterator for direct move.
812         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
813         (f32_sv): Likewise.
814         (f32_dm): Likewise.
815         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
816         loads and direct move instructions.
817         (zero_extendsidi2_lfiwzx): Likewise.
818         (extendsidi2_lfiwax): Likewise.
819         (extendsidi2_nocell): Likewise.
820         (floatsi<mode>2_lfiwax): Likewise.
821         (lfiwax): Likewise.
822         (floatunssi<mode>2_lfiwzx): Likewise.
823         (lfiwzx): Likewise.
824         (fix_trunc<mode>_stfiwx): Likewise.
825         (fixuns_trunc<mode>_stfiwx): Likewise.
826         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
827         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
828         (parity<mode>2_cmpb): Set length/type attr.
829         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
830         for 'mr.' to fast_compare.
831         (bpermd_<mode>): Change type attr to popcnt.
832         (p8_fmrgow_<mode>): New insns for power8 direct move support.
833         (p8_mtvsrwz_1): Likewise.
834         (p8_mtvsrwz_2): Likewise.
835         (reload_fpr_from_gpr<mode>): Likewise.
836         (p8_mtvsrd_1): Likewise.
837         (p8_mtvsrd_2): Likewise.
838         (p8_xxpermdi_<mode>): Likewise.
839         (reload_vsx_from_gpr<mode>): Likewise.
840         (reload_vsx_from_gprsf): Likewise.
841         (p8_mfvsrd_3_<mode>): LIkewise.
842         (reload_gpr_from_vsx<mode>): Likewise.
843         (reload_gpr_from_vsxsf): Likewise.
844         (p8_mfvsrd_4_disf): Likewise.
845         (multi-word GPR splits): Do not split direct moves or quad memory
846         operations.
848 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
850         * tree-into-ssa.c (interesting_blocks): Make static.
852 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
854         PR target/56564
855         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
856         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
857         Use DATA_ABI_ALIGNMENT for that case instead if defined.
858         (get_variable_align): New function.
859         (get_variable_section, emit_bss, emit_common,
860         assemble_variable_contents, place_block_symbol): Use
861         get_variable_align instead of DECL_ALIGN.
862         (assemble_noswitch_variable): Add align argument, use it
863         instead of DECL_ALIGN.
864         (assemble_variable): Adjust caller.  Use get_variable_align
865         instead of DECL_ALIGN.
866         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
867         caller.
868         (DATA_ABI_ALIGNMENT): Define.
869         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
870         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
871         opt is false, only return the psABI mandated alignment increase.
872         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
873         (DATA_ABI_ALIGNMENT): ... this.
874         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
875         (DATA_ABI_ALIGNMENT): ... this.
876         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
877         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
878         (DATA_ABI_ALIGNMENT): ... this.
879         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
880         * doc/tm.texi: Regenerated.
882 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
884         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
885         cmp_code to construct REG_EQUAL note.
887 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
889         PR target/57568
890         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
891         that operands[2] doesn't overlap with operands[0].
893 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
894             Jan Hubicka  <jh@suse.cz>
896         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
897         hack to mark symbols as used.
899 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
901         PR rtl-optimization/57559
902         * lra-constraints.c (process_alt_operands): Don't discourage
903         memory with known offset for offsetable memory constraint.
904         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
906 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
908         * varasm.c (struct oc_local_state): Reorder fields.
909         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
910         and adjust accordingly.
911         (output_constructor): Reorder initialization code and adjust call to
912         output_constructor_bitfield.
914 2013-06-07  Jan Hubicka  <jh@suse.cz>
916         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
918 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
920         * tree-object-size.c (unknown): Make const.
922 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
924         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
925         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
926         for last alternative in the cpu_facility attribute.
928 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
930         PR target/56315
931         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
932         (xordi3): Change operand 2 constraint to arm_xordi_operand.
933         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
934         * config/arm/constraints.md (Dg): New constraint.
935         * config/arm/neon.md (xordi3_neon): Remove.
936         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
937         * config/arm/predicates.md (arm_xordi_operand): New predicate.
939 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
941         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
942         Clean up alternatives.
944 2013-06-07  Alan Modra  <amodra@gmail.com>
946         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
947         va_list_gpr_size.
949 2013-06-07  Alan Modra  <amodra@gmail.com>
951         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
953 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
955         * config/arm/constraints.md (Df): New constraint.
956         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
957         Correct length attribute for last two alternatives.
959 2013-06-07  Alan Modra  <amodra@gmail.com>
961         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
962         override user -mfp-in-toc.
963         (offsettable_ok_by_alignment): Consider just the current access
964         rather than the whole object, unless BLKmode.  Handle
965         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
966         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
967         for -mcmodel=medium.
968         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
969         override user -mfp-in-toc or -msum-in-toc.  Default to
970         -mno-fp-in-toc for -mcmodel=medium.
972 2013-06-06  DJ Delorie  <dj@redhat.com>
974         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
975         TARGET_VALID_POINTER_MODE.
977 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
978             Pat Haugen <pthaugen@us.ibm.com>
979             Peter Bergner <bergner@vnet.ibm.com>
981         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
982         Document new power8 builtins.
984         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
985         condition code register, to allow 128-bit logical operations to be
986         done in the VSX or GPR registers.
987         (nor<mode>3): Use the canonical form for nor.
988         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
989         vclz*, and vpopcnt* vector instructions.
990         (nand<mode>3): Likewise.
991         (orc<mode>3): Likewise.
992         (clz<mode>2): LIkewise.
993         (popcount<mode>2): Likewise.
995         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
996         that only the GPRs are recognized.
998         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
999         support for new power8 builtins.
1001         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1002         builtin functions.
1003         (xscvdpspn): Likewise.
1004         (vclz): Likewise.
1005         (vclzb): Likewise.
1006         (vclzh): Likewise.
1007         (vclzw): Likewise.
1008         (vclzd): Likewise.
1009         (vpopcnt): Likewise.
1010         (vpopcntb): Likewise.
1011         (vpopcnth): Likewise.
1012         (vpopcntw): Likewise.
1013         (vpopcntd): Likewise.
1014         (vgbbd): Likewise.
1015         (vmrgew): Likewise.
1016         (vmrgow): Likewise.
1017         (eqv): Likewise.
1018         (eqv_v16qi3): Likewise.
1019         (eqv_v8hi3): Likewise.
1020         (eqv_v4si3): Likewise.
1021         (eqv_v2di3): Likewise.
1022         (eqv_v4sf3): Likewise.
1023         (eqv_v2df3): Likewise.
1024         (nand): Likewise.
1025         (nand_v16qi3): Likewise.
1026         (nand_v8hi3): Likewise.
1027         (nand_v4si3): Likewise.
1028         (nand_v2di3): Likewise.
1029         (nand_v4sf3): Likewise.
1030         (nand_v2df3): Likewise.
1031         (orc): Likewise.
1032         (orc_v16qi3): Likewise.
1033         (orc_v8hi3): Likewise.
1034         (orc_v4si3): Likewise.
1035         (orc_v2di3): Likewise.
1036         (orc_v4sf3): Likewise.
1037         (orc_v2df3): Likewise.
1039         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1040         allow power8 quad mode in 64-bit.
1041         (rs6000_builtin_vectorized_function): Add support to vectorize
1042         ISA 2.07 count leading zeros, population count builtins.
1043         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1044         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1045         (builtin_function_type): Add vgbbd builtin function which takes an
1046         unsigned argument.
1047         (altivec_expand_vec_perm_const): Add support for new power8 merge
1048         instructions.
1050         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1051         that does not include TImdoe for use with 32-bit.
1052         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1053         instructions.
1054         (UNSPEC_VSX_CVDPSPN): Likewise.
1055         (vsx_xscvdpspn): Likewise.
1056         (vsx_xscvspdpn): Likewise.
1057         (vsx_xscvdpspn_scalar): Likewise.
1058         (vsx_xscvspdpn_directmove): Likewise.
1059         (vsx_and<mode>3): Split logical operations into 32-bit and
1060         64-bit. Add support to do logical operations on TImode as well as
1061         VSX vector types.  Allow logical operations to be done in either
1062         VSX registers or in general purpose registers in 64-bit mode.  Add
1063         splitters if GPRs were used. For AND, add clobber of CCmode to
1064         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1065         encoding.
1066         (vsx_and<mode>3_32bit): Likewise.
1067         (vsx_and<mode>3_64bit): Likewise.
1068         (vsx_ior<mode>3): Likewise.
1069         (vsx_ior<mode>3_32bit): Likewise.
1070         (vsx_ior<mode>3_64bit): Likewise.
1071         (vsx_xor<mode>3): Likewise.
1072         (vsx_xor<mode>3_32bit): Likewise.
1073         (vsx_xor<mode>3_64bit): Likewise.
1074         (vsx_one_cmpl<mode>2): Likewise.
1075         (vsx_one_cmpl<mode>2_32bit): Likewise.
1076         (vsx_one_cmpl<mode>2_64bit): Likewise.
1077         (vsx_nor<mode>3): Likewise.
1078         (vsx_nor<mode>3_32bit): Likewise.
1079         (vsx_nor<mode>3_64bit): Likewise.
1080         (vsx_andc<mode>3): Likewise.
1081         (vsx_andc<mode>3_32bit): Likewise.
1082         (vsx_andc<mode>3_64bit): Likewise.
1083         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1084         and xxlorc instructions.
1085         (vsx_eqv<mode>3_64bit): Likewise.
1086         (vsx_nand<mode>3_32bit): Likewise.
1087         (vsx_nand<mode>3_64bit): Likewise.
1088         (vsx_orc<mode>3_32bit): Likewise.
1089         (vsx_orc<mode>3_64bit): Likewise.
1091         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1093         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1094         instruction.
1095         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1096         (p8_vmrgow): Likewise.
1097         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1098         GPRs to be split under VSX.
1099         (p8v_clz<mode>2): Add power8 count leading zero support.
1100         (p8v_popcount<mode>2): Add power8 population count support.
1101         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1102         support.
1104         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1105         instruction.
1107         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1108         builtin functions.
1109         (vec_nand): Likewise.
1110         (vec_vclz): Likewise.
1111         (vec_vclzb): Likewise.
1112         (vec_vclzd): Likewise.
1113         (vec_vclzh): Likewise.
1114         (vec_vclzw): Likewise.
1115         (vec_vgbbd): Likewise.
1116         (vec_vmrgew): Likewise.
1117         (vec_vmrgow): Likewise.
1118         (vec_vpopcnt): Likewise.
1119         (vec_vpopcntb): Likewise.
1120         (vec_vpopcntd): Likewise.
1121         (vec_vpopcnth): Likewise.
1122         (vec_vpopcntw): Likewise.
1124 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1126         PR rtl-optimization/57468
1127         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1128         spilled pseudos.
1130 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1132         PR rtl-optimization/57459
1133         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1134         type when setting live regs.
1136 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1138         * config/s390/s390.opt (mlra): New option.
1139         * config/s390/s390.c (s390_decompose_address): Check displacement
1140         for all registers for LRA.
1141         (s390_secondary_reload): Don't used secondary reloads for LRA.
1142         (s390_lra_p): New function.
1143         (TARGET_LRA_P): Define.
1144         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1145         of attribute cpu_facility to zarch for the last alternative.
1146         (*cmpmem_short): Ditto.
1148 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1150         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1151         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1152         (arm_expand_prologue): Likewise.
1154 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1156         PR c++/53743
1157         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1158         as this is now done by redirect_edge_and_branch_force.
1159         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1160         barriers, and fix interaction with splitting.
1161         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1162         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1163         reflect changes made in the routine.
1164         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1165         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1166         since this is called in cfglayout mode, and replace partition fixup
1167         with assert as that is now done by force_nonfallthru_and_redirect.
1168         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1169         already be marked with region crossing note.
1170         (insert_section_boundary_note): Make non-static, gate on flag
1171         has_bb_partition, rewrite to also check for multiple partitions.
1172         (rest_of_handle_reorder_blocks): Remove call to
1173         insert_section_boundary_note, now done later during free_cfg.
1174         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1175         * bb-reorder.h (insert_section_boundary_note): Declare.
1176         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1177         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1178         invoke insert_section_boundary_note.
1179         (try_redirect_by_replacing_jump): Remove unnecessary
1180         check for region crossing note.
1181         (fixup_partition_crossing): New function.
1182         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1183         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1184         in non-cfglayout mode.
1185         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1186         remove old code that tried to do this. Emit barrier correctly
1187         when we are in cfglayout mode.
1188         (last_bb_in_partition): New function.
1189         (rtl_split_edge): Correctly fixup partition boundaries.
1190         (commit_one_edge_insertion): Remove old code that tried to
1191         fixup region crossing edge since this is now handled in
1192         split_block, and set up insertion point correctly since
1193         block may now end in a jump.
1194         (verify_hot_cold_block_grouping): Guard against checking when not in
1195         linearized RTL mode.
1196         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1197         notes.
1198         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1199         rtl_verify_flow_info, so not called in cfglayout mode.
1200         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1201         (fixup_reorder_chain): Remove old code that attempted to fixup region
1202         crossing note as this is now handled in force_nonfallthru_and_redirect.
1203         (duplicate_insn_chain): Don't duplicate switch section notes.
1204         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1205         note.
1206         * basic-block.h (emit_barrier_after_bb): Declare.
1208 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1210         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1211         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1212         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1214 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1216         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1217         where appropriate.
1218         * config/arm/ldmstm.md: Regenerate.
1220 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1222         * config/arm/sync.md (atomic_loaddi_1):
1223         Disable predication for arm_restrict_it.
1224         (arm_load_exclusive<mode>): Likewise.
1225         (arm_load_exclusivesi): Likewise.
1226         (arm_load_exclusivedi): Likewise.
1227         (arm_load_acquire_exclusive<mode>): Likewise.
1228         (arm_load_acquire_exclusivesi): Likewise.
1229         (arm_load_acquire_exclusivedi): Likewise.
1230         (arm_store_exclusive<mode>): Likewise.
1231         (arm_store_exclusive<mode>): Likewise.
1232         (arm_store_release_exclusivedi): Likewise.
1233         (arm_store_release_exclusive<mode>): Likewise.
1235 2013-06-06  Richard Biener  <rguenther@suse.de>
1237         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1238         after LTO_null.
1239         (lto_tag_is_tree_code_p): Adjust.
1240         (lto_tag_is_gimple_code_p): Likewise.
1241         (lto_gimple_code_to_tag): Likewise.
1242         (lto_tag_to_gimple_code): Likewise.
1243         (lto_tree_code_to_tag): Likewise.
1244         (lto_tag_to_tree_code): Likewise.
1245         * data-streamer.h (streamer_write_hwi_in_range): Use
1246         uhwi streaming to stream the normalized range.
1247         (streamer_read_hwi_in_range): Likewise.
1249 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1251         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1252         (predicable_short_it): Likewise.
1253         (predicated): Likewise.
1254         (enabled): Handle above.
1255         (define_cond_exec): Set predicated attribute to yes.
1257 2013-06-05  Mike Stump  <mikestump@comcast.net>
1259         * gdbinit.in (__FUNCTION__): Add.
1261 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1263         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1264         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1266 2013-06-05  Jan Hubicka  <jh@suse.cz>
1268         * varasm.c (mark_decl_referenced): Revert the removal until targets
1269         are fixed.
1271 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1273         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1274         instead of mark_decl_referenced.
1276 2013-06-05  Jan Hubicka  <jh@suse.cz>
1278         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1279         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1280         and symtab_used_from_object_file_p.
1281         (cgraph_make_node_local_1): Clear forced_by_abi.
1282         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1283         * cgraph.h (symtab_node_base): Add forced_by_abi.
1284         (decide_is_variable_needed): Remove.
1285         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1286         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1287         (decide_is_symbol_needed): ... this one; handle symbols in general;
1288         always analyze virtuals; honnor forced_by_abi.
1289         (cgraph_finalize_function): Update.
1290         (varpool_finalize_decl): Update.
1291         (symbol_defined_and_needed): Remove.
1292         (analyze_functions): Update.
1293         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1294         output_refs, input_overwrite_node): Handle forced_by_abi.
1295         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1296         (address_taken_from_non_vtable_p): ... this one.
1297         (comdat_can_be_unshared_p_1): New function.
1298         (cgraph_comdat_can_be_unshared_p): Rename to ...
1299         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1300         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1301         (function_and_variable_visibility): Clear forced_by_abi as needed.
1302         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1303         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1304         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1305         * varpool.c (decide_is_variable_needed): Remove.
1307 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1309         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1310         (arm_option_override): Override arm_restrict_it where appropriate.
1311         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1312         * config/arm/arm.opt (mrestrict-it): New command-line option.
1313         * doc/invoke.texi: Document -mrestrict-it.
1315 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1317         * tsan.c (tsan_atomic_table): Make const.
1319 2013-06-05  Richard Biener  <rguenther@suse.de>
1321         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1322         index associated with the tree we are supposed to replace.
1323         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1324         TREE_ASM_WRITTEN as zero for everything but SSA names.
1326 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1328         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1330 2013-06-04  Jan Hubicka  <jh@suse.cz>
1332         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1333         (input_node, input_varpool_node): Handle correctly external same
1334         body aliases.
1335         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1336         nodes at ltrans stage.
1338 2013-06-04  Jan Hubicka  <jh@suse.cz>
1340         * ipa-inline.c (update_caller_keys): Fix availability test.
1341         (update_callee_keys): Likewise.
1342         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1343         to follow ELF standard.
1345 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1347         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1348         (mips64r5900el-*-elf*): New configurations.
1349         * config/mips/mips-cpus.def (r5900): New processor.
1350         * config/mips/mips-tables.opt: Regenerate.
1351         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1352         (mips_issue_rate): Handle PROCESSOR_R5900.
1353         (mips_reorg_process_insns): Force reorder mode for the R5900.
1354         * config/mips/mips.h (TARGET_MIPS5900): Define.
1355         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1356         TARGET_MIPS5900.
1357         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1358         TARGET_MIPS5900.
1359         * config/mips/mips.md (processor): Add r5900.
1360         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1362 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1364         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1365         into function to generate MOVI instruction.
1366         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1367         (aarch64_preferred_simd_mode): Turn into wrapper.
1368         (aarch64_output_scalar_simd_mov_immediate): New function.
1369         * config/aarch64/aarch64-protos.h: Add prototype for above.
1371 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1373         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1374         element_char member.
1375         (sizetochar): Return signed char.
1376         (aarch64_simd_valid_immediate): Remove elchar and other
1377         unnecessary variables.
1378         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1379         Calculate element_char as required.
1380         * config/aarch64/aarch64-protos.h: Update and move prototype
1381         for aarch64_output_simd_mov_immediate.
1382         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1383         Update arguments.
1385 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1387         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1388         information completed by aarch64_simd_valid_immediate.
1389         (aarch64_legitimate_constant_p): Update arguments.
1390         (aarch64_simd_valid_immediate): Work with struct rather than many
1391         pointers.
1392         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1393         (aarch64_simd_make_constant): Update arguments.
1394         (aarch64_output_simd_mov_immediate): Work with struct rather than
1395         many pointers.  Output immediate directly rather than as operand.
1396         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1397         Update prototype.
1398         * config/aarch64/constraints.md (Dn): Update arguments.
1400 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1402         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1403         longer static.
1404         (aarch64_simd_immediate_valid_for_move): Remove.
1405         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1406         (aarch64_simd_make_constant): Update call.
1407         (aarch64_output_simd_mov_immediate): Update call.
1408         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1409         Add prototype.
1410         * config/aarch64/constraints.md (Dn): Update call.
1412 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1414         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1415         return type to bool for prototype.
1416         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1417         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1418         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1420 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1422         * config/mips/mips.opt (meva): New.
1423         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1424         (ASM_SPEC): Handle -meva.
1425         * doc/invoke.texi (meva):  Document.
1427 2013-06-04  Alan Modra  <amodra@gmail.com>
1429         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1430         constant output.
1432 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1434         * rtl.def: Add extra fourth optional field to define_cond_exec.
1435         * gensupport.c (process_one_cond_exec): Process attributes from
1436         define_cond_exec.
1437         * doc/md.texi: Document fourth field in define_cond_exec.
1439 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1441         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1442         out the processing order as in store_bit_field_1.
1444 2013-06-04  Jan Hubicka  <jh@suse.cz>
1446         PR middle-end/57500
1447         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1448         non-VAR_DECL node if it does not exist yet.
1450 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1452         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1453         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1454         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1455         target_cpu_default setting.
1457 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1459         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1460         default to -fopt-info=optimized instead of all.
1461         * doc/invoke.texi: Ditto.
1462         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1463         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1464         (execute_vect_slp): Emit BB vectorization success under
1465         MSG_OPTIMIZED_LOCATIONS.
1466         * tree-vect-slp.c (vect_slp_transform_bb): Change
1467         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1468         * tree-vect-loop.c (vect_transform_loop): Ditto.
1470 2013-06-03  Jason Merrill  <jason@redhat.com>
1472         PR c++/57415
1473         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1474         Use TARGET_EXPR for C++.
1476 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1478         PR rtl-optimization/57268
1479         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1480         if DEBUG_INSN_P (insn).
1482         Reapply
1483         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1485         PR rtl-optimization/57268
1486         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1487         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1489 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1491         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1492         (ix86_avoid_lea_for_addr): Likewise.
1493         (exact_dependency_1): Likewise.
1494         (ix86_adjust_cost): Likewise.
1495         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1496         removed.
1497         (do_reorder_for_imul): Fix typo, formatting and
1498         !reload_completed check removed.
1499         (ix86_sched_reorder): Fix typo and formatting.
1500         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1501         list.
1503 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1505         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1507 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1509         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1510         <STRING_CST>: Likewise.
1511         <VECTOR_CST>: Likewise.
1513 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1514             Mikael Morin  <mikael@gcc.gnu.org>
1516         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1517         * config.in: Regenerated.
1518         * configure: Regenerated.
1520 2013-06-01  Jan Hubicka  <jh@suse.cz>
1522         PR middle-end/57366
1523         * cgraphunit.c (compile): When weakref is not supported,
1524         set up transparent aliases before final output pass.
1525         * varasm.c (assemble_alias): Do not try to do it here.
1527 2013-06-01  Jan Hubicka  <jh@suse.cz>
1529         PR middle-end/57467
1530         * passes.c (for_per_function): Skip unanalyzed functions.
1532 2013-06-01  Jan Hubicka  <jh@suse.cz>
1534         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1535         (lto_symtab_merge_symbols_1): ... this one.
1536         (lto_symtab_merge_cgraph_nodes): Rename to ...
1537         (lto_symtab_merge_symbols): ... this one; simplify.
1538         * cgraph.c (same_body_aliases_done): Rename to ...
1539         (cpp_implicit_aliases_done): ... this one.
1540         (cgraph_create_function_alias): Update.
1541         (cgraph_same_body_alias): Update.
1542         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1543         (verify_edge_corresponds_to_fndecl): Simplify.
1544         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1545         (cgraph_node): Remove same_body_alias.
1546         (varpool_node): Remove alias_of and extra_name_alias.
1547         (same_body_aliases_done): Rename to ..
1548         (cpp_implicit_aliases_done): ... this one.
1549         (symtab_alias_ultimate_target): Add default parameter.
1550         (symtab_resolve_alias): New function.
1551         (fixup_same_cpp_alias_visibility): Declare.
1552         (cgraph_function_node): Add default parameter.
1553         (cgraph_node_asm_name): Likewise.
1554         (cgraph_function_or_thunk_node): Add default parameter; do
1555         not ICE when it is NULL.
1556         (varpool_variable_node): Likewise.
1557         * tree-emutls.c (create_emultls_var): Update.
1558         (ipa_lower_emutls): Update.
1559         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1560         (cgraph_reset_node): Reset alias info.
1561         (cgraph_finalize_function): Update.
1562         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1563         (analyze_function): Simplify.
1564         (cgraph_process_same_body_aliases): Simplify.
1565         (analyze_functions): Fixup same body aliases.
1566         (handle_alias_pairs): Simplify.
1567         (assemble_thunk): Update.
1568         (assemble_thunks_and_aliases): Update.
1569         (output_weakrefs): Rewrite.
1570         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1571         (lto_output_varpool_node): Likewise.
1572         (compute_ltrans_boundary): Remve assert.
1573         (get_alias_symbol): New functoin.
1574         (input_node): Rewrite alias handling.
1575         (input_varpool_node): Likewise.
1576         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1577         * ipa.c (process_references): Handle weakrefs correctly.
1578         (symtab_remove_unreachable_nodes): Likewise.
1579         * trans-mem.c (get_cg_data): Update.
1580         (ipa_tm_create_version_alias): Update.
1581         (ipa_tm_execute): Update.
1582         * symtab.c (dump_symtab_base): Dump aliases.
1583         (verify_symtab_base): Verify aliases.
1584         (symtab_node_availability): New function.
1585         (symtab_alias_ultimate_target): Simplify.
1586         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1587         handle all the fixup cases.
1588         (symtab_resolve_alias): New function.
1589         * passes.c (ipa_write_summaries): Handle weakrefs.
1590         * varpool.c (varpool_analyze_node): Simplify.
1591         (assemble_aliases): Update.
1592         (varpool_create_variable_alias): Simplify.
1593         (varpool_extra_name_alias): Simplify.
1594         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1595         (lto_symtab_merge_symbols): ... this one.
1597 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1599         Revert
1600         PR rtl-optimization/57268
1601         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1602         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1604 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1606         Partially reverted:
1607         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1609         PR middle-end/57073
1610         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1611         further up.
1613 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1615         PR rtl-optimization/57268
1616         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1617         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1619 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1621         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1622         unordered comparison operators when -fno-trapping-math is in effect
1623         on the e500.
1624         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1625         and implement unordered comparison operators properly on the e500.
1627 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1629         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1630         for constant scalar integers.
1631         (simplify_relational_operation_1): Likewise.
1633 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1635         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1636         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1637         Fix comment.
1639 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1640             Igor Zamyatin  <igor.zamyatin@intel.com>
1642         Silvermont (SLM) architecture performance tuning.
1643         * config/i386/i386.h (enum ix86_tune_indices): Add
1644         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1645         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1647         * config/i386/i386.c (initial_ix86_tune_features)
1648         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1649         (ix86_lea_outperforms): Handle Silvermont tuning.
1650         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1651         call.
1652         (ix86_use_lea_for_mov): Likewise.
1653         (ix86_avoid_lea_for_addr): Likewise.
1654         (ix86_lea_for_add_ok): Likewise.
1655         (exact_dependency_1): New function.
1656         (exact_store_load_dependency): Likewise.
1657         (ix86_adjust_cost): Handle Silvermont tuning.
1658         (do_reoder_for_imul): Likewise.
1659         (swap_top_of_ready_list): New function.
1660         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1662         * config/i386/i386.md (peepholes that split memory operand in fp
1663         converts): New.
1665 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1667         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1668         Remove un-necessary braces.
1670 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1672         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1673         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1675 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1677         PR middle-end/57073
1678         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1680 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1682         PR target/56315
1683         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1684         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1685         * config/arm/neon.md (iordi3_neon): Remove.
1686         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1687         * config/arm/predicates.md (imm_for_neon_logic_operand):
1688         Move to earlier in the file.
1689         (neon_logic_op2): Likewise.
1690         (arm_iordi_operand_neon): New predicate.
1692 2013-05-31  Richard Biener  <rguenther@suse.de>
1694         PR tree-optimization/57478
1695         PR tree-optimization/57453
1696         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1697         are life as well.
1699 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1701         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1702         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1704 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1705             Thomas Koenig  <tkoenig@gcc.gnu.org>
1707         PR middle-end/57073
1708         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1709         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1711 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1713         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1715 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1717         * target.def (register_usage_leveling_p): New hook.
1718         * targhooks.c (default_register_usage_leveling_p): New.
1719         * targhooks.h (default_register_usage_leveling_p): New prototype.
1720         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1721         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1722         * doc/tm.texi: Update.
1723         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1725 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1727         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1728         (*insv_reg<mode>): New define_insn.
1730 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1732         PR rtl-optimization/57439
1733         * postreload.c (move2add_valid_value_p): Check that we have
1734         a zero subreg_regno_offset when accessing the register in
1735         the requested mode.
1737 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1738             Igor Zamyatin  <igor.zamyatin@intel.com>
1740         Silvermont (SLM) architecture pipeline model, tuning and
1741         insn selection.
1742         * config.gcc: Add slm config options and target.
1744         * config/i386/slm.md: New.
1746         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1748         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
1749         PROCESSOR_SLM.
1750         (ix86_target_macros_internal): Likewise.
1752         * gcc/config/i386/i386.c (slm_cost): New cost.
1753         (m_SLM): New macro flag.
1754         (initial_ix86_tune_features): Set m_SLM.
1755         (x86_accumulate_outgoing_args): Likewise.
1756         (x86_arch_always_fancy_math_387): Likewise.
1757         (processor_target_table): Add slm cost.
1758         (cpu_names): Add slm cpu name.
1759         (x86_option_override_internal): Set SLM ISA.
1760         (ix86_issue_rate): New case PROCESSOR_SLM.
1761         (ia32_multipass_dfa_lookahead): Likewise.
1762         (fold_builtin_cpu): Add slm.
1764         * config/i386/i386.h (TARGET_SLM): New target macro.
1765         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1766         (processor_type): Add PROCESSOR_SLM.
1768         * config/i386/i386.md (cpu): Add new value "slm".
1769         (slm.md): Include slm.md.
1771 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
1772             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1774         * config/arm/arm-protos.h: Add and update function protos.
1775         * config/arm/arm.c (use_simple_return_p): New added.
1776         (thumb2_expand_return): Check simple_return flag.
1777         * config/arm/arm.md: Add simple_return and conditional simple_return.
1778         * config/arm/iterators.md: Add iterator for return and simple_return.
1780 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1782         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1783         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1784         (arm_emit_vfp_multi_reg_pop): Likewise.
1785         (thumb2_emit_ldrd_pop): Likewise.
1786         (arm_expand_epilogue): Add misc REG_CFA notes.
1787         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1789 2013-05-29  Lawrence Crowl  <crowl@google.com>
1791         * config/arm/t-arm: Update for below.
1793         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1794         Change type to hash_table.  Update dependent calls and types.
1796         * config/i386/t-cygming: Update for below.
1798         * config/i386/t-interix: Update for below.
1800         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1801         Change type to hash_table.  Update dependent calls and types.
1802         (i386_find_on_wrapper_list::wrappers): Likewise.
1804         * config/ia64/t-ia64: Update for below.
1806         * config/ia64/ia64.c (bundle_state_table):
1807         Change type to hash_table.  Update dependent calls and types.
1809         * config/mips/mips.c (mips_reorg_process_insns::htab):
1810         Change type to hash_table.  Update dependent calls and types.
1812         * config/sol2.c (solaris_comdat_htab):
1813         Change type to hash_table.  Update dependent calls and types.
1815         * config/t-sol2: Update for above.
1817 2013-05-29  Teresa Johnson  <tejohnson@google.com>
1819         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1820         functions are not yet marked as defined.
1822 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1823             Pat Haugen <pthaugen@us.ibm.com>
1824             Peter Bergner <bergner@vnet.ibm.com>
1826         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1827         instructions.
1828         (VEC_A): Likewise.
1829         (VEC_C): Likewise.
1830         (vrotl<mode>3): Likewise.
1831         (vashl<mode>3): Likewise.
1832         (vlshr<mode>3): Likewise.
1833         (vashr<mode>3): Likewise.
1835         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1836         support for power8 V2DI builtins.
1838         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1839         power8 V2DI builtins.
1840         (vupkhsw): Likewise.
1841         (vupklsw): Likewise.
1842         (vaddudm): Likewise.
1843         (vminsd): Likewise.
1844         (vmaxsd): Likewise.
1845         (vminud): Likewise.
1846         (vmaxud): Likewise.
1847         (vpkudum): Likewise.
1848         (vpksdss): Likewise.
1849         (vpkudus): Likewise.
1850         (vpksdus): Likewise.
1851         (vrld): Likewise.
1852         (vsld): Likewise.
1853         (vsrd): Likewise.
1854         (vsrad): Likewise.
1855         (vsubudm): Likewise.
1856         (vcmpequd): Likewise.
1857         (vcmpgtsd): Likewise.
1858         (vcmpgtud): Likewise.
1859         (vcmpequd_p): Likewise.
1860         (vcmpgtsd_p): Likewise.
1861         (vcmpgtud_p): Likewise.
1862         (vupkhsw): Likewise.
1863         (vupklsw): Likewise.
1864         (vaddudm): Likewise.
1865         (vmaxsd): Likewise.
1866         (vmaxud): Likewise.
1867         (vminsd): Likewise.
1868         (vminud): Likewise.
1869         (vpksdss): Likewise.
1870         (vpksdus): Likewise.
1871         (vpkudum): Likewise.
1872         (vpkudus): Likewise.
1873         (vrld): Likewise.
1874         (vsld): Likewise.
1875         (vsrad): Likewise.
1876         (vsrd): Likewise.
1877         (vsubudm): Likewise.
1879         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1880         support for power8 V2DI instructions.
1882         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1883         power8 V2DI instructions.  Combine pack and unpack insns to use an
1884         iterator for each mode.  Check whether a particular mode supports
1885         Altivec instructions instead of just checking TARGET_ALTIVEC.
1886         (UNSPEC_VPKUWUM): Likewise.
1887         (UNSPEC_VPKSHSS): Likewise.
1888         (UNSPEC_VPKSWSS): Likewise.
1889         (UNSPEC_VPKUHUS): Likewise.
1890         (UNSPEC_VPKSHUS): Likewise.
1891         (UNSPEC_VPKUWUS): Likewise.
1892         (UNSPEC_VPKSWUS): Likewise.
1893         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1894         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1895         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1896         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1897         (UNSPEC_VUPKHSB): Likewise.
1898         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1899         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1900         (UNSPEC_VUPKHSH): Likewise.
1901         (UNSPEC_VUPKLSB): Likewise.
1902         (UNSPEC_VUPKLSH): Likewise.
1903         (VI2): Likewise.
1904         (VI_char): Likewise.
1905         (VI_scalar): Likewise.
1906         (VI_unit): Likewise.
1907         (VP): Likewise.
1908         (VP_small): Likewise.
1909         (VP_small_lc): Likewise.
1910         (VU_char): Likewise.
1911         (add<mode>3): Likewise.
1912         (altivec_vaddcuw): Likewise.
1913         (altivec_vaddu<VI_char>s): Likewise.
1914         (altivec_vadds<VI_char>s): Likewise.
1915         (sub<mode>3): Likewise.
1916         (altivec_vsubcuw): Likewise.
1917         (altivec_vsubu<VI_char>s): Likewise.
1918         (altivec_vsubs<VI_char>s): Likewise.
1919         (altivec_vavgs<VI_char>): Likewise.
1920         (altivec_vcmpbfp): Likewise.
1921         (altivec_eq<mode>): Likewise.
1922         (altivec_gt<mode>): Likewise.
1923         (altivec_gtu<mode>): Likewise.
1924         (umax<mode>3): Likewise.
1925         (smax<mode>3): Likewise.
1926         (umin<mode>3): Likewise.
1927         (smin<mode>3): Likewise.
1928         (altivec_vpkuhum): Likewise.
1929         (altivec_vpkuwum): Likewise.
1930         (altivec_vpkshss): Likewise.
1931         (altivec_vpkswss): Likewise.
1932         (altivec_vpkuhus): Likewise.
1933         (altivec_vpkshus): Likewise.
1934         (altivec_vpkuwus): Likewise.
1935         (altivec_vpkswus): Likewise.
1936         (altivec_vpks<VI_char>ss): Likewise.
1937         (altivec_vpks<VI_char>us): Likewise.
1938         (altivec_vpku<VI_char>us): Likewise.
1939         (altivec_vpku<VI_char>um): Likewise.
1940         (altivec_vrl<VI_char>): Likewise.
1941         (altivec_vsl<VI_char>): Likewise.
1942         (altivec_vsr<VI_char>): Likewise.
1943         (altivec_vsra<VI_char>): Likewise.
1944         (altivec_vsldoi_<mode>): Likewise.
1945         (altivec_vupkhsb): Likewise.
1946         (altivec_vupkhs<VU_char>): Likewise.
1947         (altivec_vupkls<VU_char>): Likewise.
1948         (altivec_vupkhsh): Likewise.
1949         (altivec_vupklsb): Likewise.
1950         (altivec_vupklsh): Likewise.
1951         (altivec_vcmpequ<VI_char>_p): Likewise.
1952         (altivec_vcmpgts<VI_char>_p): Likewise.
1953         (altivec_vcmpgtu<VI_char>_p): Likewise.
1954         (abs<mode>2): Likewise.
1955         (vec_unpacks_hi_v16qi): Likewise.
1956         (vec_unpacks_hi_v8hi): Likewise.
1957         (vec_unpacks_lo_v16qi): Likewise.
1958         (vec_unpacks_hi_<VP_small_lc>): Likewise.
1959         (vec_unpacks_lo_v8hi): Likewise.
1960         (vec_unpacks_lo_<VP_small_lc>): Likewise.
1961         (vec_pack_trunc_v8h): Likewise.
1962         (vec_pack_trunc_v4si): Likewise.
1963         (vec_pack_trunc_<mode>): Likewise.
1965         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1966         V2DI builtins.
1967         (vec_vmaxsd): Likewise.
1968         (vec_vmaxud): Likewise.
1969         (vec_vminsd): Likewise.
1970         (vec_vminud): Likewise.
1971         (vec_vpksdss): Likewise.
1972         (vec_vpksdus): Likewise.
1973         (vec_vpkudum): Likewise.
1974         (vec_vpkudus): Likewise.
1975         (vec_vrld): Likewise.
1976         (vec_vsld): Likewise.
1977         (vec_vsrad): Likewise.
1978         (vec_vsrd): Likewise.
1979         (vec_vsubudm): Likewise.
1980         (vec_vupkhsw): Likewise.
1981         (vec_vupklsw): Likewise.
1983 2013-05-29  Jan Hubicka  <jh@suse.cz>
1985         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1986         flags; reorder rest of fields in more consistent way.
1987         (varpool_node): Remove analyzed, finalized and alias.
1988         (cgraph_ndoe): Likewise.
1989         (symtab_alias_ultimate_target): New function.
1990         (cgraph_function_node): Move offline.
1991         (cgraph_reset_node): Declare.
1992         (cgraph_comdat_can_be_unshared_p): Remove.
1993         (varpool_remove_initializer): Declare.
1994         (varpool_first_defined_variable, varpool_next_defined_variable
1995         cgraph_first_defined_function, cgraph_next_defined_function): Update.
1996         (cgraph_function_with_gimple_body_p): Update.
1997         (varpool_all_refs_explicit_p): Update.
1998         (symtab_alias_target): New function.
1999         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2000         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2001         (cgraph_function_or_thunk_node): Simplify using
2002         symtab_alias_ultimate_target.
2003         (varpool_variable_node): Likewise.
2004         * cgraph.c (cgraph_create_function_alias): Update.
2005         (cgraph_add_thunk): Update.
2006         (cgraph_remove_node): Update.
2007         (dump_cgraph_node): Do not dump removed flags.
2008         (cgraph_function_body_availability): Update.
2009         (cgraph_propagate_frequency): Update.
2010         (verify_cgraph_node): Check sanity of local flag.
2011         (cgraph_function_node): Move here from cgraph.h; revamp for
2012         cgraph_function_or_thunk_node.
2013         * lto-symtab.c (lto_varpool_replace_node): Update.
2014         (lto_symtab_resolve_can_prevail_p): Update.
2015         (lto_symtab_merge_cgraph_nodes): Update.
2016         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2017         propagate_constants_accross_call, devirtualization_time_bonus,
2018         ipcp_propagate_stage): Update.
2019         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2020         * ipa-inline-transform.c (clone_inlined_nodes,
2021         preserve_function_body_p): Update.
2022         * ipa-reference.c (propagate): Update.
2023         (write_node_summary_p): Update.
2024         * toplev.c (wrapup_global_declaration_2): Update.
2025         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2026         (analyze_function) ... this one.
2027         (cgraph_process_new_functions): Update.
2028         (cgraph_reset_node): Export.
2029         (cgraph_finalize_function): Update.
2030         (cgraph_add_new_function): Update.
2031         (process_function_and_variable_attributes): Update.
2032         (varpool_finalize_decl): Update.
2033         (symbol_finalized): Remove.
2034         (symbol_finalized_and_needed): Rename to ...
2035         (symbol_defined_and_needed): ... update.
2036         (cgraph_analyze_functions): Update.
2037         (handle_alias_pairs): Update.
2038         (mark_functions_to_output): Update.
2039         (assemble_thunk): Update.
2040         (output_in_order): Update.
2041         (output_weakrefs): Update.
2042         (finalize_compilation_unit): Update.
2043         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2044         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2045         input_node, input_varpool_node): Update.
2046         * dbxout.c (dbxout_expand_expr): Update.
2047         * cgraphclones.c (cgraph_clone_node): Update.
2048         (cgraph_copy_node_for_versioning): Update.
2049         (cgraph_materialize_clone): Update.
2050         (cgraph_materialize_all_clones): Update.
2051         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2052         propagate_pure_const, propagate_nothrow): Update.
2053         * lto-streamer-out.c (lto_output, write_symbol): Update.
2054         * ipa-utils.c (ipa_reverse_postorder): Update.
2055         * ipa-inline.c (can_inline_edge_p): Update.
2056         (update_caller_keys, ipa_inline): Update.
2057         * dwarf2out.c (reference_to_unused,
2058         premark_types_used_by_global_vars_helper): Update.
2059         * tree-eh.c (tree_could_trap_p): Update.
2060         * ipa-split.c (consider_split, execute_split_functions): Update.
2061         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2062         has_addr_references_p): Update; move ahead in file for better
2063         readability.
2064         (process_references): Simplify.
2065         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2066         bodies are removed.
2067         (cgraph_comdat_can_be_unshared_p): Make static.
2068         (cgraph_externally_visible_p): Update.
2069         (varpool_externally_visible_p): Update.
2070         (function_and_variable_visibility): Update.
2071         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2072         ipa_tm_mark_force_output_node): Update.
2073         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2074         estimate_edge_devirt_benefit, inline_generate_summary,
2075         inline_write_summary): Update.
2076         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2077         * ipa-prop.c (ipa_compute_jump_functions): Update.
2078         (ipa_print_node_params, ipa_prop_read_section,
2079         ipa_update_after_lto_read, read_replacements_section): Update.
2080         * varasm.c (mark_decl_referenced): Update.
2081         (assemble_alias, dump_tm_clone_pairs): Update.
2082         * tree-inline.c (copy_bb): Update.
2083         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2084         Update.
2085         * symtab.c (dump_symtab_base): Print new flags.
2086         (verify_symtab_base): Verify new flags.
2087         (symtab_alias_ultimate_target): New function.
2088         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2089         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2090         Update.
2091         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2092         Update.
2093         * i386.c (ix86_get_function_versions_dispatcher,
2094         ix86_generate_version_dispatcher_body): Update.
2095         (fold_builtin_cpu): Use varpool_add_new_variable.
2096         * varpool.c (varpool_remove_initializer): Break out from ...
2097         (varpool_remove_node): ... this one.
2098         (dump_varpool_node, varpool_node_for_asm,
2099         cgraph_variable_initializer_availability, varpool_analyze_node,
2100         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2101         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2102         Update.
2104 2013-05-29  Jan Hubicka  <jh@suse.cz>
2106         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2108 2013-05-29  Easwaran Raman  <eraman@google.com>
2110         PR tree-optimization/57442
2111         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2112         when control exits the main loop.
2114 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2116         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2117         and RX600.
2118         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2119         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2120         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2121         option.
2123 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2125         PR tree-optimization/57441
2126         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2127         Don't limit size of incr_vec to number of candidates.
2129 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2131         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2132         and mips16 directories.
2133         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2134         (MULTILIB_DIRNAMES): Ditto.
2135         (MULTILIB_EXCEPTIONS): Add new exceptions.
2136         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2137         (MULTILIB_DIRNAMES): Ditto.
2138         (MULTILIB_EXCEPTIONS): Add new exceptions.
2140 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2141             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2143         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2144         SYMBOL_TINY_ABSOLUTE.
2145         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2146         SYMBOL_TINY_ABSOLUTE.
2147         (aarch64_expand_mov_immediate): Likewise.
2148         (aarch64_classify_symbol): Likewise.
2149         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2150         Permit SYMBOL_TINY_ABSOLUTE.
2151         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2153 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2154             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2156         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2157         Refactor if/switch.  Replace gcc_assert with if.
2159 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2161         * config/i386/i386.c (initial_ix86_tune_features): Enable
2162         FP Reassociation for AMD bdver1 and bdver2.
2164 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2166         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2167         and IMAGPART_EXPR do not occur within other handled_components.
2169 2013-05-29  Richard Biener  <rguenther@suse.de>
2171         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2172         access on whether the use is in the BB we currently try to
2173         vectorize.
2174         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2175         vectorize to vect_bb_slp_scalar_cost.
2177 2013-05-29  Richard Biener  <rguenther@suse.de>
2179         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2180         computing scalar cost offsetted by stmts that are kept live
2181         by scalar uses.
2182         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2183         for computation of scalar cost.
2185 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2187         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2189 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2191         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2192         array notation built-in reduction functions.
2193         * doc/passes.texi (Passes): Added documentation about changes done
2194         for Cilk Plus.
2195         * doc/invoke.texi (C Dialect Options): Added documentation about
2196         the -fcilkplus flag.
2197         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2198         (BUILTINS_DEF): Depend on cilkplus.def.
2199         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2200         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2201         * cilkplus.def: New file.
2203 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2205         PR rtl-optimization/57439
2206         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2208 2013-05-28  Easwaran Raman  <eraman@google.com>
2210         PR tree-optimization/57337
2211         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2212         (find_insert_point): Correctly identify the insertion point
2213         when two statements with the same UID is compared.
2215 2013-05-28  Richard Biener  <rguenther@suse.de>
2217         PR tree-optimization/56787
2218         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2219         from the list of data references.
2220         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2221         clobbers.
2222         (vect_analyze_loop_operations): Likewise.
2223         (vect_transform_loop): Remove clobbers.
2225 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2227         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2228         and REALPART_EXPRs have scalar type.
2230 2013-05-28  Richard Biener  <rguenther@suse.de>
2232         PR tree-optimization/57411
2233         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2234         virtual operands.
2235         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2236         virtual operand propagation.
2238 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2240         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2241         destination register for bmasksi_vis.
2242         (vector_init_bshuffle): Likewise.
2243         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2245 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2247         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2248         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2249         mode if the instruction isn't available in the original mode.
2250         * config/sparc/sparc.opt (mfix-ut699): New option.
2251         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2252         (divdf3): Turn into expander.
2253         (divdf3_nofix): New insn.
2254         (divdf3_fix): Likewise.
2255         (divsf3): Disable if -mfix-ut699.
2256         (sqrtdf2): Turn into expander.
2257         (sqrtdf2_nofix): New insn.
2258         (sqrtdf2_fix): Likewise.
2259         (sqrtsf2): Disable if -mfix-ut699.
2261 2013-05-27  Richard Biener  <rguenther@suse.de>
2263         PR middle-end/57412
2264         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2265         block for the new loop.
2267 2013-05-27  Richard Biener  <rguenther@suse.de>
2269         PR tree-optimization/57343
2270         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2271         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2272         (number_of_iterations_cond): Do not build the folded tree.
2274 2013-05-27  Richard Biener  <rguenther@suse.de>
2276         Revert
2277         PR middle-end/57381
2278         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2279         OEP_CONSTANT_ADDRESS_OF retained.
2281         PR tree-optimization/57417
2282         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2283         for unchanged base.
2284         (set_ssa_val_to): Compare addresses using
2285         get_addr_base_and_unit_offset.
2287 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2289         PR rtl-optimization/56833
2290         * postreload.c (move2add_record_mode): New function.
2291         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2292         (move2add_use_add2_insn): Use move2add_record_sym_value.
2293         (move2add_use_add3_insn): Likewise.
2294         (reload_cse_move2add): Use move2add_valid_value_p and
2295         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2296         affected regs by setting reg_mode to VOIDmode.
2297         (move2add_note_store): Don't pretend the inside of a SUBREG is
2298         the actual destination.  Invalidate single/leading registers by
2299         setting reg_mode to VOIDmode.
2300         Use move2add_record_sym_value, move2add_valid_value_p and
2301         move2add_record_mode.
2303 2013-05-27  Richard Biener  <rguenther@suse.de>
2305         PR tree-optimization/57396
2306         * tree-affine.c (double_int_constant_multiple_p): Properly
2307         return false for val == 0 and div != 0.
2309 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2311         * config/mips/mips.h: Use #elif in preprocessor conditions.
2313 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2315         PR target/53916
2316         * config/mips/constraints.md (kl): New constraint.
2317         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2318         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2319         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2320         from LO for MIPS16.
2321         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2323 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2325         PR target/55777
2326         * config/mips/mips.c (mips_can_inline_p): New function.
2327         (TARGET_CAN_INLINE_P): Define.
2329 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2331         * sched-int.h (ds_t, dw_t): Make unsigned int.
2332         Fix documentation that describes how all the ds_t bits are used.
2333         Reserve the last bit for delayed-branch scheduling.
2334         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2335         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2336         (gen_dep_weak_1): Remove prototype.
2337         * sched-deps.c (get_dep_weak_1): Make static.
2338         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2339         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2340         * doc/tm.texi: Regenerate.
2341         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2343 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2345         PR debug/56950
2346         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2348 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2349             Sandra Loosemore  <sandra@codesourcery.com>
2351         * config.gcc (powerpc-*): Allow native for with-cpu.
2353 2013-05-24  Jeff Law  <law@redhat.com>
2355         PR tree-optimization/57124
2356         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2357         conversion feeding a condition if the range has an overflow
2358         if -fstrict-overflow.  Add warnings for when we do make the
2359         transformation.
2361 2013-05-24  Dehao Chen  <dehao@google.com>
2363         * tree-cfg.c (locus_discrim_map): Fix the typo.
2364         (locus_discrim_hasher): Likewise.
2365         (locus_discrim_hasher::hash): Likewise.
2366         (locus_discrim_hasher::equal): Likewise.
2368 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2370         PR tree-optimization/57294
2371         * cgraph.h (ipa_record_stmt_references): Declare.
2372         * cgraphbuild.c (ipa_record_stmt_references): New function.
2373         (build_cgraph_edges): Use ipa_record_stmt_references.
2374         (rebuild_cgraph_edges): Likewise.
2375         (cgraph_rebuild_references): Likewise.
2376         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2377         associated with the old statement and build references from the
2378         newly built statements.
2379         * ipa-ref.c (ipa_remove_stmt_references): New function.
2380         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2382 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2384         * lra-constraints.c (emit_spill_move): Use smaller mode for
2385         mem-mem moves.
2386         (check_and_process_move): Consider mem-reg moves for secondary
2387         too.
2388         (curr_insn_transform): Don't lose insns emitted before for
2389         secondary memory moves.
2390         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2391         reg set up in the current insn.
2393 2013-05-24  Dehao Chen  <dehao@google.com>
2395         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2396         hash function.
2397         (locus_descrim_hasher::equal): Likewise.
2398         (build_gimple_cfg): New discriminator assignment algorithm.
2399         (make_edges): Likewise.
2400         (next_discriminator_for_locus): Likewise.
2401         (same_line_p): Likewise.
2402         (assign_discriminators): Likewise.
2403         (make_cond_expr_edges): Likewise.
2404         (make_gimple_switch_edges): Likewise.
2405         (make_goto_expr_edges): Likewise.
2406         (make_gimple_asm_edges): Likewise.
2408 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2410         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2411         X format specifier to only display bottom 16 bits.
2412         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2413         immediate to match for operand 2, since it will be masked.
2415 2013-05-24  Richard Biener  <rguenther@suse.de>
2417         PR tree-optimization/57287
2418         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2419         all SSA names that occur in abnormal PHIs.
2421 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2423         PR tree-ssa/57385
2424         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2425         that index is not negative.
2427 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2429         PR rtl-optimization/55177
2430         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2431         (simplify_byte_swapping_operation): New.
2432         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2433         (simplify_relational_operation_1): Deal with BSWAP.
2435 2013-05-23  Richard Henderson  <rth@redhat.com>
2437         PR target/56742
2438         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2439         (ix86_reorg): Call it.
2441 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2443         PR target/57379
2444         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2445         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2446         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2448 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2450         PR debug/57351
2451         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2453 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2454             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2456         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2457         * config/aarch64/constraints.md (Usa): Remove.
2458         * doc/md.texi (AArch64 Usa): Remove.
2460 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2461             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2463         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2464         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2465         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2466         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2468 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2470         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2471         instruction (AdvSIMD).
2472         * config/aarch64/aarch64-builtins.c
2473         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2474         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2476 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2478         PR middle-end/57347
2479         * tree.h (contains_bitfld_component_ref_p): Declare.
2480         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2481         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2482         caller.
2483         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2484         not access a bit-field.  Assert all final offsets are byte-aligned.
2486 2013-05-23  Richard Biener  <rguenther@suse.de>
2488         PR tree-optimization/57380
2489         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2490         least one invariant or re-used load.
2491         * passes.c (init_optimization_passes): Move pass_phiprop before
2492         pass_forwprop.
2494 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2496         * config/aarch64/aarch64-simd.md
2497         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2499 2013-05-23  Richard Biener  <rguenther@suse.de>
2501         PR middle-end/57381
2502         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2503         OEP_CONSTANT_ADDRESS_OF retained.
2505 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2507         PR middle-end/57344
2508         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2509         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2511 2013-05-23  Richard Biener  <rguenther@suse.de>
2513         PR rtl-optimization/57341
2514         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2515         instead of true_dependence.
2517 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2519         * bb-reorder.c (branch_threshold): Make const.
2520         (exec_threshold): Ditto.
2522 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2523             Pat Haugen <pthaugen@us.ibm.com>
2524             Peter Bergner <bergner@vnet.ibm.com>
2526         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2527         documentation for the power8 crypto builtins.
2529         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2531         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2532         macros for defining power8 builtin functions.
2533         (BU_P8V_AV_2): Likewise.
2534         (BU_P8V_AV_P): Likewise.
2535         (BU_P8V_VSX_1): Likewise.
2536         (BU_P8V_OVERLOAD_1): Likewise.
2537         (BU_P8V_OVERLOAD_2): Likewise.
2538         (BU_CRYPTO_1): Likewise.
2539         (BU_CRYPTO_2): Likewise.
2540         (BU_CRYPTO_3): Likewise.
2541         (BU_CRYPTO_OVERLOAD_1): Likewise.
2542         (BU_CRYPTO_OVERLOAD_2): Likewise.
2543         (XSCVSPDP): Fix typo, point to the correct instruction.
2544         (VCIPHER): Add power8 crypto builtins.
2545         (VCIPHERLAST): Likewise.
2546         (VNCIPHER): Likewise.
2547         (VNCIPHERLAST): Likewise.
2548         (VPMSUMB): Likewise.
2549         (VPMSUMH): Likewise.
2550         (VPMSUMW): Likewise.
2551         (VPERMXOR_V2DI): Likewise.
2552         (VPERMXOR_V4SI: Likewise.
2553         (VPERMXOR_V8HI: Likewise.
2554         (VPERMXOR_V16QI: Likewise.
2555         (VSHASIGMAW): Likewise.
2556         (VSHASIGMAD): Likewise.
2557         (VPMSUM): Likewise.
2558         (VPERMXOR): Likewise.
2559         (VSHASIGMA): Likewise.
2561         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2562         __CRYPTO__ if the crypto instructions are available.
2563         (altivec_overloaded_builtins): Add support for overloaded power8
2564         builtins.
2566         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2567         support for power8 crypto builtins.
2568         (builtin_function_type): Likewise.
2569         (altivec_init_builtins): Add support for builtins that take vector
2570         long long (V2DI) arguments.
2572         * config/rs6000/crypto.md: New file, define power8 crypto
2573         instructions.
2575 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2576             Pat Haugen <pthaugen@us.ibm.com>
2577             Peter Bergner <bergner@vnet.ibm.com>
2579         * doc/invoke.texi (Option Summary): Add power8 options.
2580         (RS/6000 and PowerPC Options): Likewise.
2582         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2583         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2584         wm, wn, wr documentation.
2586         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2587         registers if direct move instructions are enabled.
2588         (wn): New constraint for no registers.
2589         (wq): New constraint for quad word even GPR registers.
2590         (wr): New constraint if 64-bit instructions are enabled.
2591         (wv): New constraint if power8 vector instructions are enabled.
2592         (wQ): New constraint for quad word memory locations.
2594         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2595         constraint for 0..15 for crypto instructions.
2596         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2597         as GPR and floating point registers.
2598         (int_reg_operand): New predicate to match only GPR registers.
2599         (base_reg_operand): New predicate to match base registers.
2600         (quad_int_reg_operand): New predicate to match even GPR registers
2601         for quad memory operations.
2602         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2603         operations in both GPR and VSX registers.
2604         (quad_memory_operand): New predicate for quad memory operations.
2605         (reg_or_indexed_operand): New predicate for direct move support.
2607         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2608         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2609         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2610         (POWERPC_MASKS): Add power8 options.
2611         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2612         various options.
2614         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2615         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2617         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2618         (-mpower8-fusion): New power8 options.
2619         (-mpower8-fusion-sign): Likewise.
2620         (-mpower8-vector): Likewise.
2621         (-mcrypto): Likewise.
2622         (-mdirect-move): Likewise.
2623         (-mquad-memory): Likewise.
2625         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2626         power8.
2627         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2628         registers.
2629         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2630         (rs6000_debug_vector_unit): Add p8_vector.
2631         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2632         definitions.  Also print fusion state.
2633         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2634         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2635         (rs6000_option_override_internal): Add support for power8.
2636         (rs6000_common_init_builtins): Add debugging for skipped builtins
2637         if -mdebug=builtin.
2638         (rs6000_adjust_cost): Add power8 support.
2639         (rs6000_issue_rate): Likewise.
2640         (insn_must_be_first_in_group): Likewise.
2641         (insn_must_be_last_in_group): Likewise.
2642         (force_new_group): Likewise.
2643         (rs6000_register_move_cost): Likewise.
2644         (rs6000_opt_masks): Likewise.
2646         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2647         power8 capable assembler, default to power7 options.
2648         (TARGET_DIRECT_MOVE): Likewise.
2649         (TARGET_CRYPTO): Likewise.
2650         (TARGET_P8_VECTOR): Likewise.
2651         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2652         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2653         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2654         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2655         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2656         (TARGET_XSCVDPSPN): Likewise.
2657         (TARGET_XSCVSPDPN): Likewsie.
2658         (TARGET_SYNC_HI_QI): Likewise.
2659         (TARGET_SYNC_TI): Likewise.
2660         (MASK_CRYPTO): Likewise.
2661         (MASK_DIRECT_MOVE): Likewise.
2662         (MASK_P8_FUSION): Likewise.
2663         (MASK_P8_VECTOR): Likewise.
2664         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2665         temporary used by some of the direct move instructions to get two FP
2666         temporary registers does not force creation of a stack frame.
2667         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2668         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2669         that any VSX registers are tieable, even if they are also an
2670         Altivec vector mode.
2671         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2672         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2673         (RS6000_BTM_CRYPTO): Likewise.
2674         (RS6000_BTM_COMMON): Likewise.
2676         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2677         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2678         (enum rs6000_vector): Add power8 vector support.
2680 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2682         PR target/19599
2683         PR target/57340
2684         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2685         (any_sibcall_could_use_r3): this and handle indirect calls.
2686         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2688 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2690         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2692 2013-05-22  Richard Biener  <rguenther@suse.de>
2694         PR middle-end/57349
2695         * profile.c (branch_prob): Do not split blocks that are
2696         abnormally receiving from ECF_RETURNS_TWICE functions.
2698 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2700         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2701         address mode.  Move pointer mode initialization to the same place.
2703 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2705         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2706         while it has any effect.
2708 2013-05-21  Easwaran Raman  <eraman@google.com>
2710         PR tree-optimization/57322
2711         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2712         UID of the statement added to the BB to be 1.
2714 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2716         PR tree-optimization/57331
2717         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2718         of conversion from pointer type to integral type with integer.
2720 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2722         PR lto/57289
2723         * ipa-prop.c (ipa_read_node_info): Process param_used and
2724         controlled_uses in the same order as when writing.
2726 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2728         PR plugins/56754
2729         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2731 2013-05-21  Richard Biener  <rguenther@suse.de>
2733         PR tree-optimization/57318
2734         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2735         estimate stmts with side-effects as likely eliminated.
2737 2013-05-21  Richard Biener  <rguenther@suse.de>
2739         PR tree-optimization/57330
2740         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2741         preserve the call stmts fntype.
2743 2013-05-21  Richard Biener  <rguenther@suse.de>
2745         PR tree-optimization/57303
2746         * tree-ssa-sink.c (statement_sink_location): Improve killing
2747         stmt detection and properly handle self-assignments.
2749 2013-05-21  Christian Bruel  <christian.bruel@st.com>
2751         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2752         spanning registers. LEAF_REG_REMAP is supported only for contiguous
2753         registers. Set register size out of the PARALLEL loop.
2755 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
2757         PR target/56547
2758         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2759         (*fmasf4, *fmasf4_media): New insns.
2761 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2763         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2764         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2765         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2766         (mips_idiv_insns): Update the comments to say that the returned
2767         instruction counts are in units of BASE_INSN_LENGTH.
2768         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2769         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
2770         using 2 rather than 4 as the length of indirect MIPS16 and
2771         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
2772         length of a NOP.  Don't divide MIPS16 lengths by 2.
2773         (mips16_split_long_branches): Assume a branch is long if the
2774         length is greater than 4 rather than 8.
2775         * config/mips/mips.md (length): Give MIPS16 lengths directly,
2776         rather than multiplying them by 2.  Multiply instruction counts
2777         by BASE_INSN_LENGTH rather than 4.
2778         (*jump_mips16, tls_get_tp_mips16_<mode>)
2779         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2781 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2783         * config/mips/mips.md (extended_mips16): Remove branch case.
2784         (length): Remove duplicated extended_mips16 test.
2786 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2788         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2790 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
2792         * recog.h (Recog_data): Rename to...
2793         (recog_data_d): ...this.
2794         (recog_data): Update accordingly.
2795         * recog.c (recog_data): Likewise.
2796         * reload.c (save_recog_data): Likewise.
2797         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2798         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2800 2013-05-17  Julian Brown  <julian@codesourcery.com>
2802         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2803         found in a REG_EQUAL note, invalidate it.
2805 2013-05-17   Easwaran Raman  <eraman@google.com>
2807         * tree-ssa-reassoc.c (find_insert_point): New function.
2808         (insert_stmt_after): Likewise.
2809         (get_def_stmt): Likewise.
2810         (ensure_ops_are_available): Likewise.
2811         (not_dominated_by): Likewise.
2812         (rewrite_expr_tree): Do not move statements beyond what is
2813         necessary. Remove call to swap_ops_for_binary_stmt...
2814         (reassociate_bb): ... and move it here.
2815         (build_and_add_sum): Assign UIDs for new statements.
2816         (linearize_expr): Likewise.
2817         (do_reassoc): Renumber gimple statement UIDs.
2819 2013-05-17  Jan Hubicka  <jh@suse.cz>
2821         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2822         weakrefs.
2823         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2824         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2825         weakrefs.
2826         (output_weakrefs): Update.
2828 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
2829             Martin Jambor  <mjambor@suse.cz>
2831         PR middle-end/57276
2832         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2833         value that corresponds to the given aggval is found in values vector.
2835 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
2837         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2838         sse, sse2, sse3, ssse3 and sse4a flags to options.
2840 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
2842         * gengtype-state.c: (s_expr_writer): New class, to handle
2843         prettifying of output layout of s-expressions.
2844         (state_writer): New class, to write out gtype.state.
2845         (state_written_type_count): Move this variable into member data of
2846         state_writer.
2847         (s_expr_writer::s_expr_writer): New code: constructor for new class
2848         (state_writer::state_writer(): ditto
2849         (s_expr_writer::write_new_line): New function
2850         (s_expr_writer::write_any_indent): ditto
2851         (s_expr_writer::begin_s_expr): ditto
2852         (s_expr_writer::end_s_expr): ditto
2853         (write_state_fileloc): convert to method of state_writer...
2854         (state_writer:: write_state_fileloc): ...and use methods of
2855         s_expr_writer to write indentation into the gtype.state output file
2856         to visually represent the hierarchical structure of the list
2857         structures
2858         (write_state_fields): ditto, renaming to...
2859         (state_writer::write_state_fields)
2860         (write_state_a_string): ditto, renaming to...
2861         (state_writer::write_state_a_string)
2862         (write_state_string_option): ditto, renaming to...
2863         (state_writer::write_state_string_option)
2864         (write_state_type_option): ditto, renaming to...
2865         (state_writer::write_state_type_option)
2866         (write_state_nested_option): ditto, renaming to...
2867         (state_writer::write_state_nested_option)
2868         (write_state_option): ditto, renaming to...
2869         (state_writer::write_state_option)
2870         (write_state_options): ditto, renaming to...
2871         (state_writer::write_state_options)
2872         (write_state_lang_bitmap): ditto, renaming to...
2873         (state_writer::write_state_lang_bitmap)
2874         (write_state_version): ditto, renaming to...
2875         (state_writer::write_state_version)
2876         (write_state_scalar_type): ditto, renaming to...
2877         (state_writer::write_state_scalar_type)
2878         (write_state_string_type): ditto, renaming to...
2879         (state_writer::write_state_string_type)
2880         (write_state_undefined_type): ditto, renaming to...
2881         (state_writer::write_state_undefined_type)
2882         (write_state_struct_union_type): ditto, renaming to...
2883         (state_writer::write_state_struct_union_type)
2884         (write_state_struct_type): ditto, renaming to...
2885         (state_writer::write_state_struct_type)
2886         (write_state_user_struct_type): ditto, renaming to...
2887         (state_writer::write_state_user_struct_type)
2888         (write_state_lang_struct_type): ditto, renaming to...
2889         (state_writer::write_state_lang_struct_type)
2890         (write_state_param_struct_type): ditto, renaming to...
2891         (state_writer::write_state_param_struct_type)
2892         (write_state_pointer_type): ditto, renaming to...
2893         (state_writer::write_state_pointer_type)
2894         (write_state_array_type): ditto, renaming to...
2895         (state_writer::write_state_array_type)
2896         (write_state_gc_used): ditto, renaming to...
2897         (state_writer::write_state_gc_used)
2898         (write_state_common_type_content): ditto, renaming to...
2899         (state_writer::write_state_common_type_content)
2900         (write_state_type): ditto, renaming to...
2901         (state_writer::write_state_type)
2902         (write_state_pair_list): ditto, renaming to...
2903         (state_writer::write_state_pair_list)
2904         (write_state_pair): ditto, renaming to...
2905         (state_writer::write_state_pair)
2906         (write_state_typedefs): ditto, renaming to...
2907         (state_writer::write_state_typedefs)
2908         (write_state_structures): ditto, renaming to...
2909         (state_writer::write_state_structures)
2910         (write_state_param_structs): ditto, renaming to...
2911         (state_writer::write_state_param_structs)
2912         (write_state_variables): ditto, renaming to...
2913         (state_writer::write_state_variables)
2914         (write_state_srcdir): ditto, renaming to...
2915         (state_writer::write_state_srcdir)
2916         (write_state_files_list): ditto, renaming to...
2917         (state_writer::write_state_files_list)
2918         (write_state_languages): ditto, renaming to...
2919         (state_writer::write_state_languages)
2920         (write_state): create a state_writer instance and use it when
2921         writing out the state file
2923 2013-05-17  Mike Stump  <mikestump@comcast.net>
2925         PR rtl-optimization/57304
2926         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2927         accessing DF_REF_REAL_LOC.
2929 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2931         PR rtl-optimization/57281
2932         PR rtl-optimization/57300
2933         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2934         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2935         what the other splitter did if the registers are dead.
2937 2013-05-17  Richard Biener  <rguenther@suse.de>
2939         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2940         MEM_REF offsets.
2942 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2944         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2945         linking.
2947 2013-05-17  Marek Polacek  <polacek@redhat.com>
2949         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2950         length when doing non-zero store of storing '\0' to '\0'.
2952 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2954         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2955         vect_external_def oprnd1 with loop_vinfo, try to emit
2956         optional cast, negation and and stmts on the loop preheader
2957         edge instead of into the pattern def seq.
2959         PR tree-optimization/57051
2960         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2961         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2963 2013-05-16  Nick Clifton  <nickc@redhat.com>
2965         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2966         (rl78_is_naked_func): New function.
2967         (rl78_expand_prologue): Skip prologue generation for naked functions.
2968         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2969         * doc/extend.texi (naked): Add RL78 to the list of processors
2970         that supports this attribute.
2972 2013-05-16  Jeff Law  <law@redhat.com>
2974         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2976 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2978         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2979         cache parameters using detect_caches_amd also for CYRIX,
2980         NSC and TM2 signatures.
2982 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2983             Dzianis Kahanovich  <mahatma@eu.by>
2985         PR target/45359
2986         PR target/46396
2987         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2988         VIA/Centaur processors and determine their cache parameters
2989         using detect_caches_amd.
2991 2013-05-16  Teresa Johnson  <tejohnson@google.com>
2993         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2994         (rtl_verify_edges): New function.
2995         (rtl_verify_bb_insns): Ditto.
2996         (rtl_verify_bb_pointers): Ditto.
2997         (rtl_verify_bb_insn_chain): Ditto.
2998         (rtl_verify_fallthru): Ditto.
2999         (rtl_verify_bb_layout): Ditto.
3000         (rtl_verify_flow_info_1): Outline checks into new functions.
3001         (rtl_verify_flow_info): Ditto.
3003 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3005         * cfghooks.c (copy_bbs): Add update_dominance argument.
3006         * cfghooks.h (copy_bbs): Update prototype.
3007         * tree-cfg.c (gimple_duplicate_sese_region):
3008         Add update_dominance argument.
3009         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3010         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3011         gimple_duplicate_sese_region call.
3012         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3013         Update copy_bbs call.
3014         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3015         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3017 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3019         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3020         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3021         vect_recog_rotate_pattern.
3022         (vect_recog_rotate_pattern): New function.
3024 2013-05-16  Jason Merrill  <jason@redhat.com>
3026         * Makefile.in (LLINKER): New variable.
3027         (mostlyclean): Remove link mutex.
3028         * configure.ac: Handle --enable-link-mutex.
3029         * lock-and-run.sh: New script.
3031 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3033         PR target/19599
3034         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3035         for NULL decl.
3037 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3039         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3041 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3043         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3044         * config/arm/arm.c (next_consecutive_mem): New function.
3045         (gen_movmem_ldrd_strd): Likewise.
3046         * config/arm/arm.md (movmemqi): Update condition and code.
3047         (unaligned_loaddi, unaligned_storedi): New patterns.
3049 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3051         * config.gcc: Obsolete *-*-solaris2.9*.
3052         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3054 2013-05-16  Richard Biener  <rguenther@suse.de>
3056         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3057         earlier, after GRAPHITE transforms and IV canonicalization.
3059 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3061         * omp-low.c (extract_omp_for_data): For collapsed loops,
3062         if at least one of the loops is known at compile time to
3063         iterate zero times, set count to 0.
3064         (expand_omp_regimplify_p): New function.
3065         (expand_omp_for_generic): For collapsed loops, if at least
3066         one of the loops isn't known to iterate at least once,
3067         add runtime check with setting count to 0.
3068         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3069         For unsigned types if it isn't known at compile time that
3070         the loop will iterate at least once, add runtime check to bypass
3071         the whole loop if initial condition isn't true.
3073 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3075         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3077 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3079         PR middle-end/57286
3080         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3081         transformations to avoid an infinite loop.
3083 2013-05-16  Marek Polacek  <polacek@redhat.com>
3085         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3087 2013-05-15  Leif Ekblad  <leif@rdos.net>
3089         * config/i386/i386.c (ix86_decompose_address): Use
3090         DEFAULT_TLS_SEG_REG to access TLS segment register.
3091         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3092         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3093         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3095 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3097         PR target/57260
3098         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3099         sibling calls to functions that would normally be lazily bound,
3100         unless $gp is call-clobbered.
3102 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3104         * config/i386/i386.c (ix86_option_override_internal): Update
3105         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3106         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3107         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3108         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3109         of TARGET_3DNOW.
3110         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3112 2013-05-15  Andreas Schwab  <schwab@suse.de>
3114         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3115         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3116         third operand.
3118 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3120         * loop-unroll.c (report_unroll_peel): Check decision before
3121         emitting unroll/peel message.
3123 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3125         * function.h (has_bb_partition): New rtl_data flag.
3126         (bb_reorder_complete): Ditto.
3127         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3128         instead of flag_reorder_blocks_and_partition.
3129         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3130         with some enhancements.
3131         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3132         * bb-reorder.c (connect_traces): Check for has_bb_partition
3133         instead of flag_reorder_blocks_and_partition.
3134         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3135         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3136         verify_hot_cold_block_grouping.
3137         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3139 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3141         PR target/19599
3142         * config/arm/predicates.md (call_insn_operand): New predicate.
3143         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3144         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3145         if insn is not a tail call.
3146         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3147         registers.
3148         * config/arm/arm.h (enum reg_class): New caller save register class.
3149         (REG_CLASS_NAMES): Likewise.
3150         (REG_CLASS_CONTENTS): Likewise.
3151         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3152         without decls.
3154 2013-05-15  Richard Biener  <rguenther@suse.de>
3156         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3157         of MSG_OPTIMIZED_LOCATIONS.
3158         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3159         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3160         message.
3161         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3162         of MSG_OPTIMIZED_LOCATIONS.
3163         (execute_vect_slp): Likewise.
3164         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3165         (vect_create_cond_for_alias_checks): Likewise.
3166         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3167         (vect_recog_widen_mult_pattern): Likewise.
3168         (vect_recog_widen_sum_pattern): Likewise.
3169         (vect_recog_over_widening_pattern): Likewise.
3170         (vect_recog_widen_shift_pattern): Likewise.
3171         (vect_recog_vector_vector_shift_pattern): Likewise.
3172         (vect_recog_divmod_pattern): Likewise.
3173         (vect_recog_mixed_size_cond_pattern): Likewise.
3174         (vect_recog_bool_pattern): Likewise.
3175         (vect_pattern_recog_1): Likewise.
3177 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3179         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3180         non-functions to builtin_unreachable.
3181         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3182         correct when new direct edges were discovered.
3184 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3186         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3187         header, print symbol order instead of node uid, print more information
3188         about indirect edge targets.
3189         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3190         uids.
3191         (ipa_make_edge_direct_to_target): Likewise.
3192         (remove_described_reference): Likewise.
3193         (propagate_controlled_uses): Likewise.
3194         (ipa_print_node_params): Also print symbol order.
3195         (ipcp_transform_function): Print symbol order instead of node uids.
3196         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3197         (cgraph_get_create_real_symbol_node): Likewise.
3198         * ipa-cp.c (print_lattice): Likewise.
3199         (print_all_lattices): Likewise.
3200         (determine_versionability): Likewise.
3201         (initialize_node_lattices): Likewise.
3202         (estimate_local_effects): Likewise.
3203         (update_profiling_info): Likewise.
3204         (create_specialized_node): Likewise.
3205         (perhaps_add_new_callers): Likewise.
3206         (decide_about_value): Likewise.
3207         (decide_whether_version_node): Likewise.
3208         (identify_dead_nodes): Likewise.
3209         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3210         (dump_inline_summary): Likewise.
3211         (estimate_node_size_and_time): Likewise.
3212         (inline_analyze_function): Likewise.
3213         * ipa-inline.c (report_inline_failed_reason): Likewise.
3214         (want_early_inline_function_p): Likewise.
3215         (edge_badness): Likewise.
3216         (update_edge_key): Likewise.
3217         (inline_small_functions): Likewise.  Add dumping of order to two other
3218         dumps.
3219         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3220         instead of node uids.
3221         (propagate_pure_const): Likewise.
3222         (propagate_pure_const): Likewise.
3223         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3224         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3225         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3226         of node uids.
3227         * tree-pretty-print.c (dump_function_header): Likewise.
3228         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3229         Print symbol order instead of node uids.
3231 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3233         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3234         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3236 2013-05-15  Richard Biener  <rguenther@suse.de>
3238         PR tree-optimization/57275
3239         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3240         return value for fail to do runtime alias checks for gather loads.
3242 2013-05-15  Jan Hubicka  <jh@suse.cz>
3244         PR lto/57038
3245         PR lto/47375
3246         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3247         weakrefs are not external.
3248         (lto_symtab_merge_decls): Fix thinko when dealing with
3249         non-lto_symtab decls.
3250         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3251         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3252         * varpool.c (dump_varpool_node): Dump more flags.
3254 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3256         * config/i386/i386.c (processor_alias_table): Add instruction
3257         FSGSBASE for AMD bdver3 architecture.
3259 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3261         * tree.c (warn_deprecated_use): Print file:line using locus color.
3262         * diagnostic.c (diagnostic_report_current_module): Print file:line
3263         and file:line:column using locus color.
3265 2013-05-14  Mike Stump  <mikestump@comcast.net>
3267         * gdbinit.in: Add __null.
3269 2013-05-14  Mike Stump  <mikestump@comcast.net>
3271         * recog.h: Rename struct recog_data to Recog_data.
3272         * recog.c: Likewise.
3273         * reload.c (can_reload_into): Likewise.
3274         * config/picochip/picochip.c: Likewise.
3276 2013-05-14  Mike Stump  <mikestump@comcast.net>
3278         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3280 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3282         * resource.h (struct resources): Remove unch_memory member.
3283         (CLEAR_RESOURCE): Don't clear unch_memory.
3284         * resource.c (mark_referenced_resources): Don't set it.
3285         (mark_set_resources): Likewise.
3286         (mark_target_live_regs): Don't clear it.
3287         (init_resource_info): Likewise.
3288         * reorg.c (resource_conflicts_p): Don't compare it.
3289         (redundant_insn): Don't set it.
3291         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3292         Remove prototypes.
3293         * emit-rtl.c (next_label): Remove unused function.
3294         (skip_consecutive_labels, link_cc0_insns): Move to ...
3295         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3296         only place where these functions are used, and make them static.
3298 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3300         * fold-const.c (fold_negate_expr): Handle vectors.
3301         (fold_truth_not_expr): Make it static.
3302         (fold_invert_truthvalue): New static function.
3303         (invert_truthvalue_loc): Handle vectors. Do not call
3304         fold_truth_not_expr directly.
3305         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3306         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3307         (fold_comparison): Handle vector constants.
3308         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3309         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3310         * tree.h (fold_truth_not_expr): Remove declaration.
3312 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3314         * config/aarch64/aarch64-simd.md
3315         (aarch64_vcond_internal<mode>): Rename to...
3316         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3317         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3318         float modes. Clarify all iterator modes.
3319         (vcond<mode><mode>): Use new name for vcond expanders.
3320         (vcond<v_cmp_result><mode>): Likewise.
3321         (vcondu<mode><mode>: Likewise.
3322         * config/aarch64/iterators.md (VDQF_COND): New.
3324 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3326         PR bootstrap/57266
3327         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3328         variable for the shift amount. Check that we shift by non-negative
3329         amounts.
3331 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3333         PR target/42017
3334         * config/arm/arm.h (EPILOGUE_USES): Only return true
3335         for LR_REGNUM after epilogue_completed.
3337 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3339         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3340         is error_mark_node.
3342 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3344         PR target/57261
3345         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3346         and Solaris 11+/x86 with gld.
3347         * configure: Regenerate.
3349 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3351         * expmed.c (expand_shift_1): Canonicalize rotates by
3352         constant bitsize / 2 to bitsize - 1.
3353         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3354         case ROTATERT>: Likewise.
3356         Revert:
3357         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3359         * config/i386/i386.md (rotateinv): New code attr.
3360         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3361         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3362         roll $31, %eax, etc.
3364 2013-05-14  Richard Biener  <rguenther@suse.de>
3366         PR middle-end/57235
3367         * tree-eh.c (sink_clobbers): Give up for successors with
3368         multiple predecessors and no virtual uses.
3370 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3372         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3373         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3375 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3377         PR middle-end/57251
3378         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3379         the case when both op0 and op1 have VOIDmode.
3381 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3383         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3384         in multiply-accumulate mode.
3386 2013-05-13  Guozhi Wei  <carrot@google.com>
3388         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3390 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3392         PR target/56975
3393         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3394         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3395         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3396         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3397         (ix86_expand_prologue): Likewise.
3398         (ix86_expand_split_stack_prologue): Likewise.
3399         (legitimate_pic_address_disp_p): Likewise.
3400         (legitimize_pic_address): Likewise.
3401         (legitimize_tls_address): Likewise.
3402         (legitimize_pe_coff_symbol): Likewise.
3403         (output_pic_addr_const): Likewise.
3404         (construct_plt_address): Likewise.
3405         (ix86_expand_call): Likewise.
3406         (x86_output_mi_thunk): Likewise.
3407         (x86_function_profiler): Likewise.
3409 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3411         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3412         similar switch cases.
3413         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3414         (aarch64_simd_mov_to_<mode>low): Delete.
3415         (aarch64_simd_mov_to_<mode>high): Delete.
3416         (move_lo_quad_<mode>): Add w<-r alternative.
3417         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3418         (aarch64_simd_mov_from_*): Update type attribute.
3419         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3420         statement.
3422 2013-05-13  Jan Hubicka  <jh@suse.cz>
3424         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3425         * config/i386/i386.c (ix86_compute_frame_layout,
3426         ix86_expand_epilogue, emit_i387_cw_initialization,
3427         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3428         ix86_local_alignment): Fix use of size/speed predicates.
3430 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3432         PR tree-optimization/45216
3433         PR tree-optimization/57157
3434         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3435         the (-Y) & (B - 1) variant if OP is |.
3436         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3437         return shifted.  Use (-op1) & (prec - 1) as other_amount
3438         instead of prec - op1.
3440 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3442         PR middle-end/42371
3443         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3444         (ipa_constant_data): New type.
3445         (ipa_jump_func): Use ipa_constant_data to hold information about
3446         constant jump functions.
3447         (ipa_get_jf_constant): Adjust to jump function type changes.
3448         (ipa_get_jf_constant_rdesc): New function.
3449         (ipa_param_descriptor): New field controlled_uses.
3450         (ipa_get_controlled_uses): New function.
3451         (ipa_set_controlled_uses): Likewise.
3452         * ipa-ref.h (ipa_find_reference): Declare.
3453         * ipa-prop.c (ipa_cst_ref_desc): New type.
3454         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3455         changes.
3456         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3457         New parameter cs.  Adjust all callers.
3458         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3459         (remove_described_reference): New function.
3460         (jfunc_rdesc_usable): Likewise.
3461         (try_make_edge_direct_simple_call): Decrement controlled use count,
3462         attempt to remove reference if it hits zero.
3463         (combine_controlled_uses_counters): New function.
3464         (propagate_controlled_uses): Likewise.
3465         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3466         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3467         (ipa_print_node_params): Print described use counter.
3468         (ipa_write_jump_function): Adjust to jump function type changes.
3469         (ipa_read_jump_function): New parameter CS, pass it to
3470         ipa_set_jf_constant.  Adjust caller.
3471         (ipa_write_node_info): Stream controlled use count
3472         (ipa_read_node_info): Likewise.
3473         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3474         asserting.
3475         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3476         count.  Remove cloning-added reference if it reaches zero.
3477         * ipa-ref.c (ipa_find_reference): New function.
3479 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3481         * config/i386/i386.c (processor_target_table): Modified default
3482         alignment values for AMD BD and BT architectures.
3484 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3486         * tree-vect-generic.c (uniform_vector_p): Move ...
3487         * tree.c (uniform_vector_p): ... here.
3488         * tree.h (uniform_vector_p): Declare it.
3489         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3490         into a scalar.
3492 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3494         PR tree-optimization/57230
3495         * tree-ssa-strlen.c (handle_char_store): Record length for
3496         array store from STRING_CST.
3498         PR tree-optimization/57230
3499         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3500         check.
3502 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3504         * config/epiphany/epiphany.c (epiphany_init): Check size of
3505         NUM_MODES_FOR_MODE_SWITCHING.
3506         (epiphany_expand_prologue):
3507         Remove CONFIG_REGNUM initial value handling code.
3508         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3509         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3510         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3511         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3512         Don't return 1 for FP_MODE_NONE.
3513         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3514         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3515         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3516         * config/epiphany/epiphany.md (save_config): New pattern.
3518 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3520         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3522 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3524         * config/i386/i386.md (memory): Handle sseishft1.
3525         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3526         (*vec_extractv2di_1): Ditto.
3528 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3530         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3531         saved registers.
3533 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3535         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3536         Add mthumb/march=armv7-a multilib.
3537         Add mthumb/march=armv7-r multilib.
3538         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3540 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3542         * config/v850/t-rtems: Add more multilibs.
3544 2013-05-10  Richard Biener  <rguenther@suse.de>
3546         PR tree-optimization/57214
3547         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3548         not propagate from SSA names that occur in abnormal PHI nodes.
3550 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3552         * stor-layout.c (element_precision): New function.
3553         * machmode.h (element_precision): Declare it.
3554         * tree.c (build_minus_one_cst): New function.
3555         (element_precision): Likewise.
3556         * tree.h (build_minus_one_cst): Declare new function.
3557         (element_precision): Likewise.
3558         * fold-const.c (operand_equal_p): Use element_precision.
3559         (fold_binary_loc): Handle vector types.
3560         * convert.c (convert_to_integer): Use element_precision.
3561         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3562         separately.
3564 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3566         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3567         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3568         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3569         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3570         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3571         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3572         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3573         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3574         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3575         (Uuw8): New constraints.
3576         (Usb4): Move into alphabetical order.
3577         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3578         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3579         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3580         previously unnamed patterns.
3581         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3582         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3583         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3584         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3585         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3586         of specific lengths.
3588 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3590         * config/i386/i386.md (rotateinv): New code attr.
3591         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3592         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3593         roll $31, %eax, etc.
3595         PR tree-optimization/45216
3596         PR tree-optimization/57157
3597         * tree-ssa-forwprop.c (simplify_rotate): New function.
3598         (ssa_forward_propagate_and_combine): Call it.
3600 2013-05-10  Richard Biener  <rguenther@suse.de>
3602         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3603         disable peeling when we version for aliasing.
3604         (vector_alignment_reachable_p): Honor explicit user alignment.
3605         (vect_supportable_dr_alignment): Likewise.
3606         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3607         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3608         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3609         then peeling to arrange for the cost-model check to come first.
3611 2013-05-10  Alan Modra  <amodra@gmail.com>
3613         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3614         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3615         * configure: Regenerate.
3617 2013-05-10  Alan Modra  <amodra@gmail.com>
3619         PR target/55033
3620         * varasm.c (default_elf_select_section): Move !DECL_P check..
3621         (get_named_section): ..to here before calling get_section_name.
3622         Adjust assertion.
3623         (default_section_type_flags): Add DECL_P check.
3624         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3625         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3627 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3629         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3630         When using gen_stack_adjust_str with a register offset, add a
3631         REG_FRAME_RELATED_EXPR note.
3633 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3635         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3636         (*vec_extractv4si_zext_mem): Ditto.
3637         (*vec_extractv2di): Add 0->x and x->x alternatives.
3638         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3639         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3641 2013-05-09  Jason Merrill  <jason@redhat.com>
3643         N3639 C++1y VLA support
3644         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3645         DECL_VALUE_EXPR.
3647         * tree.c (build_constructor_va): New.
3648         * tree.h: Declare it.
3650 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3652         PR lto/57084
3653         * gimple-fold.c (canonicalize_constructor_val): Call
3654         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3656 2013-05-09  Jan Hubicka  <jh@suse.cz>
3657             Richard Biener  <rguenther@suse.de>
3659         PR lto/54095
3660         * symtab.c (symtab_make_decl_local): Do not add private names.
3662 2013-05-09  Jan Hubicka  <jh@suse.cz>
3664         PR lto/54095
3665         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3666         (unlink_from_assembler_name_hash): Likewise.
3667         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3668         symtab_unregister_node, symtab_initialize_asm_name_hash,
3669         change_decl_assembler_name): Update.
3671 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3673         * config/aarch64/aarch64.md: New movtf split.
3674         (*movtf_aarch64): Update.
3675         (aarch64_movdi_tilow): Handle TF modes and rename to
3676         aarch64_movdi_<mode>low.
3677         (aarch64_movdi_tihigh): Handle TF modes and rename to
3678         aarch64_movdi_<mode>high
3679         (aarch64_movtihigh_di): Handle TF modes and rename to
3680         aarch64_mov<mode>high_di
3681         (aarch64_movtilow_di): Handle TF modes and rename to
3682         aarch64_mov<mode>low_di
3683         (aarch64_movtilow_tilow): Remove spurious whitespace.
3684         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3685         splits.
3686         (aarch64_print_operand): Update.
3688 2013-05-09  Alan Modra  <amodra@gmail.com>
3690         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3691         powerpc64le.
3692         * configure: Regenerate.
3694 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3696         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3697         splitter preparation statements.
3698         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3699         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3700         adjust_address_nv.
3702 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3704         * gimple-ssa-strength-reduction.c (count_candidates): Change
3705         return value to int.
3706         (analyze_candidates_and_replace): Change type of length to int.
3708 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3710         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3711         (*vec_extract<mode>): Use VI12_128 mode iterator.
3712         (*vec_extract<mode>_mem): Ditto.
3713         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3714         attribute.
3716 2013-05-08  Diego Novillo  <dnovillo@google.com>
3718         PR bootstrap/54659
3720         Revert:
3721         2012-08-17  Diego Novillo  <dnovillo@google.com>
3723         PR bootstrap/54281
3724         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3725         * config.in: Regenerate.
3726         * configure: Regenerate.
3727         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3729 2013-05-08  Jan Hubicka  <jh@suse.cz>
3731         PR lto/54095
3732         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3733         * cgraph.h (symtab_node_base): Add unique_name.
3734         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3735         input_overwrite_node, input_varpool_node): Stream unique_name.
3736         * cgraphclones.c (cgraph_create_virtual_clone,
3737         cgraph_function_versioning): Set unique_name.
3738         * ipa.c (function_and_variable_visibility): Set unique_name.
3740 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3742         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3743         (alloc_cand_and_find_basis): Restrict conditional candidate
3744         processing to CAND_MULTs.
3746 2013-05-08  Jan Hubicka  <jh@suse.cz>
3748         PR lto/54095
3749         lto-symtab.c (lto_symtab_symbol_p): New function.
3750         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3751         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3752         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3753         Skip static symbols.
3755 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
3757         PR tree-optimization/57200
3758         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3759         Only call inform if the preceding warning_at returns true.
3761 2013-05-07  Han Shen  <shenhan@google.com>
3763         * cfgexpand.c (record_or_union_type_has_array_p): New function.
3764         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3765         * common.opt (fstack-protector-strong): New option.
3766         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3767         * doc/invoke.texi (Optimization Options): Document
3768         "-fstack-protector-strong".
3769         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3771 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3773         * config/mips/mips.c (mips_machine_reorg2): Return 0.
3775 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
3777         * ira.c (update_equiv_regs): Add insn having equiv memory even if
3778         it is not lhs of the insn.
3779         (setup_reg_equiv): Remove insn having equiv memory which it is not
3780         lhs of the insn.
3781         * lra-constraints.c (process_address): Try to improve generation
3782         code for address base + disp.
3783         (lra_constraints): Make correct the code for checking insn setting
3784         up backward equivalence.  Remove insn only if it is in the init
3785         insn list.
3786         * lra-eliminations.c (update_reg_eliminate): Change return value.
3787         (lra_eliminate): Use the result.
3789 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
3791         * config/i386/sse.md (ssescalarnummask): New mode attribute.
3792         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3793         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3794         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3795         register target operands.
3796         (*vec_extractv8hi_sse2): New pattern.
3797         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3798         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3799         (*vec_extract<mode>_mem): New insn and split pattern.
3801 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
3803         * config/arm/arm.c (arm_asan_shadow_offset): New function.
3804         (TARGET_ASAN_SHADOW_OFFSET): Define.
3805         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3806         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3808 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3810         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3811         (incr_vec_index): Return -1 if increment not found.
3812         (create_add_on_incoming_edge): Assert if increment not found.
3813         (record_increment): Limit number of increments recorded.
3814         (all_phi_incrs_profitable): Return false if an increment not found.
3815         (replace_profitable_candidates): Don't process increments that were
3816         not recorded.
3817         (analyze_candidates_and_replace): Limit size of incr_vec.
3819 2013-05-07  Richard Biener  <rguenther@suse.de>
3821         * calls.c (special_function_p): setjmp-like functions are leaf.
3822         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3823         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3825 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
3827         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3828         (aarch64_simd_mov<mode>): New expander.
3829         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3830         (aarch64_simd_mov_to_<mode>high): Likewise.
3831         (aarch64_simd_mov_from_<mode>low): Likewise.
3832         (aarch64_simd_mov_from_<mode>high): Likewise.
3833         (aarch64_dup_lane<mode>): Update.
3834         (aarch64_dup_lanedi): New instruction pattern.
3835         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3836         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3838 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3840         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3841         (replace_mult_candidate): Remove unnecessary argument; remove
3842         unnecessary parameter from call to introduce_cast_before_cand.
3843         (replace_unconditional_candidate): Remove unnecessary parameter
3844         from call to replace_mult_candidate.
3845         (replace_conditional_candidate): Likewise.
3846         (insert_initializers): Use make_temp_ssa_name.
3847         (introduce_cast_before_cand): Remove unnecessary argument; use
3848         make_temp_ssa_name.
3849         (replace_one_candidate): Remove unnecessary argument; remove
3850         unnecessary parameter from calls to introduce_cast_before_cand.
3851         (replace_profitable_candidates): Remove unnecessary parameters
3852         from calls to replace_one_candidate.
3854 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3856         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3857         phi def as possibly hiding a basis for a CAND_ADD whose operands
3858         have been commuted in the analysis.
3859         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3861 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3863         * config/aarch64/aarch64.md
3864         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3865         shift value between 0-4.
3867 2013-05-07  Richard Biener  <rguenther@suse.de>
3869         * double-int.h (rshift): New overload.
3870         * double-int.c (rshift): New function.
3871         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3872         (create_reference_ops_from_ref): Remove.
3873         (vn_reference_insert): Use shared ops for constructing the
3874         reference and copy it.
3876 2013-05-07  Richard Biener  <rguenther@suse.de>
3878         PR middle-end/57190
3879         * tree-eh.c (sink_clobbers): Properly propagate
3880         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3882 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
3884         PR tree-optimization/57149
3885         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3886         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3887         collect_phi_def_edges, execute_late_warn_uninitialized): Use
3888         uninit_undefined_value_p instead of ssa_undefined_value_p.
3890         PR debug/57184
3891         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3892         for modifier == EXPAND_INITIALIZER.
3894 2013-05-07  Anton Blanchard  <anton@samba.org>
3896         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3897         for powerpc64 little endian.
3898         * configure: Regenerate.
3900 2013-05-06  Graham Stott  <grahams@btinternet.com>
3902         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3903         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3904         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3905         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3907 2013-05-06  Graham Stott  <grahams@btinternet.com>
3909         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3910         codes which allow non-lvalues.
3912 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
3914         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3915         components are all 1s.
3916         (integer_minus_onep): New function.
3917         * tree.h (integer_minus_onep): Declare it.
3918         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3919         integer_minus_onep instead of integer_all_onesp.
3921 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3923         PR target/52933
3924         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3925         variations of these patterns.
3927 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3929         * config/i386/i386.md (isa): Add x64_sse4 member.
3930         (enabled): Handle x64_sse4.
3931         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3932         instruction for 64bit SSE4_1 targets.  Update insn attributes.
3933         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3934         instruction for SSE4_1 targets.  Update insn attributes.
3935         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3936         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3937         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3938         const_1 selector.
3939         (*vec_extractv4si): Rename from *sse4_1_pextrd.
3940         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3941         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3943 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3945         PR target/57108
3946         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3948 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
3950         * final.c (do_assembler_dialects): Don't handle curly braces and
3951         vertical bar escaped by % as dialect delimiters.
3952         (output_asm_insn): Print curly braces and vertical bar if escaped
3953         by % and ASSEMBLER_DIALECT defined.
3954         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3955         * doc/tm.texi: Regenerated.
3957 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3959         * config/mips/mips.c: Include tree-pass.h.
3960         (mips_reorg): Split in pre- and post-dbr_schedule parts.
3961         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3962         (pass_mips_machine_reorg2): New machine specific pass.
3963         (insert_pass_mips_machine_reorg2): New pass plugin definition.
3964         (mips_option_override): Register the new pass.
3965         * rtl.h (cleanup_barriers): Remove prototype.
3966         (dbr_schedule): Likewise.
3967         * jump.c (cleanup_barriers): Make static.
3968         * reorg.c (dbr_schedule): Likewise.
3970 2013-05-06  Richard Biener  <rguenther@suse.de>
3972         PR tree-optimization/57185
3973         * tree-parloops.c (add_field_for_reduction): Handle anonymous
3974         SSA names properly.
3976 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3978         PR target/57106
3979         * config/i386/i386.c (add_parameter_dependencies): Add dependence
3980         between "first_arg" and "insn", not "last" and "insn".
3982 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3984         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3985         (find_candidates_in_block): Re-enable slsr_process_phi.
3986         (create_phi_basis): Fix double counting of candidate adjustment.
3988 2013-05-06  Richard Biener  <rguenther@suse.de>
3990         PR middle-end/57147
3991         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3992         the edge is also fallthru, preserve it and just clear the
3993         abnormal flag.
3994         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3995         also complex, preserve that and just clear the fallthru flag.
3996         * tree-inline.c (update_ssa_across_abnormal_edges): Also
3997         update virtual operands.
3999 2013-05-06  Alan Modra  <amodra@gmail.com>
4001         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4002         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4003         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4004         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4005         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4006         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4008 2013-05-06  Alan Modra  <amodra@gmail.com>
4010         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4011         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4012         (DEFAULT_ASM_ENDIAN): Define.
4013         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4014         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4015         Update -K PIC clause from sysv4.h.
4016         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4017         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4019 2013-05-06  Alan Modra  <amodra@gmail.com>
4021         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4022         twice for little-endian.
4023         (ashrdi3_no_power, ashrdi3): Support little-endian.
4025 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4027         PR target/55303
4028         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4029         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4030         related expanders.
4031         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4032         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4033         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4034         New predicates.
4036 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4037             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4039         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4040         * config/pa/pa.opt: Make mbig-switch a no-op.
4041         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4042         (CASE_VECTOR_MODE): Always return SImode.
4043         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4044         for the !TARGET_BIG_SWITCH case.
4045         * config/pa/pa-linux.h: Likewise.
4046         * config/pa/pa-openbsd.h: Likewise.
4047         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4048         * config/pa/pa.md (short_jump): Remove define_insn.
4049         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4050         (casesi0): Remove define_insn.
4051         (type): Remove btable_branch.
4052         (pa_combine_type): Likewise.
4053         (in_nullified_branch_delay): Likewise.
4054         (in_call_delay): Likewise.
4055         (define_delay): Likewise.
4056         (define_insn_reservation "Z3"): Likewise.
4057         (define_insn_reservation "Z4"): Likewise.
4058         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4059         (pa_adjust_insn_length): Remove adjustment for btable branches.
4060         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4061         and mno-big-switch
4063 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4065         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4066         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4067         Add m->r,x alternatives.
4068         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4069         splitters using SWI48x mode iterator.
4070         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4071         TARGET_64BIT.  Add m->x alternative.
4072         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4073         Add o->x alternative.  Enable for TARGET_SSE.
4074         (sse_storeq): Remove expander.
4075         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4076         with memory input operand.
4077         (*vec_extractv2di_1 splitter): New.
4078         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4079         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4081 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4083         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4084         (INT_LOWPART): Delete.
4085         (extract_MB): Adjust.
4086         (extract_ME): Adjust.
4087         (print_operand): Adjust.
4089 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4091         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4092         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4093         (reg_or_logical_cint_operand, easy_fp_constant,
4094         logical_const_operand): Delete "CONST_DOUBLE" case.
4095         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4096         "HOST_BITS_PER_WIDE_INT == 64" test.
4097         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4098         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4099         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4100         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4101         test.
4102         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4103         CONST_DOUBLE DImode/VOIDmode case.
4104         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4105         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4106         CONST_DOUBLE VOIDmode case.
4107         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4108         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4109         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4110         Delete CONST_DOUBLE case.
4111         (splitters for mov FMOVE64 const_double): Delete
4112         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4113         "HOST_BITS_PER_WIDE_INT >= 64" test.
4114         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4115         case.
4116         (mov DI const_double): Delete.
4118 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4120         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4121         on op shows all bits zero in mode of a lowpart subreg, return zero.
4123 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4125         PR target/57150
4126         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4127         to save TFmode registers and DImode to save TImode registers for
4128         caller save operations.
4129         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4130         mark being partially clobbered since they only use the first
4131         double word.
4133         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4134         and TDmode only use the upper 64-bits of each VSX register.
4136 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4138         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4139         (find_candidates_in_block): Disable slsr_process_phi.
4141 2013-05-03  Guozhi Wei  <carrot@google.com>
4143         * coverage.c (coverage_obj_init): Move the construction of gcov
4144         constructor to ...
4145         (build_init_ctor): ... here.
4147 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4149         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4150         (slsr_cand_d): Redefine def_phi.
4151         (stride_status, phi_adjust_status, count_phis_status): New enums.
4152         (find_phi_def): New.
4153         (find_basis_for_base_expr): New.
4154         (find_basis_for_candidate): Handle hidden bases.
4155         (alloc_cand_and_find_basis): Handle phi candidates.
4156         (slsr_process_phi): New.
4157         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4158         (create_mul_imm_cand): Likewise.
4159         (create_add_ssa_cand): Exclude phi base candidates.
4160         (create_add_imm_cand): Likewise.
4161         (slsr_process_cast): Likewise.
4162         (slsr_process_copy): Likewise.
4163         (find_candidates_in_block): Handle phi candidates.
4164         (dump_candidate): Likewise.
4165         (unconditional_cands): Delete.
4166         (unconditional_cands_with_known_stride_p): Delete.
4167         (phi_dependent_cand_p): New.
4168         (cand_increment): Handle phi-dependent candidates.
4169         (replace_dependent): Delete.
4170         (replace_mult_candidate): New.
4171         (replace_unconditional_candidate): New.
4172         (incr_vec_index): Move to avoid forward reference.
4173         (create_add_on_incoming_edge): New.
4174         (create_phi_basis): New.
4175         (replace_dependents): Delete.
4176         (replace_conditional_candidate): New.
4177         (phi_add_costs): New.
4178         (replace_uncond_cands_and_profitable_phis): New.
4179         (record_increment): Handle phi adjustments.
4180         (record_phi_increments): New.
4181         (record_increments): Handle phi adjustments.
4182         (phi_incr_cost): New.
4183         (lowest_cost_path): Handle phis.
4184         (total_savings): Likewise.
4185         (analyze_increments): Likewise.
4186         (ncd_with_phi): New.
4187         (ncd_of_cand_and_phis): New.
4188         (nearest_common_dominator_for_cands): Handle phi increments.
4189         (all_phi_incrs_profitable): New.
4190         (replace_profitable_candidates): Handle phi-dependent candidates.
4191         (analyze_candidates_and_replace): Likewise.
4193 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4195         PR bootstrap/57154
4196         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4197         do not exceed REG_BR_PROB_BASE.
4199 2013-05-03  Jeff Law  <law@redhat.com>
4201         PR tree-optimization/57144
4202         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4203         operand of the condition will bit into the new type when eliminating
4204         a cast feeding a condition.
4206 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4208         PR rtl-optimization/57130
4209         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4210         of COMPARE as in_code to the recursive call if needed.
4212 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4214         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4215         (enabled): Handle new members.
4216         * config/i386/sse.md (*vec_concatv2si): Merge from
4217         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4218         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4220 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4222         PR tree-optimization/57027
4223         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4224         for fnms opportunity, check we got the prerequisite kind
4225         of tree / gimple before using accessor functions.
4227 2013-05-03  Richard Biener  <rguenther@suse.de>
4229         * double-int.h (lshift): New overload without precision
4230         and arith argument.
4231         (operator *=, operator +=, operator -=): Move ...
4232         * double-int.c (operator *=, operator +=, operator -=): ... here
4233         and implement more efficiently.
4234         (mul_double_with_sign): Remove.
4235         (lshift_double): Adjust to take unsinged shift argument, push
4236         dispatching code to callers.
4237         (mul_double_wide_with_sign): Add early out for callers that
4238         are not interested in high parts or overflow.
4239         (lshift): New function.
4240         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4241         dispatch code here.
4242         (lrotate, rrotate): Use logical shifts.
4243         * expr.c (get_inner_reference): Use lshift.
4244         * fixed-value.c (do_fixed_divide): Likewise.
4245         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4246         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4247         (indirect_refs_may_alias_p): Likewise.
4248         (stmt_kills_ref_p_1): Likewise.
4250 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4252         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4254 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4256         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4257         scalar form of FABD instruction.
4259 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4261         * lra-constraints.c (process_alt_operands): Add checking alt
4262         number to choose the best alternative.
4264 2013-05-02  Richard Biener  <rguenther@suse.de>
4266         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4267         bitmap and its handling.
4268         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4270 2013-05-02  Richard Biener  <rguenther@suse.de>
4272         PR middle-end/57140
4273         * tree-inline.c (copy_loops): Properly handle removed loops.
4274         (copy_cfg_body): Mark destination loops for fixup if source
4275         loops needed fixup.
4277 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4279         PR target/56732
4280         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4281         generating simple_return for naked functions.
4283 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4285         PR middle-end/56988
4286         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4287         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4288         flags match.
4289         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4290         ipa_agg_replacement_value structures.
4291         (known_aggs_to_agg_replacement_list): Likewise.
4292         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4293         (read_agg_replacement_chain): Likewise.
4294         (ipcp_transform_function): Also check that by_ref flags match.
4296 2013-05-02  Richard Biener  <rguenther@suse.de>
4298         * graphds.h (struct graph): Add obstack member.
4299         * graphds.c (new_graph): Initialize obstack and allocate
4300         vertices from it.
4301         (add_edge): Allocate edge from the obstack.
4302         (free_graph): Free the obstack instead of all edges and vertices.
4304 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4306         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4307         divides.
4308         * cfg.c (update_bb_profile_for_threading): Ditto.
4309         * tree-inline.c (copy_bb): Ditto.
4310         (copy_edges_for_bb): Ditto.
4311         (initialize_cfun): Ditto.
4312         (copy_cfg_body): Ditto.
4313         (expand_call_inline): Ditto.
4314         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4315         (estimate_node_size_and_time): Ditto.
4316         (inline_merge_summary): Ditto.
4317         * cgraphclones.c (cgraph_clone_edge): Ditto.
4318         (cgraph_clone_node): Ditto.
4319         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4320         (compute_trg_info): Ditto.
4322 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4324         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4325         S reg when fp attribute set.
4326         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4328 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4330         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4331         New pattern.
4332         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4333         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4334         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4336 2013-05-02  Richard Biener  <rguenther@suse.de>
4338         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4339         (struct instantiate_cache_entry): New type.
4340         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4341         (struct instantiate_cache_type): New type.
4342         (set_instantiated_value, get_instantiated_value): Remove.
4343         (get_instantiated_value_entry): New function.
4344         (instantiate_scev_name): Use the new cache and adjust.
4345         (instantiate_scev_poly): Adjust.
4346         (instantiate_scev_binary): Likewise.
4347         (instantiate_array_ref): Likewise.
4348         (instantiate_scev_convert): Likewise.
4349         (instantiate_scev_not): Likewise.
4350         (instantiate_scev_3): Likewise.
4351         (instantiate_scev_2): Likewise.
4352         (instantiate_scev_r): Likewise.
4353         (instantiate_scev): Likewise.
4354         (resolve_mixers): Likewise.
4356 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4358         PR target/57091
4359         * lra-constraints.c (best_small_class_operands_num): Remove.
4360         (process_alt_operands): Remove small_class_operands_num.  Take
4361         small classes operands into losers and only if the operand is not
4362         matched.  Modify debugging output.
4363         (curr_insn_transform): Remove best_small_class_operands_num.
4364         Print insn name.
4366 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4368         * config/aarch64/aarch64-builtins.c
4369         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4370         * config/aarch64/aarch64-simd-builtins.def
4371         (reduc_splus_): Add new modes.
4372         (reduc_uplus_): New.
4373         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4374         (reduc_uplus_v4sf): Likewise.
4375         (reduc_splus_v4sf): Likewise.
4376         (aarch64_addv<mode>): Likewise.
4377         (reduc_uplus_<mode>): Likewise.
4378         (reduc_splus_<mode>): Likewise.
4379         (aarch64_addvv2di): Likewise.
4380         (reduc_uplus_v2di): Likewise.
4381         (reduc_splus_v2di): Likewise.
4382         (aarch64_addvv2si): Likewise.
4383         (reduc_uplus_v2si): Likewise.
4384         (reduc_splus_v2si): Likewise.
4385         (reduc_<sur>plus_<mode>): New.
4386         (reduc_<sur>plus_v2di): Likewise.
4387         (reduc_<sur>plus_v2si): Likewise.
4388         (reduc_<sur>plus_v4sf): Likewise.
4389         (aarch64_addpv4sf): Likewise.
4390         * config/aarch64/arm_neon.h
4391         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4392         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4393         add UNSPEC_SADDV, UNSPEC_UADDV.
4394         (SUADDV): New.
4395         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4397 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4399         * config/aarch64/arm_neon.h
4400         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4402 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4404         * config/aarch64/aarch64-builtins
4405         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4407 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4409         * config/aarch64/aarch64-simd-builtins.def
4410         (reduc_smax_): New.
4411         (reduc_smin_): Likewise.
4412         (reduc_umax_): Likewise.
4413         (reduc_umin_): Likewise.
4414         (reduc_smax_nan_): Likewise.
4415         (reduc_smin_nan_): Likewise.
4416         (fmax): Remove.
4417         (fmin): Likewise.
4418         (smax): Update for V2SF, V4SF and V2DF modes.
4419         (smin): Likewise.
4420         (smax_nan): New.
4421         (smin_nan): Likewise.
4422         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4423         (<su><maxmin><mode>3): ...This, refactor.
4424         (s<maxmin><mode>3): New.
4425         (<maxmin_uns><mode>3): Likewise.
4426         (reduc_<maxmin_uns>_<mode>): Refactor.
4427         (reduc_<maxmin_uns>_v4sf): Likewise.
4428         (reduc_<maxmin_uns>_v2si): Likewise.
4429         (aarch64_<fmaxmin><mode>: Remove.
4430         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4431         new builtin names.
4432         (vmin<q>_f<32,64>): Likewise.
4433         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4434         (FMAXMIN): New.
4435         (su): Add mappings for smax, smin, umax, umin.
4436         (maxmin): New.
4437         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4438         (FMAXMIN): Rename as...
4439         (FMAXMIN_UNS): ...This.
4440         (maxminv): Remove.
4441         (fmaxminv): Likewise.
4442         (fmaxmin): Likewise.
4443         (maxmin_uns): New.
4444         (maxmin_uns_op): Likewise.
4446 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4448         * config/aarch64/arm_neon.h
4449         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4450         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4451         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4453 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4455         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4456         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4458 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4460         * config/aarch64/aarch64-simd.md
4461         (vcond<mode>_internal): Handle special cases for constant masks.
4462         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4463         (vcondu<mode><mode>): Likewise.
4464         (vcond<v_cmp_result><mode>): New.
4466 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4468         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4469         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4470         * config/aarch64/aarch64-simd-builtins.def
4471         (cmeq): Update to BUILTIN_VALLDI.
4472         (cmgt): Likewise.
4473         (cmge): Likewise.
4474         (cmle): Likewise.
4475         (cmlt): Likewise.
4476         * config/aarch64/arm_neon.h
4477         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4478         to builtins or C as appropriate.
4480 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4482         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4483         (cmgeu): ...This.
4484         (cmhi): Rename to...
4485         (cmgtu): ...This.
4486         * config/aarch64/aarch64-simd.md
4487         (simd_mode): Add SF.
4488         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4489         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4490         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4491         (cstore<mode>_neg): ...This.
4492         * config/aarch64/iterators.md
4493         (VALLF): new.
4494         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4495         (COMPARISONS): New.
4496         (UCOMPARISONS): Likewise.
4497         (optab): Add missing comparisons.
4498         (n_optab): New.
4499         (cmp_1): Likewise.
4500         (cmp_2): Likewise.
4501         (CMP): Likewise.
4502         (cmp): Remove.
4503         (VCMP_S): Likewise.
4504         (VCMP_U): Likewise.
4505         (V_cmp_result): Add DF, SF modes.
4506         (v_cmp_result): Likewise.
4507         (v): Likewise.
4508         (vmtype): Likewise.
4509         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4511 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4513         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4514         define_insn to define_insn_and_split.
4515         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4516         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4517         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4518         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4519         (thumb2_negscc): Likewise.
4521 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4523         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4525 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4527         * config/arm/thumb2.md: Remove trailing whitespaces.
4529 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4531         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4532         Use gen_int_mode rather than GEN_INT.
4534 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4536         * value-prof.c (stream_in_histogram_value): Remove the strayed
4537         debug_gimple_stmt.
4539 2013-04-30  Richard Biener  <rguenther@suse.de>
4541         PR middle-end/57122
4542         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4544 2013-04-30  Richard Biener  <rguenther@suse.de>
4546         PR middle-end/57107
4547         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4549 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4551         PR rtl-optimization/56957
4552         PR rtl-optimization/57105
4553         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4554         variable.  Use just INSN_UID for determining whether an insn
4555         should be only disconnected from the insn stream.
4556         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4558 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4560         PR tree-optimization/57104
4561         * tsan.c (instrument_expr): Don't instrument accesses to
4562         DECL_HARD_REGISTER VAR_DECLs.
4564 2013-04-30  Richard Biener  <rguenther@suse.de>
4566         * function.h (loops_for_fn): New inline function.
4567         (set_loops_for_fn): Likewise.
4568         * cfgloop.h (place_new_loop): Add struct function parameter.
4569         (get_loop): Likewise.
4570         (get_loops): Likewise.
4571         (number_of_loops): Likewise.
4572         (fel_next): Adjust.
4573         (fel_init): Likewise.
4574         * cfg.c (get_loop_copy): Adjust.
4575         * cfgloop.c (flow_loops_dump): Likewise.
4576         (record_loop_exits): Likewise.
4577         (verify_loop_structure): Likewise.
4578         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4579         (estimate_reg_pressure_cost): Likewise.
4580         (mark_loop_exit_edges): Likewise.
4581         * cfgloopmanip.c (place_new_loop): Likewise.
4582         (add_loop): Likewise.
4583         (duplicate_loop): Likewise.
4584         * graph.c (draw_cfg_nodes): Likewise.
4585         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4586         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4587         (extract_affine_chrec): Likewise.
4588         (build_scop_iteration_domain): Likewise.
4589         * graphite.c (graphite_initialize): Likewise.
4590         * ira-build.c (create_loop_tree_nodes): Likewise.
4591         (more_one_region_p): Likewise.
4592         (rebuild_regno_allocno_maps): Likewise.
4593         (mark_loops_for_removal): Likewise.
4594         (mark_all_loops_for_removal): Likewise.
4595         (remove_unnecessary_regions): Likewise.
4596         (ira_build): Likewise.
4597         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4598         * loop-init.c (fix_loop_structure): Likewise.
4599         (gate_rtl_move_loop_invariants): Likewise.
4600         (gate_rtl_unswitch): Likewise.
4601         (gate_rtl_unroll_and_peel_loops): Likewise.
4602         (rtl_doloop): Likewise.
4603         * lto-streamer-in.c (input_cfg): Likewise.
4604         * lto-streamer-out.c (output_cfg): Likewise.
4605         * modulo-sched.c (sms_schedule): Likewise.
4606         * predict.c (tree_estimate_probability): Likewise.
4607         (tree_estimate_probability_driver): Likewise.
4608         (estimate_loops): Likewise.
4609         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4610         (move_sese_region_to_fn): Likewise.
4611         (debug_loop_num): Likewise.
4612         * tree-chrec.c (chrec_evaluate): Likewise.
4613         (hide_evolution_in_other_loops_than_loop): Likewise.
4614         (chrec_component_in_loop_num): Likewise.
4615         (reset_evolution_in_loop): Likewise.
4616         (evolution_function_is_invariant_rec_p): Likewise.
4617         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4618         * tree-inline.c (copy_loops): Likewise.
4619         (copy_cfg_body): Likewise.
4620         (tree_function_versioning): Likewise.
4621         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4622         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4623         Likewise.
4624         (add_to_evolution_1): Likewise.
4625         (scev_const_prop): Likewise.
4626         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4627         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4628         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4629         (tree_ssa_lim_initialize): Likewise.
4630         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4631         (verify_loop_closed_ssa): Likewise.
4632         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4633         (tree_ssa_loop_im): Likewise.
4634         (tree_ssa_loop_unswitch): Likewise.
4635         (tree_vectorize): Likewise.
4636         (check_data_deps): Likewise.
4637         (tree_ssa_loop_ivcanon): Likewise.
4638         (tree_ssa_loop_bounds): Likewise.
4639         (tree_complete_unroll): Likewise.
4640         (tree_complete_unroll_inner): Likewise.
4641         (tree_parallelize_loops): Likewise.
4642         (tree_ssa_loop_prefetch): Likewise.
4643         (tree_ssa_loop_ivopts): Likewise.
4644         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4645         * tree-vectorizer.c (vectorize_loops): Likewise.
4647 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4649         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4650         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4651         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4652         with EABI_LINK_SPEC.
4654 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4656         PR target/44578
4657         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4658         alternative.
4660 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4662         PR target/57097
4663         * lra-constraints.c (process_alt_operands): Discourage a bit more
4664         using memory for pseudos.  Print cost dump for alternatives.
4665         Modify cost values for conflicts with early clobbers.
4666         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4668 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4670         PR target/57098
4671         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4673 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4675         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4676         from/to S register.
4677         (movdi_aarch64): Support LDR/STR from/to D register.
4679 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4681         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4682         or higher by default.
4684 2013-04-29  Richard Biener  <rguenther@suse.de>
4686         PR middle-end/57075
4687         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4688         even if not adding abnormal edges for calls that can make
4689         abnormal gotos.
4691 2013-04-29  Richard Biener  <rguenther@suse.de>
4693         PR middle-end/57103
4694         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4695         TREE_BLOCK.
4696         (move_stmt_r): Remove redundant checking.
4698 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4700         PR bootstrap/57077
4701         * basic-block.h (apply_scale): New function.
4702         (apply_probability): Use apply_scale.
4703         * gimple-streamer-in.c (input_bb): Ditto.
4704         * lto-streamer-in.c (input_cfg): Ditto.
4705         * lto-cgraph.c (merge_profile_summaries): Ditto.
4706         * tree-optimize.c (execute_fixup_cfg): Ditto.
4707         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4708         (copy_edges_for_bb): Ditto.
4709         (copy_cfg_body): Ditto.
4711 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4713         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4714         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4715         (tail_merge_optimize): Handle current_loops == NULL.
4717 2013-04-26  Jeff Law  <law@redhat.com>
4719         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4720         (simplify_cond_using_ranges): Generalize code to simplify
4721         COND_EXPRs where one argument is a constant and the other
4722         is an SSA_NAME created by an integral type conversion.
4724 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4726         * config/arm/arm.md (store_minmaxsi): Use only when
4727         optimize_insn_for_size_p.
4729 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4731         PR target/57108
4732         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4734 2013-04-29  Richard Biener  <rguenther@suse.de>
4736         PR middle-end/57089
4737         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4738         loop tree make sure to schedule a fixup for the child as well.
4739         (expand_omp_for_generic): Properly add loops.
4740         (expand_omp_for_static_nochunk): Likewise.
4741         (expand_omp_for_static_chunk): Likewise.
4742         (expand_omp_for): For the degenerate case fixup loops.
4743         (expand_omp_sections): Fix default bb placement in loops.
4744         (expand_omp_atomic_pipeline): Properly add loops.
4746 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4748         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4750 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4752         * tree-ssa-tail-merge.c: Update header comment.
4754 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4756         * config/aarch64/arm_neon.h
4757         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4758         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4759         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4760         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4761         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4762         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4763         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4764         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4766 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4768         * config/aarch64/aarch64-simd.md
4769         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4770         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4771         fix_trunc, fixuns_trunc.
4772         (ftrunc<VDQF:mode>2): New.
4773         * config/aarch64/iterators.md (optab): Add fix, fixuns.
4774         (fix_trunc_optab): New.
4776 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4778         * config/aarch64/aarch64-builtins.c
4779         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4780         iceilf, lround, iroundf.
4782 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4784         PR target/54349
4785         * config/i386/i386.h (enum ix86_tune_indices)
4786         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4787         New, split from X86_TUNE_INTER_UNIT_MOVES.
4788         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4789         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4790         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4791         (TARGET_INTER_UNIT_MOVES): Remove.
4792         * config/i386/i386.c (initial_ix86_tune_features): Update.
4793         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4794         (ix86_expand_convert_uns_didf_sse): Use
4795         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4796         (ix86_expand_vector_init_one_nonzero): Ditto.
4797         (ix86_expand_vector_init_interleave): Ditto.
4798         (inline_secondary_memory_needed): Return true for moves from SSE class
4799         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4800         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4801         * config/i386/constraints.md (Yi, Ym): Depend on
4802         TARGET_INTER_UNIT_MOVES_TO_VEC.
4803         (Yj, Yn): New constraints.
4804         * config/i386/i386.md (*movdi_internal): Change constraints of
4805         operand 1 from Yi to Yj and from Ym to Yn.
4806         (*movsi_internal): Ditto.
4807         (*movdf_internal): Ditto.
4808         (*movsf_internal): Ditto.
4809         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4810         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4811         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4812         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4813         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4814         * config/i386/sse.md (movdi_to_sse): Ditto.
4815         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4816         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4817         TARGET_INTER_UNIT_MOVES.
4818         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4819         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4820         instead of TARGET_INTER_UNIT_MOVES.
4821         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4822         operand 1 from Yi to Yj and from Ym to Yn.
4824 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4826         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4827         (float_truncate_hi_): Likewise.
4828         (float_extend_lo_): Likewise.
4829         (float_truncate_lo_): Likewise.
4830         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4831         (aarch64_float_extend_lo_v2df): Likewise.
4832         (vec_unpacks_hi_v4sf): Likewise.
4833         (aarch64_float_truncate_lo_v2sf): Likewise.
4834         (aarch64_float_truncate_hi_v4sf): Likewise.
4835         (vec_pack_trunc_v2df): Likewise.
4836         (vec_pack_trunc_df): Likewise.
4838 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4840         * config/aarch64/aarch64-builtins.c
4841         (aarch64_fold_builtin): Fold float conversions.
4842         * config/aarch64/aarch64-simd-builtins.def
4843         (floatv2si, floatv4si, floatv2di): New.
4844         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4845         * config/aarch64/aarch64-simd.md
4846         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4847         * config/aarch64/iterators.md (FLOATUORS): New.
4848         (optab): Add float, floatuns.
4849         (su_optab): Likewise.
4851 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4853         * config/aarch64/aarch64-builtins.c
4854         (aarch64_builtin_vectorized_function): Use new names for
4855         fcvt builtins.
4856         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4857         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4858         (fcvtzu): Split as...
4859         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4860         (fcvtas): Split as...
4861         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4862         (fcvtau): Split as...
4863         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4864         (fcvtps): Split as...
4865         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4866         (fcvtpu): Split as...
4867         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4868         (fcvtms): Split as...
4869         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4870         (fcvtmu): Split as...
4871         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4872         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4873         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4874         (lfrintnusf, lfrintnudf): Likewise.
4875         * config/aarch64/aarch64-simd.md
4876         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4877         define_insn.
4878         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4879         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4880         (fcvt_pattern): Likewise.
4882 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4884         * config/aarch64/aarch64-simd.md
4885         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4886         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4888 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4890         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4891         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4892         (vrnd<a,m,n,p>_f32): Implement using builtins.
4893         (vrnd<i,x><q>_f<32, 64>): New.
4895 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4897         * config/aarch64/aarch64-builtins.c
4898         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4899         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4900         (frintz): Rename to...
4901         (btrunc): ...this.
4902         (frintp): Rename to...
4903         (ceil): ...this.
4904         (frintm): Rename to...
4905         (floor): ...this.
4906         (frinti): Rename to...
4907         (nearbyint): ...this.
4908         (frintx): Rename to...
4909         (rint): ...this.
4910         (frinta): Rename to...
4911         (round): ...this.
4912         * config/aarch64/aarch64-simd.md
4913         (aarch64_frint<frint_suffix><mode>): Delete.
4914         (<frint_pattern><mode>2): Convert to insn.
4915         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4916         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4917         (frint_pattern): Likewise.
4918         (frint_suffix): Likewise.
4920 2013-04-29  Richard Biener  <rguenther@suse.de>
4922         PR tree-optimization/57081
4923         * loop-init.c: Include tree-flow.h.
4924         (loop_optimizer_finalize): Free number of iteration estimates.
4925         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4927 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
4929         PR tree-optimization/57083
4930         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4931         non-singleton shift count range, zero extend low_bound for uns case.
4933         * config/i386/predicates.md (general_vector_operand): New predicate.
4934         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4935         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4936         if they aren't nonimmediate operands.  If their original values
4937         satisfy const_vector_equal_evenodd_p, don't shift them.
4938         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4939         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
4940         if not nonimmediate_operand.
4941         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4942         instead of register_operand.
4943         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4945 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4947         * stor-layout.c (finalize_size_functions): Allocate a structure and
4948         reset cfun before dumping the functions.
4950 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
4952         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4954         PR target/56866
4955         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4956         use xop_pmacsdqh if uns_p.
4957         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4958         the immediate rotate count.
4960 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
4962         * rtl.h (struct rtx_def): Add comment for field jump.
4963         (LRA_SUBREG_P): New macro.
4964         * recog.c (register_operand): Check LRA_SUBREG_P.
4965         * lra.c (lra): Add note at the end of RTL code. Align non-empty
4966         stack frame.
4967         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4968         (lra_final_code_change): Skip subreg change for operators.
4969         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4970         if there are no operand changes.
4971         * lra-constraints.c (curr_insn_set): New.
4972         (match_reload): Set LRA_SUBREG_P.
4973         (emit_spill_move): Ditto.
4974         (check_and_process_move): Use curr_insn_set. Process only single
4975         set insns.  Don't initialize sec_mem_p and change_p.
4976         (simplify_operand_subreg): Use LRA_SUBREG_P.
4977         (reg_in_class_p): New function.
4978         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
4979         of #ifdef.  Add code to remove cycling.
4980         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4981         non-null disp.  Reload inner instead of disp when base and index
4982         are null.  Try to put lo_sum into register.
4983         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4984         (check_and_process_move): Move code for move cost check to
4985         simple_move_p.  Remove equiv_substitution.
4986         (simple_move_p): New function.
4987         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
4988         curr_insn_set.  Call check_and_process_move only for single set
4989         insns.  Use the new function.  Move call of check_and_process_move
4990         after operand equiv substitution and address process.
4992 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4994         PR go/57045
4995         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4996         with nonlocal goto receivers or returns twice calls, ignore
4997         unininitialized values from abnormal edges to nl goto receiver
4998         or returns twice call.
5000 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5002         PR tree-optimization/57051
5003         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5004         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5005         bitsize.
5007 2013-04-26  Richard Biener  <rguenther@suse.de>
5009         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5010         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5011         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5012         (fixup_loop_arrays_after_move): New function.
5013         (move_sese_region_to_fn): Properly outline the loop tree parts
5014         of the SESE region.
5016 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5018         * config/i386/i386.md (type, unit): Fix long lines.
5020 2013-04-26  Richard Biener  <rguenther@suse.de>
5022         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5023         (lto-streamer-out.o): Likewise.
5024         * cfgloop.c (init_loops_structure): Export, add struct function
5025         argument and adjust.
5026         (flow_loops_find): Adjust.
5027         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5028         (init_loops_structure): Declare.
5029         * lto-streamer-in.c: Include cfgloop.h.
5030         (input_cfg): Input the loop tree.
5031         * lto-streamer-out.c: Include cfgloop.h.
5032         (output_cfg): Output the loop tree.
5033         (output_struct_function_base): Do not drop PROP_loops.
5035 2013-03-26  Richard Biener  <rguenther@suse.de>
5037         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5038         (pass_build_cfg): Provide PROP_loops.
5039         (move_sese_region_to_fn): Remove loops that are outlined into fn
5040         for now.
5041         * tree-inline.c: Include cfgloop.h.
5042         (initialize_cfun): Do not drop PROP_loops.
5043         (copy_loops): New function.
5044         (copy_cfg_body): Copy loop structure.
5045         (tree_function_versioning): Initialize destination loop tree.
5046         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5047         (pass_parallelize_loops): Do IL verification.
5048         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5049         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5050         the CFG make sure we fixup loops as well.
5051         * tree-ssa-tail-merge.c: Include cfgloop.h.
5052         (replace_block_by): When merging loop latches mark loops for fixup.
5053         * lto-streamer-out.c (output_struct_function_base): Drop
5054         PROP_loops for now.
5055         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5056         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5057         * ipa-split.c: Include cfgloop.h.
5058         (split_function): Add the new return block to the loop tree root.
5059         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5060         whether we have removed the forwarder block.
5061         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5062         * cfgloop.h (place_new_loop): Declare.
5063         * cfgloopmanip.c (place_new_loop): Export.
5064         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5065         (tree-switch-conversion.o): Likewise.
5066         (tree-complex.o): Likewise.
5067         (tree-inline.o): Likewise.
5068         (tree-ssa-tailmerge.o): Likewise.
5069         (ipa-split.o): Likewise.
5070         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5071         (tree-ssa-copy.o): Likewise.
5072         * tree-switch-conversion.c: Include cfgloop.h
5073         (process_switch): If we emit a bit-test cascade, schedule loops
5074         for fixup.
5075         * tree-complex.c: Include cfgloop.h.
5076         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5077         * asan.c: Include cfgloop.h.
5078         (create_cond_insert_point): Properly add new basic-blocks to
5079         loops, schedule loop fixup.
5080         * cfgloop.c (verify_loop_structure): Check that looks are not
5081         marked for fixup.
5082         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5083         to loops.
5084         (expand_omp_for_generic): Likewise.
5085         (expand_omp_sections): Likewise.
5086         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5087         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5088         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5089         is initialized, not when loops are present.
5090         * tree-parloops.c (parallelize_loops): Remove checking here.
5091         * passes.c (init_optimization_passes): Schedule a copy-propagation
5092         pass before complete unrolling of inner loops.
5094 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5096         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5097         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5098         (colorize_init): Add argument to _WIN32 version.
5099         * toplev.c: Include diagnostic-color.h.
5100         (process_options): Default to -fdiagnostics-color=auto if
5101         GCC_COLORS env var is in the environment.
5102         * common.opt (fdiagnostics-color=): Add Var and Init.
5103         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5104         env var is in the environment, the default is auto rather than never.
5106         * diagnostic.h (file_name_as_prefix): Add context argument.
5107         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5108         the string as locus.
5109         * langhooks.c (lhd_print_error_function): Adjust caller.
5111 2013-04-25  Lawrence Crowl  <crowl@google.com>
5113         * var-tracking.c (shared_hash_def::htab):
5114         Change type to hash_table.  Update dependent calls and types.
5116 2013-04-25  Lawrence Crowl  <crowl@google.com>
5118         * Makefile.in: Update as needed below.
5120         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5121         Move declaration to after the type's method definitons.
5123         * attribs.c (htab_t scoped_attributes::attribute_hash):
5124         Change type to hash_table.  Update dependent calls and types.
5126         * bitmap.c (htab_t bitmap_desc_hash):
5127         Change type to hash_table.  Update dependent calls and types.
5129         * cselib.c (htab_t cselib_hash_table):
5130         Change type to hash_table.  Update dependent calls and types.
5132         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5133         (hash_string_slot_node): Move implementation into lto-streamer.h
5134         struct string_slot_hasher.
5135         (eq_string_slot_node): Likewise.
5137         * data-streamer-out.c: Update output_block::string_hash_table
5138         dependent calls and types.
5140         * dwarf2cfi.c (htab_t trace_index):
5141         Change type to hash_table.  Update dependent calls and types.
5143         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5144         Change type to hash_table.  Update dependent calls and types.
5145         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5146         (htab_t optimize_external_refs::map): Likewise.
5147         (htab_t output_comp_unit::extern_map): Likewise.
5148         (htab_t output_comdat_type_unit::extern_map): Likewise.
5149         (htab_t output_macinfo::macinfo_htab): Likewise.
5150         (htab_t optimize_location_lists::htab): Likewise.
5151         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5153         * except.c (htab_t ehspec_hash_type):
5154         Change type to hash_table.  Update dependent calls and types.
5155         (assign_filter_values::ttypes): Likewise.
5156         (assign_filter_values::ehspec): Likewise.
5157         (sjlj_assign_call_site_values::ar_hash): Likewise.
5158         (convert_to_eh_region_ranges::ar_hash): Likewise.
5160         * gcse.c (htab_t pre_ldst_table):
5161         Change type to hash_table.  Update dependent calls and types.
5163         * ggc-common.c (htab_t saving_htab):
5164         Change type to hash_table.  Update dependent calls and types.
5165         (htab_t loc_hash): Likewise.
5166         (htab_t ptr_hash): Likewise.
5167         (call_count): Rename ggc_call_count.
5168         (call_alloc): Rename ggc_call_alloc.
5169         (loc_descriptor): Rename make_loc_descriptor.
5170         (add_statistics): Rename ggc_add_statistics.
5172         * ggc-common.c (saving_htab):
5173         Change type to hash_table.  Update dependent calls and types.
5175         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5176         (push_gimplify_context): Likewise.
5177         (pop_gimplify_context): Likewise.
5178         (struct gimple_temp_hash_elt): Added.
5179         (struct gimplify_hasher): Likewise.
5180         (struct gimplify_ctx.temp_htab):
5181         Change type to hash_table.  Update dependent calls and types.
5183         * gimple-fold.c: Include gimplify-ctx.h.
5185         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5186         Change type to hash_table.  Update dependent calls and types.
5187         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5188         avoid potential global name collision.
5190         * gimplify.c: Include gimplify-ctx.h.
5191         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5192         (htab_t gimplify_ctx::temp_htab):
5193         Update dependent calls and types for new type hash_table.
5194         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5195         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5197         * gimplify-ctx.h: New.
5198         (struct gimple_temp_hash_elt): Move from gimplify.c.
5199         (class gimplify_hasher): New.
5200         (struct gimplify_ctx): Move from gimple.h.
5201         (htab_t gimplify_ctx::temp_htab):
5202         Change type to hash_table.  Update dependent calls and types.
5204         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5205         (htab_t ivs_params::newivs_index):
5206         Change type to hash_table.  Update dependent calls and types.
5207         (htab_t ivs_params::params_index): Likewise.
5208         (htab_t print_generated_program::params_index): Likewise.
5209         (htab_t gloog::newivs_index): Likewise.
5210         (htab_t gloog::params_index): Likewise.
5212         * graphite.c: Include graphite-htab.h.
5213         4htab_t graphite_transform_loops::bb_pbb_mapping):
5214         Change type to hash_table.  Update dependent calls and types.
5216         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5217         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5218         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5220         * graphite-dependences.c: Include graphite-htab.h.
5221         (loop_is_parallel_p): Change hash table type of parameter.
5223         * graphite-htab.h: New.
5224         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5225         (extern find_pbb_via_hash): Move from graphite-poly.h.
5226         (extern loop_is_parallel_p): Move from graphite-poly.h.
5227         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5229         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5230         (extern loop_is_parallel_p): Move to graphite-htab.h.
5231         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5233         * haifa-sched.c (htab_t delay_htab):
5234         Change type to hash_table.  Update dependent calls and types.
5235         (htab_t delay_htab_i2): Likewise.
5237         * ira-color.c (htab_t allocno_hard_regs_htab):
5238         Change type to hash_table.  Update dependent calls and types.
5240         * ira-costs.c (htab_t cost_classes_htab):
5241         Change type to hash_table.  Update dependent calls and types.
5243         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5244         Change type to hash_table.  Update dependent calls and types.
5246         * loop-iv.c (htab_t bivs):
5247         Change type to hash_table.  Update dependent calls and types.
5249         * loop-unroll.c (htab_t opt_info::insns_to_split):
5250         Change type to hash_table.  Update dependent calls and types.
5251         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5253         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5254         (struct string_slot_hasher): New.
5255         (htab_t output_block::string_hash_table):
5256         Change type to hash_table.  Update dependent calls and types.
5258         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5259         (htab_t file_name_hash_table):
5260         Change type to hash_table.  Update dependent calls and types.
5262         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5263         calls and types.
5265         * lto-streamer.c (htab_t tree_htab):
5266         Change type to hash_table.  Update dependent calls and types.
5268         * omp-low.c: Include gimplify-ctx.h.
5270         * passes.c (htab_t name_to_pass_map):
5271         Change type to hash_table.  Update dependent calls and types.
5272         (pass_traverse): Rename to passes_pass_traverse.
5274         * plugin.c (htab_t event_tab):
5275         Change type to hash_table.  Update dependent calls and types.
5277         * postreload-gcse.c (htab_t expr_table):
5278         Change type to hash_table.  Update dependent calls and types.
5279         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5281         * sese.c (debug_rename_map_1): Make extern.
5282         (htab_t copy_bb_and_scalar_dependences::rename_map):
5283         Change type to hash_table.  Update dependent calls and types.
5285         * sese.h (extern debug_rename_map): Move to .c file.
5287         * store-motion.c (htab_t store_motion_mems_table):
5288         Change type to hash_table.  Update dependent calls and types.
5290         * trans-mem.c (htab_t tm_new_mem_hash):
5291         Change type to hash_table.  Update dependent calls and types.
5293         * tree-browser.c (htab_t TB_up_ht):
5294         Change type to hash_table.  Update dependent calls and types.
5296         * tree-cfg.c (htab_t discriminator_per_locus):
5297         Change type to hash_table.  Update dependent calls and types.
5299         * tree-complex.c: Include tree-hasher.h
5300         (htab_t complex_variable_components):
5301         Change type to hash_table.  Update dependent calls and types.
5303         * tree-eh.c (htab_t finally_tree):
5304         Change type to hash_table.  Update dependent calls and types.
5306         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5307         struct int_tree_hasher.
5308         (extern int_tree_map_eq): Likewise.
5309         (uid_decl_map_hash): Removed.
5310         (extern decl_tree_map_eq): Likewise.
5312         * tree-hasher.h: New.
5313         (struct int_tree_hasher): New.
5314         (typedef int_tree_htab_type): New.
5316         * tree-inline.c: Include gimplify-ctx.h.
5318         * tree-mudflap.c: Include gimplify-ctx.h.
5320         * tree-parloops.c: Include tree-hasher.h.
5321         (htab_t eliminate_local_variables_stmt::decl_address):
5322         Change type to hash_table.  Update dependent calls and types.
5323         (htab_t separate_decls_in_region::decl_copies): Likewise.
5325         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5326         Change type to hash_table.  Update dependent calls and types.
5328         * tree-sra.c (candidates):
5329         Change type to hash_table.  Update dependent calls and types.
5331         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5332         in tree-flow.h.
5333         (int_tree_map_hash): Likewise.
5335         * tree-ssa-dom.c (htab_t avail_exprs):
5336         Change type to hash_table.  Update dependent calls and types.
5338         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5339         Change type to hash_table.  Update dependent calls and types.
5341         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5342         Change type to hash_table.  Update dependent calls and types.
5344         * tree-ssa-phiopt.c (seen_ssa_names):
5345         Change type to hash_table.  Update dependent calls and types.
5347         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5348         Change type to hash_table.  Update dependent calls and types.
5350         * tree-ssa-uncprop.c (equiv):
5351         Change type to hash_table.  Update dependent calls and types.
5353 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5355         PR rtl-optimization/57003
5356         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5357         call note_stores with kill_clobbered_value callback again after
5358         killing regs_invalidated_by_call.
5360 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5362         * config/aarch64/aarch64-simd.md
5363         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5364         (aarch64_simd_bsl<mode>): Likewise.
5365         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5367 2013-04-25  Marek Polacek  <polacek@redhat.com>
5369         PR tree-optimization/57066
5370         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5372 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5374         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5376 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5378         * config/aarch64/aarch64-builtins.c
5379         (aarch64_fold_builtin): New.
5380         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5381         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5382         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5383         * config/aarch64/arm_neon.h
5384         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5386 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5387             Tejas Belagod  <tejas.belagod@arm.com>
5389         * config/aarch64/aarch64-builtins.c
5390         (aarch64_gimple_fold_builtin): New.
5391         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5392         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5393         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5394         (addvv4sf): Update.
5395         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5397 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5399         * config/aarch64/aarch64.md
5400         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5402 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5404         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5405         (*ngcsi_uxtw): New pattern.
5407 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5408             Julian Brown  <julian@codesourcery.com>
5410         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5411         (TB_DREG): Add T_V4HF.
5412         (v4hf_UP): New macro.
5413         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5414         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5415         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5416         built-ins.
5417         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5418         (arm_vector_mode_supported_p): Handle V4HF.
5419         (arm_mangle_map): Handle V4HFmode.
5420         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5421         * config/arm/arm_neon_builtins.def: Add entries for
5422         vcvtv4hfv4sf, vcvtv4sfv4hf.
5423         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5424         (neon_vcvtv4hfv4sf): Likewise.
5425         * config/arm/neon-gen.ml: Handle half-precision floating point
5426         features.
5427         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5428         * config/arm/arm_neon.h: Regenerate.
5429         * config/arm/neon.ml (type elts): Add F16.
5430         (type vectype): Add T_float16x4, T_floatHF.
5431         (type vecmode): Add V4HF.
5432         (type features): Add Requires_FP_bit feature.
5433         (elt_width): Handle F16.
5434         (elt_class): Likewise.
5435         (elt_of_class_width): Likewise.
5436         (mode_of_elt): Refactor.
5437         (type_for_elt): Handle F16, fix error messages.
5438         (vectype_size): Handle T_float16x4.
5439         (vcvt_sh): New function.
5440         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5441         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5442         (string_of_mode): Handle V4HF.
5443         * doc/arm-neon-intrinsics.texi: Regenerate.
5445 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5447         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5448         format specifier in 'X' case.
5450 2013-04-25  Alan Modra  <amodra@gmail.com>
5452         PR target/57052
5453         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5454         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5455         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5456         Repeat for many other rotate/shift and mask patterns using subregs.
5457         Name lshiftrt insns.
5458         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5459         on WORDS_BIG_ENDIAN.
5461 2013-04-25  Alan Modra  <amodra@gmail.com>
5463         * config.gcc: Support little-endian powerpc-linux targets.
5464         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5465         (LINK_OS_LINUX_SPEC): Define.
5466         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5467         Preserve MASK_LITTLE_ENDIAN.
5468         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5469         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5470         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5471         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5472         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5473         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5474         Correct fp word order for little-endian.  Don't shift toc entries
5475         smaller than a word for little-endian.
5476         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5477         (bswapdi2 splits): Correct low-part subreg for little-endian.
5478         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5479         low/high where such is correct only for be.
5480         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5481         little-endian for -mcall-aixdesc.
5483 2013-04-25  Alan Modra  <amodra@gmail.com>
5485         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5486         replace_equiv_address_nv.
5488 2013-04-25  Alan Modra  <amodra@gmail.com>
5490         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5492 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5494         Revert:
5495         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5496         * rtl.h (struct rtx_def): ...
5498 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5500         PR rtl-optimizations/57046
5501         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5502         for multi-reg splits.
5504 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5506         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5508 2013-04-24  Sterling Augustine  <saugustine@google.com>
5510         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5511         (comp_dir_string, debug_str_dwo_section): New.
5512         (DEBUG_STR_DWO_SECTION): Rename to ...
5513         (DEBUG_DWO_STR_SECTION): ... this.
5514         (DEBUG_NORM_STR_SECTION): Delete.
5515         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5516         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5517         (find_AT_string): Move most logic to ...
5518         (find_AT_string_in_table): ... here.  New.
5519         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5520         add_skeleton_AT_string.  Delete logic.
5521         (output_skeleton_debug_sections): Remove call to
5522         add_top_level_skeleton_die_attrs.
5523         (add_comp_dir_attribute): Move logic to comp_dir_string.
5524         (dwarf2out_init): Initialize debug_str_dwo_section.
5525         (output_indirect_string): Call find_string_form.
5526         (output_indirect_strings): Rewrite.
5527         (prune_unused_types): Empty skeleton_debug_str_hash.
5528         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5529         (dwarf2out_finish):  Call output_indirect_strings.
5531 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5533         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5535 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5537         * rtl.h (struct rtx_def): Add comment for field jump.
5538         (LRA_SUBREG_P): New macro.
5539         * recog.c (register_operand): Check LRA_SUBREG_P.
5540         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5541         stack frame.
5542         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5543         (lra_final_code_change): Skip subreg change for operators.
5544         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5545         if there are no operand changes.
5546         * lra-constraints.c (curr_insn_set): New.
5547         (match_reload): Set LRA_SUBREG_P.
5548         (emit_spill_move): Ditto.
5549         (check_and_process_move): Use curr_insn_set. Process only single
5550         set insns.  Don't initialize sec_mem_p and change_p.
5551         (simplify_operand_subreg): Use LRA_SUBREG_P.
5552         (reg_in_class_p): New function.
5553         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5554         of #ifdef.  Add code to remove cycling.
5555         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5556         non-null disp.  Reload inner instead of disp when base and index
5557         are null.  Try to put lo_sum into register.
5558         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5559         (check_and_process_move): Move code for move cost check to
5560         simple_move_p.  Remove equiv_substitution.
5561         (simple_move_p): New function.
5562         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5563         curr_insn_set.  Call check_and_process_move only for single set
5564         insns.  Use the new function.  Move call of check_and_process_move
5565         after operand equiv substitution and address process.
5567 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5569         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5570         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5571         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5573 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5575         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5577 2013-04-24  Marek Polacek  <polacek@redhat.com>
5579         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5580         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5581         (select_loops_exit_conditions): Likewise.
5582         (number_of_iterations_for_all_loops): Likewise.
5583         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5584         (scev_analysis): Likewise.
5586 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5587             Chao-ying Fu <fu@mips.com>
5589         * config/mips/micromips.md (jraddiusp): New pattern.
5590         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5591         instruction if possible.
5593 2013-04-24  Alan Modra  <amodra@gmail.com>
5595         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5597 2013-04-24  Julian Brown  <julian@codesourcery.com>
5598             Chung-Lin Tang  <cltang@codesourcery.com>
5600         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5601         dependency behavior in enumeration type DIE generation. Add TODO note
5602         to comments about future DW_FORM_sdata/udata re-work of related code.
5604 2013-04-23  Lawrence Crowl  <crowl@google.com>
5606         * Makefile.in: Update as needed below.
5608         * hash-table.h (class hash_table):
5609         Correct many methods with parameter types compare_type to the correct
5610         value_type.  (Correct code was unlikely to notice the change.)
5611         (hash_table::elements_with_deleted) New.
5612         (class hashtable::iterator): New.
5613         (hashtable::begin()): New.
5614         (hashtable::end()): New.
5615         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5617         * statistics.c (statistics_hashes):
5618         Change type to hash_table.  Update dependent calls and types.
5620         * tree-into-ssa.c (var_infos):
5621         Change type to hash_table.  Update dependent calls and types.
5623         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5624         Change type to hash_table.  Update dependent calls and types.
5626         * tree-ssa-loop-im.c (struct mem_ref.refs):
5627         Change type to hash_table.  Update dependent calls and types.
5629         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5630         Change type to hash_table.  Update dependent calls and types.
5632         * tree-ssa-sccvn.c (vn_tables_s::nary):
5633         Change type to hash_table.  Update dependent calls and types.
5634         (vn_tables_s::phis): Likewise.
5635         (vn_tables_s::references): Likewise.
5637         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5638         (vn_reference_eq): Update parameter and return types.
5640         * tree-ssa-structalias.c (pointer_equiv_class_table):
5641         Change type to hash_table.  Update dependent calls and types.
5642         (location_equiv_class_table): Likewise.
5644         * tree-vect-data-refs.c: Consequential changes for making
5645         peeling a hash_table.
5647         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5648         (destroy_loop_vec_info): Dependent hash_table update.
5650         * tree-vectorizer.h (peeling_htab):
5651         Change type to hash_table.  Update dependent calls and types.
5653 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5655         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5656         to check the register content is equal or not.
5657         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5658         to assign register content record.
5659         * lra-eliminations.c (update_reg_eliminate): Use
5660         lra_update_reg_val_offset to update register content offset.
5661         * lra-int.h (struct lra_reg): Add offset member.
5662         (lra_reg_val_equal_p): New static inline function.
5663         (lra_update_reg_val_offset): New static inline function.
5664         (lra_assign_reg_val): New static inline function.
5665         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5666         to assign register content record.
5667         (initialize_lra_reg_info_element): Initial offset to zero.
5669 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5671         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5672         operands.  Record compression.
5674 2013-04-23  Xinliang David Li  <davidxl@google.com>
5676         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5678 2013-04-23  Richard Biener  <rguenther@suse.de>
5680         PR middle-end/57036
5681         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5682         parameter, only add abnormal goto edges from the copied body
5683         if the call could perform abnormal gotos.
5684         (copy_cfg_body): Adjust.
5686 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5688         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5690 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5692         * coretypes.h (gimple_stmt_iterator): Add struct to make
5693         compatible with C.
5695 2013-04-23  Richard Biener  <rguenther@suse.de>
5697         PR tree-optimization/57026
5698         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5699         from SSA names occuring in abnormal PHI nodes.
5701 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5703         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5705 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5707         * lto/lto.c (print_lto_report_1): Declare early.
5708         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5710 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5712         * common.opt (-flto-report-wpa): Add.
5713         * doc/invoke.texi (-flto-report-wpa): Add.
5714         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5715         (lto_main): dito.
5717 2013-04-22  Xinliang David Li  <davidxl@google.com>
5719         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5720         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5721         * Makefile.in: New dependency
5723             David Daney <ddaney.cavm@gmail.com>
5725         * configure.ac (gcc_cv_as_micromips_support):  Use the
5726         --fatal-warnings option.
5727         * configure: Regenerate.
5729 2013-04-22  Marek Polacek  <polacek@redhat.com>
5731         PR sanitizer/56990
5732         * tsan.c (instrument_expr): Don't instrument expression
5733         in case its size is zero.
5735 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
5737         PR target/57032
5738         Revert:
5739         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5741         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5743 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5745         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5746         (gimple_stmt_iterator): New typedef.
5747         * gimple.h (gimple_stmt_iterator): Rename to...
5748         (gimple_stmt_iterator_d): ... This.
5749         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5750         trees be valid for GIMPLE and GENERIC.
5751         (TARGET_GIMPLE_FOLD_BUILTIN): New.
5752         * gimple-fold.c (gimple_fold_call): Call target hook
5753         gimple_fold_builtin.
5754         * hooks.c (hook_bool_gsiptr_false): New.
5755         * hooks.h (hook_bool_gsiptr_false): New.
5756         * target.def (fold_stmt): New.
5757         * doc/tm.texi: Regenerate.
5759 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
5761         PR target/57018
5762         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5763         a set sp if no stack realignment.
5765 2013-04-22  Nick Clifton  <nickc@redhat.com>
5767         * config.gcc (tilegx-linux): Extend extra_objs rather than
5768         overwriting it.
5769         (tilepro-linux): Likewise.
5771 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5773         * config/aarch64/aarch64-builtins.c
5774         (CF): Remove.
5775         (CF0, CF1, CF2, CF3, CF4, CF10): New.
5776         (VAR<1-12>): Add MAP parameter.
5777         (BUILTIN_*): Likewise.
5778         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5779         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5780         (aarch64_ushl_n<mode>): Likewise.
5781         (aarch64_sshr_n<mode>): Likewise.
5782         (aarch64_ushr_n<mode>): Likewise.
5783         (aarch64_<maxmin><mode>): Likewise.
5784         (aarch64_sqrt<mode>): Likewise.
5785         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5786         (vshr<q>_n_*): Likewise.
5788 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5790         * config/aarch64/aarch64-builtins.c
5791         (aarch64_simd_builtin_type_mode): Handle SF types.
5792         (sf_UP): Define.
5793         (BUILTIN_GPF): Define.
5794         (aarch64_init_simd_builtins): Handle SF types.
5795         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5796         (frecps): Likewise.
5797         (frecpx): Likewise.
5798         * config/aarch64/aarch64-simd.md
5799         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5800         (aarch64_frecpe<mode>): New.
5801         (aarch64_frecps<mode>): Likewise.
5802         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5803         (v8type): Add frecp<esx>.
5804         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5805         (aarch64_frecps<mode>): Likewise.
5806         * config/aarch64/iterators.md (FRECP): New.
5807         (frecp_suffix): Likewise.
5808         * config/aarch64/arm_neon.h
5809         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5811 2013-04-22  Christian Bruel  <christian.bruel@st.com>
5813         PR target/56995
5814         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5815         (REG_CLASS_NAMES): Idem.
5816         (REG_CLASS_CONTENTS): Idem.
5817         (REGCLASS_HAS_FP_REG): Idem.
5818         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5819         (sh_conditional_register_usage): Idem.
5821 2013-04-21  Jeff Law  <law@redhat.com>
5823         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5824         (ssa_forward_propagate_and_combine): Use it.
5826 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5828         * lra.c: Update the flow chart diagram.
5830 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5832         PR rtl-optimization/56847
5833         * lra-constraints.c (process_alt_operands): Discourage alternative
5834         with non-matche doffsettable memory constraint fro memory with
5835         known offset.
5837 2013-04-19  Richard Biener  <rguenther@suse.de>
5839         PR tree-optimization/56982
5840         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5841         function.
5842         * gimplify.c (gimplify_call_expr): Notice special calls.
5843         (gimplify_modify_expr): Likewise.
5844         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5845         abnormal control flow receivers.
5846         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5847         in the same way as cfun->has_nonlocal_labels.
5848         (gimple_purge_dead_abnormal_call_edges): Likewise.
5849         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5850         receivers start a basic-block.
5852 2013-04-19  Richard Biener  <rguenther@suse.de>
5854         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5855         member ...
5856         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
5857         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5858         (SLP_TREE_LOAD_PERMUTATION): Add.
5859         (vect_transform_slp_perm_load): Adjust prototype.
5860         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5861         (vect_free_slp_instance): Likewise.
5862         (vect_create_new_slp_node): Likewise.
5863         (vect_supported_slp_permutation_p): Remove.
5864         (vect_slp_rearrange_stmts): Adjust.
5865         (vect_supported_load_permutation_p): Likewise.  Inline
5866         vect_supported_slp_permutation_p here.
5867         (vect_analyze_slp_instance): Compute load permutations per
5868         slp node instead of per instance.
5869         (vect_get_slp_defs): Adjust.
5870         (vect_transform_slp_perm_load): Likewise.
5871         (vect_schedule_slp_instance): Remove redundant code.
5872         (vect_schedule_slp): Remove hack for PR56270, add it ...
5873         * tree-vect-stmts.c (vectorizable_load): ... here, do not
5874         CSE loads for SLP.  Adjust.
5876 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5878         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5879         spelling in two comments.
5881 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5883         PR target/56797
5884         * config/arm/arm.c (load_multiple_sequence): Require SP
5885         as base register for loads if SP is in the register list.
5887 2013-04-19  Martin Jambor  <mjambor@suse.cz>
5889         PR tree-optimization/56718
5890         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5891         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5892         and made public.  Adjusted all callers.
5893         (ipa_intraprocedural_devirtualization): New function.
5894         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5895         (ipa_intraprocedural_devirtualization): Likewise.
5896         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5898 2013-04-19  Richard Biener  <rguenther@suse.de>
5900         PR tree-optimization/57000
5901         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5903 2013-04-19  Terry Guo  <terry.guo@arm.com>
5905         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5906         Replace with ...
5907         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
5908         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5909         (cortex_m4_fmacs): Use new reservations.
5910         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5912 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5914         PR rtl-optimization/56999
5915         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5916         related code.
5917         (lra_coalesce): Remove split_origin_bitmap and related code.
5918         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
5919         ranges if necessary.
5921 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
5923         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5924         New array.
5925         (ix86_expand_call): Remove clobbered_registers array and use
5926         x86_64_ms_sysv_extra_clobbered_registers instead.
5927         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5928         Declare here.
5929         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5930         predicate.
5931         * config/i386/i386.md (*call_rex64_ms_sysv): Use
5932         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
5933         (*call_value_rex64_ms_sysv): Ditto.
5935 2013-04-18  Cary Coutant  <ccoutant@google.com>
5937         * dwarf2out.c (output_pubnames): Check die_perennial_p of
5938         parent instead of die_mark.
5940 2013-04-18  Diego Novillo  <dnovillo@google.com>
5942         * gimple.c (create_gimple_tmp): New.
5943         (get_expr_type): New.
5944         (build_assign): New.
5945         (build_type_cast): New.
5946         * gimple.h (enum ssa_mode): Define.
5947         (gimple_seq_set_location): New.
5948         * asan.c (build_check_stmt): Change some gimple_build_* calls
5949         to use build_assign and build_type_cast.
5951 2013-04-18  Richard Biener  <rguenther@suse.de>
5953         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5954         handle negative step.  Remove redundant checks.
5955         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5956         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5957         for negative step and grouped loads fail to vectorize.
5959 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5961         * emit-rtl.c (reset_insn_used_flags): New function.
5962         (reset_all_used_flags): Use it.
5963         (verify_insn_sharing): New function.
5964         (verify_rtl_sharing): Fix verification for SEQUENCEs.
5966 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
5968         PR tree-optimization/56984
5969         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5970         and (x >> M) >= N don't register any assertion if N << M is the
5971         minimum value.
5973 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5975         * lower-subreg.c (resolve_simple_move): If called self-recursive,
5976         do not delete_insn insns that have not yet been emitted, only
5977         unlink them with remove_insn.
5978         * df-scan.c (df_insn_delete): Revert r197492.
5980 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
5982         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5983         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5985 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5987         * config/arm/arm.md (movsicc_insn): Convert define_insn into
5988         define_insn_and_split.
5989         (and_scc,ior_scc,negscc): Likewise.
5990         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5992 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5994         * config/arm/arm.c (use_return_insn): Return 0 for targets that
5995         can benefit from using a sequence of LDRD instructions in epilogue
5996         instead of a single LDM instruction.
5998 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6000         PR 45688
6001         * doc/extend.texi: Fix typo.
6003 2013-04-17  Richard Biener  <rguenther@suse.de>
6005         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6006         (vect_build_slp_tree): ... here.
6007         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6008         match.  Remove special-casing of mismatched complex loads.
6009         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6010         re-try the match with swapped commutative operands.
6011         (vect_supported_load_permutation_p): Remove special-casing of
6012         mismatched complex loads.
6013         (vect_analyze_slp_instance): Adjust.
6015 2013-04-17  Richard Biener  <rguenther@suse.de>
6017         PR rtl-optimization/56921
6018         * cfgloop.h (struct loop): Add simple_loop_desc member.
6019         (struct niter_desc): Mark with GTY(()).
6020         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6021         * loop-iv.c (get_simple_loop_desc): Likewise.
6022         (free_simple_loop_desc): Likewise.
6024         Revert
6025         2013-04-16  Richard Biener  <rguenther@suse.de>
6027         PR rtl-optimization/56921
6028         * loop-init.c (pass_rtl_move_loop_invariants): Add
6029         TODO_do_not_ggc_collect to todo_flags_finish.
6030         (pass_rtl_unswitch): Same.
6031         (pass_rtl_unroll_and_peel_loops): Same.
6032         (pass_rtl_doloop): Same.
6034 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6036         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6037         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6038         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6039         references.
6040         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6041         * tree-streamer.c (record_common_node): Adjust reference in comment.
6043 2013-04-17  Terry Guo  <terry.guo@arm.com>
6045         * config/arm/cortex-m4.md: Add a new bypass.
6047 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6049         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6050         New pattern.
6051         (*subs_<optab><mode>_multp2): New pattern.
6052         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6053         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6055 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6057         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6058         (*subs_mul_imm_<mode>): New pattern.
6060 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6062         PR target/56948
6063         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6064         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6065         (vsx_movti_32bit): Change j->wa to O->wa.
6067 2013-04-16  Richard Biener  <rguenther@suse.de>
6069         PR rtl-optimization/56921
6070         * loop-init.c (pass_rtl_move_loop_invariants): Add
6071         TODO_do_not_ggc_collect to todo_flags_finish.
6072         (pass_rtl_unswitch): Same.
6073         (pass_rtl_unroll_and_peel_loops): Same.
6074         (pass_rtl_doloop): Same.
6076 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6078         * config/arm/arm.c (emit_multi_reg_push): New declaration
6079         for an existing function.
6080         (arm_emit_strd_push): New function.
6081         (arm_expand_prologue): Used here.
6082         (arm_emit_ldrd_pop): New function.
6083         (arm_expand_epilogue): Used here.
6084         (arm_get_frame_offsets): Update condition.
6085         (arm_emit_multi_reg_pop): Add a special case for load of a single
6086         register with writeback.
6088 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6090         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6091         description.
6093 2013-04-16  Richard Biener  <rguenther@suse.de>
6095         PR tree-optimization/56756
6096         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6097         (first_mem_ref_loc): New.
6098         (execute_sm): Place the load temporarily before a previous
6099         access instead of in the latch edge to ensure its SSA dependencies
6100         are defined at points dominating the load.
6102 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6104         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6105         correct fix by moving header and footer insn to the footer of
6106         the merged basic block.  Clear BB_END of the merged-away block.
6108         PR middle-end/43631
6109         * emit-rtl.c (make_note_raw): New function.
6110         (link_insn_into_chain): New static inline function.
6111         (add_insn): Use it.
6112         (add_insn_before, add_insn_after): Factor insn chain linking code...
6113         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6114         using link_insn_into_chain.
6115         (note_outside_basic_block_p): New helper function for emit_note_after
6116         and emit_note_before.
6117         (emit_note_after): Use nobb variant of add_insn_after if the note
6118         should not be contained in a basic block.
6119         (emit_note_before): Use nobb variant of add_insn_before if the note
6120         should not be contained in a basic block.
6121         (emit_note_copy): Use make_note_raw.
6122         (emit_note): Likewise.
6123         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6124         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6125         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6126         the moved barrier the tail of the basic block it follows.
6127         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6129 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6131         PR tree-optimization/56962
6132         * gimple-ssa-strength-reduction.c (record_increment): Only set
6133         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6134         either rhs1 or rhs2 is equal to c->base_expr.
6136 2013-04-15  Richard Biener  <rguenther@suse.de>
6138         PR tree-optimization/56933
6139         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6140         member.
6141         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6142         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6143         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6144         dependence check ...
6145         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6146         ... here.
6147         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6148         GROUP_READ_WRITE_DEPENDENCE.
6150 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6152         * emit-rtl.c (reset_all_used_flags): New function.
6153         (verify_rtl_sharing): Call reset_all_used_flags before and after
6154         performing the checks.
6156 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6158         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6159         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6160         * config/arm/constraints.md (De): New constraint.
6161         * config/arm/neon.md (anddi3_neon): Delete.
6162         (neon_vand<mode>): Expand to standard anddi3 pattern.
6163         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6164         Move earlier in the file.
6165         (neon_inv_logic_op2): Likewise.
6166         (arm_anddi_operand_neon): New predicate.
6168 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6170         * configure.ac (gcc_cv_ld_as_needed): Set
6171         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6172         Use -z ignore, -z record on *-*-solaris2*.
6173         (HAVE_LD_AS_NEEDED): Update comment.
6174         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6175         * configure: Regenerate.
6176         * config.in: Regenerate.
6177         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6178         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6179         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6180         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6181         equivalents.  Fix markup.
6182         * doc/tm.texi: Regenerate.
6184 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6186         * config/i386/i386.opt: New option mstack-protector-guard=.
6187         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6188         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6189         TARGET_SSP_TLS_GUARD.
6190         * config/i386/i386.c (ix86_option_override_internal): Set
6191         ix86_stack_protector_guard.
6192         * config/i386/i386.md (stack_protect_set): Enable for
6193         TARGET_SSP_TLS_GUARD only.
6194         (stack_protect_set_<mode>): Ditto.
6195         (stack_protect_test): Ditto.
6196         (stack_protect_test_<mode>): Ditto.
6197         * doc/invoke.texi (i386 Option): Document.
6199 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6201         PR target/56890
6202         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6203         (S_MODES): Set H_MODE bit.
6204         (SF_MODES): Set only S_MODE and SF_MODE bits.
6205         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6206         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6207         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6208         <MODE_FLOAT>: Likewise.
6210 2013-04-15  Joey Ye  <joey.ye@arm.com>
6212         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6214 2013-04-15  Joey Ye  <joey.ye@arm.com>
6216         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6217         for real far jump.
6218         (thumb_far_jump_used_p): Count instruction size and set
6219         far_jump_used.
6221 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6223         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6224         * resource.c (mark_target_live_regs): Reformat conditional block.
6226 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6228         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6229         notes, they are emitted only just before final.
6230         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6232 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6234         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6235         * cfgrtl.c (delete_insn): Call it here instead.
6236         * lra-spills.c (lra_final_code_change): Use delete_insn.
6237         * haifa-sched.c (sched_remove_insn): Likewise.
6238         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6239         returning to the nop pool.
6240         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6241         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6243 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6245         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6246         * doc/tm.texi: Regenerated.
6248 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6250         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6251         QImode checks.
6253 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6255         * df-core.c (df_find_def): Compare register numbers.
6256         (df_find_use): Likewise.
6258 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6260         PR target/56903
6261         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6262         lra_in_progress for return.
6264 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6266         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6267         define_insn into define_insn_and_split and emit movsicc patterns.
6269 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6271         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6273 2013-04-12  Richard Biener  <rguenther@suse.de>
6275         * tree-pass.h (TODO_do_not_ggc_collect): New.
6276         * passes.c (execute_one_ipa_transform_pass): Honor
6277         TODO_do_not_ggc_collect.
6278         (execute_one_pass): Likewise.
6280         Revert
6281         2013-04-10  Richard Biener  <rguenther@suse.de>
6283         * passes.c (init_optimization_passes): Remove reload pass.
6284         * ira.c (do_reload): Merge into ...
6285         (ira): ... this.
6286         (rest_of_handle_reload): Remove.
6287         (pass_reload): Likewise.
6288         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6289         of reload for vzeroupper pass placement.
6291 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6293         PR tree-optimization/56918
6294         PR tree-optimization/56920
6295         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6296         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6297         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6298         use wide_mul_with_sign method.
6300 2013-04-12  Richard Biener  <rguenther@suse.de>
6302         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6303         not be considered a gimple constant.
6305 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6307         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6308         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6309         operations.
6311 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6312             Jakub Jelinek  <jakub@redhat.com>
6314         * opts.c: Include diagnostic-color.h.
6315         (common_handle_option): Handle OPT_fdiagnostics_color_.
6316         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6317         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6318         (diagnostic-color.o): New.
6319         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6320         (diagnostic_color_rule): New enum.
6321         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6322         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6323         the location string.
6324         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6325         either NULL, or color kind.
6326         * diagnostic-color.c: New file.
6327         * diagnostic-color.h: New file.
6328         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6329         arguments.
6330         * doc/invoke.texi (-fdiagnostics-color): Document.
6331         * pretty-print.h (pp_show_color): Define.
6332         (struct pretty_print_info): Add show_color field.
6333         * diagnostic.c: Include diagnostic-color.h.
6334         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6335         macros.  Colorize error:, warning: etc. strings and also the location
6336         string.
6337         (diagnostic_show_locus): Colorize the caret line.
6338         * pretty-print.c: Include diagnostic-color.h.
6339         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6340         inside of %< %> quotes or quoted through q format modifier.
6342 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6344         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6346 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6348         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6349         code in CC_NZ mode.
6350         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6351         pattern.
6353 2013-04-11  Marek Polacek  <polacek@redhat.com>
6355         PR tree-optimization/48184
6356         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6358 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6360         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6361         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6362         (skip_simple_arithmetic): Tidy up.
6363         * tree.h (skip_simple_constant_arithmetic): Declare.
6365 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6367         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6369 2013-04-11  Richard Biener  <rguenther@suse.de>
6371         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6372         generate vector constants.
6374 2013-04-11  Richard Biener  <rguenther@suse.de>
6376         PR tree-optimization/56878
6377         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6378         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6379         New function.
6380         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6381         Prefer to align the DR with the most invariant base address.
6383 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6385         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6386         comment.
6388 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6390         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6391         floating-point vector comparisons against 0.
6393 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6395         PR tree-optimization/56899
6396         * fold-const.c (extract_muldiv_1): Apply distributive law
6397         only if TYPE_OVERFLOW_WRAPS (ctype).
6399 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6401         PR target/56124
6402         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6403         loading has side effect.
6405 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6407         * config/sparc/sparc.c: Include tree-pass.h.
6408         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6409         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6410         head of file.  Change return type.  Split off gate function.
6411         (sparc_gate_work_around_errata): New function.
6412         (pass_work_around_errata): New pass definition.
6413         (insert_pass_work_around_errata) New pass insert definition to
6414         insert pass_work_around_errata just after delayed-branch scheduling.
6415         (sparc_option_override): Insert the pass.
6416         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6418 2013-04-10  David S. Miller  <davem@davemloft.net>
6420         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6421         or -mcpu=hypersparc.
6423         * target.def (cstore_mode): New hook.
6424         * target.h: Include insn-codes.h
6425         * targhooks.c: Likewise.
6426         (default_cstore_mode): New function.
6427         * targhooks.h: Declare it.
6428         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6429         * doc/tm.texi: Rebuild.
6430         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6431         target hook, rather than inspecting the insn_data.
6432         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6433         (TARGET_CSTORE_MODE): Redefine.
6434         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6435         result patterns.
6436         * config/sparc/predicates.md (cstore_result_operand): New special
6437         predicate.
6438         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6439         Use it for operand 0.
6440         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6441         (*snesi_special): Likewise.
6442         (*snesi_zero): Likewise.
6443         (*seqsi_zero): Likewise.
6444         (*sltu_insn): Likewise.
6445         (*sgeu_insn): Likewise.
6446         (*seqdi_special): Make operand 0 and comparison operation be of
6447         DImode.
6448         (*snedi_special): Likewise.
6449         (*snedi_special_vis3): Likewise.
6450         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6451         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6452         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6453         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6454         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6455         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6456         (*sltu_extend_sp64): Likewise.
6457         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6458         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6459         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6460         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6461         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6463 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6465         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6466         (aarch64_start_file): Use the new function.
6468 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6469             Jason Merrill  <jason@redhat.com>
6471         * common.opt: Add -gdwarf.
6472         * opts.c (common_handle_option): Handle it.
6473         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6475 2013-04-10  Richard Biener  <rguenther@suse.de>
6477         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6478         (execute_one_ipa_transform_pass): But unconditionally here.
6479         (execute_one_pass): And here.
6480         (init_optimization_passes): Remove reload pass.
6481         * tree-pass.h (TODO_ggc_collect): Remove.
6482         (pass_reload): Likewise.
6483         * ira.c (do_reload): Merge into ...
6484         (ira): ... this.
6485         (rest_of_handle_reload): Remove.
6486         (pass_reload): Likewise.
6487         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6488         of reload for vzeroupper pass placement.
6489         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6490         and todo_flags_finish of all passes.
6492 2013-04-10  Richard Biener  <rguenther@suse.de>
6494         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6495         first_const_oprnd field, rename first_def_type to first_op_type.
6496         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6497         (vect_get_and_check_slp_defs): Always use the type of the
6498         operand.  Allow mixed vect_external_def, vect_constant_def types.
6499         (vect_get_constant_vectors): Handle mixed vect_external_def,
6500         vect_constant_def types.
6502 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6504         PR tree-optimization/55524
6505         * tree-ssa-math-opts.c
6506         (convert_mult_to_fma): Don't use an fms construct
6507         when we don't have an fms operation, but fnma, and it looks
6508         likely that we'll be able to use the latter.
6510 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6512         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6513         function.
6514         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6515         inline fail caused by overwritable functions.
6517 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6519         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6520         unnecessary bits in the constant power of two case.
6522 2013-04-10  Richard Biener  <rguenther@suse.de>
6524         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6525         broken code swapping operands.
6526         (vect_build_slp_tree): Do not compute load permutations here.
6527         (vect_analyze_slp_instance): Compute load permutations here,
6528         after building the SLP tree.
6530 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6532         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6533         of next/prev_real_insn.
6535 2013-04-09  Jan Hubicka  <jh@suse.cz>
6537         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6538         Drop aliased parameter.
6539         (function_and_variable_visibility): Do not handle alias pairs.
6540         * cgraph.c (varpool_externally_visible_p): Update prototype.
6541         * varpool.c (varpool_add_new_variable): Update.
6543 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6545         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6547 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6549         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6551         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6553 2013-04-09  Marek Polacek  <polacek@redhat.com>
6555         PR tree-optimization/48762
6556         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6558 2013-04-09  Richard Biener  <rguenther@suse.de>
6560         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6561         dealing with cost.
6562         (vect_build_slp_tree): Likewise.
6563         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6564         calculating the cost of a SLP instance.
6565         (vect_analyze_slp_instance): Use it from here, after building
6566         the SLP tree.
6568 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6570         PR middle-end/56883
6571         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6572         expand_omp_for_static_chunk): Use simple_p = true in
6573         force_gimple_operand_gsi calls when assigning to addressable decls.
6575 2013-04-09  Jeff Law  <law@redhat.com>
6577         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6578         when the boolean was created by converting a wider object which
6579         had a boolean range.
6581 2013-04-09  Richard Biener  <rguenther@suse.de>
6583         * tree-vectorizer.h (slp_void_p): Remove.
6584         (slp_tree): Typedef before _slp_tree declaration.
6585         (struct _slp_tree): Use a vector of slp_tree as children.
6586         (vect_get_place_in_interleaving_chain): Remove.
6587         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6588         Move ...
6589         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6590         and make static.
6591         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6592         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6593         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6594         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6595         Use slp_node instead of slp_void_p and adjust.
6597 2013-04-09  Richard Biener  <rguenther@suse.de>
6599         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6600         work that is not necessary.
6602 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6604         PR tree-optimization/56854
6605         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6606         forward into clobber stmts if it would change MEM_REF lhs into
6607         non-MEM_REF.
6609 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6611         * tree.c (type_hash_lookup, type_hash_add): Make static.
6612         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6614 2013-04-09  Richard Biener  <rguenther@suse.de>
6616         * tree.h (unsave_expr_now): Remove.
6617         * tree-inline.c (mark_local_for_remap_r): Remove.
6618         (unsave_expr_1): Likewise.
6619         (unsave_r): Likewise.
6620         (unsave_expr_now): Likewise.
6621         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6622         (propagate_tree_value): Likewise.
6624 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6626         * doc/rtl.texi (sequence): Rewrite documentation to match the
6627         current use of SEQUENCE rtl objects.
6628         * rtl.def (SEQUENCE): Likewise.
6630         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6631         Update documentation.
6632         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6633         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6635         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6637 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6639         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6640         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6641         methods.
6642         (estimate_edge_size_and_time): Add comment to suggest using rounding
6643         methods.
6644         (estimate_node_size_and_time): Ditto.
6645         (remap_edge_change_prob): Use helper rounding divide methods.
6646         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6647         (gimple_mod_pow2_value_transform): Ditto.
6648         (gimple_mod_subtract_transform): Ditto.
6649         (gimple_ic_transform): Ditto.
6650         (gimple_stringops_transform): Ditto.
6651         * stmt.c (conditional_probability): Ditto.
6652         (emit_case_dispatch_table): Ditto.
6653         * lto-cgraph.c (merge_profile_summaries): Ditto.
6654         * tree-optimize.c (execute_fixup_cfg): Ditto.
6655         * cfgcleanup.c (try_forward_edges): Ditto.
6656         * cfgloopmanip.c (scale_loop_profile): Ditto.
6657         (loopify): Ditto.
6658         (duplicate_loop_to_header_edge): Ditto.
6659         (lv_adjust_loop_entry_edge): Ditto.
6660         * tree-vect-loop.c (vect_transform_loop): Ditto.
6661         * profile.c (compute_branch_probabilities): Ditto.
6662         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6663         * lto-streamer-in.c (input_cfg): Ditto.
6664         * gimple-streamer-in.c (input_bb): Ditto.
6665         * ipa-cp.c (update_profiling_info): Ditto.
6666         (update_specialized_profile): Ditto.
6667         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6668         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6669         rounding methods.
6670         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6671         (compute_trg_info): Ditto.
6672         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6673         (purge_dead_edges): Ditto.
6674         * loop-unswitch.c (unswitch_loop): Ditto.
6675         * cgraphclones.c (cgraph_clone_edge): Ditto.
6676         (cgraph_clone_node): Ditto.
6677         * tree-inline.c (copy_bb): Ditto.
6678         (copy_edges_for_bb): Ditto.
6679         (initialize_cfun): Ditto.
6680         (copy_cfg_body): Ditto.
6681         (expand_call_inline): Ditto.
6683 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6685         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6686         TARGET_CYGWIN64 by TARGET_64BIT.
6688 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6690         * config/epiphany/epiphany.md (GPR_1): New constant.
6691         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6692         * config/epiphany/epiphany.c (gen_compare_reg):
6693         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6694         is already in place.
6695         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6696         Don't require being called during rtl expansion; If y operlaps r0,
6697         return 0.
6698         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6699         (epiphany_expand_epilogue): Likewise.
6701         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6702         Don't use CC_FPmode for ORDERED / UNORDERED.
6703         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6705         * config/epiphany/constraints.md (CnL): New constraint.
6706         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6707         * config/epiphany/predicates.md (add_operand): Allow 1024.
6709         * config/epiphany/epiphany.md (logical_op): New code iterator.
6710         (op_mnc): New code attribute.
6711         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6712         (mov_f+1, mov_f+2): New peephole2 patterns.
6714         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6715         (cstoresi4): Also allow re-use of zero result when doing a NE
6716         comparison to a non-zero operand.
6717         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6719         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6720         Use gen_addsi3_i / gen_subsi3_i.
6722 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6724         PR c++/34949
6725         PR c++/50243
6726         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6727         contain anything but clobbers, at most one __builtin_stack_restore,
6728         optionally debug stmts and final resx, and if it has at least one
6729         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6730         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6731         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6732         which isn't defaut definition, remove them.
6733         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6734         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6735         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6736         with MEM_REF LHS with SSA_NAME address.
6738 2013-04-08  Jeff Law  <law@redhat.com>
6740         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6742 2013-04-08  Richard Biener  <rguenther@suse.de>
6744         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6745         extra newline.
6746         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6747         determined vector type.
6748         (vect_analyze_data_refs): Likewise.
6749         (vect_get_new_vect_var): Adjust.
6750         (vect_create_destination_var): Preserve SSA name versions.
6751         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6752         not dump anything here.
6754 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6756         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6757         Add member lr_slot_known.
6758         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6759         if necessary.
6760         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6761         Remove code that sets lr_slot_offset according to what a previous
6762         version of epiphany_emit_save_restore used to do.
6763         (epiphany_emit_save_restore): When doing an lr save or restore,
6764         set/verify lr_slot_known and lr_slot_offset.
6766 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
6768         PR target/54338
6769         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6770         in ALL_REGS.
6772 2013-04-08  Richard Biener  <rguenther@suse.de>
6774         * alias.c (find_base_term): Fix thinko in previous change.
6776 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6778         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6779         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6780         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
6781         if possible to compute val.
6782         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6783         For QImode integers don't require anything about precision.  Use
6784         const_with_all_bytes_same to find out if the constant doesn't have
6785         repeated bytes in it.
6787 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6789         * config/s390/s390.c (s390_expand_insv): Only accept insertions
6790         within mode size.
6792 2013-04-08  Marek Polacek  <polacek@redhat.com>
6794         PR rtl-optimization/48182
6795         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6796         value to 1.
6798 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6800         PR target/55487
6801         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6802         nuses, make sure we have a label.
6804 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6806         PR target/56843
6807         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6808         (rs6000_emit_swdiv_low_precision): Remove.
6809         (rs6000_emit_swdiv): Rewrite to handle between one and four
6810         iterations of Newton-Raphson generally; modify required number of
6811         iterations for some cases.
6812         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6814 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6816         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6817         set-but-unused variable.
6819         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6820         basic blocks of released function bodies garbage-collectable.
6822         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6823         (struct rtl_opt_pass): Add TODO_df_finish.
6825         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6827 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6829         * config/arm/constraints.md (q): New constraint.
6830         * config/arm/ldrdstrd.md: New file.
6831         * config/arm/arm.md (ldrdstrd.md) New include.
6832         (arm_movdi): Use "q" instead of "r" constraint
6833         for double-word memory access.
6834         (movdf_soft_insn): Likewise.
6835         * config/arm/vfp.md (movdi_vfp): Likewise.
6836         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6837         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6838         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6839         (mem_ok_for_ldrd_strd): Likewise.
6840         (output_move_double): Update assertion.
6842 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6844         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6846 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6848         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6849         define_insn_and_split.
6850         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6852 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6854         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6855         define_insn_and_split.
6856         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6857         (shiftsi3_compare): New pattern.
6858         (rrx): New pattern.
6859         * config/arm/unspecs.md (UNSPEC_RRX): New.
6861 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6863         * config/arm/arm.md (negdi_extendsidi): New pattern.
6864         (negdi_zero_extendsidi): Likewise.
6866 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6868         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6869         define_insn_and_split.
6870         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6871         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6873 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6875         * config/arm/arm.md (arm_subdi3): Convert define_insn into
6876         define_insn_and_split.
6877         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6878         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6880 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6882         * config/arm/arm.md (subsi3_carryin): New pattern.
6883         (subsi3_carryin_const): Likewise.
6884         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6885         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6887 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6889         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6891 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6893         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6894         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6896 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6898         * config/arm/arm.c (arm_expand_builtin): Change fcode
6899         type to unsigned int.
6901 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6903         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6905 2013-04-04  Ian Lance Taylor  <iant@google.com>
6907         * doc/standards.texi (Standards): The Go frontend supports the Go 1
6908         language standard.
6910 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6912         PR middle-end/56729
6913         * df-scan.c (df_insn_delete): Disable failing assert.
6915 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6917         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6918         New function prototype.
6919         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6920         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6921         (arm_builtin_vectorized_function): New function.
6923 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6925         * config/arm/arm_neon_builtins.def: New file.
6926         * config/arm/arm.c (neon_builtin_data): Move contents to
6927         arm_neon_builtins.def.
6928         (enum arm_builtins): Include neon builtin definitions.
6929         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6930         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6932 2013-04-04  Marek Polacek  <polacek@redhat.com>
6934         PR tree-optimization/48186
6935         * predict.c (maybe_hot_frequency_p): Return false if
6936         HOT_BB_FREQUENCY_FRACTION is 0.
6937         (cgraph_maybe_hot_edge_p): Likewise.
6939 2013-04-04  Richard Biener  <rguenther@suse.de>
6941         PR tree-optimization/56826
6942         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6943         more accurately.
6945 2013-04-04  Richard Biener  <rguenther@suse.de>
6947         PR tree-optimization/56213
6948         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6949         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6951 2013-04-04  Richard Biener  <rguenther@suse.de>
6953         PR tree-optimization/56837
6954         * tree-loop-distribution.c (classify_partition): For non-zero
6955         values require that the value has the same precision as its
6956         mode to be useful as memset value.
6958 2013-04-03  Nick Clifton  <nickc@redhat.com>
6960         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6961         (fmssf4): Use fmsf.s on E3V5 architectures.
6962         (fnmasf4): Use fnmaf.s on E3V5 architectures.
6963         (fnmssf4): Use fnmsf.s on E3V5 architectures.
6965 2013-04-03  Jeff Law  <law@redhat.com>
6967         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6968         (lra-eliminations.o): Likewise.
6970 2013-04-03  Teresa Johnson  <tejohnson@google.com>
6972         * gcov-io.c (compute_working_sets): Moved most of body of old
6973         compute_working_sets here from profile.c.
6974         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6975         (gcov_working_set_t): Moved typedef here from basic-block.h
6976         (compute_working_set): Declare.
6977         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6978         (get_working_sets): Renamed from compute_working_set,
6979         replace most of body with call to new compute_working_sets.
6980         (get_exec_counts): Replace call to compute_working_sets
6981         to get_working_sets.
6982         * profile.h (get_working_sets): Renamed from compute_working_set.
6983         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6984         to get_working_sets.
6985         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6986         * gcov-dump.c (dump_working_sets): New function.
6988 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
6990         * hwint.c (sext_hwi, zext_hwi): New functions.
6991         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6992         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6993         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6994         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6995         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6996         (sext_hwi, zext_hwi): New functions.
6998 2013-04-03  Jeff Law  <law@redhat.com>
7000         PR tree-optimization/56799
7001         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7002         back test for widening conversion erroneously dropped in prior change.
7004 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7006         PR target/56809
7007         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7008         instead of next_real_insn.
7010 2013-04-03  Marek Polacek  <polacek@redhat.com>
7012         PR sanitizer/55702
7013         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7015 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7017         PR target/56809
7018         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7019         next_real_insn.
7020         (thumb1_output_casesi): Likewise.
7021         (thumb2_output_casesi): Likewise.
7023 2013-04-03  Richard Biener  <rguenther@suse.de>
7025         PR tree-optimization/56817
7026         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7027         Split out ...
7028         (tree_unroll_loops_completely_1): ... new function to manually
7029         walk the loop tree, properly defering outer loops of unrolled
7030         loops to later iterations.
7032 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7034         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7035         (vectorizable_load): Likewise.
7036         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7037         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7039 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7041         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7042         BIT_FIELD_REF.
7044 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7046         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7048 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7050         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7052 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7054         PR tree-optimization/56790
7055         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7056         folding.
7058 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7060         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7061         Handle VEC_MERGE.
7062         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7063         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7064         equal arguments.
7066 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7068         PR c/19449
7069         * tree.h (force_folding_builtin_constant_p): New decl.
7070         * builtins.c (force_folding_builtin_constant_p): New variable.
7071         (fold_builtin_constant_p): Fold immediately also if
7072         force_folding_builtin_constant_p.
7074 2013-04-03  Richard Biener  <rguenther@suse.de>
7076         PR tree-optimization/56812
7077         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7078         DRs of the same interleaving chain are independent.
7080 2013-04-02  Jason Merrill  <jason@redhat.com>
7082         * gdbinit.in (pbb): Use debug fn.
7084 2013-04-02  Lawrence Crowl  <crowl@google.com>
7086         * sese.h (struct ivtype_map_elt_s): Remove unused.
7087         (extern debug_ivtype_map): Remove unused.
7088         (extern eq_ivtype_map_elts): Remove unused.
7089         * sese.c (debug_ivtype_map): Removed unused.
7090         (debug_ivtype_map_1): Removed unused.
7091         (debug_ivtype_elt): Remove unused.
7092         (eq_ivtype_map_elts): Remove unused.
7095 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7097         PR target/52790
7098         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7099         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7100         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7101         function.
7102         (legitimize_pe_coff_symbol): Likewise.
7103         (is_imported_p): New helper-function.
7104         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7105         for Windows x64 targets.
7106         (ix86_expand_prologue): Optimize for pe-coff targets.
7107         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7108         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7109         medium/large code-model.
7110         (legitimize_pic_address): Likewise.
7111         (legitimize_tls_address): Likewise.
7112         (ix86_expand_call): Likewise.
7113         (x86_output_mi_thunk): Likewise.
7114         (get_dllimport_decl): Add new beimport argument.
7115         (construct_plt_address): Don't assert for x64 pe-coff targets.
7116         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7117         targets.
7118         (SYMBOL_FLAG_STUBVAR): New macro.
7119         (SYMBOL_REF_STUBVAR_P): Likewise.
7120         * config/i386/winnt.c (stub_list): New structure.
7121         (stub_head): New local variable.
7122         (i386_pe_record_stub): New function.
7123         (i386_pe_file_end): Emit refptr-stubs.
7125 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7127         PR rtl-optimization/56745
7128         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7129         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7131         PR c++/34949
7132         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7133         and both of them are MEM_REFs, just compare first argument for
7134         equality and attempt to deal even with differing offsets.
7136         PR c++/34949
7137         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7138         of gimple_clobber_p to be MEM_REF.
7139         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7140         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7141         after gimplification.
7142         * asan.c (get_mem_ref_of_assignment): Don't instrument
7143         gimple_clobber_p stmts.
7144         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7145         gimple_clobber_p stmt if they have MEM_REF lhs and
7146         are dead because of another gimple_clobber_p stmt.
7147         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7148         gimple_clobber_p stmts like debug stmts.
7149         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7150         that refer to unused VAR_DECLs or uninitialized values.
7151         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7152         gimple_clobber_p stmts if they refer to removed parameters.
7153         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7154         formatting.
7156 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7158         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7159         using SWI48 mode attribute.
7161 2013-04-02  Wei Mi  <wmi@google.com>
7163         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7164         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7165         *<rotate_insn><mode>3_mask in i386.md.
7167 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7169         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7171 2013-04-02  Richard Biener  <rguenther@suse.de>
7173         PR tree-optimization/56778
7174         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7175         Runtime alias tests are not supported for gather loads.
7176         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7177         stmts referenced from SSA operands before updating SSA form.
7179 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7180             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7182         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7183         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7184         * config/arm/cortex-a53.md: New file.
7185         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7186         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7187         * config/arm/arm.c (arm_issue_rate): Likewise.
7188         * config/arm/arm-tune.md: Regenerate
7189         * config/arm/arm-tables.opt: Regenerate.
7190         * config/arm/arm-cores.def: Add cortex-a53.
7192 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7194         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7195         non-static link.
7197 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7199         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7200         scalar load/store operations using B/H registers.
7201         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7203 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7205         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7206         scalar move.
7207         * config/aarch64/aarch64.c
7208         (aarch64_simd_scalar_immediate_valid_for_move): New.
7209         * config/aarch64/aarch64-protos.h
7210         (aarch64_simd_scalar_immediate_valid_for_move): New.
7211         * config/aarch64/constraints.md (Dh, Dq): New.
7212         * config/aarch64/iterators.md (hq): New.
7214 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7216         * reorg.c (get_branch_condition): Deal with conditional returns.
7217         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7219 2013-04-01  Wei Mi  <wmi@google.com>
7221         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7222         Truncate operand 2 using %b asm operand modifier.
7223         (*<shift_insn><mode>3_mask): Ditto.
7224         (*<rotate_insn><mode>3_mask): Ditto.
7226 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7228         PR middle-end/56798
7229         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7231 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7233         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7234         of next_real_insn.
7235         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7237 2013-03-30  Lawrence Crowl  <crowl@google.com>
7239         * dse.c (clear_alias_sets): Remove never set.
7240         (disqualified_clear_alias_sets): Remove never set.
7241         (clear_alias_mode_pool): Remove never set.
7242         (dse_step0): Remove condition that is never true.
7243         (canon_address): Remove condition that is never true.
7244         (dse_step7): Remove condition that is never true.
7245         (rest_of_handle_dse): Remove condition that is never true.
7246         (rest_of_handle_dse::did_global): Remove never read from above.
7247         (dse_step2_spill): Remove never called from above.
7248         (dse_step5_spill): Remove never called from above.
7250 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7252         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7253         JUMP_TABLE_DATA changes.
7254         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7255         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7256         (Insns) <jump_table_data>: New entry.
7257         * doc/tm.texi: Regenerate.
7259         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7261         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7262         for table jump at the end of a basic block using tablejump_p.
7263         * targhooks.c (default_invalid_within_doloop): Likewise.
7264         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7265         target hook implementation that is identical to the default hook.
7266         (rs6000_invalid_within_doloop): Remove.
7268         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7269         unused variable from tablejump_p call.
7271         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7272         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7273         (INSN_DELETED_P): Likewise.
7274         (emit_jump_table_data): New prototype.
7275         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7276         after 4th as unused.
7277         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7278         * sched-vis.c (print_insn): Likewise.
7279         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7280         insn for compatibility with back ends that use next_active_insn to
7281         identify jump table data.
7282         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7283         (remove_insn): Likewise.
7284         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7285         to be emitted.
7286         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7287         (emit_jump_table_data): New function.
7289         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7290         basic block, a JUMP_TABLE_DATA never is.
7291         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7292         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7293         off from code handling real insns.
7294         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7295         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7296         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7297         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7298         is not a NONDEBUG_INSN_P.
7299         * ira-costs.c (scan_one_insn): Likewise.
7300         * jump.c (mark_all_labels): Likewise.
7301         (mark_jump_label_1): Likewise.
7302         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7303         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7304         a basic block.
7305         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7306         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7307         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7308         JUMP_TABLE_DATA_P insns.
7309         (calculate_elim_costs_all_insns): Likewise.
7310         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7311         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7312         (delete_output_reload): Code style fixups.
7313         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7314         insn flags on this non-insn.
7315         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7316         as scheduling barriers, for pre-change compatibility.
7317         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7318         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7320         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7321         redundant JUMP_TABLE_DATA_P test.
7322         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7323         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7324         (frv_for_each_packet): Likewise.
7325         * config/i386/i386.c (min_insn_size): Likewise.
7326         (ix86_avoid_jump_mispredicts): Likewise.
7327         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7328         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7329         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7330         (mips16_insn_length): Robustify.
7331         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7332         (mips16_split_long_branches): Likewise.
7333         * config/pa/pa.c (pa_combine_instructions): Likewise.
7334         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7335         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7336         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7337         as contributing to pool range lengths.
7338         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7339         Remove redundant JUMP_TABLE_DATA_P test.
7340         (sh_loop_align): Likewise.
7341         (split_branches): Likewise.
7342         (sh_insn_length_adjustment): Likewise.
7343         * config/spu/spu.c (get_branch_target): Likewise.
7345 2013-03-29  Jan Hubicka  <jh@suse.cz>
7347         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7348         gcov streaming; stream hot bb threshold to ltrans.
7349         * predict.c (get_hot_bb_threshold): Break out from ....
7350         (maybe_hot_count_p): ... here.
7351         (set_hot_bb_threshold): New function.
7352         * lto-section-in.c (lto_section_name): Add profile.
7353         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7354         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7355         and data-streamer.h
7356         (histogram_entry): New structure.
7357         (histogram, histogram_pool): New global vars.
7358         (histogram_hash): New structure.
7359         (histogram_hash::hash): New method.
7360         (histogram_hash::equal): Likewise.
7361         (account_time_size): New function.
7362         (cmp_counts): New function.
7363         (dump_histogram): New function.
7364         (ipa_profile_generate_summary): New function.
7365         (ipa_profile_write_summary): New function.
7366         (ipa_profile_read_summary): New function.
7367         (ipa_profile): Decide on threshold.
7368         (pass_ipa_profile): Add ipa_profile_write_summary and
7369         ipa_profile_read_summary.
7370         * Makefile.in (ipa.o): Update dependencies.
7371         * lto-streamer.h (LTO_section_ipa_profile): New section.
7373 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7375         * tree.h (VAR_P): New.
7377 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7379         PR lto/56777
7380         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7382 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7384         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7385         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7386         (control_flow_insn_p): Likewise.
7387         * cfgrtl.c (duplicate_insn_chain): Likewise.
7388         * final.c (get_attr_length_1): Likewise.
7389         (shorten_branches): Likewise.
7390         (final_scan_insn): Likewise.
7391         * function.c (instantiate_virtual_regs): Likewise.
7392         * gcse.c (insert_insn_end_basic_block): Likewise.
7393         * ira-costs.c (scan_one_insn): Likewise.
7394         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7395         * lra.c (check_rtl): Likewise.
7396         * reload1.c (elimination_costs_in_insn): Likewise.
7397         * reorg.c (follow_jumps): Likewise.
7399         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7400         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7401         (thumb_far_jump_used_p): Likewise.
7402         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7403         (workaround_speculation): Likewise.
7404         (add_sched_insns_for_speculation): Likewise.
7405         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7406         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7407         (frv_for_each_packet): Likewise.
7408         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7409         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7410         (final_emit_insn_group_barriers): Likewise.
7411         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7412         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7413         (mips16_insn_length): Likewise.
7414         * config/pa/pa.c (pa_reorg): Likewise.
7415         (pa_combine_instructions): Likewise.
7416         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7417         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7418         (sh_reorg): Likewise.
7419         (split_branches): Likewise.
7420         * config/spu/spu.c (get_branch_target): Likewise.
7422         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7423         JUMP_TABLE_DATA_P.
7425 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7427         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7428         Fix declaration name.
7430 2013-03-28  Lawrence Crowl  <crowl@google.com>
7432         * graphds.h (struct graph.indicies): Remove unused.
7433         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7434         (SCOP_ORIGINAL_PDDRS): Remove unused.
7435         * sese.h (extern insert_loop_close_phis): Removed unused.
7436         (extern insert_guard_phis): Removed unused.
7437         (extern ivtype_map_elt_info): Removed unused.
7438         (new_ivtype_map_elt): Removed unused.
7439         * sese.c (ivtype_map_elt_info): Removed unused.
7441 2013-03-28  Lawrence Crowl  <crowl@google.com>
7443         * Makefile.in: Add several missing include dependences.
7444         (DUMPFILE_H): New.
7445         (test-dump.o): New.  This object is not added to any executable,
7446         but is present for ad-hoc testing.
7447         * bitmap.c
7448         (debug (const bitmap_head_def &)): New.
7449         (debug (const bitmap_head_def *)): New.
7450         * bitmap.h
7451         (extern debug (const bitmap_head_def &)): New.
7452         (extern debug (const bitmap_head_def *)): New.
7453         * cfg.c
7454         (debug (edge_def &)): New.
7455         (debug (edge_def *)): New.
7456         * cfghooks.c
7457         (debug (basic_block_def &)): New.
7458         (debug (basic_block_def *)): New.
7459         * dumpfile.h
7460         (dump_node (const_tree, int, FILE *)): Correct source file.
7461         * dwarf2out.c
7462         (debug (die_struct &)): New.
7463         (debug (die_struct *)): New.
7464         * dwarf2out.h
7465         (extern debug (die_struct &)): New.
7466         (extern debug (die_struct *)): New.
7467         * gimple-pretty-print.c
7468         (debug (gimple_statement_d &)): New.
7469         (debug (gimple_statement_d *)): New.
7470         * gimple-pretty-print.h
7471         (extern debug (gimple_statement_d &)): New.
7472         (extern debug (gimple_statement_d *)): New.
7473         * ira-build.c
7474         (debug (ira_allocno_copy &)): New.
7475         (debug (ira_allocno_copy *)): New.
7476         (debug (ira_allocno &)): New.
7477         (debug (ira_allocno *)): New.
7478         * ira-int.h
7479         (extern debug (ira_allocno_copy &)): New.
7480         (extern debug (ira_allocno_copy *)): New.
7481         (extern debug (ira_allocno &)): New.
7482         (extern debug (ira_allocno *)): New.
7483         * ira-lives.c
7484         (debug (live_range &)): New.
7485         (debug (live_range *)): New.
7486         * lra-int.h
7487         (debug (lra_live_range &)): New.
7488         (debug (lra_live_range *)): New.
7489         * lra-lives.c
7490         (debug (lra_live_range &)): New.
7491         (debug (lra_live_range *)): New.
7492         * omega.c
7493         (debug (omega_pb_d &)): New.
7494         (debug (omega_pb_d *)): New.
7495         * omega.h
7496         (extern debug (omega_pb_d &)): New.
7497         (extern debug (omega_pb_d *)): New.
7498         * print-rtl.c
7499         (debug (const rtx_def &)): New.
7500         (debug (const rtx_def *)): New.
7501         * print-tree.c
7502         (debug_tree (tree): Move within file.
7503         (debug_raw (const tree_node &)): New.
7504         (debug_raw (const tree_node *)): New.
7505         (dump_tree_via_hooks (const tree_node *, int)): New.
7506         (debug (const tree_node &)): New.
7507         (debug (const tree_node *)): New.
7508         (debug_verbose (const tree_node &)): New.
7509         (debug_verbose (const tree_node *)): New.
7510         (debug_head (const tree_node &)): New.
7511         (debug_head (const tree_node *)): New.
7512         (debug_body (const tree_node &)): New.
7513         (debug_body (const tree_node *)): New.
7514         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7515         (debug (vec<tree, va_gc> &)): New.
7516         (debug (vec<tree, va_gc> *)): New.
7517         * rtl.h
7518         (extern debug (const rtx_def &)): New.
7519         (extern debug (const rtx_def *)): New.
7520         * sbitmap.c
7521         (debug_raw (simple_bitmap_def &)): New.
7522         (debug_raw (simple_bitmap_def *)): New.
7523         (debug (simple_bitmap_def &)): New.
7524         (debug (simple_bitmap_def *)): New.
7525         * sbitmap.h
7526         (extern debug (simple_bitmap_def &)): New.
7527         (extern debug (simple_bitmap_def *)): New.
7528         (extern debug_raw (simple_bitmap_def &)): New.
7529         (extern debug_raw (simple_bitmap_def *)): New.
7530         * sel-sched-dump.c
7531         (debug (vinsn_def &)): New.
7532         (debug (vinsn_def *)): New.
7533         (debug_verbose (vinsn_def &)): New.
7534         (debug_verbose (vinsn_def *)): New.
7535         (debug (expr_def &)): New.
7536         (debug (expr_def *)): New.
7537         (debug_verbose (expr_def &)): New.
7538         (debug_verbose (expr_def *)): New.
7539         (debug (vec<rtx> &)): New.
7540         (debug (vec<rtx> *)): New.
7541         * sel-sched-dump.h
7542         (extern debug (vinsn_def &)): New.
7543         (extern debug (vinsn_def *)): New.
7544         (extern debug_verbose (vinsn_def &)): New.
7545         (extern debug_verbose (vinsn_def *)): New.
7546         (extern debug (expr_def &)): New.
7547         (extern debug (expr_def *)): New.
7548         (extern debug_verbose (expr_def &)): New.
7549         (extern debug_verbose (expr_def *)): New.
7550         (extern debug (vec<rtx> &)): New.
7551         (extern debug (vec<rtx> *)): New.
7552         * sel-sched-ir.h
7553         (_list_iter_cond_expr): Make inline instead of static.
7554         * sreal.c
7555         (debug (sreal &)): New.
7556         (debug (sreal *)): New.
7557         * sreal.h
7558         (extern debug (sreal &)): New.
7559         (extern debug (sreal *)): New.
7560         * tree.h
7561         (extern debug_raw (const tree_node &)): New.
7562         (extern debug_raw (const tree_node *)): New.
7563         (extern debug (const tree_node &)): New.
7564         (extern debug (const tree_node *)): New.
7565         (extern debug_verbose (const tree_node &)): New.
7566         (extern debug_verbose (const tree_node *)): New.
7567         (extern debug_head (const tree_node &)): New.
7568         (extern debug_head (const tree_node *)): New.
7569         (extern debug_body (const tree_node &)): New.
7570         (extern debug_body (const tree_node *)): New.
7571         (extern debug (vec<tree, va_gc> &)): New.
7572         (extern debug (vec<tree, va_gc> *)): New.
7573         * tree-cfg.c
7574         (debug (struct loop &)): New.
7575         (debug (struct loop *)): New.
7576         (debug_verbose (struct loop &)): New.
7577         (debug_verbose (struct loop *)): New.
7578         * tree-dump.c: Add header dependence.
7579         * tree-flow.h
7580         (extern debug (struct loop &)): New.
7581         (extern debug (struct loop *)): New.
7582         (extern debug_verbose (struct loop &)): New.
7583         (extern debug_verbose (struct loop *)): New.
7584         * tree-data-ref.c
7585         (debug (data_reference &)): New.
7586         (debug (data_reference *)): New.
7587         (debug (vec<data_reference_p> &)): New.
7588         (debug (vec<data_reference_p> *)): New.
7589         (debug (vec<ddr_p> &)): New.
7590         (debug (vec<ddr_p> *)): New.
7591         * tree-data-ref.h
7592         (extern debug (data_reference &)): New.
7593         (extern debug (data_reference *)): New.
7594         (extern debug (vec<data_reference_p> &)): New.
7595         (extern debug (vec<data_reference_p> *)): New.
7596         (extern debug (vec<ddr_p> &)): New.
7597         (extern debug (vec<ddr_p> *)): New.
7598         * tree-ssa-alias.c
7599         (debug (pt_solution &)): New.
7600         (debug (pt_solution *)): New.
7601         * tree-ssa-alias.h
7602         (extern debug (pt_solution &)): New.
7603         (extern debug (pt_solution *)): New.
7604         * tree-ssa-alias.c
7605         (debug (_var_map &)): New.
7606         (debug (_var_map *)): New.
7607         (debug (tree_live_info_d &)): New.
7608         (debug (tree_live_info_d *)): New.
7609         * tree-ssa-alias.h
7610         (extern debug (_var_map &)): New.
7611         (extern debug (_var_map *)): New.
7612         (extern debug (tree_live_info_d &)): New.
7613         (extern debug (tree_live_info_d *)): New.
7615 2013-03-28  Jan Hubicka  <jh@suse.cz>
7617         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7619 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7621         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7622         record only when desired or required.
7624 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7626         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7627         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7629 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7631         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7632         (*andsi3_compare0_uxtw): New pattern.
7633         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7634         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7636 2013-03-28  Jan Hubicka  <jh@suse.cz>
7638         * data-streamer-in.c (streamer_read_gcov_count): New function.
7639         * gimple-streamer-out.c: Include value-prof.h.
7640         (output_gimple_stmt): Output histogram.
7641         (output_bb): Use streamer_write_gcov_count.
7642         * value-prof.c: Include data-streamer.h
7643         (dump_histogram_value): Add HIST_TYPE_MAX.
7644         (stream_out_histogram_value): New function.
7645         (stream_in_histogram_value): New function.
7646         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7647         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7648         * data-streamer-out.c (streamer_write_gcov_count): New function.
7649         (streamer_write_gcov_count_stream): New function.
7650         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7651         (lto_output_node): Likewise.
7652         (input_node, input_edge): Likewise.
7653         * lto-streamer-out.c (output_cfg): Update streaming.
7654         * lto-streamer-in.c (input_cfg): Likewise.
7655         * data-streamer.h (streamer_write_gcov_count,
7656         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7657         * gimple-streamer-in.c: Include value-prof.h
7658         (input_gimple_stmt): Input histograms.
7659         (input_bb): Update profile streaming.
7661 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7663         * genmodes.c (emit_max_int): New function.
7664         (emit_insn_modes_h): Added call to emit_max_function.
7665         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7666         Added doc.
7667         * machmode.def: Fixed comment.
7669 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7671         * combine.c (try_combine): Removed useless assert.
7672         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7674 2013-03-28  Marek Polacek  <polacek@redhat.com>
7675             Richard Biener  <rguenther@suse.de>
7677         PR tree-optimization/56695
7678         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7679         build signed result of a vector comparison.
7680         * tree-cfg.c (verify_gimple_comparison): Check that a result
7681         of a vector comparison has signed type.
7683 2013-03-28  Richard Biener  <rguenther@suse.de>
7685         PR tree-optimization/37021
7686         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7687         do not restrict gaps between groups.
7688         * tree-vect-stmts.c (vectorizable_load): Properly account for
7689         a gap between groups.
7691 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7693         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7694         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7695         is not enabled.
7697 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7699         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7700         * doc/extend.texi (Named Address Spaces): Ditto.
7701         (Variable Attributes): Ditto.
7703 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7705         * config.build: Add support for cygwin x64 target.
7706         * config.gcc: Likewise.
7707         * config.host: Likewise.
7708         * configure.ac: Likewise
7709         * configure: Regenerated.
7711 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7713         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7714         * config/i386/t-cygwin-w64: New file.
7715         * config/i386/cygwin-w64.h: New file.
7716         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7717         and add support for x64-cygwin target.
7718         (CPP_SPEC): Likewise.
7719         (CXX_WRAP_SPEC_LIST): Undefine before define.
7720         (LIBGCJ_SONAME): Use 15 as version.
7722 2013-03-27  Richard Biener  <rguenther@suse.de>
7724         PR tree-optimization/56716
7725         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7726         dumping for ref nodes.
7728 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7730         PR tree-optimization/55334
7731         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7732         restricted pointers to arrays.
7734 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7736         * Makefile.in (.SUFFIXES): Add .cc.
7737         (.c.o): Apply same recipe for implicit rule .cc.o.
7739 2013-03-27  Richard Biener  <rguenther@suse.de>
7741         PR tree-optimization/37021
7742         * tree-vect-data-refs.c (vect_check_strided_load): Allow
7743         REALPART/IMAGPART_EXPRs around the supported refs.
7744         * tree-ssa-structalias.c (find_func_aliases): Assume that
7745         floating-point values are not used to transfer pointers.
7747 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7749         * target.def (TARGET_HAS_IFUNC_P): New target hook.
7750         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7751         * doc/tm.texi: Regenerate.
7752         * targhooks.h (default_has_ifunc_p): New.
7753         * targhooks.c (default_has_ifunc_p): Ditto.
7754         * config/linux-protos.h: New file.
7755         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7756         this hook for linux which disables support of indirect functions in
7757         android.
7758         * config/linux-android.c: New file.
7759         * config/t-linux-android.c: Ditto.
7760         * config.gcc: Added new object file linux-android.o.
7761         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7762         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7763         * varasm.c (do_assemble_alias): Likewise.
7764         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7765         doesn't support indirect functions.
7766         * configure: Regenerate.
7768 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
7770         PR target/56102
7771         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7772         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7773         mult-word mode.
7775 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7777         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7779 2013-03-27  Terry Guo  <terry.guo@arm.com>
7781         * config/arm/arm-cores.def: Added core cortex-r7.
7782         * config/arm/arm-tune.md: Regenerated.
7783         * config/arm/arm-tables.opt: Regenerated.
7784         * doc/invoke.texi: Added entry for core cortex-r7.
7786 2013-03-27  Walter Lee  <walt@tilera.com>
7788         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7789         double-decrement of next_scratch_regno.
7791 2013-03-27  Walter Lee  <walt@tilera.com>
7793         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7794         input operands.
7795         (insn_v1mulus): Ditto.
7796         (insn_v2muls): Ditto.
7798 2013-03-27  Walter Lee  <walt@tilera.com>
7800         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7801         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7803 2013-03-27  Walter Lee  <walt@tilera.com>
7805         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7806         (*sibcall_value): Ditto.
7808 2013-03-27  Walter Lee  <walt@tilera.com>
7810         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7811         (insn_mnz_v8qi): ... this ...
7812         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
7813         vector equivalent.
7814         (insn_v<n>mnz): Replaced by ...
7815         (insn_v1mnz): ... this ...
7816         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
7817         equivalent.
7818         (insn_mz_<mode>): Replaced by ...
7819         (insn_mz_v8qi): ... this ...
7820         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
7821         vector equivalent.
7822         (insn_v<n>mz): Replaced by ...
7823         (insn_v1mz): ... this ...
7824         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
7825         equivalent.
7827 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7829         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7831 2013-03-26  Roland McGrath  <mcgrathr@google.com>
7833         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7834         than fprintf with a non-constant, non-format string.
7836 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7838         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7839         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
7840         operand 0 predicate.
7841         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7842         attribute.  Use general_x64nomem_operand as operand 1 predicate.
7843         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7844         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7845         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7846         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7847         (mov<mode>_insv_1): Remove expander.  Merge insn with
7848         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7849         Use general_x64nomem_operand as operand 1 predicate.
7850         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7851         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7852         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7853         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7854         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
7855         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7856         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7857         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7858         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
7859         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7860         (general_x64nomem_operand): Ditto.
7862 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7864         * config/rtems.opt: Add -pthread option.
7866 2013-03-26  Richard Biener  <rguenther@suse.de>
7868         * alias.c (find_base_term): Avoid redundant and not used recursion.
7869         (base_alias_check): Get the initial base term from the caller.
7870         (true_dependence_1): Compute and pass base terms to base_alias_check.
7871         (write_dependence_p): Likewise.
7872         (may_alias_p): Likewise.
7874 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
7876         * config/aarch64/aarch64.c (aarch64_classify_address): Support
7877         PC-relative load in SI modes and above only.
7879 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
7881         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7882         * config/arm/iwmmxt.md (WCGR0): Update.
7883         (WCGR1, WCGR2, WCGR3): Likewise.
7885 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7887         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7888         Use x64 and nox64 isa attributes.
7890 2013-03-26  Richard Biener  <rguenther@suse.de>
7892         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7893         alignment computations and rely on get_object_alignment_1
7894         for the !TYPE_P case.
7895         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7897 2013-03-26  Walter Lee  <walt@tilera.com>
7899         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7900         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7902 2013-03-25  Jeff Law  <law@redhat.com>
7904         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7905         check for INTEGRAL_TYPE_P that was missing due to checking in
7906         wrong version of prior patch.
7908 2013-03-25  Walter Lee  <walt@tilera.com>
7910         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7911         TILEGX_INSN_SHUFFLEBYTES1.
7912         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7913         shufflebytes1.
7914         (tilegx_builtins): Ditto.
7915         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7917 2013-03-25  Walter Lee  <walt@tilera.com>
7919         * config/tilegx/tilegx.md (floatsisf2): New pattern.
7920         (floatunssisf2): New pattern.
7921         (floatsidf2): New pattern.
7922         (floatunssidf2): New pattern.
7924 2013-03-25  Walter Lee  <walt@tilera.com>
7926         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7927         tests for constraint J, K, N, P.
7929 2013-03-25  Walter Lee  <walt@tilera.com>
7931         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7932         Use indirect/pcrel encoding.
7933         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7934         Ditto.
7936 2013-03-25  Steve Ellcey  <sellcey@mips.com>
7938         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7939         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7940         * config/mips/mips.c (mips_option_override): Set IMADD default.
7941         * config/mips/mips.h (PTF_AVOID_IMADD): New.
7942         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7943         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7944         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7945         * doc/invoke.texi (-mimadd/-mno-imadd): New.
7947 2013-03-25  Jeff Law  <law@redhat.com>
7949         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7950         slightly to avoid creating and folding useless trees.  Simplify
7951         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7953 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
7955         * config/i386/i386.md (*zero_extendsidi2): Merge with
7956         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
7957         * config/i386/predicates.md (x86_64_zext_operand): Rename from
7958         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
7959         targets.  Clarify comment.
7961 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7963         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7964         pass-through jump functions differently.
7965         (ipa_read_jump_function): Likewise.  Also use setter functions to set
7966         up jump functions.
7968 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7970         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7971         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7972         process it.
7973         (ipa_get_indirect_edge_target): New function.
7974         (devirtualization_time_bonus): New parameter known_aggs, pass it to
7975         ipa_get_indirect_edge_target.  Update all callers.
7976         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
7977         ipa_get_indirect_edge_target_1 instead of calling
7978         ipa_get_indirect_edge_target.
7979         (create_specialized_node): Pass aggvlas to
7980         ipcp_discover_new_direct_edges.
7982 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7984         * config/arm/arm.md (f_sels, f_seld): New types.
7985         (*cmov<mode>): New pattern.
7986         * config/arm/predicates.md (arm_vsel_comparison_operator): New
7987         predicate.
7989 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7991         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7992         POSIX-printf for mingw-hosted  builds.
7994 2013-03-25  Richard Biener  <rguenther@suse.de>
7996         PR middle-end/56694
7997         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7998         must-not-throw stmt location.
8000 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8002         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8003         Emit load-acquire versions when acq is true.
8004         (arm_emit_store_exclusive): Add rel parameter.
8005         Emit store-release versions when rel is true.
8006         (arm_split_compare_and_swap): Use acquire-release instructions
8007         instead.
8008         of barriers when appropriate.
8009         (arm_split_atomic_op): Likewise.
8010         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8011         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8012         (VUNSPEC_SLX): Likewise.
8013         (VUNSPEC_LDA): Likewise.
8014         (VUNSPEC_STL): Likewise.
8015         * config/arm/sync.md (atomic_load<mode>): New pattern.
8016         (atomic_store<mode>): Likewise.
8017         (arm_load_acquire_exclusive<mode>): Likewise.
8018         (arm_load_acquire_exclusivesi): Likewise.
8019         (arm_load_acquire_exclusivedi): Likewise.
8020         (arm_store_release_exclusive<mode>): Likewise.
8022 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8024         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8025         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8026         * config/mip/predicates.md (lwsp_swsp_operand,
8027         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8028         sb16_operand, db4_operand, db7_operand, ib3_operand,
8029         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8030         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8031         andi16_operand): New predicates.
8032         * config/mips/mips.md (compression): New attribute.
8033         (enabled): New attribute.
8034         (length): Consider compression in computing length.
8035         (shift_compression): New code attribute.
8036         (*add<mode>3): New operands. Record compression.
8037         (sub<mode>3): Likewise.
8038         (one_cmpl<mode>2): Likewise.
8039         (*and<mode>3): Likewise.
8040         (*ior<mode>3): Likewise.
8041         (unnamed pattern for xor): Likewise.
8042         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8043         (*<optab><mode>3): Likewise.
8044         (*mov<mode>_internal: Likewise.
8045         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8046         (mips_unsigned_immediate_p): New.
8047         (umips_lwsp_swsp_address_p): New.
8048         (m16_based_address_p): New.
8049         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8050         (mips_unsigned_immediate_p): New prototype.
8051         (lwsp_swsp_address_p): New prototype.
8052         (m16_based_address_p): New prototype.
8053         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8054         (mips_signed_immediate_p): New function.
8055         (m16_based_address_p): New function.
8056         (lwsp_swsp_address_p): New function.
8057         (mips_print_operand_punctuation): Recognize short delay slot insns
8058         for microMIPS.add<mode>3"
8060 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8062         PR target/56720
8063         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8064         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8066 2013-03-25  Richard Biener  <rguenther@suse.de>
8068         PR tree-optimization/56689
8069         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8070         any edge.
8072 2013-03-25  Richard Biener  <rguenther@suse.de>
8074         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8075         of bitmap.
8076         (memory_references): Likewise.
8077         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8078         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8079         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8080         (gather_mem_refs_in_loops): Fold into ...
8081         (analyze_memory_references): ... this.  Move initialization
8082         to tree_ssa_lim_initialize.
8083         (fill_always_executed_in): Rename to ...
8084         (fill_always_executed_in_1): ... this.
8085         (fill_always_executed_in): Move contains_call computation to
8086         this new function from ...
8087         (tree_ssa_lim_initialize): ... here.
8088         (tree_ssa_lim): Call fill_always_executed_in.
8090 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8092         * postreload.c (reload_combine): Fix code detecting returns.
8094 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8096         * function.c (emit_use_return_register_into_block): On cc0 targets,
8097         do not emit the sequence between cc0 setter and user.
8099 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8101         * config/i386/predicates.md (local_symbolic_operand): Interpret
8102         dll-imported symbols as none-local.
8104 2013-03-25  Richard Biener  <rguenther@suse.de>
8106         * tree-ssa-loop-im.c (struct depend): Remove.
8107         (struct lim_aux_data): Make depends a vec of gimples.
8108         (free_lim_aux_data): Adjust.
8109         (add_dependency): Likewise.
8110         (set_level): Likewise.
8112 2013-03-25  Richard Biener  <rguenther@suse.de>
8114         PR middle-end/56434
8115         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8116         the pointer returned by calls with ECF_MALLOC set.
8118 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8120         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8122 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8124         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8125         using MMXMODE mode iterator.
8126         (*move<mode>_internal): Merge with *movv2sf_internal and
8127         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8129 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8131         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8132         (record_last_mem_set_info): Likewise.
8134         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8135         of XNEWVEC followed by memset.
8136         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8138 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8140         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8141         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8142         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8143         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8144         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8145         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8146         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8147         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8148         BARRIER_P instead of GET_CODE.
8150 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8152         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8153         inaccuracy in the probing code.
8155         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8156         (ctrapdi4): Likewise.
8158 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8160         * calls.c (expand_call): Add missing guard to code handling return
8161         of non-BLKmode structures in MSB.
8162         * function.c (expand_function_end): Likewise.
8164 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8166         * combine.c (try_combine): Adjust comment.  Do not add the set of
8167         insn #0 if the destination indirectly is set or dies in insn #2.
8168         Tidy up code to distribute a new note.
8170 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8172         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8173         also for alternatives 16 and 17.
8175 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8177         * config/i386/sse.md (*mov<mode>_internal): Merge with
8178         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8179         Emit insn template depending on type attribute.  Use
8180         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8181         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8182         attribute calculation.  Remove unit attribute calculation.
8183         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8184         Set prefix_data16 attribute for DImode ssemov types.
8185         Use Ym instead of y for SSE-MMX conversion alternatives.
8186         Reorder operand constraints.
8188 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8190         * df.h (df_insn_delete): Adjust prototype.
8191         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8192         and let it decide whether mark the basic block dirty.
8193         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8194         * df-scan.c (df_insn_info_delete): New helper function, split
8195         off from df_insn_delete.
8196         (df_scan_free_bb_info): Use it.
8197         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8198         Likewise.
8199         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8200         that the insn is actually an insn and it has a non-NULL basic block.
8201         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8203 2013-03-22  Richard Biener  <rguenther@suse.de>
8205         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8206         dep_ref members.
8207         (mem_ref_alloc): Do not allocate them.
8208         (refs_independent_p): Do not query or maintain a cache.
8210 2013-03-22  Richard Biener  <rguenther@suse.de>
8212         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8213         (gather_mem_refs_in_loops): Do not compute it.
8214         (analyze_memory_references): Do not allocate it.
8215         (tree_ssa_lim_finalize): Do not free it.
8216         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8218 2013-03-22  Richard Biener  <rguenther@suse.de>
8220         * is-a.h (as_a): Use gcc_checking_assert.
8222 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8224         * config/aarch64/aarch64.c (aarch64_print_operand): New
8225         format specifier for printing a constant in hex.
8226         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8227         format specifier for printing second operand.
8229 2013-03-22  Richard Biener  <rguenther@suse.de>
8231         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8232         bitmaps.
8233         (gather_mem_refs_in_loops): Perform store accumulation here.
8234         (create_vop_ref_mapping_loop): Remove.
8235         (create_vop_ref_mapping): Likewise.
8236         (analyze_memory_references): Initialize refs_stored_in_loop.
8237         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8238         (record_indep_loop): Remove.
8239         (record_dep_loop): New function.
8240         (ref_indep_loop_p_1): Adjust to only walk over references
8241         in the loop, not its subloops.
8242         (ref_indep_loop_p): Rename to ...
8243         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8244         maintaining a more fine-grained cache.
8245         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8246         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8248 2013-03-22  Richard Biener  <rguenther@suse.de>
8250         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8251         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8252         aggregate mem_ref_loc.
8253         (free_mem_ref_locs): Inline into ...
8254         (memref_free): ... this and adjust.
8255         (mem_ref_alloc): Adjust.
8256         (mem_ref_locs_alloc): Remove.
8257         (record_mem_ref_loc): Adjust.
8258         (get_all_locs_in_loop): Rewrite into ...
8259         (for_all_locs_in_loop): ... this iterator.
8260         (rewrite_mem_ref_loc): New functor.
8261         (rewrite_mem_refs): Use for_all_locs_in_loop.
8262         (sm_set_flag_if_changed): New functor.
8263         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8264         (ref_always_accessed): New functor.
8265         (ref_always_accessed_p): Use for_all_locs_in_loop.
8267 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8269         * tree-pass.h (PROP_gimple_lvec): New.
8270         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8271         (init_optimization_passes): Move pass_lower_vector.
8272         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8273         PROP_gimple_lvec.
8274         (pass_lower_vector): Provide PROP_gimple_lvec.
8275         (pass_lower_vector_ssa): Likewise.
8276         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8278 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8280         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8282 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8284         * config/i386/i386.md (*movdi_internal): Disparage slightly
8285         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8286         conversion alternatives.
8288 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8290         PR middle-end/48087
8291         * diagnostic.def (DK_WERROR): New kind.
8292         * diagnostic.h (werrorcount): Define.
8293         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8294         promoted to DK_ERROR, increment DK_WERROR counter instead of
8295         DK_ERROR counter.
8296         * toplev.c (toplev_main): Call print_ignored_options even if
8297         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8298         even if just werrorcount is non-zero.
8300         PR debug/55608
8301         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8302         on failure.
8303         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8304         (string_cst_pool_decl): New function.
8305         (optimize_one_addr_into_implicit_ptr): New function.
8306         (resolve_addr_in_expr): Optimize DWARF location expression
8307         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8308         which doesn't live in memory, but has DW_AT_location or
8309         DW_AT_const_value, or refers to a string literal, into
8310         DW_OP_GNU_implicit_pointer.
8311         (optimize_location_into_implicit_ptr): New function.
8312         (resolve_addr): If removing DW_AT_location of a variable because
8313         it was DW_OP_addr of address of the variable, but the variable doesn't
8314         live in memory, try to emit const value attribute for the initializer.
8316 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8318         * tree.h (VECTOR_TYPE_P): New macro.
8319         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8320         TYPE_MODE): Use it.
8321         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8322         VEC_COND_EXPR cannot be lvalues.
8323         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8325 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8327         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8328         Restrict the transformation to equal modes.
8330 2013-03-21  Richard Biener  <rguenther@suse.de>
8332         PR tree-optimization/39326
8333         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8334         (MEM_ANALYZABLE): Adjust.
8335         (record_mem_ref_loc): Move bitmap ops ...
8336         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8337         unanalyzable refs, do not record locations for it.
8338         (analyze_memory_references): Allocate ref zero as shared
8339         unanalyzable ref.
8340         (refs_independent_p): Do not test for unanalyzed mems here.
8341         (ref_indep_loop_p_1): Special-case disambiguation against
8342         the unanalyzed ref.
8343         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8345 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8347         * config/arm/arm-protos.h (tune_params): Add
8348         prefer_neon_for_64bits field.
8349         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8350         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8351         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8352         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8353         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8354         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8355         (arm_option_override): Handle -mneon-for-64bits new option.
8356         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8357         (prefer_neon_for_64bits): Declare new variable.
8358         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8359         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8360         (arch_enabled): Handle new arch types. Remove support for onlya8
8361         and nota8.
8362         (one_cmpldi2): Use new arch names.
8363         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8364         * config/arm/arm.opt (mneon-for-64bits): Add option.
8365         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8366         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8367         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8368         of onlya8.
8369         * doc/invoke.texi (-mneon-for-64bits): Document.
8371 2013-03-21  Richard Biener  <rguenther@suse.de>
8373         PR tree-optimization/39326
8374         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8375         (sort_bbs_in_loop_postorder_cmp): New function.
8376         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8378 2013-03-21  Richard Biener  <rguenther@suse.de>
8380         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8381         (vect_insert_into_interleaving_chain): Likewise.
8382         (vect_drs_dependent_in_basic_block): Inline ...
8383         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8384         split out from ...
8385         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8386         (vect_check_interleaving): Simplify.
8387         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8388         (vect_slp_analyze_data_ref_dependences): ... this new function.
8389         (dr_group_sort_cmp): New function.
8390         (vect_analyze_data_ref_accesses): Compute data-reference groups
8391         here instead of in vect_analyze_data_ref_dependence.  Use
8392         a more efficient algorithm.
8393         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8394         vect_slp_analyze_data_ref_dependences.  Call
8395         vect_analyze_data_ref_accesses earlier.
8396         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8397         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8398         (vect_slp_analyze_data_ref_dependences): New prototype.
8400 2013-03-21  Richard Biener  <rguenther@suse.de>
8402         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8403         ref is stored in the loop.
8404         (find_refs_for_sm): Walk only over all stores.
8405         (store_motion_loop): Allocate from lim_bitmap_obstack.
8406         (store_motion): Likewise.
8408 2013-03-21  Richard Biener  <rguenther@suse.de>
8410         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8411         Update virtual SSA form.
8413 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8415         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8416         * configure: Regenerate.
8417         * config.in: Regenerate.
8418         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8419         if !HAVE_LD_EH_FRAME_CIEV3.
8421 2013-03-21  Richard Biener  <rguenther@suse.de>
8423         * tree-cfg.c (verify_expr_no_block): New function.
8424         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8425         nor DECL_VALUE_EXPR have locations with associated blocks.
8426         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8427         (clear_unused_block_pointer): Remove code dealing with
8428         blocks in DECL_DEBUG_EXPR locations.
8430 2013-03-21  Richard Biener  <rguenther@suse.de>
8432         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8433         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8434         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8435         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8436         instead of DECL_DEBUG_EXPR_IS_FROM.
8437         * gimplify.c (gimplify_modify_expr): Likewise.
8438         * tree-cfg.c (verify_expr_location_1): Likewise.
8439         * tree-complex.c (create_one_component_var): Likewise.
8440         * tree-sra.c (create_access_replacement): Likewise.
8441         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8442         (clear_unused_block_pointer): Likewise.
8443         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8444         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8445         * var-tracking.c (var_debug_decl): Likewise.
8446         (track_expr_p): Likewise.
8447         * tree-inline.c (add_local_variables): Likewise.  Set
8448         DECL_HAS_DEBUG_EXPR_P after copying it.
8449         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8450         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8452 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8454         PR bootstrap/56656
8455         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8456         * configure: Regenerate.
8457         * config.in: Regenerate.
8458         * config/i386/i386.md (*movdf_internal): Use
8459         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8460         movd instead of movq mnemonic for interunit moves.
8461         (*movdi_internal): Ditto.
8463 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8465         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8466         (abd<mode>_3): New pattern.
8467         (aba<mode>_3): New pattern.
8468         (fabd<mode>_3): New pattern.
8470 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8472         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8473         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8474         occurrence of REGISTER_PREFIX as its empty string.
8476 2013-03-20  Jeff Law  <law@redhat.com>
8478         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8479         addititional equivalences for equality comparisons between an SSA_NAME
8480         and a constant where the SSA_NAME was set from a widening conversion.
8482 2013-03-20  Walter Lee  <walt@tilera.com>
8484         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8486 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8488         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8489         depending on type attribute.
8490         (*movti_internal): Ditto.
8491         (*movtf_internal): Ditto.
8492         (*movxf_internal): Ditto.
8493         (*movdf_internal): Ditto.
8494         (*movsf_internal): Ditto.
8496 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8498         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8499         maybe_vex for sselog1 and ssemov types.
8500         (*movdi_internal): Reorder operand constraints.
8501         (*movsi_internal): Ditto.  Set prefix attribute to
8502         maybe_vex for sselog1 and ssemov types.
8503         (*movtf_internal): Set prefix attribute to maybe_vex
8504         for sselog1 and ssemov types.
8505         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8506         DImode ssemov types.  Reorder operand constraints.
8507         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8508         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8509         attribute for SImode ssemov types.  Reorder operand constraints.
8511 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8513         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8514         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8516 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8518         * config/rs6000/predicates.md (indexed_address, update_address_mem
8519         update_indexed_address_mem): New predicates.
8520         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8521         attribute for load/store instructions.
8522         * config/rs6000/dfp.md (movsd_store): Likewise.
8523         (movsd_load): Likewise.
8524         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8525         (unnamed HI->DI extend define_insn): Likewise.
8526         (unnamed SI->DI extend define_insn): Likewise.
8527         (unnamed QI->SI extend define_insn): Likewise.
8528         (unnamed QI->HI extend define_insn): Likewise.
8529         (unnamed HI->SI extend define_insn): Likewise.
8530         (unnamed HI->SI extend define_insn): Likewise.
8531         (extendsfdf2_fpr): Likewise.
8532         (movsi_internal1): Likewise.
8533         (movsi_internal1_single): Likewise.
8534         (movhi_internal): Likewise.
8535         (movqi_internal): Likewise.
8536         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8537         attribute for load/store instructions.
8538         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8539         instructions.
8540         (mov<mode>_softfloat): Likewise.
8541         (mov<mode>_hardfloat32): Likewise.
8542         (mov<mode>_hardfloat64): Likewise.
8543         (mov<mode>_softfloat64): Likewise.
8544         (movdi_internal32): Likewise.
8545         (movdi_internal64): Likewise.
8546         (probe_stack_<mode>): Likewise.
8548 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8550         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8551         floating point, and decimal floating point to reload iterator.
8553         * config/rs6000/constraints.md (wl constraint): New constraints to
8554         return FLOAT_REGS if certain options are used to reduce the number
8555         of separate patterns that exist in the file.
8556         (wx constraint): Likewise.
8557         (wz constraint): Likewise.
8559         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8560         -mdebug=reg, print wg, wl, wx, and wz constraints.
8561         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8562         Initialize the reload functions for 64-bit binary/decimal floating
8563         point types.
8564         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8565         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8566         create the buffer on the stack to overcome not having a 32-bit
8567         load and store.
8568         (rs6000_emit_move): Likewise.
8569         (rs6000_secondary_memory_needed_rtx): Likewise.
8570         (rs6000_alloc_sdmode_stack_slot): Likewise.
8571         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8572         via xxlxor, just like DFmode 0.0.
8574         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8575         define as 1 if we are running on a power7 or newer.
8576         (enum r6000_reg_class_enum): Add new constraints.
8578         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8579         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8580         with other moves by using conditional constraits (wg).  Use LFIWZX
8581         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8582         (movsd splitter): Likewise.
8583         (movsd_hardfloat): Likewise.
8584         (movsd_softfloat): Likewise.
8586         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8587         binary and decimal floating point moves.
8588         (fmove_ok): New attributes to combine binary and decimal floating
8589         point moves, and to combine power6x (mfpgpr) moves along normal
8590         floating moves.
8591         (real_value_to_target): Likewise.
8592         (f32_lr): Likewise.
8593         (f32_lm): Likewise.
8594         (f32_li): Likewise.
8595         (f32_sr): Likewise.
8596         (f32_sm): Likewise.
8597         (f32_si): Likewise.
8598         (movsf): Combine binary and decimal floating point moves.  Combine
8599         power6x (mfpgpr) moves with other moves by using conditional
8600         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8601         (mov<mode> for SFmode/SDmode); Likewise.
8602         (SFmode/SDmode splitters): Likewise.
8603         (movsf_hardfloat): Likewise.
8604         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8605         (movsf_softfloat): Likewise.
8606         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8608         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8609         wx and wz constraints.
8611         * config/rs6000/constraints.md (wg constraint): New constraint to
8612         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8614         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8615         constraint.
8617         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8618         -mdebug=reg, print wg, wl, wx, and wz constraints.
8619         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8620         Initialize the reload functions for 64-bit binary/decimal floating
8621         point types.
8622         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8623         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8624         create the buffer on the stack to overcome not having a 32-bit
8625         load and store.
8626         (rs6000_emit_move): Likewise.
8627         (rs6000_secondary_memory_needed_rtx): Likewise.
8628         (rs6000_alloc_sdmode_stack_slot): Likewise.
8629         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8630         via xxlxor, just like DFmode 0.0.
8632         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8633         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8634         with other moves by using conditional constraits (wg).  Use LFIWZX
8635         and STFIWX for loading SDmode on power7.
8636         (movdd splitters): Likewise.
8637         (movdd_hardfloat32): Likewise.
8638         (movdd_softfloat32): Likewise.
8639         (movdd_hardfloat64_mfpgpr): Likewise.
8640         (movdd_hardfloat64): Likewise.
8641         (movdd_softfloat64): Likewise.
8643         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8644         64-bit binary and decimal floating point moves.
8645         (FMOVE64X): Likewise.
8646         (movdf): Combine 64-bit binary and decimal floating point moves.
8647         Combine power6x (mfpgpr) moves with other moves by using
8648         conditional constraits (wg).
8649         (mov<mode> for DFmode/DDmode): Likewise.
8650         (DFmode/DDmode splitters): Likewise.
8651         (movdf_hardfloat32): Likewise.
8652         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8653         (movdf_softfloat32): Likewise.
8654         (movdf_hardfloat64_mfpgpr): Likewise.
8655         (movdf_hardfloat64): Likewise.
8656         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8657         (movdf_softfloat64): Likewise.
8658         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8659         (reload_<mode>_load): Move to later in the file so they aren't in
8660         the middle of the floating point move insns.
8661         (reload_<mode>_store): Likewise.
8663         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8664         constraint.
8666         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8667         constraint if -mdebug=reg.
8668         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8669         Enable using dd reload support if needed.
8671         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8672         binary and decimal floating point moves in rs6000.md.
8673         (movtd_internal): Likewise.
8675         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8676         decimal floating point moves.
8677         (movtf): Likewise.
8678         (movtf_internal): Likewise.
8679         (mov<mode>_internal, TDmode/TFmode): Likewise.
8680         (movtf_softfloat): Likewise.
8681         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8683         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8684         movdi_internal64, using wg constraint for move direct operations.
8685         (movdi_internal64): Likewise.
8687         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8688         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8689         the various virtual registers. Use GPR/FPR first/last values,
8690         instead of hard coding the register numbers.  Print which modes
8691         have reload functions registered.
8692         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8693         settings before/after setting cpu, target and subtarget settings.
8694         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8695         and for secondary reload failures in rs6000_secondary_reload_inner.
8696         (rs6000_secondary_reload_fail): Likewise.
8697         (rs6000_secondary_reload_inner): Likewise.
8699         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8700         macros for first/last GPR and FPR registers.
8701         (LAST_GPR_REGNO): Likewise.
8702         (FIRST_FPR_REGNO): Likewise.
8703         (LAST_FPR_REGNO): Likewise.
8705         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8706         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8707         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8708         (vcond<mode><mode>): Likewise.
8709         (vcondu<mode><mode>): Likewise.
8710         (vector_gtu<mode>): Likewise.
8711         (vector_gte<mode>): Likewise.
8712         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8713         to prevent the compiler from converting DImode operations to TImode.
8714         (ior<mode>3): Likewise.
8715         (and<mode>3): Likewise.
8716         (one_cmpl<mode>2): Likewise.
8717         (nor<mode>3): Likewise.
8718         (andc<mode>3): Likewise.
8720         * config/rs6000/constraints.md (wt constraint): New constraint
8721         that returns VSX_REGS if TImode is allowed in VSX registers.
8723         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8724         constant under VSX.
8726         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8727         similar to TImode, but it is restricted to being in the GPRs.
8729         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8730         TImode to occupy a single VSX register.
8732         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8733         -mvsx-timode for power7/power8.
8734         (power7 cpu): Likewise.
8735         (power8 cpu): Likewise.
8737         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8738         sure that TFmode/TDmode take up two registers if they are ever
8739         allowed in the upper VSX registers.
8740         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8741         registers.
8742         (rs6000_init_hard_regno_mode_ok): Likewise.
8743         (rs6000_debug_reg_global): Add debugging for PTImode and wt
8744         constraint.  Print if LRA is turned on.
8745         (rs6000_option_override_internal): Give an error if -mvsx-timode
8746         and VSX is not enabled.
8747         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
8748         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8749         to reg+offset addressing.  Use PTImode when checking offset
8750         addresses for validity.
8751         (reg_offset_addressing_ok_p): Likewise.
8752         (rs6000_legitimate_offset_address_p): Likewise.
8753         (rs6000_legitimize_address): Likewise.
8754         (rs6000_legitimize_reload_address): Likewise.
8755         (rs6000_legitimate_address_p): Likewise.
8756         (rs6000_eliminate_indexed_memrefs): Likewise.
8757         (rs6000_emit_move): Likewise.
8758         (rs6000_secondary_reload): Likewise.
8759         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
8760         reloads to fpr registers to continue to use reg+offset addressing,
8761         but 64-bit reloads to altivec registers need reg+reg addressing.
8762         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8763         it.  Treat LO_SUM like a PLUS operation.
8764         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8765         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8766         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8767         registers to share a register with a smaller sized type, since VSX
8768         puts scalars in the upper 64-bits.
8769         (print_operand): Add support for PTImode.
8770         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8771         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8772         registers, but don't have arithmetic support.
8773         (rs6000_memory_move_cost): Add test for VSX.
8774         (rs6000_opt_masks): Add -mvsx-timode.
8776         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8777         for TImode.
8778         (VSs): Likewise.
8779         (VSr): Use wt constraint for TImode.
8780         (VSv): Drop TImode support.
8781         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8782         (vsx_movti_64bit): Likewise.
8783         (vsx_movti_32bit): Likewise.
8784         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8785         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8786         one '?' on the appropriate output constraint.  Do not allow TImode
8787         logical operations on 32-bit systems.
8788         (vsx_ior<mode>3): Likewise.
8789         (vsx_xor<mode>3): Likewise.
8790         (vsx_one_cmpl<mode>2): Likewise.
8791         (vsx_nor<mode>3): Likewise.
8792         (vsx_andc<mode>3): Likewise.
8793         (vsx_concat_<mode>): Likewise.
8794         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8796         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8797         OPTION_MASK_VSX_TIMODE.
8798         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8799         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8801         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8802         (TI2 iterator): New iterator for TImode, PTImode.
8803         (wd mode attribute): Add values for vector types.
8804         (movti_string): Replace TI move operations with operations for TImode
8805         and PTImode.  Add support for TImode being allowed in VSX registers.
8806         (mov<mode>_string, TImode/PTImode): Likewise.
8807         (movti_ppc64): Likewise.
8808         (mov<mode>_ppc64, TImode/PTImode): Likewise.
8809         (TI mode splitters): Likewise.
8811         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8812         constraint.
8814 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
8816         PR tree-optimization/56355
8817         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8818         Also handle integers with undefined overflow.
8820 2013-03-20  Catherine Moore  <clm@codesourcery.com>
8821             Maciej W. Rozycki  <macro@codesourcery.com>
8822             Tom de Vries  <tom@codesourcery.com>
8823             Nathan Sidwell <nathan@codesourcery.com>
8824             Iain Sandoe  <iain@codesourcery.com>
8825             Nathan Froyd  <froydnj@codesourcery.com>
8826             Chao-ying Fu <fu@mips.com>
8828         * doc/extend.texi: (micromips, nomicromips, nocompression):
8829         Document new function attributes.
8830         * doc/invoke.texi (minterlink-compressed, mmicromips,
8831         m14k, m14ke, m14kec): Document new options.
8832         (minterlink-mips16): Update documentation.
8833         * doc/md.texi (ZC, ZD): Document new constraints.
8834         * configure.ac (gcc_cv_as_micromips): Check if linker
8835         supports the .set micromips directive.
8836         * configure: Regenerate.
8837         * config.in: Regenerate.
8838         * config/mips/mips-tables.opt: Regenerate.
8839         * config/mips/micromips.md: New file.
8840         * constraints.md (ZC, ZD): New constraints.
8841         * config/mips/predicates.md (movep_src_register): New predicate.
8842         (movep_src_operand): New predicate.
8843         (non_volatile_mem_operand): New predicate.
8844         * config/mips/mips.md (multimem): New type.
8845         (length): Differentiate between 17-bit and 18-bit branch offsets.
8846         (MOVEP1, MOVEP2): New mode iterator.
8847         (mov_<load>l): Use ZC constraint.
8848         (mov_<load>r): Likewise.
8849         (mov_<store>l): Likewise.
8850         (mov_<store>r): Likewise.
8851         (*branch_equality<mode>_inverted): Add microMIPS support.
8852         (*branch_equality<mode>): Likewise.
8853         (*jump_absolute): Likewise.
8854         (indirect_jump_<mode>): Likewise.
8855         (tablejump_<mode>): Likewise.
8856         (<optab>_internal): Likewise.
8857         (sibcall_internal): Likewise.
8858         (sibcall_value_internal): Likewise.
8859         (prefetch): Use constraint ZD.
8860         * config/mips/mips.opt (minterlink-compressed): New option.
8861         (minterlink-mips16): Now an alias for minterlink-compressed.
8862         (mmicromips): New option.
8863         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8864         (compare_and_swap_12): Likewise.
8865         (sync_add<mode>): Likewise.
8866         (sync_<optab>_12): Likewise.
8867         (sync_old_<optab>_12): Likewise.
8868         (sync_new_<optab>_12): Likewise.
8869         (sync_nand_12): Likewise.
8870         (sync_old_nand_12): Likewise.
8871         (sync_new_nand_12): Likewise.
8872         (sync_sub<mode>): Likewise.
8873         (sync_old_add<mode>): Likewise.
8874         (sync_old_sub<mode>): Likewise.
8875         (sync_new_add<mode>): Likewise.
8876         (sync_new_sub<mode>): Likewise.
8877         (sync_<optab><mode>): Likewise.
8878         (sync_old_<optab><mode>): Likewise.
8879         (sync_new_<optab><mode>): Likewise.
8880         (sync_nand<mode>): Likewise.
8881         (sync_old_nand<mode>): Likewise.
8882         (sync_new_nand<mode>): Likewise.
8883         (sync_lock_test_and_set<mode>): Likewise.
8884         (test_and_set_12): Likewise.
8885         (atomic_compare_and_swap<mode>): Likewise.
8886         (atomic_exchange<mode>_llsc): Likewise.
8887         (atomic_fetch_add<mode>_llsc): Likewise.
8888         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8889         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8890         (umips_save_restore_pattern_p): Likewise.
8891         (umips_load_store_pair_p): Likewise.
8892         (umips_output_load_store_pair): Likewise.
8893         (umips_movep_target_p): Likewise.
8894         (umips_12bit_offset_address_p): Likewise.
8895         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8896         (mips_base_mips16): Rename this...
8897         (mips_base_compression_flags): ...to this. Update all uses.
8898         (mips_attribute_table): Add micromips, nomicromips and nocompression.
8899         (mips_mips16_decl_p): Delete.
8900         (mips_nomips16_decl_p): Delete.
8901         (mips_get_compress_on_flags): New function.
8902         (mips_get_compress_off_flags): New function.
8903         (mips_get_compress_mode): New function.
8904         (mips_get_compress_on_name): New function.
8905         (mips_get_compress_off_name): New function.
8906         (mips_insert_attributes): Support multiple compression types.
8907         (mips_merge_decl_attributes): Likewise.
8908         (umips_12bit_offset_address_p): New function.
8909         (mips_start_function_definition): Emit .set micromips directive.
8910         (mips_call_may_need_jalx_p): New function.
8911         (mips_function_ok_for_sibcall): Add microMIPS support.
8912         (mips_print_operand_punctuation): Support short delay slots and
8913         compact jumps.
8914         (umips_swm_mask, umips_swm_encoding): New.
8915         (umips_build_save_restore): New function.
8916         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8917         (was_mips16_p): Remove.
8918         (old_compression_mode): New.
8919         (mips_set_compression_mode): New function.
8920         (mips_set_current_function): Add microMIPS support.
8921         (mips_option_override): Likewise.
8922         (umips_save_restore_pattern_p): New function.
8923         (umips_output_save_restore): New function.
8924         (umips_load_store_pair_p_1): New function.
8925         (umips_load_store_pair_p): New function.
8926         (umips_output_load_store_pair_1): New function.
8927         (umips_output_load_store_pair): New function.
8928         (umips_movep_target_p) New function.
8929         (mips_prepare_pch_save): Add microMIPS support.
8930         * config/mips/mips.h (TARGET_COMPRESSION): New.
8931         (TARGET_CPU_CPP_BUILTINS): Update macro
8932         to use new compression flags and to support microMIPS.
8933         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8934         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8935         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8936         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8937         (ASM_SPEC): Support mmicromips and mno-micromips.
8938         (M16STORE_REG_P): New macro.
8939         (MIPS_CALL): Support TARGET_MICROMIPS.
8940         (MICROMIPS_J): New macro.
8941         (mips_base_mips16): Rename this...
8942         (mips_base_compression_flags): ...to this.
8943         (UMIPS_12BIT_OFFSET_P): New macro.
8944         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8945         (MULTILIB_DIRNAMES): Likewise.
8946 2013-03-20  Richard Biener  <rguenther@suse.de>
8948         PR tree-optimization/56661
8949         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8950         the result does not have to be distinct.
8952 2013-03-20  Richard Biener  <rguenther@suse.de>
8954         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8955         remap_gimple_op_r.
8957 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8958             Steven Bosscher <steven@gcc.gnu.org>
8960         PR rtl-optimization/56605
8961         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8963 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8965         PR bootstrap/56656
8966         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8967         that require movd instead of movq.
8969 2013-03-20  Richard Biener  <rguenther@suse.de>
8971         * tree-ssa-structalias.c (struct variable_info): Add pointer
8972         to the first field of an aggregate with sub-vars.  Make
8973         this and the pointer to the next subfield its ID.
8974         (vi_next): New function.
8975         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8976         storedanything_id, integer_id): Increment by one.
8977         (new_var_info, get_call_vi, lookup_call_clobber_vi,
8978         get_call_clobber_vi): Adjust.
8979         (solution_set_expand): Simplify and speedup.
8980         (solution_set_add): Inline into ...
8981         (set_union_with_increment): ... this.  Adjust accordingly.
8982         (do_sd_constraint): Likewise.
8983         (do_ds_constraint): Likewise.
8984         (do_complex_constraint): Simplify.
8985         (build_pred_graph): Adjust.
8986         (solve_graph): Likewise.  Simplify and speedup.
8987         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8988         get_constraint_for_component_ref, get_constraint_for_1,
8989         first_vi_for_offset, first_or_preceding_vi_for_offset,
8990         create_function_info_for, create_variable_info_for_1,
8991         create_variable_info_for, intra_create_variable_infos): Adjust.
8992         (init_base_vars): Push NULL for ID zero.
8993         (compute_points_to_sets): Adjust.
8995 2013-03-20  Richard Biener  <rguenther@suse.de>
8997         * cfgloop.c (verify_loop_structure): Streamline and avoid
8998         ICEing on corrupt loop tree.
8999         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9000         loop tree.
9002 2013-03-20  Richard Biener  <rguenther@suse.de>
9004         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9005         check whether an SSA update is needed.
9007 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9009         * config/mips/constraints.md (T): Rename to...
9010         (Yf): ...this.
9011         (U): Rename to...
9012         (Yd): ...this.
9013         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9014         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9016 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9018         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9019         (*subsi3_carryin_uxtw): Likewise.
9021 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9023         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9024         (*rorsi3_insn_uxtw): Likewise.
9026 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9028         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9029         (*extrsi5_insn_uxtw): Likewise.
9031 2013-03-19  Richard Biener  <rguenther@suse.de>
9033         PR tree-optimization/56273
9034         * passes.c (init_optimization_passes): Move second VRP after DOM.
9036 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9038         * config/i386/i386.md (*movti_internal): Merge from
9039         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9040         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9041         nox64 isa attributes.
9043 2013-03-18  Richard Biener  <rguenther@suse.de>
9045         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9046         (unite): Likewise.
9047         (merge_node_constraints): Likewise.
9048         (build_succ_graph): Likewise.
9049         (valid_graph_edge): Inline into single caller.
9050         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9051         and cache varinfo.
9052         (scc_visit): Fix formatting and variable use.
9053         (do_sd_constraint): Use gcc_checking_assert.
9054         (do_ds_constraint): Likewise.
9055         (do_complex_constraint): Likewise.
9056         (condense_visit): Likewise.  Cleanup.
9057         (dump_pred_graph): New function.
9058         (perform_var_substitution): Dump the pred-graph before
9059         variable substitution.
9060         (find_equivalent_node): Use gcc_checking_assert.
9061         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9063 2013-03-18  Richard Biener  <rguenther@suse.de>
9065         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9066         Remove cond_expr_stmt_list argument and do not gimplify the
9067         built expression.
9068         (vect_loop_versioning): Adjust.
9069         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9070         Cleanup to use less temporaries.
9071         (vect_create_data_ref_ptr): Cleanup.
9073 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9075         PR tree-optimization/56635
9076         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9077         require types_compatible_p types.
9079 2013-03-18  Nick Clifton  <nickc@redhat.com>
9081         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9082         spurious backslash.
9084         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9085         Add missing line to comment describing function.
9087 2013-03-18  Richard Biener  <rguenther@suse.de>
9089         PR tree-optimization/56210
9090         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9091         Handle string / character search functions.
9092         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9094 2013-03-18  Richard Biener  <rguenther@suse.de>
9096         PR middle-end/56483
9097         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9098         and implement properly.
9099         * gimple.h (gimple_cond_single_var_p): Remove.
9101 2013-03-18  Richard Biener  <rguenther@suse.de>
9103         * tree-data-ref.h (find_data_references_in_loop): Declare.
9104         * tree-data-ref.c (get_references_in_stmt): Use a stack
9105         vector pre-allocated in the callers.
9106         (find_data_references_in_stmt): Adjust.
9107         (graphite_find_data_references_in_stmt): Likewise.
9108         (create_rdg_vertices): Likewise.
9109         (find_data_references_in_loop): Export.
9110         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9111         Compute dependences here...
9112         (vect_analyze_data_refs): ...not here.  When we encounter
9113         a non-vectorizable data reference in basic-block vectorization
9114         truncate the data reference vector.  Do not bother to
9115         fixup data-dependence information for gather loads.
9116         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9117         of data references, as reported.
9119 2013-03-18  Richard Biener  <rguenther@suse.de>
9121         PR tree-optimization/3713
9122         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9123         has_constants and expr.
9124         (stmt_has_constants): Properly valueize SSA names when deciding
9125         whether the stmt has constants.
9127 2013-03-18  Richard Biener  <rguenther@suse.de>
9129         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9130         whole function when there is nothing to do.
9131         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9132         * tree-vectorizer.c (vectorize_loops): Update virtual and
9133         loop-closed SSA once.
9134         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9136 2013-03-18  Richard Biener  <rguenther@suse.de>
9138         PR middle-end/56113
9139         * domwalk.c (bb_postorder): New global static.
9140         (cmp_bb_postorder): New function.
9141         (walk_dominator_tree): Replace scheme imposing an order for
9142         visiting dominator sons by one sorting them at the time they
9143         are pushed on the stack.
9145 2013-03-18  Richard Biener  <rguenther@suse.de>
9147         PR tree-optimization/39326
9148         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9149         (struct mem_ref): Replace mem member with ao_ref typed member.
9150         (MEM_ANALYZABLE): Adjust.
9151         (memref_eq): Likewise.
9152         (mem_ref_alloc): Likewise.
9153         (gather_mem_refs_stmt): Likewise.
9154         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9155         (execute_sm_if_changed_flag_set): Adjust.
9156         (execute_sm): Likewise.
9157         (ref_always_accessed_p): Likewise.
9158         (refs_independent_p): Likewise.
9159         (can_sm_ref_p): Likewise.
9161 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9163         PR c/56566
9164         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9165         return 1 even for !unsignedp.
9167 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9169         * config/i386/i386.md (isa): Add x64 and nox64.
9170         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9171         (*pushtf): Enable *roF alternative for x64 isa only.
9172         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9173         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9174         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9175         (*movtf_internal): Merge from *movtf_internal_rex64 and
9176         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9177         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9178         nox64 isa attributes.
9179         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9180         nox64 isa attributes.
9181         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9183 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9185         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9187 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9189         PR target/56640
9190         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9191         class names.  Remove trailing comma after "ALL_REGS".
9193 2013-03-16  Jan Hubicka  <jh@suse.cz>
9195         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9196         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9197         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9198         of cgraph_get_create_node.
9199         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9201 2013-03-16  Jason Merrill  <jason@redhat.com>
9203         PR debug/49090
9204         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9205         with DW_AT_default_value.
9207 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9209         * BASE-VER: Set to 4.9.0.
9211 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9213         PR target/56619
9214         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9215         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9216         Document _x* TSX intrinsics.
9218 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9219             David Holsgrove  <david.holsgrove@xilinx.com>
9221         * configure.ac: Add MicroBlaze TLS support detection.
9222         * configure: Regenerate.
9223         * config/microblaze/microblaze-protos.h
9224         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9225         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9226         * config/microblaze/microblaze.c (microblaze_address_type): Add
9227         ADDRESS_TLS and tls_reloc address types.
9228         (microblaze_address_info): Add tls_reloc.
9229         (TARGET_HAVE_TLS): Define.
9230         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9231          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9232          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9233         load_tls_operand,  microblaze_call_tls_get_addr,
9234         microblaze_legitimize_tls_address): New functions.
9235         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9236         (get_base_reg): Use microblaze_tls_symbol_p.
9237         (microblaze_classify_address): Handle TLS.
9238         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9239         label_mentioned_p and microblaze_tls_referenced_p.
9240         (microblaze_legitimize_address): Handle TLS.
9241         (microblaze_address_insns): Handle ADDRESS_TLS.
9242         (pic_address_needs_scratch): Handle TLS.
9243         (print_operand_address): Handle TLS.
9244         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9245         (microblaze_expand_move): Handle TLS.
9246         (microblaze_legitimate_constant_p): Check
9247         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9248         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9249         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9250         (PIC_OFFSET_TABLE_REGNUM): Set.
9251         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9252         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9253         (addsi3, movsi_internal2, movdf_internal): Update constraints
9254         * config/microblaze/predicates.md (arith_plus_operand): Define
9255         (move_operand): Redefine as move_src_operand,
9256         check microblaze_tls_referenced_p.
9258 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9260         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9261         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9263 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9265         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9266         CC mode for AND.
9268 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9270         PR tree-optimization/53265
9271         * common.opt (Waggressive-loop-optimizations): New option.
9272         * tree-ssa-loop-niter.c: Include tree-pass.h.
9273         (do_warn_aggressive_loop_optimizations): New function.
9274         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9275         if number_of_latch_executions returned constant.
9276         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9277         early.  If number_of_latch_executions returned constant, set
9278         nb_iterations_upper_bound back to it.
9279         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9280         field.
9281         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9282         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9284         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9285         (MULTILIB_OSDIRNAMES): Set.
9286         * genmultilib: If defaultosdirname doesn't start with :: , set
9287         defaultosdirname2 instead, clear it and emit two . multilib_raw
9288         entries instead of just one.
9290 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9292         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9293         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9294         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9295         (SUBTARGET_OVERRIDE_OPTIONS): New.
9297 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9299         PR target/49880
9300         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9301         (musermode): Convert to Var(TARGET_USERMODE).
9302         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9303         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9304         * config/sh/sh.c (sh_option_override): Use
9305         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9306         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9307         condition.
9308         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9309         TARGET_SH4.
9310         (udivsi3_i4_single, divsi3_i4_single): Use
9311         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9313 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9315         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9316         default setting.
9318 2013-03-13  Richard Biener  <rguenther@suse.de>
9320         PR tree-optimization/56608
9321         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9322         calls when vectorizing basic-blocks.
9324 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9326         PR plugins/45078
9327         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9328         tm_file.
9330 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9332         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9334 2013-03-11  Jan Hubicka  <jh@suse.cz>
9336         PR lto/56557
9337         * lto-streamer-out.c (output_symbol_p): Skip references from
9338         constructors of external variables.
9340 2013-03-11  Jan Hubicka  <jh@suse.cz>
9342         PR middle-end/56571
9343         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9344         from pseudos.
9345         * emit-rtl.c (verify_rtx_sharing): Likewise.
9346         (copy_insn_1): Likewise.
9347         * rtl.c (copy_rtx): Likewise.
9349 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9351         PR target/56591
9352         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9353         output_operand_lossage message.
9355 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9357         PR target/56470
9358         * arm.c (shift_op): Validate RTL pattern on the fly.
9359         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9360         the RTL.
9362 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9364         PR target/56347
9365         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9366         new call patterns that clobber %fr12.
9367         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9368         split and postreload patterns.
9369         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9370         registers %fr12 and %fr12R as call used.
9372 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9374         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9375         (canon_address, record_store, replace_read, check_mem_read_rtx,
9376         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9377         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9378         rest_of_handle_dse): Likewise.
9380 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9382         PR middle-end/56524
9383         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9384         Add base_optabs.
9385         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9386         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9387         (save_optabs_if_changed): Replace with...
9388         (init_tree_optimization_optabs): ...this.
9389         * optabs.c (save_optabs_if_changed): Rename to...
9390         (init_tree_optimization_optabs): ...this.  Take the optimization node
9391         as argument.  Do nothing if the base optabs are already correct.
9392         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9393         to recompute optabs.
9394         * function.h (function): Remove optabs field.
9395         * function.c (invoke_set_current_function_hook): Call
9396         init_tree_optimization_optabs.  Use the result to initialize
9397         this_fn_optabs.
9399 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9401         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9402         if GTMA_HAS_NO_INSTRUMENTATION.
9403         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9404         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9405         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9406         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9407         GTMA_HAS_NO_INSTRUMENTATION.
9409 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9411         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9412         libasan_preinit.o.
9414 2013-03-08  Marek Polacek  <polacek@redhat.com>
9415             Jakub Jelinek  <jakub@redhat.com>
9417         PR tree-optimization/56478
9418         * predict.c (is_comparison_with_loop_invariant_p): Change the
9419         type of loop_step to tree.
9420         (predict_loops): Adjust.
9421         (predict_iv_comparison): Perform the computations on double_ints.
9423 2013-03-08  Richard Biener  <rguenther@suse.de>
9425         PR tree-optimization/56570
9426         * tree-cfg.c (verify_expr_location_1): Verify locations for
9427         DECL_DEBUG_EXPR.
9428         * tree-sra.c (create_access_replacement): Strip locations
9429         from DECL_DEBUG_EXPRs.
9431 2013-03-08  Richard Biener  <rguenther@suse.de>
9433         * tree-inline.c (expand_call_inline): Do not associate
9434         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9435         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9437 2013-03-08  Richard Biener  <rguenther@suse.de>
9439         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9440         or block changes with -Og.  Fix for location / block encoding
9441         changes and PHI arguments with locations.
9443 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9445         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9446         for all counters.
9447         (struct output_info): Likewise.
9448         (register_overhead): Remove bad gcc_assert.
9449         (bitmap_find_bit): If there is only a single bitmap element, do not
9450         count a miss as a search.
9451         (print_statistics): Update for counter type changes.
9452         (dump_bitmap_statistics): Likewise.  Print headers such that they
9453         are properly lined up with the printed counters.
9455 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9457         PR tree-optimization/56559
9458         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9459         check that it has only a single use.
9461 2013-03-07  Richard Biener  <rguenther@suse.de>
9463         * doc/invoke.texi (fwhole-program): Discourage use in combination
9464         with -flto.
9466 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9468         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9470         PR tree-optimization/56539
9471         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9472         instead of GSI_CONTINUE_LINKING as last argument to
9473         force_gimple_operand_gsi.  Adjust function comment.
9475         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9476         aarch64-cores.def.
9478         PR middle-end/56548
9479         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9480         promoted mode, convert the result back to the original mode.
9482 2013-03-06  Richard Biener  <rguenther@suse.de>
9484         PR middle-end/56294
9485         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9486         (insert_updated_phi_nodes_compare_uids): New function.
9487         (update_ssa): Sort symbols_to_rename after UID before
9488         traversing it to insert PHI nodes.
9490 2013-03-06  Richard Biener  <rguenther@suse.de>
9492         PR middle-end/50494
9493         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9494         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9496         Revert
9497         2013-02-13  Richard Biener  <rguenther@suse.de>
9499         PR lto/50494
9500         * varasm.c (output_constant_def_1): Get the decl representing
9501         the constant as argument.
9502         (output_constant_def): Wrap output_constant_def_1.
9503         (make_decl_rtl): Use output_constant_def_1 with the decl
9504         representing the constant.
9505         (build_constant_desc): Optionally re-use a decl already
9506         representing the constant.
9507         (tree_output_constant_def): Adjust.
9509 2013-03-06  Joey Ye  <joey.ye@arm.com>
9511         PR lto/50293
9512         * gcc.c (convert_white_space): New function.
9513         (main): Handles white space in function name.
9515 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9517         PR target/56529
9518         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9519         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9520         to SH_DIV_CALL_TABLE for TARGET_SH2.
9521         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9522         list.
9523         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9524         call-table options.
9526 2013-03-05  Sterling Augustine  <saugustine@google.com>
9527             Cary Coutant  <ccoutant@google.com>
9529         PR debug/55364
9530         * dwarf2out.c (resolve_addr): Don't call
9531         remove_loc_list_addr_table_entries a second time for the same
9532         expression.
9534 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9536         PR debug/56510
9537         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9538         (avoid_complex_debug_insns): New function.
9539         (expand_debug_locations): Call it.
9541         PR rtl-optimization/56484
9542         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9543         lifetimes of hard registers on small register class machines.
9545 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9547         * config/microblaze/microblaze-protos.h: Rename
9548         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9549         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9550         fast_interrupt.
9551         (microblaze_fast_interrupt_function_p): New function.
9552         (microblaze_is_interrupt_handler): Rename to
9553         microblaze_is_interrupt_variant and add fast_interrupt check.
9554         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9555         (save_restore_insns): Likewise.
9556         (compute_frame_size): Likewise.
9557         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9558         (microblaze_globalize_label): Likewise.
9559         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9560         * config/microblaze/microblaze.md: Use wrapper
9561         microblaze_is_interrupt_variant.
9563 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9565         * sdbout.c (sdbout_one_type): Switch to current function's section
9566         supporting cold/hot.
9568 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9570         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9571         -mxl-reorder.
9573 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9575         PR middle-end/56461
9576         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9577         if VALGRIND_GET_VBITS is defined, temporarily make object
9578         memory all defined, and restore previous valgrind addressability
9579         and definability afterwards.  Free this_object at the end.
9581         PR middle-end/56461
9582         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9583         right before calling lra_create_live_ranges, also call it
9584         when clearing live_p.  Only call lra_clear_live_ranges
9585         at the end if live_p.
9587         PR middle-end/56461
9588         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9590 2013-03-05  Richard Biener  <rguenther@suse.de>
9592         PR tree-optimization/56521
9593         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9594         value-id.
9596 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9598         PR c++/55135
9599         * except.h (remove_unreachable_eh_regions): New prototype.
9600         * except.c (remove_eh_handler_splicer): New function, split out
9601         of remove_eh_handler.
9602         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9603         warning about running it on many EH regions one at a time.
9604         (remove_unreachable_eh_regions_worker): New function, walk the
9605         EH tree in depth-first order and remove non-marked regions.
9606         (remove_unreachable_eh_regions): New function.
9607         * tree-eh.c (mark_reachable_handlers): New function, split out
9608         from remove_unreachable_handlers.
9609         (remove_unreachable_handlers): Use mark_reachable_handlers and
9610         remove_unreachable_eh_regions.
9611         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9612         and remove_unreachable_eh_regions.
9614 2013-03-05  Richard Biener  <rguenther@suse.de>
9616         PR middle-end/56525
9617         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9618         not freeing them until the end.
9620 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9622         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9624 2013-03-05  Richard Biener  <rguenther@suse.de>
9626         PR tree-optimization/56270
9627         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9628         of loads after scheduling an SLP instance.
9630 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9632         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9633         tic6x.exp.
9634         (check_gcc_parallelize): Run guality.exp as a separate job from
9635         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9636         struct-layout-1.exp with stackalign.exp.
9638         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9640         PR middle-end/56461
9641         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9642         load_index sbitmap even if some bit in it isn't set.
9644         PR middle-end/56461
9645         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9646         (discover_iteration_bound_by_body_walk): Change queues to
9647         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9648         spelling in comment.  Call safe_push on queues[bound_index] directly.
9649         Release queues[queue_index] in every iteration unconditionally.
9650         Release bounds vector.
9652         PR middle-end/56461
9653         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9654         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9655         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9656         inner_phis vector.
9658 2013-03-05  Richard Biener  <rguenther@suse.de>
9660         PR lto/56515
9661         * tree-inline.c (remap_blocks_to_null): New function.
9662         (expand_call_inline): When expanding a call stmt without
9663         an associated block inline remap all callee blocks to NULL.
9665 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9667         PR rtl-optimization/56494
9668         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9669         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9670         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9672         PR middle-end/56461
9673         * sel-sched-ir.c (free_sched_pools): Release
9674         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9675         if succs_info_pool.max_top isn't -1.
9677         PR bootstrap/56509
9678         * opts.c (opts_obstack, opts_concat): Moved to...
9679         * opts-common.c (opts_obstack, opts_concat): ... here.
9681 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9683         PR middle-end/56461
9684         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9686 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9688         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9689         all appropriate places.
9691 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9693         PR tree-optimization/56424
9694         * ipa-split.c (split_function): Do not set the RSO flag if result is
9695         not by reference and its type is a register type.
9697 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9699         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9700         (microblaze_legitimate_pic_operand): Likewise
9701         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9702         new function microblaze_legitimate_pic_operand
9703         * config/microblaze/microblaze-protos.h
9704         (microblaze_legitimate_pic_operand): Declare.
9706 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9708         * config/microblaze/predicates.md (call_insn_simple_operand):
9709         New predicate for supported rtx code types.
9710         * config/microblaze/microblaze.md (call_internal1): Use
9711         call_insn_simple_operand predicate.
9713 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9715         PR middle-end/56461
9716         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9717         partitions.ordered_remove.
9719         PR middle-end/56461
9720         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9721         vec_oprnds0.create (1) for modifier == NONE.
9723         PR middle-end/56461
9724         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9725         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9726         vec_oprnds1 right before pushing anything to it for
9727         scalar_shift_arg.
9729         PR middle-end/56461
9730         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9731         set nbbs to 0 instead of having separate code path.
9732         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9733         instead of false as last argument if returning NULL.
9735 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
9737         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9738         the attribute is now called "target" instead of "option".
9739         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9740         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
9741         attribute/pragma name for TARGET_OPTION_VALID_P and
9742         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9743         * doc/tm.texi: Regenerated.
9745 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
9747         * config/microblaze/microblaze.c:
9748         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9749         * config/microblaze/microblaze.h: Add -mxl-reorder to
9750         DRIVER_SELF_SPECS.
9751         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9752         instructions emitted if TARGET_REORDER.
9753         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9754         or 0 for -m/-mno case, but initialises as 2 to detect default use case
9755         separately.
9757 2013-03-01  Xinliang David Li  <davidxl@google.com>
9759         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9760         walk length.
9762 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
9764         PR middle-end/56461
9765         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9766         vector even when returning true.  Fix up function comment formatting.
9768         PR middle-end/56461
9769         * ira-build.c (ira_loop_nodes_count): New variable.
9770         (create_loop_tree_nodes): Initialize it.
9771         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9773         PR middle-end/56461
9774         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9775         method on dr_chain and result_chain.
9776         * tree-vect-stmts.c (vectorizable_store): Only call
9777         result_chain.create if j == 0.
9779         PR middle-end/56461
9780         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9781         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9782         before overwriting it.
9784 2013-03-01  Tobias Burnus  <burnus@net-b.de>
9786         * doc/extended.texi (C Extensions): Change order in @menu
9787         to match @node.
9788         (Other MIPS Built-in Functions): Move last MIPS entry before
9789         "picoChip Built-in Functions".
9790         (SH Built-in Functions): Move after RX Built-in Functions.
9791         * doc/gcc.texi (Introduction): Change order in @menu
9792         to match @node.
9793         * doc/md.texi (Constraints): Ditto.
9794         * gty.texi (Type Information): Ditto.
9795         (User-provided marking routines for template types): Make
9796         subsection.
9797         * doc/invoke.texi (AArch64 Options): Move before
9798         "Adapteva Epiphany Options".
9800 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
9801             Jakub Jelinek  <jakub@redhat.com>
9803         PR sanitizer/56454
9804         * asan.c (gate_asan): Lookup no_sanitize_address instead of
9805         no_address_safety_analysis attribute.
9806         * doc/extend.texi (no_address_safety_attribute): Rename to
9807         no_sanitize_address attribute, mention no_address_safety_analysis
9808         attribute as deprecated alias.
9810 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
9812         PR middle-end/56461
9813         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9814         type to vec<vec<tree> > *.
9815         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
9816         to be vec<tree> instead of vec<tree> *, set vec_defs
9817         to vNULL and call vec_defs.create (number_of_vects), adjust other
9818         uses of vec_defs.
9819         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9820         vectorizable_condition): Adjust vect_get_slp_defs callers.
9822 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9824         * config/aarch64/aarch64.c
9825         (aarch64_float_const_representable): Remove unused variable.
9827 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9829         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9831 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9833         * config/aarch64/aarch64-builtins.c
9834         (aarch64_init_simd_builtins): Make static.
9836 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9838         * config/aarch64/aarch64.c
9839         (aarch64_simd_make_constant): Make static.
9841 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9843         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9844         with no initialization to the RHS of debug statements.
9846 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9848         PR tree-optimization/56294
9849         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9850         Adjust dumping.
9851         (get_access_replacement): Do not call create_access_replacement.
9852         Assert a replacement exists.
9853         (get_repl_default_def_ssa_name): Create the replacement declaration
9854         itself.
9856 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9858         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9859         final_end_function.
9861 2013-02-28  Marek Polacek  <polacek@redhat.com>
9863         PR rtl-optimization/56466
9864         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9865         if we're changing a loop.
9866         (peel_loops_completely): Likewise.
9868 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
9870         PR c++/55813
9871         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9873 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9875         PR target/56445
9876         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9877         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9878         INTX_FTYPE_FX, FX_FTYPE_INTX.
9879         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9881 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9883         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9884         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9885         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9886         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9887         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9888         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9889         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9890         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9891         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9892         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9893         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9894         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9895         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9896         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9897         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9898         (avrxmega6): Increase max flash segments from 5 to 6.
9899         * config/avr/t-multilib: Regenerate.
9900         * config/avr/avr-tables.opt: Regenerate.
9901         * doc/avr-mmcu.texi: Regenerate.
9903 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9905         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9906         (avr_device_to_arch): Rename to avr_device_to_ld.
9907         (avr_device_to_as): New prototype.
9908         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9909         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9910         * config/avr/driver-avr.c (avr_device_to_as): New.
9911         (avr_device_to_arch): Rename to avr_device_to_ld.
9913 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9915         PR middle-end/56461
9916         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9917         method on dr_chain and result_chain.
9919         PR middle-end/56461
9920         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9921         pointer_set_destroy on not_executed_last_iteration.
9923         PR middle-end/56461
9924         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9926         PR middle-end/56461
9927         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9928         FOR_EACH_DEFINED_FUNCTION when freeing state.
9930         PR middle-end/56461
9931         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9932         pool_free.
9933         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9934         overwriting it.
9936         PR middle-end/56461
9937         * ipa-cp.c (decide_whether_version_node): Call vec_free on
9938         known_aggs[i].items and release known_aggs vector.
9940         PR middle-end/56461
9941         * ipa-reference.c (propagate): Free node_info even for alias nodes.
9943 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9945         * config/microblaze/microblaze.c (microblaze_emit_compare):
9946         Use xor for EQ/NE comparisions.
9947         * config/microblaze/microblaze.md (cstoresf4): Add constraints
9948         (cbranchsf4): Adjust operator to comparison_operator.
9950 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9952         PR middle-end/56461
9953         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9954         vector.
9955         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9956         vec_safe_push, always update *slot.
9957         (redirect_edge_var_map_clear): Use vec_free.
9958         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9959         (free_var_map_entry): Use vec_free.
9960         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9961         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9963 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
9965         PR middle-end/45472
9966         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9967         when the may_trap_p bit of the exprs being merged differs.
9968         Reorder tests for speculativeness in the logical and operator.
9970 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9972         * incpath.c (add_standard_paths): Use reconcat instead of concat
9973         where appropriate and avoid leaking memory.
9975         * opts.h: Include obstack.h.
9976         (opts_concat): New prototype.
9977         (opts_obstack): New declaration.
9978         * opts.c (opts_concat): New function.
9979         (opts_obstack): New variable.
9980         (init_options_struct): Call gcc_init_obstack on opts_obstack.
9981         (finish_options): Use opts_concat instead of concat
9982         and XOBNEWVEC instead of XNEWVEC.
9983         * opts-common.c (generate_canonical_option, decode_cmdline_option,
9984         generate_option): Likewise.
9985         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9986         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9988         PR target/56455
9989         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9990         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9992 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9994         PR middle-end/56461
9995         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9997 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9999         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10000         (arm_block_move_unaligned_straight): Likewise.
10001         (arm_adjust_block_mem): Likewise.
10003 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10005         PR target/48901
10006         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10007         temp, cond and label.
10008         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10010         PR target/52500
10011         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10012         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10014         PR target/52501
10015         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10016         of prologue/epilogue functions.
10018         PR target/52550
10019         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10020         Remove unused variable cfa_offset.
10021         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10023         PR target/54639
10024         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10025         type promotion to unsigned.
10027         PR target/54640
10028         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10029         for HOST_WIDE_INT of 32 bit / same size as int.
10030         (arm_block_move_unaligned_straight): Likewise.
10031         (arm_adjust_block_mem): Likewise.
10033         PR target/54662
10034         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10035         ALL_CFLAGS.
10037 2013-02-26  Marek Polacek  <polacek@redhat.com>
10039         PR tree-optimization/56426
10040         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10042 2013-02-26  Richard Biener  <rguenther@suse.de>
10044         PR target/56444
10045         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10046         unused variable loops.
10048 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10050         PR tree-optimization/56448
10051         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10052         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10053         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10054         later operands of the references, or even first operand for
10055         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10057         PR tree-optimization/56443
10058         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10059         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10060         to type_for_mode langhook.
10062 2013-02-25  Matt Turner  <mattst88@gmail.com>
10064         * doc/invoke.texi: Document r4700.
10066 2013-02-25  Richard Biener  <rguenther@suse.de>
10068         PR tree-optimization/56175
10069         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10070         split out from ...
10071         (simplify_bitwise_binary): ... here.  Also guard the conversion
10072         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10074 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10076         Revert:
10077         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10078             Maciej W. Rozycki  <macro@codesourcery.com>
10079             Tom de Vries  <tom@codesourcery.com>
10080             Nathan Sidwell  <nathan@codesourcery.com>
10081             Iain Sandoe  <iain@codesourcery.com>
10082             Nathan Froyd  <froydnj@codesourcery.com>
10083             Chao-ying Fu  <fu@mips.com>
10085         * doc/extend.texi: (micromips, nomicromips, nocompression):
10086         Document new function attributes.
10087         * doc/invoke.texi (minterlink-compressed, mmicromips,
10088         m14k, m14ke, m14kec): Document new options.
10089         (minterlink-mips16): Update documentation.
10090         * doc/md.texi (ZC, ZD): Document new constraints.
10091         * configure.ac (gcc_cv_as_micromips): Check if linker
10092         supports the .set micromips directive.
10093         * configure: Regenerate.
10094         * config.in: Regenerate.
10095         * config/mips/mips-tables.opt: Regenerate.
10096         * config/mips/micromips.md: New file.
10097         * constraints.md (ZC, AD): New constraints.
10098         * config/mips/predicates.md (movep_src_register): New predicate.
10099         (movep_src_operand): New predicate.
10100         (non_volatile_mem_operand): New predicate.
10101         * config/mips/mips.md (multimem): New type.
10102         (length): Differentiate between 17-bit and 18-bit branch offsets.
10103         (MOVEP1, MOVEP2): New mode iterator.
10104         (mov_<load>l): Use ZC constraint.
10105         (mov_<load>r): Likewise.
10106         (mov_<store>l): Likewise.
10107         (mov_<store>r): Likewise.
10108         (*branch_equality<mode>_inverted): Add microMIPS support.
10109         (*branch_equality<mode>): Likewise.
10110         (*jump_absolute): Likewise.
10111         (indirect_jump_<mode>): Likewise.
10112         (tablejump_<mode>): Likewise.
10113         (<optab>_internal): Likewise.
10114         (sibcall_internal): Likewise.
10115         (sibcall_value_internal): Likewise.
10116         (prefetch): Use constraint ZD.
10117         * config/mips/mips.opt (minterlink-compressed): New option.
10118         (minterlink-mips16): Now an alias for minterlink-compressed.
10119         (mmicromips): New option.
10120         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10121         (compare_and_swap_12): Likewise.
10122         (sync_add<mode>): Likewise.
10123         (sync_<optab>_12): Likewise.
10124         (sync_old_<optab>_12): Likewise.
10125         (sync_new_<optab>_12): Likewise.
10126         (sync_nand_12): Likewise.
10127         (sync_old_nand_12): Likewise.
10128         (sync_new_nand_12): Likewise.
10129         (sync_sub<mode>): Likewise.
10130         (sync_old_add<mode>): Likewise.
10131         (sync_old_sub<mode>): Likewise.
10132         (sync_new_add<mode>): Likewise.
10133         (sync_new_sub<mode>): Likewise.
10134         (sync_<optab><mode>): Likewise.
10135         (sync_old_<optab><mode>): Likewise.
10136         (sync_new_<optab><mode>): Likewise.
10137         (sync_nand<mode>): Likewise.
10138         (sync_old_nand<mode>): Likewise.
10139         (sync_new_nand<mode>): Likewise.
10140         (sync_lock_test_and_set<mode>): Likewise.
10141         (test_and_set_12): Likewise.
10142         (atomic_compare_and_swap<mode>): Likewise.
10143         (atomic_exchange<mode>_llsc): Likewise.
10144         (atomic_fetch_add<mode>_llsc): Likewise.
10145         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10146         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10147         (umips_save_restore_pattern_p): Likewise.
10148         (umips_load_store_pair_p): Likewise.
10149         (umips_output_load_store_pair): Likewise.
10150         (umips_movep_target_p): Likewise.
10151         (umips_12bit_offset_address_p): Likewise.
10152         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10153         (mips_base_mips16): Rename this...
10154         (mips_base_compression_flags): ...to this. Update all uses.
10155         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10156         (mips_mips16_decl_p): Delete.
10157         (mips_nomips16_decl_p): Delete.
10158         (mips_get_compress_on_flags): New function.
10159         (mips_get_compress_off_flags): New function.
10160         (mips_get_compress_mode): New function.
10161         (mips_get_compress_on_name): New function.
10162         (mips_get_compress_off_name): New function.
10163         (mips_insert_attributes): Support multiple compression types.
10164         (mips_merge_decl_attributes): Likewise.
10165         (umips_12bit_offset_address_p): New function.
10166         (mips_start_function_definition): Emit .set micromips directive.
10167         (mips_call_may_need_jalx_p): New function.
10168         (mips_function_ok_for_sibcall): Add microMIPS support.
10169         (mips_print_operand_punctuation): Support short delay slots and
10170         compact jumps.
10171         (umips_swm_mask, umips_swm_encoding): New.
10172         (umips_build_save_restore): New function.
10173         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10174         (was_mips16_p): Remove.
10175         (old_compression_mode): New.
10176         (mips_set_compression_mode): New function.
10177         (mips_set_current_function): Add microMIPS support.
10178         (mips_option_override): Likewise.
10179         (umips_save_restore_pattern_p): New function.
10180         (umips_output_save_restore): New function.
10181         (umips_load_store_pair_p_1): New function.
10182         (umips_load_store_pair_p): New function.
10183         (umips_output_load_store_pair_1): New function.
10184         (umips_output_load_store_pair): New function.
10185         (umips_movep_target_p) New function.
10186         (mips_prepare_pch_save): Add microMIPS support.
10187         * config/mips/mips.h (TARGET_COMPRESSION): New.
10188         (TARGET_CPU_CPP_BUILTINS): Update macro
10189         to use new compression flags and to support microMIPS.
10190         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10191         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10192         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10193         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10194         (ASM_SPEC): Support mmicromips and mno-micromips.
10195         (M16STORE_REG_P): New macro.
10196         (MIPS_CALL): Support TARGET_MICROMIPS.
10197         (MICROMIPS_J): New macro.
10198         (mips_base_mips16): Rename this...
10199         (mips_base_compression_flags): ...to this.
10200         (UMIPS_12BIT_OFFSET_P): New macro.
10201         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10202         (MULTILIB_DIRNAMES): Likewise.
10204 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10206         PR rtl-optimization/56131
10207         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10208         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10209         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10211 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10213         * doc/invoke.texi (-fsanitize=): Move from optimization
10214         to debugging options.
10216 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10218         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10220 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10221             Alexander Monakov  <amonakov@ispras.ru>
10223         PR middle-end/56077
10224         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10225         flush pending lists also on non-jumps.  Adjust comment.
10227 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10228             Maciej W. Rozycki  <macro@codesourcery.com>
10229             Tom de Vries  <tom@codesourcery.com>
10230             Nathan Sidwell  <nathan@codesourcery.com>
10231             Iain Sandoe  <iain@codesourcery.com>
10232             Nathan Froyd  <froydnj@codesourcery.com>
10233             Chao-ying Fu  <fu@mips.com>
10235         * doc/extend.texi: (micromips, nomicromips, nocompression):
10236         Document new function attributes.
10237         * doc/invoke.texi (minterlink-compressed, mmicromips,
10238         m14k, m14ke, m14kec): Document new options.
10239         (minterlink-mips16): Update documentation.
10240         * doc/md.texi (ZC, ZD): Document new constraints.
10241         * configure.ac (gcc_cv_as_micromips): Check if linker
10242         supports the .set micromips directive.
10243         * configure: Regenerate.
10244         * config.in: Regenerate.
10245         * config/mips/mips-tables.opt: Regenerate.
10246         * config/mips/micromips.md: New file.
10247         * constraints.md (ZC, AD): New constraints.
10248         * config/mips/predicates.md (movep_src_register): New predicate.
10249         (movep_src_operand): New predicate.
10250         (non_volatile_mem_operand): New predicate.
10251         * config/mips/mips.md (multimem): New type.
10252         (length): Differentiate between 17-bit and 18-bit branch offsets.
10253         (MOVEP1, MOVEP2): New mode iterator.
10254         (mov_<load>l): Use ZC constraint.
10255         (mov_<load>r): Likewise.
10256         (mov_<store>l): Likewise.
10257         (mov_<store>r): Likewise.
10258         (*branch_equality<mode>_inverted): Add microMIPS support.
10259         (*branch_equality<mode>): Likewise.
10260         (*jump_absolute): Likewise.
10261         (indirect_jump_<mode>): Likewise.
10262         (tablejump_<mode>): Likewise.
10263         (<optab>_internal): Likewise.
10264         (sibcall_internal): Likewise.
10265         (sibcall_value_internal): Likewise.
10266         (prefetch): Use constraint ZD.
10267         * config/mips/mips.opt (minterlink-compressed): New option.
10268         (minterlink-mips16): Now an alias for minterlink-compressed.
10269         (mmicromips): New option.
10270         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10271         (compare_and_swap_12): Likewise.
10272         (sync_add<mode>): Likewise.
10273         (sync_<optab>_12): Likewise.
10274         (sync_old_<optab>_12): Likewise.
10275         (sync_new_<optab>_12): Likewise.
10276         (sync_nand_12): Likewise.
10277         (sync_old_nand_12): Likewise.
10278         (sync_new_nand_12): Likewise.
10279         (sync_sub<mode>): Likewise.
10280         (sync_old_add<mode>): Likewise.
10281         (sync_old_sub<mode>): Likewise.
10282         (sync_new_add<mode>): Likewise.
10283         (sync_new_sub<mode>): Likewise.
10284         (sync_<optab><mode>): Likewise.
10285         (sync_old_<optab><mode>): Likewise.
10286         (sync_new_<optab><mode>): Likewise.
10287         (sync_nand<mode>): Likewise.
10288         (sync_old_nand<mode>): Likewise.
10289         (sync_new_nand<mode>): Likewise.
10290         (sync_lock_test_and_set<mode>): Likewise.
10291         (test_and_set_12): Likewise.
10292         (atomic_compare_and_swap<mode>): Likewise.
10293         (atomic_exchange<mode>_llsc): Likewise.
10294         (atomic_fetch_add<mode>_llsc): Likewise.
10295         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10296         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10297         (umips_save_restore_pattern_p): Likewise.
10298         (umips_load_store_pair_p): Likewise.
10299         (umips_output_load_store_pair): Likewise.
10300         (umips_movep_target_p): Likewise.
10301         (umips_12bit_offset_address_p): Likewise.
10302         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10303         (mips_base_mips16): Rename this...
10304         (mips_base_compression_flags): ...to this. Update all uses.
10305         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10306         (mips_mips16_decl_p): Delete.
10307         (mips_nomips16_decl_p): Delete.
10308         (mips_get_compress_on_flags): New function.
10309         (mips_get_compress_off_flags): New function.
10310         (mips_get_compress_mode): New function.
10311         (mips_get_compress_on_name): New function.
10312         (mips_get_compress_off_name): New function.
10313         (mips_insert_attributes): Support multiple compression types.
10314         (mips_merge_decl_attributes): Likewise.
10315         (umips_12bit_offset_address_p): New function.
10316         (mips_start_function_definition): Emit .set micromips directive.
10317         (mips_call_may_need_jalx_p): New function.
10318         (mips_function_ok_for_sibcall): Add microMIPS support.
10319         (mips_print_operand_punctuation): Support short delay slots and
10320         compact jumps.
10321         (umips_swm_mask, umips_swm_encoding): New.
10322         (umips_build_save_restore): New function.
10323         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10324         (was_mips16_p): Remove.
10325         (old_compression_mode): New.
10326         (mips_set_compression_mode): New function.
10327         (mips_set_current_function): Add microMIPS support.
10328         (mips_option_override): Likewise.
10329         (umips_save_restore_pattern_p): New function.
10330         (umips_output_save_restore): New function.
10331         (umips_load_store_pair_p_1): New function.
10332         (umips_load_store_pair_p): New function.
10333         (umips_output_load_store_pair_1): New function.
10334         (umips_output_load_store_pair): New function.
10335         (umips_movep_target_p) New function.
10336         (mips_prepare_pch_save): Add microMIPS support.
10337         * config/mips/mips.h (TARGET_COMPRESSION): New.
10338         (TARGET_CPU_CPP_BUILTINS): Update macro
10339         to use new compression flags and to support microMIPS.
10340         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10341         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10342         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10343         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10344         (ASM_SPEC): Support mmicromips and mno-micromips.
10345         (M16STORE_REG_P): New macro.
10346         (MIPS_CALL): Support TARGET_MICROMIPS.
10347         (MICROMIPS_J): New macro.
10348         (mips_base_mips16): Rename this...
10349         (mips_base_compression_flags): ...to this.
10350         (UMIPS_12BIT_OFFSET_P): New macro.
10351         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10352         (MULTILIB_DIRNAMES): Likewise.
10354 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10356         PR target/52555
10357         * target-globals.c (save_target_globals): For init_reg_sets and
10358         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10360 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10362         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10363         * config/aarch64/t-aarch64
10364         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10366 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10368         PR inline-asm/56148
10369         * lra-constraints.c (process_alt_operands): Reload operand
10370         conflicting with earlier clobber only if no more other conflicting
10371         operands.
10373 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10375         PR sanitizer/56393
10376         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10377         if not linking a shared library.
10379 2013-02-22  Seth LaForge  <sethml@google.com>
10381         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10383 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10385         * config/arm/arm.md (split for extendsidi): Update condition.
10386         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10387         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10388         (qhs_zextenddi_cstr): Likewise.
10390 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10392         PR middle-end/56420
10393         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10394         avoid signed wrapping.
10395         (expand_mult): Handle properly multiplication by
10396         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10397         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10398         in the compiler if coeff is HOST_WIDE_INT_MIN.
10399         (expand_divmod): Don't make ext_op1 static, change it's type to
10400         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10402         PR rtl-optimization/50339
10403         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10404         field.
10405         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10406         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10407         into splitting_ashiftrt field.
10408         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10409         ASHIFTRT.
10410         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10411         choices.
10413 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10415         PR middle-end/56108
10416         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10417         are sure to go irrevocable.
10419 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10421         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10422         scalars are valid operands.
10424 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10426         PR tree-optimization/56310
10427         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10428         only matching indices and non-negative final offsets.
10429         (intersect_aggregates_with_edge): Pass src_idx to
10430         agg_replacements_to_vector.  Pass src_idx insstead of index to
10431         intersect_with_agg_replacements.
10433 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10435         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10436         instead of hard-wired defaults.
10438 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10440         * doc/invoke.texi (MIPS Options): Update documentation of the
10441         floating-point multiply-accumulate instruction restrictions.
10443 2013-02-21  Kostya Serebryany  <kcc@google.com>
10445         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10446         asan_shadow_offset on x86_64 linux.
10448 2013-02-21  Richard Biener  <rguenther@suse.de>
10450         PR tree-optimization/56415
10451         Revert
10452         2013-02-11  Richard Biener  <rguenther@suse.de>
10454         PR tree-optimization/56273
10455         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10456         first VRP run.
10458 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10460         PR bootstrap/56258
10461         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10462         instead of @itemx.
10464         PR inline-asm/56405
10465         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10466         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10468 2013-02-20  Jan Hubicka  <jh@suse.cz>
10470         PR tree-optimization/56265
10471         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10472         when target is referenced for first time.
10474 2013-02-20  Richard Biener  <rguenther@suse.de>
10476         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10477         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10478         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10479         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10480         not return anything.
10481         (rename_ssa_copies): Do not remove unused locals.
10482         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10483         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10484         * passes.c (execute_function_todo): Do not schedule unused locals
10485         removal if cleanup_tree_cfg did something.
10486         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10487         about the number of removed locals.
10489 2013-02-20  Richard Biener  <rguenther@suse.de>
10491         PR tree-optimization/56398
10492         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10494 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10496         PR tree-optimization/55334
10497         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10498         restricted pointers to arrays.
10500 2013-02-20  Richard Biener  <rguenther@suse.de>
10501             Jakub Jelinek  <jakub@redhat.com>
10503         PR tree-optimization/56396
10504         * tree-ssa-ccp.c (n_const_val): New static variable.
10505         (get_value): Return NULL for SSA names we don't have a lattice
10506         entry for.
10507         (ccp_initialize): Initialize n_const_val.
10508         * tree-ssa-copy.c (n_copy_of): New static variable.
10509         (init_copy_prop): Initialize n_copy_of.
10510         (get_value): Return NULL_TREE for SSA names we don't have a
10511         lattice entry for.
10513 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10515         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10517 2013-02-20  Richard Biener  <rguenther@suse.de>
10519         * genpreds.c (write_lookup_constraint): Do not compare first
10520         letter of the constraint again.
10522 2013-02-20  Richard Biener  <rguenther@suse.de>
10524         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10525         and ceil_log2.
10526         (get_use_iv_cost): Terminate hashtable walk when coming across
10527         an empty entry.
10529 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10531         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10532         reassociation for avx2 targets.
10534 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10536         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10537         Add version check for v8.10.a to enable microblaze_has_clz
10538         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10539         version and TARGET_PATTERN_COMPARE check
10540         * config/microblaze/microblaze.md: New clzsi2 instruction
10542 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10544         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10545         function before branching.
10547 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10549         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10550         DUMP_INSN_RTX_UID.
10551         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10553 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10555         PR middle-end/55889
10556         * sel-sched.c: Include ira.h.
10557         (implicit_clobber_conflict_p): New function.
10558         (moveup_expr): Use it.
10559         * Makefile.in (sel-sched.o): Depend on ira.h.
10561 2013-02-19  Richard Biener  <rguenther@suse.de>
10563         PR tree-optimization/56384
10564         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10565         (vn_hash_type): Split out from ...
10566         (vn_hash_constant_with_type): ... here.
10567         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10568         (vn_phi_eq): Compare types from vn_phi_s structure.
10569         (vn_phi_lookup): Populate vn_phi_s type.
10570         (vn_phi_insert): Likewise.
10572 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10574         PR tree-optimization/56350
10575         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10576         if haven't found reduction or nested cycle operand, rather than
10577         asserting we must find it.
10579         PR tree-optimization/56381
10580         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10581         to fold_build3.
10583 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10584             Jakub Jelinek  <jakub@redhat.com>
10586         PR target/52555
10587         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10588         (swap_optab_enable): Same.
10589         (init_all_optabs): Use argument instead of global.
10590         * tree.h (struct tree_optimization_option): New field target_optabs.
10591         * expr.h (init_all_optabs): Add argument to prototype.
10592         (TREE_OPTIMIZATION_OPTABS): New.
10593         (save_optabs_if_changed): Protoize.
10594         * optabs.h: Declare this_fn_optabs.
10595         * optabs.c (save_optabs_if_changed): New.
10596         Declare this_fn_optabs.
10597         (init_optabs): Add argument to init_all_optabs() call.
10598         * function.c (invoke_set_current_function_hook): Handle per
10599         function optabs.
10600         * function.h (struct function): New field optabs.
10601         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10602         optimization_current_node has changed.
10603         * target-globals.h (save_target_globals_default_opts): Protoize.
10604         * target-globals.c (save_target_globals_default_opts): New.
10606 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10608         PR target/56347
10609         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10610         registers %fr12 and %fr12R as call used.
10612         PR target/56214
10613         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10614         and HImode, require all displacements to be an integer multiple of
10615         their mode size.
10616         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10617         only allow QImode and HImode when reload is in progress and strict is
10618         true.  Likewise for symbolic addresses.  Use base14_operand to check
10619         displacements in REG+BASE addresses.
10621 2013-02-18  Richard Biener  <rguenther@suse.de>
10623         PR tree-optimization/56366
10624         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10625         handle sign-conversion of outer-loop initial induction value.
10627 2013-02-18  Richard Biener  <rguenther@suse.de>
10629         PR middle-end/56349
10630         * cfghooks.c (merge_blocks): If we merge a latch into another
10631         block adjust references to it.
10632         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10633         (verify_loop_structure): Verify that a recorded latch is in fact
10634         a latch.
10636 2013-02-18  Richard Biener  <rguenther@suse.de>
10638         PR tree-optimization/56321
10639         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10640         order SSA name release and virtual operand unlinking.
10642 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10644         * config/microblaze/microblaze.md (save_stack_block): Define.
10645         (restore_stack_block): Likewise.
10647 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10649         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10650         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10651         * config/microblaze/microblaze.c (microblaze_option_override):
10652         Bail out early for PIC modes when target does not support PIC.
10654 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10656         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10657         Replace with a microblaze version.
10658         (microblaze_trampoline_init): Adapt for microblaze.
10659         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10660         microblaze.
10662 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10663             Dodji Seketeli  <dodji@redhat.com>
10665         PR asan/56330
10666         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10667         (instrument_mem_region_access): Do not forget to always put
10668         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10669         0) statement, even for cases where either 'base' or 'base + len'
10670         are not instrumented -- because they have been previously
10671         instrumented.  Simplify the logic by putting all the statements
10672         instrument 'base + len' inside a sequence, and then insert that
10673         sequence right before the current insertion point.  Then, to
10674         instrument 'base + len', just get an iterator on that statement.
10675         And do not forget to update the pointer to iterator the function
10676         received as argument.
10678 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10680         PR rtl-optimization/56348
10681         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10683 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10685         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10686         (clean_graph_dump_file): Pass base to start_graph_dump.
10688 2013-02-14  Richard Henderson  <rth@redhat.com>
10690         PR target/55941
10691         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10693 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10695         * collect2-aix.h: Define F_LOADONLY.
10697 2013-02-14  Richard Biener  <rguenther@suse.de>
10699         PR lto/50494
10700         * varasm.c (output_constant_def_1): Get the decl representing
10701         the constant as argument.
10702         (output_constant_def): Wrap output_constant_def_1.
10703         (make_decl_rtl): Use output_constant_def_1 with the decl
10704         representing the constant.
10705         (build_constant_desc): Optionally re-use a decl already
10706         representing the constant.
10707         (tree_output_constant_def): Adjust.
10709 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10711         Fix an asan crash
10712         * asan.c (instrument_builtin_call):  Really put the length of the
10713         second source argument into src1_len.
10715 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10717         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10718         argument.  If it is false, don't create edge from then_bb to
10719         fallthru_bb.
10720         (insert_if_then_before_iter): Pass true to it.
10721         (build_check_stmt): Pass false to it.
10722         (transform_statements): Flush hash table only on extended basic
10723         block boundaries, rather than at the beginning of every bb.
10724         Don't flush hash table on nonfreeing_call_p calls.
10725         * tree-flow.h (nonfreeing_call_p): New prototype.
10726         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10728 2013-02-13  David S. Miller  <davem@davemloft.net>
10730         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10732 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10734         PR target/56184
10735         * ira.c (max_regno_before_ira): Move from ...
10736         (ira): ... here.
10737         (fix_reg_equiv_init): Use max_regno_before_ira instead of
10738         vec_safe_length.
10740 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10742         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10744 2013-02-13  Richard Biener  <rguenther@suse.de>
10746         PR lto/56295
10747         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10748         globals in MEM_REFs.
10750 2013-02-13  Richard Biener  <rguenther@suse.de>
10752         * loop-init.c (loop_optimizer_init): Clear loop state when
10753         re-initializing preserved loops.
10754         * loop-unswitch.c (unswitch_single_loop): Return whether
10755         we unswitched the loop.  Do not verify loop state here.
10756         (unswitch_loops): When we unswitched a loop discover new loops.
10758 2013-02-13  Kostya Serebryany  <kcc@google.com>
10760         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10761         on x86_64 linux.
10762         * sanitizer.def: Rename __asan_init to __asan_init_v1.
10764 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
10766         Avoid instrumenting duplicated memory access in the same basic block
10767         * Makefile.in (asan.o): Add new dependency on hash-table.h
10768         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10769         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10770         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10771         (free_mem_ref_resources, has_mem_ref_been_instrumented)
10772         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10773         (get_mem_ref_of_assignment): New functions.
10774         (get_mem_refs_of_builtin_call): Extract from
10775         instrument_builtin_call and tweak a little bit to make it fit with
10776         the new signature.
10777         (instrument_builtin_call): Use the new
10778         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
10779         of is_gimple_builtin_call.
10780         (instrument_derefs, instrument_mem_region_access): Insert the
10781         instrumented memory reference into the hash table.
10782         (maybe_instrument_assignment): Renamed instrument_assignment into
10783         this, and change it to advance the iterator when instrumentation
10784         actually happened and return true in that case.  This makes it
10785         homogeneous with maybe_instrument_assignment, and thus give a
10786         chance to callers to be more 'regular'.
10787         (transform_statements): Clear the memory reference hash table
10788         whenever we enter a new BB, when we cross a function call, or when
10789         we are done transforming statements.  Use
10790         maybe_instrument_assignment instead of instrumentation.  No more
10791         need to special case maybe_instrument_assignment and advance the
10792         iterator after calling it; it's now handled just like
10793         maybe_instrument_call.  Update comment.
10795 2013-02-13  Richard Biener  <rguenther@suse.de>
10797         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10798         Fix loop discovery code.
10800 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
10802         PR inline-asm/56148
10803         * lra-constraints.c (process_alt_operands): Match early clobber
10804         operand with itself.  Check conflicts with earlyclobber only if
10805         the operand is not reloaded.  Prefer to reload conflicting operand
10806         if earlyclobber and matching operands are the same.
10808 2013-02-12  Richard Biener  <rguenther@suse.de>
10810         PR lto/56297
10811         * lto-streamer-out.c (write_symbol): Do not output symbols
10812         for hard register variables.
10814 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
10816         PR target/54222
10817         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10818         (umulsidi3_insn, mulsidi3_insn): New insns.
10820 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
10822         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10823         (struct tune_params): Add vec_costs field.
10824         * config/arm/arm.c (arm_builtin_vectorization_cost)
10825         (arm_add_stmt_cost): New functions.
10826         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10827         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10828         (arm_default_vec_cost): New struct of type cpu_vec_costs.
10829         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10830         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10831         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10832         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10834 2013-02-12  Richard Biener  <rguenther@suse.de>
10836         PR lto/56295
10837         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10838         decls again if possible.
10840 2013-02-12  Richard Biener  <rguenther@suse.de>
10842         PR middle-end/56288
10843         * tree-ssa.c (verify_ssa_name): Fix check, move
10844         SSA_NAME_IN_FREE_LIST check up.
10846 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
10847             Steven Bosscher   <steven@gcc.gnu.org>
10849         PR rtl-optimization/56151
10850         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10851         equal to op0 or op1, and last_insn pattern is CODE operation
10852         with MEM dest and one of the operands matches that MEM.
10854 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
10856         * doc/extend.texi: Document Function Multiversioning and "default"
10857         parameter string to target attribute.
10858         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10859         target attribute parameter is "default".
10860         (ix86_compare_version_priority): Remove checks for target attribute.
10861         (ix86_mangle_function_version_assembler_name): Change error to sorry.
10862         Remove check for target attribute equal to NULL. Add assert.
10863         (ix86_generate_version_dispatcher_body): Change error to sorry.
10865 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
10866             Jack Howarth  <howarth@bromo.med.uc.edu>
10867             Patrick Marlier  <patrick.marlier@gmail.com>
10869         PR libitm/55693
10870         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10871         define ENDFILE_SPEC as TM_DESTRUCTOR.
10872         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10874 2013-02-11  Alexander Potapenko  <glider@google.com>
10875             Jack Howarth  <howarth@bromo.med.uc.edu>
10876             Jakub Jelinek  <jakub@redhat.com>
10878         PR sanitizer/55617
10879         * config/darwin.c (cdtor_record): Rename ctor_record.
10880         (sort_cdtor_records): Rename sort_ctor_records.
10881         (finalize_dtors): New routine to sort destructors by
10882         priority before use in assemble_integer.
10883         (machopic_asm_out_destructor): Use finalize_dtors if needed.
10885 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
10887         PR rtl-optimization/56275
10888         * simplify-rtx.c (avoid_constant_pool_reference): Check that
10889         offset is non-negative and less than cmode size before
10890         calling simplify_subreg.
10892 2013-02-11  Richard Biener  <rguenther@suse.de>
10894         PR tree-optimization/56264
10895         * cfgloop.h (fix_loop_structure): Adjust prototype.
10896         * loop-init.c (fix_loop_structure): Return the number of
10897         newly discovered loops.
10898         * tree-cfgcleanup.c (repair_loop_structures): When new loops
10899         are discovered, do a full loop-closed SSA rewrite.
10901 2013-02-11  Richard Biener  <rguenther@suse.de>
10903         PR tree-optimization/56273
10904         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10905         first VRP run.
10906         (check_array_ref): Fix missing newline in dumps.
10907         (search_for_addr_array): Likewise.
10909 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
10911         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10913 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
10915         PR target/56256
10916         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10918 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
10920         PR rtl-optimization/56246
10921         * lra-constraints.c (simplify_operand_subreg): Try to reuse
10922         reload pseudo.
10923         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10924         constraints are satisfied.
10926 2013-02-08  Jeff Law  <law@redhat.com>
10928         PR debug/53948
10929         * emit-rtl.c (reg_is_parm_p): New function.
10930         * regs.h (reg_is_parm_p): New prototype.
10931         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10932         callee-clobbered registers.
10934 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10936         PR target/56043
10937         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10938         If there is no implicit builtin declaration, just return NULL.
10940 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10942         * config/i386/sse.md (FMAMODEM): New mode iterator.
10943         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10944         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10946 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10948         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10949         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10950         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10952 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10954         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10955         (microblaze*-*-elf): Likewise.
10956         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10957         LINK_SPEC.
10958         * config/microblaze/microblaze-c.c: Add builtin defines for
10959         _LITTLE_ENDIAN and _BIG_ENDIAN.
10960         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10961         add to TARGET_DEFAULT flags.
10962         Expand ASM_SPEC and LINK_SPEC.
10963         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10964         * config/microblaze/microblaze.md: Update extendsidi2 and
10965         movdi_internal instructions to use low-order / high-order reg
10966         print_operands.
10967         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10968         options and inversemask / mask of LITTLE_ENDIAN.
10969         * config/microblaze/t-microblaze: Expand multilib options to
10970         include mlittle-endian (le) and update exceptions patterns.
10972 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
10974         PR rtl-optimization/56195
10975         * lra-constraints.c (get_reload_reg): Don't reuse regs
10976         if they have smaller mode than requested, if they have
10977         wider mode than requested, try to return a SUBREG.
10979         PR tree-optimization/56250
10980         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10981         if type is unsigned and code isn't MULT_EXPR.
10983 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10985         PR tree-optimization/56064
10986         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10987         bits according to mode.
10988         * fixed-value.h (fixed_from_double_int)
10989         (const_fixed_from_double_int): Adjust comments.
10991 2013-02-08  Richard Biener  <rguenther@suse.de>
10993         PR lto/56231
10994         * lto-streamer.h (struct data_in): Remove current_file, current_line
10995         and current_col members.
10996         * lto-streamer-out.c (lto_output_location): Stream changed bits
10997         en-block for efficiency.
10998         * lto-streamer-in.c (clear_line_info): Remove.
10999         (lto_input_location): Cache current file, line and column
11000         globally via local statics.  Read changed bits en-block.
11001         (input_function): Do not call clear_line_info.
11002         (lto_read_body): Likewise.
11003         (lto_input_toplevel_asms): Likewise.
11005 2013-02-08  Michael Matz  <matz@suse.de>
11007         PR tree-optimization/52448
11008         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11009         (nt_call_phase): New static.
11010         (add_or_mark_expr): Only mark accesses with newer phase than any
11011         call seen.
11012         (nonfreeing_call_p): New.
11013         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11014         (nt_fini_block): Keep blocks marked as visited.
11015         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11017 2013-02-08  Richard Biener  <rguenther@suse.de>
11019         * ira.c (ira): Free broken dominator information.
11021 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11023         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11025 2013-02-08  Marek Polacek  <polacek@redhat.com>
11027         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11029 2013-02-08  Richard Biener  <rguenther@suse.de>
11031         PR middle-end/56181
11032         * cfgloop.h (flow_loops_find): Adjust.
11033         (bb_loop_header_p): Declare.
11034         * cfgloop.c (bb_loop_header_p): New function split out from ...
11035         (flow_loops_find): ... here.  Adjust function signature,
11036         support incremental loop structure update.
11037         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11038         * cfgloopmanip.c (fix_loop_structure): Move ...
11039         * loop-init.c (fix_loop_structure): ... here.
11040         (apply_loop_flags): Split out from ...
11041         (loop_optimizer_init): ... here.
11042         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11043         in incremental mode, only remove dead loops here.
11045 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11047         PR target/54222
11048         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11049         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11050         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11051         (*round<mode>3.libgcc): New insns for fixed-modes.
11052         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11053         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11054         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11055         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11056         implementations.  Define to __builtin_avr_absFX,
11057         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11058         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11059         __builtin_avr_countlsFX, respectively.
11060         * config/avr/avr-c.c (target.h): Include it.
11061         (enum avr_builtin_id): New enum.
11062         (avr_resolve_overloaded_builtin): New static function.
11063         (avr_register_target_pragmas): Use it to set
11064         targetm.resolve_overloaded_builtin.
11065         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11066         tree nodes used by DEF_BUILTIN.
11067         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11068         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11069         <AVR_BUILTIN_xxBITS>: Same.
11071 2013-02-08  Richard Biener  <rguenther@suse.de>
11073         * cfgloop.c (verify_loop_structure): Properly handle
11074         a loop exiting to another loop header.
11075         * ira-int.h (ira_loops): Remove.
11076         * ira.c (ira_loops): Remove.
11077         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11078         (do_reload): Use loop_optimizer_finalize.
11079         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11080         number_of_loops to access the loop tree.
11081         (more_one_region_p): Likewise.
11082         (finish_loop_tree_nodes): Likewise.
11083         (rebuild_regno_allocno_maps): Likewise.
11084         (mark_loops_for_removal): Likewise.
11085         (mark_all_loops_for_removal): Likewise.
11086         (remove_unnecessary_regions): Likewise.
11087         (ira_build): Likewise.
11088         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11090 2013-02-08  Richard Biener  <rguenther@suse.de>
11092         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11093         * ipa-pure-const.c (analyze_function): Avoid calling
11094         mark_irreducible_loops twice.
11095         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11097 2013-02-07  David S. Miller  <davem@davemloft.net>
11099         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11100         on 'reg'.
11101         * var-tracking.c (vt_add_function_parameter): Test the presence of
11102         HAVE_window_save properly and do not remap argument registers when
11103         we have a leaf function.
11105 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11107         PR bootstrap/56227
11108         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11109         instead of "ll".
11110         * config/i386/i386.c (ix86_print_operand): Ditto.
11112 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11114         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11116 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11118         PR rtl-optimization/56225
11119         * lra-constraints.c (process_alt_operands): Check that reload hard
11120         reg can hold value for strict_low_part.
11122 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11124         PR debug/56154
11125         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11126         dwarf2out_end_function.
11127         (in_first_function_p, maybe_at_text_label_p,
11128         first_loclabel_num_not_at_text_label): New variables.
11129         (dwarf2out_var_location): In the first function find out
11130         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11131         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11132         functions.
11134 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11136         PR rtl-optimization/56178
11137         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11138         SUBREG of a register.  Tidy up related block of code.
11139         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11140         note if the source is a register or a SUBREG of a register.
11142 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11144         PR target/56228
11145         * config/rs6000/rs6000.md (ptrm): New mode attr.
11146         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11147         call_value_indirect_aix<pttrsize>,
11148         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11149         m in constraints.
11151 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11153         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11154         if -bnortl. Convert to strcmp and strncmp.
11156 2013-02-07  Alan Modra  <amodra@gmail.com>
11158         PR target/54009
11159         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11160         addresses won't wrap when offsetting.
11161         (rs6000_secondary_reload): Provide secondary reloads needed for
11162         wrapping LO_SUM addresses.
11164 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11166         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11167         MACH, just __MACH__.
11169 2013-02-06  Richard Biener  <rguenther@suse.de>
11171         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11172         instead of calling fix_loop_structure.
11174 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11176         PR middle-end/56217
11177         * omp-low.c (use_pointer_for_field): Return false if
11178         lower_send_shared_vars doesn't generate any copy-out code.
11180 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11182         PR rtl-optimization/56131
11183         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11184         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11185         of the label is NULL.  Add comment.
11187 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11189         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11191         PR sanitizer/55374
11192         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11193         (STATIC_LIBTSAN_LIBS): Likewise.
11194         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11195         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11196         is defined, don't add anything else beyond that.
11197         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11198         (LINK_COMMAND_SPEC): Use them.
11200         PR tree-optimization/56205
11201         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11202         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11203         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11205 2013-02-05  Richard Biener  <rguenther@suse.de>
11207         PR tree-optimization/53342
11208         PR tree-optimization/53185
11209         * tree-vectorizer.h (vect_check_strided_load): Remove.
11210         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11211         not disallow peeling for vectorized strided loads.
11212         (vect_check_strided_load): Make static and simplify.
11213         (vect_analyze_data_refs): Adjust.
11214         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11215         correctly when vectorizing strided loads.
11217 2013-02-05  Richard Biener  <rguenther@suse.de>
11219         * doc/install.texi: Refer to ISL, not PPL.
11221 2013-02-05  Jan Hubicka  <jh@suse.cz>
11223         PR tree-optimization/55789
11224         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11226 2013-02-05  Jan Hubicka  <jh@suse.cz>
11228         PR tree-optimization/55789
11229         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11230         the dead call anyway.
11232 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11234         PR sanitizer/55374
11235         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11237 2013-02-04  Alexander Potapenko  <glider@google.com>
11238             Jack Howarth  <howarth@bromo.med.uc.edu>
11239             Jakub Jelinek  <jakub@redhat.com>
11241         PR sanitizer/55617
11242         * config/darwin.c (sort_ctor_records): Stabilized qsort
11243         on constructor priority by using original position.
11244         (finalize_ctors): New routine to sort constructors by
11245         priority before use in assemble_integer.
11246         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11248 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11250         PR libstdc++/54314
11251         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11252         about visibility on artificial decls.
11253         * config/sol2.c (solaris_assemble_visibility): Likewise.
11255 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11257         PR target/56186
11258         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11259         argument and improve checking of return-argument types for 16-byte
11260         modes.
11261         (ix86_function_value_1): Add additional valtype argument on call
11262         of function_value_64.
11263         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11264         handling infunction_value_64 function.
11266 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11268         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11270 2013-02-04  Richard Biener  <rguenther@suse.de>
11272         PR tree-optimization/56188
11273         * tree-ssa-structalias.c (label_visit): Consider case with
11274         initially non-empty points-to set.
11275         (perform_var_substitution): Dump node mapping and clean up.
11277 2013-02-04  Richard Guenther  <rguenther@suse.de>
11279         PR lto/56168
11280         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11281         node prevail as last resort.
11282         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11283         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11285 2013-02-04  Richard Biener  <rguenther@suse.de>
11287         PR tree-optimization/56113
11288         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11289         Merge into ...
11290         (equiv_class_lookup_or_add): ... this.
11291         (label_visit): Adjust and fix error in previous patch.
11292         (perform_var_substitution): Adjust.
11294 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11296         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11297         * config/sh/sh4-300.md: Likewise.
11298         * config/sh/sh4a.md: Likewise.
11299         * config/sh/constraints.md: Likewise.
11300         * config/sh/sh.md: Likewise.
11301         * config/sh/netbsd-elf.h: Likewise.
11302         * config/sh/predicates.md: Likewise.
11303         * config/sh/sh-protos.h: Likewise.
11304         * config/sh/ushmedia.h: Likewise.
11305         * config/sh/linux.h: Likewise.
11306         * config/sh/sh.c: Likewise.
11307         * config/sh/superh.h: Likewise.
11308         * config/sh/elf.h: Likewise.
11309         * config/sh/sh4.md: Likewise.
11310         * config/sh/sh.h: Likewise.
11312 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11314         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11315         constraint to match_test floating_point_store_memory_operand().
11316         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11317         (base14_operand): New.
11318         (floating_point_store_memory_operand): New.
11319         (integer_store_memory_operand): Revise to use base14_operand and
11320         reg_plus_base_memory_operand.
11321         (move_dest_operand): Allow symbolic_memory_operands.
11322         (symbolic_memory_operand): Check for LO_SOM.
11323         (symbolic_operand): Change default case to break.
11324         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11325         CONST_DOUBLE values to be reloaded by putting them into memory when
11326         the destination is a floating point register.
11327         (movdf): Remove code to handle CONST_DOUBLE.
11328         (movsf): Likewise.
11329         (reload_indf_r1): New.
11330         (reload_insf_r1): New.
11331         Consistently use "Q" and "T" constraints with integer and floating
11332         point move instructions, respectively.
11333         (movdi): Remove FAIL.
11334         Change predicate for source operand unamed DImode move from
11335         general_operand to move_src_operand.
11336         (umulsidi3): Change predicate for destination operand to
11337         register_operand.
11338         Likewise for similar unamed patterns.
11339         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11340         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11341         (hppa_legitimize_address): Simplify mask calculation.
11342         (pa_emit_move_sequence): Revised handling of secondary reloads from
11343         REG+D addresses for floating point loads and stores.  Directly handle
11344         loading CONST0_RTX (mode) to a floating point register.
11345         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11346         to floating point registers.  Don't restrict secondary reloads to
11347         floating point registers to integer modes.  Revise some comments and
11348         cleanup some code.
11349         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11350         (pa_legitimate_address_p): New.
11351         (pa_legitimize_reload_address): New.
11352         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11353         (STRICT_REG_OK_FOR_BASE_P): New.
11354         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11355         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11357 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11358             Andrew Dixie  <andrewd@gentrack.com>
11360         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11361         flag set.
11363 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11365         * expmed.c (extract_bit_field_1): Pass the full width of the
11366         structure to get_best_reg_extraction_insn.
11368 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11370         PR target/54601
11371         * configure.ac (use_cxa_atexit): Add AIX.
11372         * configure: Regenerate.
11374         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11376 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11378         PR debug/54793
11379         * final.c (need_profile_function): New variable.
11380         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11381         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11382         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11383         notes, targetm.asm_out.function_prologue doesn't emit anything,
11384         HAVE_prologue and profiler should be emitted before prologue,
11385         set need_profile_function instead of emitting it.
11386         (final_scan_insn): If need_profile_function, emit
11387         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11388         NOTE_INSN_FUNCTION_BEG note.
11390 2013-02-01  Richard Henderson  <rth@redhat.com>
11392         * config/rs6000/rs6000.md (smulditi3): New.
11393         (umulditi3): New.
11395         * config/alpha/alpha.md (umulditi3): New.
11397 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11399         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11400         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11402 2013-02-01  Richard Biener  <rguenther@suse.de>
11404         PR tree-optimization/56113
11405         * tree-ssa-structalias.c (label_visit): Reduce work for
11406         single-predecessor nodes.
11408 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11410         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11411         range isn't testing for zero.
11413 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11415         PR middle-end/56113
11416         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11418 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11419             Nick Clifton  <nickc@redhat.com>
11421         * config/v850/constraints.md (Q): Define as a memory constraint.
11422         * config/v850/predicates.md (label_ref_operand): New predicate.
11423         (e3v5_shift_operand): New predicate.
11424         (ior_operator): New predicate.
11425         * config/v850/t-v850: Add e3v5 multilib.
11426         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11427         (v850_gen_movdi): Prototype.
11428         * config/v850/v850.c: Add support for e3v5 architecture.
11429         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11430         TARGET_V850E_UP.
11431         (construct_save_jarl): Add e3v5 long JARL support.
11432         (v850_adjust_insn_length): New function.  Adjust length of call
11433         insns when using e3v5 instructions.
11434         (v850_gen_movdi): New function: Generate instructions to move a
11435         DImode value.
11436         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11437         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11438         (TARGET_USE_FPU): Enable for e3v5.
11439         (CONST_OK_FOR_W): New macro.
11440         (ADJUST_INSN_LENGTH): Define.
11441         * config/v850/v850.md (UNSPEC_LOOP): Define.
11442         (attr cpu): Add v850e3v5.
11443         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11444         (movdi): New pattern.
11445         (movdi_internal): New pattern.
11446         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11447         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11448         (cstoresf4): Likewise.
11449         (cstoredf4): Likewise.
11450         (insv): New pattern.
11451         (rotlso3_a): New pattern.
11452         (rotlsi3_b): New pattern
11453         (rotlsi3_v850e3v5): New pattern.
11454         (doloop_begin): New pattern.
11455         (fix_loop_counter): New pattern.
11456         (doloop_end): New pattern.
11457         (branch_normal): Add e3v5 long branch support.
11458         (branch_invert): Likewise.
11459         (branch_z_normal): Likewise.
11460         (branch_z_invert): Likewise.
11461         (branch_nz_normal): Likewise.
11462         (branch_nz_invert): Likewise.
11463         (call_internal_short): Add e3v5 register-indirect JARL support.
11464         (call_internal_long): Likewise.
11465         (call_value_internal_short): Likewise.
11466         (call_value_internal_long): Likewise.
11467         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11468         (mloop): New option.
11469         * config.gcc: Add support for configuring v840e3v5 target.
11470         * doc/invoke.texi: Document new v850 specific command line options.
11472 2013-01-31  Paul Koning  <ni1d@arrl.net>
11474         PR debug/55059
11475         PR debug/54508
11476         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11477         children if parent is a class.
11478         (prune_unused_types_prune): Don't add DW_AT_declaration.
11480 2013-01-31  Richard Biener  <rguenther@suse.de>
11482         PR tree-optimization/56157
11483         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11484         match up operand with SLP child.
11486 2013-01-31  Jason Merrill  <jason@redhat.com>
11488         PR debug/54410
11489         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11490         parameters the first time.
11491         (gen_scheduled_generic_parms_dies): Check completeness here.
11493 2013-01-31  Richard Biener  <rguenther@suse.de>
11495         PR middle-end/53073
11496         * common.opt (faggressive-loop-optimizations): New flag,
11497         enabled by default.
11498         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11499         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11500         infer_loop_bounds_from_undefined by it.
11502 2013-01-31  Richard Biener  <rguenther@suse.de>
11504         PR tree-optimization/56150
11505         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11506         visit virtual operands.
11507         (find_uses_to_rename_bb): Likewise.
11509 2013-01-31  Richard Biener  <rguenther@suse.de>
11511         PR tree-optimization/56150
11512         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11513         mixed store non-store stmts.
11515 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11517         PR sanitizer/55374
11518         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11519         LIBASAN_EARLY_SPEC is defined.
11520         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11521         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11522         before %o.
11523         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11525         PR c++/55742
11526         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11527         invalid args instead of ICEing on it.
11528         (ix86_valid_target_attribute_tree): Return error_mark_node if
11529         ix86_valid_target_attribute_inner_p failed.
11530         (ix86_valid_target_attribute_p): Return false only if
11531         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11532         target("default") attribute.
11533         (sorted_attr_string): Change argument from const char * to tree,
11534         merge in all target attribute arguments rather than just one.
11535         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11536         instead of free.  Avoid using strcat.
11537         (ix86_mangle_function_version_assembler_name): Mangle
11538         target("default") as if no target attribute is present.  Adjust
11539         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11540         instead of xmalloc and XDELETEVEC instead of free.
11541         (ix86_function_versions): Don't return true if one of the decls
11542         doesn't have target attribute.  If they don't and one of the decls
11543         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11544         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11545         (ix86_supports_function_versions): Remove.
11546         (make_name): Fix up formatting.
11547         (make_dispatcher_decl): Remove resolver_name and its initialization.
11548         Avoid leaking memory.
11549         (is_function_default_version): Return true if there is
11550         target("default") attribute rather than no target attribute at all.
11551         (make_resolver_func): Avoid leaking memory.
11552         (ix86_generate_version_dispatcher_body): Likewise.
11553         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11554         * target.def (supports_function_versions): Remove.
11555         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11556         * doc/tm.texi: Regenerated.
11558 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11560         PR rtl-optimization/56144
11561         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11562         for values with side effects.
11564 2013-01-30  Richard Biener  <rguenther@suse.de>
11566         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11567         (sparseset_pop): Likewise.
11568         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11569         to be able to use quick_push in the worker loop.
11571 2013-01-30  Marek Polacek  <polacek@redhat.com>
11573         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11575 2013-01-30  Richard Biener  <rguenther@suse.de>
11577         PR lto/56147
11578         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11580 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11582         PR tree-optimization/56064
11583         * fixed-value.c (fixed_from_double_int): New function.
11584         * fixed-value.h (fixed_from_double_int): New prototype.
11585         (const_fixed_from_double_int): New static inline function.
11586         * fold-const.c (native_interpret_fixed): New static function.
11587         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11588         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11589         (native_encode_fixed): New static function.
11590         (native_encode_expr) <FIXED_CST>: Use it.
11591         (native_interpret_int): Move double_int worker code to...
11592         * double-int.c (double_int::from_buffer): ...this new static method.
11593         * double-int.h (double_int::from_buffer): Prototype it.
11595 2013-01-30  Richard Biener  <rguenther@suse.de>
11597         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11598         New pointer-map and obstack.
11599         (init_alias_vars): Allocate pointer-map and obstack.
11600         (delete_points_to_sets): Free them.
11601         (find_what_var_points_to): Cache result.
11602         (find_what_p_points_to): Adjust for changed interface of
11603         find_what_var_points_to.
11604         (compute_points_to_sets): Likewise.
11605         (ipa_pta_execute): Likewise.
11607 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11609         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11610         * configure: Regenerate.
11611         * config.in: Regenerate.
11612         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11613         #nobits/#progbits if supported.
11615 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11617         PR target/56121
11618         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11619         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11620         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11622 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11624         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11625         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11627 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11629         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11630         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11632 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11634         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11635         declaration.
11636         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11637         * config/arm/cortex-a7.md: New bypasses using
11638         arm_mac_accumulator_is_result.
11640 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11642         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11643         (cortex_a7_neon_mla): Likewise.
11644         (cortex_a7_fpfmad): New reservation.
11645         (cortex_a7_fpmacs): Use ffmas and update required units.
11646         (cortex_a7_fpmuld): Update required units and latency.
11647         (cortex_a7_fpmacd): Likewise.
11648         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11649         (cortex_a7_neon). Likewise.
11650         (bypass) Update participating units.
11652 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11654         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11655         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11656         from fmac to ffma.
11657         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11658         (vfp_fmul): Use ffmad.
11659         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11660         (cortex_r4_fmacd): Use ffmad.
11661         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11662         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11663         (cortex_a9_fmacd): Use ffmad.
11664         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11665         (cortex_a8_vfp_macd): Use ffmad.
11666         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11667         (cortex_a5_fpmacd): Use ffmad.
11668         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11669         (cortex_a15_vfp_macd): Use ffmad.
11670         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11672 2013-01-29  Jason Merrill  <jason@redhat.com>
11674         PR libstdc++/54314
11675         * varasm.c (default_assemble_visibility): Don't warn about
11676         visibility on artificial decls.
11678 2013-01-29  Richard Biener  <rguenther@suse.de>
11680         PR tree-optimization/56113
11681         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11682         the bitmap leader.
11683         (label_visit): Free duplicate bitmaps and record the leader instead.
11684         (perform_var_substitution): Adjust.
11686 2013-01-29  Richard Biener  <rguenther@suse.de>
11688         PR tree-optimization/55270
11689         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11690         the CFG, schedule loops for fixup.
11692 2013-01-29  Nick Clifton  <nickc@redhat.com>
11694         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11695         SP_REG.
11697 2013-01-28  Leif Ekblad  <leif@rdos.net>
11699         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11700         * config/i386/i386.h (TARGET_RDOS): New macro.
11701         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11702         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11703         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11704         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11705         DEFAULT_LARGE_SECTION_THRESHOLD.
11706         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11707         * config/i386/rdos.h: New file.
11708         * config/i386/rdos64.h: New file.
11710 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11712         PR other/54814
11713         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11714         TEST_HARD_REG_BIT.
11716 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11718         PR rtl-optimization/56117
11719         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11720         call cselib_lookup_from_insn on the MEM before calling
11721         add_insn_mem_dependence.
11723 2013-01-28  Richard Biener  <rguenther@suse.de>
11725         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11726         to a stmt that didn't have one.
11727         (copy_phis_for_bb): Likewise for PHI arguments.
11728         (copy_debug_stmt): Likewise for debug stmts.
11730 2013-01-28  Richard Biener  <rguenther@suse.de>
11732         PR tree-optimization/56034
11733         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11734         (partition_builtin_p): Adjust.
11735         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
11736         it is the last partition.
11737         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11738         up the vertex for the definition.
11739         (classify_partition): Classify whether a partition is a
11740         PKIND_REDUCTION, thus has uses outside of the loop.
11741         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11742         Merge all PKIND_REDUCTION partitions into the last partition.
11743         (tree_loop_distribution): Seed partitions from reductions as well.
11745 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11747         PR tree-optimization/56125
11748         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11749         pow(x,c) into sqrt(x) * powi(x, n/2) or
11750         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11751         optimizing for size.
11752         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11753         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11754         integer.
11756         PR tree-optimization/56094
11757         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11758         to UNKNOWN_LOCATION while gimplifying expr.
11760 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
11762         PR target/56114
11763         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11764         operand 0 in movabs insn template for -masm=intel asm alternative.
11765         (*movabs<mode>_2): Ditto for operand 1.
11767 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
11769         PR target/54663
11770         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11771         of microblaze-c.o
11773 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11775         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11776         tm_file.
11778 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11780         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11781         Undef to avoid warning.
11783 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11785         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11786         * configure: Regenerate.
11788 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
11790         PR tree-optimization/56098
11791         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11792         for stmts with volatile ops.
11793         (cond_store_replacement): Don't optimize if assign has volatile ops.
11794         (cond_if_else_store_replacement_1): Don't optimize if either
11795         then_assign or else_assign have volatile ops.
11796         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11797         volatile ops.
11799 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11801         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11803 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11805         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11806         missing ':' in asm example.
11808 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
11810         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11811         entries into lane and laneq entries.
11812         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11813         Remove AdvSIMD scalar modes.
11814         (aarch64_sq<r>dmulh_laneq<mode>): New.
11815         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11816         modes.
11817         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11818         builtin implementations to relfect changes in RTL in aarch64-simd.md.
11819         * config/aarch64/iterators.md (VCOND): New.
11820         (VCONQ): New.
11822 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11824         PR target/54222
11825         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11826         Add NULL LIBNAME argument to existing definitions.
11827         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11828         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11829         * config/avr/avr.c (DEF_BUILTIN): Same.
11830         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11831         (avr_expand_builtin): Expand to a vanilla call if a libgcc
11832         implementation is available (DECL_ASSEMBLER_NAME is set).
11833         (avr_fold_absfx): New static function.
11834         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11835         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11836         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11837         AVR_BUILTIN_ABSLLK.
11838         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11839         (abshk, absk, abslk, absllk): Provide as static inline functions.
11841 2013-01-25  Marek Polacek  <polacek@redhat.com>
11843         PR tree-optimization/56035
11844         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11846 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
11848         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11849         (*movtf_internal_rex64): Add (!o,C) alternative
11850         (*movxf_internal_rex64): Ditto.
11851         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11853 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
11855         * doc/invoke.texi: fix typo.
11856         * doc/objc.texi: fix typo.
11858 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
11860         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11861         for the first two alternatives.
11863 2013-01-24  Diego Novillo  <dnovillo@google.com>
11865         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
11866         (ggc-zone.o): Remove.
11867         * configure.ac: Remove option --with-gc.
11868         * configure: Re-generate.
11869         * doc/install.texi: Remove documentation for --with-gc.
11870         * gengtype.c (write_enum_defn): Remove.  Update all users.
11871         (write_Types_process_field): Remove generation of gt_e_* argument.
11872         (output_type_enum): Remove.  Update all users.
11873         (write_enum_defn): Remove.  Update all users.
11874         (enum alloc_zone): Remove.  Update all users.
11875         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11876         * ggc-common.c (ggc_splay_alloc): Remove first argument.
11877         Update all callers.
11878         (struct ptr_data): Remove field TYPE.  Update all users.
11879         (gt_pch_note_object): Remove argument TYPE.  Update all users.
11880         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11881         Update all users.
11882         * ggc-none.c (ggc_alloc_typed_stat): Remove.
11883         (struct alloc_zone): Remove.
11884         (ggc_internal_alloc_zone_stat): Remove.
11885         (ggc_internal_cleared_alloc_zone_stat): Remove.
11886         * ggc-page.c (ggc_alloc_typed_stat): Remove.
11887         (ggc_pch_count_object): Remove last argument.  Update all users.
11888         (ggc_pch_alloc_object): Remove last argument.  Update all users.
11889         (struct alloc_zone): Remove.
11890         * ggc-zone.c: Remove.
11891         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
11892         (struct alloc_zone): Remove.
11893         (ggc_alloc_typed_stat): Remove.
11894         (ggc_alloc_typed): Remove.
11895         (ggc_splay_alloc): Remove first argument.
11896         (rtl_zone): Remove.  Update all users.
11897         (tree_zone): Remove.  Update all users.
11898         (tree_id_zone): Remove.  Update all users.
11899         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
11900         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
11901         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
11902         * tree-ssanames.c: Remove references to zone allocator in comments.
11904 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
11906         * config/avr/avr.c (avr_out_fract): Make register numbers that
11907         might be outside of source operand signed.
11909 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
11911         * config/i386/constraints.md (Yf): New constraint.
11912         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11913         of f constraint to conditionaly disable x87 register preferences.
11914         (*movdf_internal): Ditto.
11915         (*movsf_internal): Ditto.
11917 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
11919         PR inline-asm/55934
11920         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11921         that have operands with impossible constraints.
11922         Add a FIXME for a speed-up opportunity.
11923         * lra-constraints.c (process_alt_operands): Verify that a class
11924         selected from constraints on asms is valid for the operand mode.
11925         (curr_insn_transform): Remove incorrect comment.
11927 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
11929         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11930         TOC operand is a valid symbol ref in the constant pool.
11932 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11934         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11936 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
11938         PR target/54222
11939         * config/avr/stdfix.h: New file.
11940         * t-avr (stdfix-gcc.h): New rule to build it.
11941         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11943 2013-01-23  Kostya Serebryany  <kcc@google.com>
11945         * config/darwin.h: remove dependency on
11946         CoreFoundation (asan on Mac OS).
11948 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
11950         PR target/49069
11951         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11952         instead of cmpdi_operand for first comparison operand.
11953         Don't assert that comparison operands aren't both constants.
11955 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11957         * doc/install.texi (Downloading the Source): Update references to
11958         downloading separate components.
11960 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11962         * doc/extend.texi (__int128): Improve grammar.
11964 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
11966         PR target/56028
11967         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11968         alternative to (o,r).
11969         (*movdi_internal_rex64): Remove (!o,n) alternative.
11970         (DImode immediate->memory splitter): Remove.
11971         (DImode immediate->memory peephole2): Remove.
11972         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11973         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11974         alternative to (!o,*r).
11975         (*movtf_internal_sse): New pattern.
11976         (*movxf_internal_rex64): New pattern.
11977         (*movxf_internal): Disable for TARGET_64BIT.
11978         (*movdf_internal_rex64): Remove (!o,F) alternative.
11980 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
11982         PR middle-end/56074
11983         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11984         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11985         * tree-vect-loop-manip.c (find_loop_location): Also ignore
11986         stmt locations where LOCATION_LOCUS of the stmt location is
11987         UNKNOWN_LOCATION or BUILTINS_LOCATION.
11989         PR target/55686
11990         * config/i386/i386.md (UNSPEC_STOS): New.
11991         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11992         *strsetqi_1): Add UNSPEC_STOS.
11994 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
11996         PR c++/56067
11997         * doc/invoke.texi: Remove left over -Wsynth example.
11999 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12001         PR tree-optimization/56051
12002         * fold-const.c (fold_binary_loc): Don't fold
12003         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12004         a narrowing conversion, or widening conversion from signed
12005         to unsigned.
12007 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12009         PR rtl-optimization/56023
12010         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12011         dependent on debug instruction.
12013 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12015         PR middle-end/56022
12016         * function.c (allocate_struct_function): Call
12017         invoke_set_current_function_hook earlier.
12019 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12021         * reload1.c (init_reload): Only initialize reload_obstack
12022         during the first call.
12024 2013-01-21  Marek Polacek  <polacek@redhat.com>
12026         * cfgloop.c (verify_loop_structure): Fix up grammar.
12028 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12030         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12031         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12033 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12035         PR target/56058
12036         * config/arm/marvell-pj4.md: Update copyright year.
12037         Fix up use of alu to alu_reg and simple_alu_imm.
12039 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12041         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12043 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12045         PR target/55433
12046         * lra-constraints.c (curr_insn_transform): Don't reuse original
12047         insn for secondary memory move when memory mode should be different.
12049 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12051         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12052         atomic_storedi_1): New patterns.
12054 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12056         btver2 pipeline descriptions.
12057         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12058         descriptions.
12059         * config/i386/i386.md (btver2_decode): New type attributes.
12060         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12061         type attributes.
12062         * config/i386/btver2.md: New file describing btver2 pipelines.
12064 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12066         PR tree-optimization/52631
12067         * tree-ssa-sccvn (visit_use): Before looking up the original
12068         statement, try looking up the simplified expression.
12070 2013-01-19  Anthony Green  <green@moxielogic.com>
12072         * config/moxie/moxie.c (moxie_expand_prologue): Set
12073         current_function_static_stack_size.
12075 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12077         PR tree-optimization/56029
12078         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12079         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12081 2013-01-18  Sharad Singhai  <singhai@google.com>
12083         PR tree-optimization/55995
12084         * dumpfile.c (dump_loc): Print location only if available.
12085         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12087 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12089         PR target/55433
12090         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12091         secondary memory move.
12092         (inherit_reload_reg): Use rclass instead of cl for
12093         check_secondary_memory_needed_p.
12095 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12097         PR middle-end/56015
12098         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12099         the case where writing real complex part of target modifies op1.
12101 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12103         * config/aarch64/aarch64-simd.md
12104         (aarch64_vcond_internal<mode>): Handle unordered cases.
12105         * config/aarch64/iterators.md (v_cmp_result): New.
12107 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12108             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12110         * config/arm/marvell-pj4.md: New file.
12111         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12112         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12113         (generic_vfp): Likewise.
12114         * config/arm/arm-cores.def: Add marvell-pj4.
12115         * config/arm/arm-tune.md: Regenerate.
12116         * config/arm/arm-tables.opt: Regenerate.
12117         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12118         * doc/invoke.texi: Document marvell-pj4.
12120 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12122         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12124 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12126         PR debug/54114
12127         PR debug/54402
12128         PR debug/49888
12129         * var-tracking.c (negative_power_of_two_p): New.
12130         (global_get_addr_cache, local_get_addr_cache): New.
12131         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12132         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12133         heading comment.
12134         (vt_stack_offset_p): Remove.
12135         (vt_canon_true_dep): Always canonicalize loc's address.
12136         (clobber_overlapping_mems): Make sure we have a MEM.
12137         (local_get_addr_clear_given_value): New.
12138         (val_reset): Clear local cached entries.
12139         (compute_bb_dataflow): Create and release the local cache.
12140         Disable duplicate MEMs clobbering.
12141         (emit_notes_in_bb): Clobber MEMs likewise.
12142         (vt_emit_notes): Create and release the local cache.
12143         (vt_initialize, vt_finalize): Create and release the global
12144         cache, respectively.
12145         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12147 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12149         PR libmudflap/53359
12150         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12151         not found in the symtab.
12153 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12155         PR debug/56006
12156         PR rtl-optimization/55547
12157         PR rtl-optimization/53827
12158         PR debug/53671
12159         PR debug/49888
12160         * alias.c (offset_overlap_p): New, factored out of...
12161         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12162         the conservative special case for symbolic constants.  Don't
12163         adjust zero sizes on alignment.
12165 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12167         PR rtl-optimization/52573
12168         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12169         REG_UNUSED for the same register.
12171 2013-01-17  Richard Biener  <rguenther@suse.de>
12172             Marek Polacek  <polacek@redhat.com>
12174         PR rtl-optimization/55833
12175         * loop-unswitch.c (unswitch_loops): Move loop verification...
12176         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12177         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12178         Set it to true when we're removing a loop from hierarchy tree in
12179         an irreducible region.
12180         (fix_bb_placements): Adjust caller.
12181         (fix_loop_placements): Likewise.
12183 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12185         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12186         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12187         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12188         Remove ID.  Adjust comments.
12189         * config/avr/avr-c.c (avr_builtin_name): Remove.
12190         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12191         * config/avr/avr.c (avr_tolower): New static function.
12192         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12193         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12194         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12195         default expansion.
12197 2013-01-17  Jan Hubicka  <jh@suse.cz>
12199         PR tree-optimization/55273
12200         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12202 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12204         PR target/55981
12205         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12206         store through atomic_store<mode>_1.
12207         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12209 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12211         PR tree-optimizations/55264
12212         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12213         for virtual methods.
12214         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12215         virtual methods before inlining is over.
12216         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12217         virtual functions.
12218         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12219         non-virtual.
12221 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12223         PR rtl-optimization/56005
12224         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12225         pending reads for prefetch.
12227 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12229         * config/aarch64/aarch64.md
12230         (*cstoresi_neg_uxtw): New pattern.
12231         (*cmovsi_insn_uxtw): New pattern.
12232         (*<optab>si3_uxtw): New pattern.
12233         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12234         (*<optab>si3_insn_uxtw): New pattern.
12235         (*bswapsi2_uxtw): New pattern.
12237 2013-01-16  Richard Biener  <rguenther@suse.de>
12239         * tree-inline.c (tree_function_versioning): Remove set but
12240         never used variable.
12242 2013-01-16  Richard Biener  <rguenther@suse.de>
12244         PR tree-optimization/55964
12245         * tree-flow.h (rename_variables_in_loop): Remove.
12246         (rename_variables_in_bb): Likewise.
12247         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12248         (copy_loop_before): Adjust and delete update-ssa status.
12249         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12250         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12251         (rename_variables_in_loop): Remove.
12252         (slpeel_update_phis_for_duplicate_loop): Likewise.
12253         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12254         use available cfg machinery instead of duplicating it.
12255         Update PHI nodes and perform poor-mans SSA update here.
12256         (slpeel_tree_peel_loop_to_edge): Adjust.
12258 2013-01-16  Richard Biener  <rguenther@suse.de>
12260         PR tree-optimization/54767
12261         PR tree-optimization/53465
12262         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12263         (vrp_visit_phi_node): For PHI arguments coming via backedges
12264         drop all symbolical range information.
12265         (execute_vrp): Compute backedges.
12267 2013-01-16  Richard Biener  <rguenther@suse.de>
12269         * doc/install.texi: Update CLooG and ISL requirements to
12270         0.18.0 and 0.11.1.
12272 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12274         PR target/55301
12275         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12276         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12277         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12279 2013-01-16  DJ Delorie  <dj@redhat.com>
12281         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12282         (UNSPECV_SP_SWITCH_E): New.
12283         (sp_switch_1): Change to an unspec.
12284         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12285         replace $r15.
12287 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12289         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12290         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12291         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12292         (expand_mem_thread_fence): Ditto.
12293         (expand_mem_signal_fence): Ditto.
12294         (expand_atomic_load): Ditto.
12295         (expand_atomic_store): Ditto.
12297 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12299         PR rtl-optimization/55547
12300         PR rtl-optimization/53827
12301         PR debug/53671
12302         PR debug/49888
12303         * alias.c (memrefs_conflict_p): Set sizes to negative after
12304         AND adjustments.
12306 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12308         PR target/55940
12309         * function.c (thread_prologue_and_epilogue_insns): Always
12310         add crtl->drap_reg to set_up_by_prologue.set, even if
12311         stack_realign_drap is false.
12313 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12315         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12316         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12317         *call): Fix indention.
12319 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12321         PR target/55876
12322         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12323         Update comment.
12325 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12327         PR rtl-optimization/55153
12328         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12330 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12332         PR tree-optimization/55920
12333         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12334         accesses as grp_to_be_debug_replaced.
12336 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12338         PR tree-optimization/55920
12339         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12340         there is non-useless type conversion needed from debug rhs to lhs,
12341         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12343 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12344             Mikael Pettersson  <mikpe@it.uu.se>
12346         PR target/43961
12347         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12348         Thumb.
12349         (ASM_OUTPUT_CASE_LABEL): Remove.
12350         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12351         * final.c (shorten_branches): Update alignment of labels before
12352         jump tables if CASE_VECTOR_SHORTEN_MODE.
12354 2013-01-15  Richard Biener  <rguenther@suse.de>
12356         PR bootstrap/55961
12357         * system.h: Do not include gmp.h for building host tools.
12359 2013-01-15  Richard Biener  <rguenther@suse.de>
12361         PR middle-end/55882
12362         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12363         account for bitpos when computing alignment.
12365 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12367         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12368         (ix86_target_macros_internal): Likewise.
12370         * config/i386/i386.c (m_CORE2I7): Removed.
12371         (m_CORE_HASWELL): New macro.
12372         (m_CORE_ALL): Likewise.
12373         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12374         (initial_ix86_arch_features): Likewise.
12375         (processor_target_table): Initializations for Core avx2.
12376         (cpu_names): New names "core-avx2".
12377         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12378         PROCESSOR_CORE_HASWELL.
12379         (ix86_issue_rate): New case.
12380         (ia32_multipass_dfa_lookahead): Likewise.
12381         (ix86_sched_init_global): Likewise.
12383         * config/i386/i386.h (TARGET_HASWELL): New macro.
12384         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12385         (processor_type): New PROCESSOR_HASWELL.
12387 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12389         PR tree-optimization/55955
12390         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12391         *SHIFT_EXPR and *ROTATE_EXPR codes.
12393         PR tree-optimization/48766
12394         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12395         -ftrapv disable -fwrapv.
12397 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12399         PR target/55974
12400         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12401         etc. to 1 and not to __flash.
12402         Use LL suffix for __INT24_MAX__ with -mint8.
12403         Use ULL suffix for __UINT24_MAX__ with -mint8.
12405 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12407         * config/avr/avr-arch.h
12408         (struct base_arch_s): Use typedef avr_arch_t instead.
12409         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12410         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12411         * config/avr/avr.c: Same.
12412         * config/avr/avr-devices.c: Same.
12413         * config/avr/driver-avr.c: Same.
12414         * config/avr/gen-avr-mmcu-texi.c: Same.
12415         * config/avr/avr-mcus.def: Adjust comment.
12417 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12419         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12420         * config/aarch64/iterators.md (VALLDI): New.
12422 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12423             Andi Kleen  <ak@linux.intel.com>
12425         PR target/55948
12426         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12427         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12428         memmodel flag.
12430 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12432         * config/avr/avr-stdint.h: Remove trailing blanks.
12433         * config/avr/avr-log.h: Same.
12434         * config/avr/avr-arch.h: Same.
12435         * config/avr/avr-devices.c: Same.
12436         * config/avr/avr-dimode.md: Same.
12437         * config/avr/predicates.md: Same.
12438         * config/avr/avr-c.c: Same.  And fix typo.
12440         * config/avr/avr-protos.h: Same.  And:
12441         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12442         (init_cumulative_args): Rename to avr_init_cumulative_args.
12443         (expand_prologue): Rename to avr_expand_prologue.
12444         (expand_epilogue): Rename to avr_expand_epilogue.
12445         (adjust_insn_length): Rename to avr_adjust_insn_length.
12446         (notice_update_cc): Rename to avr_notice_update_cc.
12447         (final_prescan_insn): Rename to avr_final_prescan_insn.
12448         * config/avr/avr.c: Same.
12449         * config/avr/avr.h: Same.
12450         * config/avr/avr.md: Remove trailing blanks.
12451         (prologue): Use avr_expand_prologue.
12452         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12454 2013-01-14  Richard Biener  <rguenther@suse.de>
12456         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12457         verify_location, collect_subblocks): New functions.
12458         (verify_gimple_in_cfg): Verify that locations only reference
12459         BLOCKs in the functions BLOCK tree.
12461 2013-01-14  Richard Biener  <rguenther@suse.de>
12463         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12464         PHI argument.
12465         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12466         unshare reference.
12467         (insert_out_of_ssa_copy_on_edge): Likewise.
12468         (rewrite_close_phi_out_of_ssa): Likewise.
12469         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12470         debug expressions.
12471         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12472         propagated constants.
12473         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12474         can not be shared.
12476 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12478         * config/avr/avr-modes.def: Add GPL copyright notice.
12480 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12482         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12483         MEMMODEL_MASK to determine memory model.
12484         (atomic_store<mode>): Ditto from operands[2].
12485         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12487 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12489         PR fortran/55935
12490         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12491         (fold_gimple_assign): Don't call unshare_expr here.
12492         (fold_ctor_reference): Call unshare_expr.
12494 2013-01-13  Terry Guo  <terry.guo@arm.com>
12496         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12497         * doc/fragments.texi: Document MULTILIB_REUSE.
12498         * gcc.c (multilib_reuse): New internal spec.
12499         (set_multilib_dir): Also search multilib from multilib_reuse.
12500         * genmultilib (tmpmultilib3): Refactor code.
12501         (tmpmultilib4): Ditto.
12502         (multilib_reuse): New multilib argument.
12504 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12506         * Makefile.in: Update copyright.
12508 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12510         PR middle-end/55890
12511         * calls.c (expand_call): Check if arg_nr is valid.
12513 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12515         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12516         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12517         documentation.  Add missing '__' in front of
12518         __builtin_ia32_packssdw256.
12520 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12522         PR target/55719
12523         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12524         NO_REGS for larl operands.
12525         (s390_reload_larl_operand): Use s390_load_address instead of
12526         emit_move_insn.
12528 2013-01-11  Richard Biener  <rguenther@suse.de>
12530         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12531         (verify_node_sharing): ... here.
12532         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12534 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12536         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12537         Substitute TREECHECKING.
12538         * configure: Regenerate.
12539         * Makefile.in (TREECHECKING): New.
12541 2013-01-11  Richard Guenther  <rguenther@suse.de>
12543         PR tree-optimization/44061
12544         * tree-vrp.c (extract_range_basic): Compute zero as
12545         value-range for __builtin_constant_p of function parameters.
12547 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12549         Update copyright years.
12551 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12553         PR rtl-optimization/55672
12554         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12555         const to be eliminable.
12557 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12559         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12560         * configure: Regenerate.
12562 2013-01-10  Richard Biener  <rguenther@suse.de>
12564         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12566 2013-01-10  Richard Biener  <rguenther@suse.de>
12568         PR bootstrap/55792
12569         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12570         locations for virtual PHI arguments.
12571         (rewrite_update_phi_arguments): Likewise.
12573 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12575         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12576         on to assembler.
12578 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12580         PR tree-optimization/55921
12581         * tree-complex.c (expand_complex_asm): New function.
12582         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12584 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12586         PR target/55718
12587         * config/s390/s390.c (s390_symref_operand_p)
12588         (s390_loadrelative_operand_p): Merge the two functions.
12589         (s390_check_qrst_address, print_operand_address): Add parameters
12590         to s390_loadrelative_operand_p invokation.
12591         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12592         (s390_reload_larl_operand, s390_secondary_reload): Use
12593         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12594         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12596 2013-01-09  Mike Stump  <mikestump@comcast.net>
12598         * dse.c (record_store): Remove unnecessary assert.
12600 2013-01-09  Jan Hubicka  <jh@suse.cz>
12602         PR tree-optimization/55569
12603         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12604         * cfgloop.h (scale_loop_profile): Likewise.
12606 2013-01-09  Jan Hubicka  <jh@suse.cz>
12608         PR lto/45375
12609         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12610         functions.
12611         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12613 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12615         PR middle-end/55114
12616         * expr.h (maybe_emit_group_store): Declare.
12617         * expr.c (maybe_emit_group_store): New function.
12618         * builtins.c (expand_builtin_int_roundingfn): Call it.
12619         (expand_builtin_int_roundingfn_2): Likewise.
12621 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12623         PR rtl-optimization/55829
12624         * lra-constraints.c (match_reload): Add code for absent output.
12625         (curr_insn_transform): Add code for reloads of matched inputs
12626         without output.
12628 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12630         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12631         attribute of movddup insn to DF.
12632         (*vec_interleave_lowv2df): Ditto.
12633         (vec_dupv2df): Ditto.
12635 2013-01-09  Jan Hubicka  <jh@suse.cz>
12637         PR tree-optimiation/55875
12638         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12639         EVERY_ITERATION parameter.
12640         (number_of_iterations_exit): Check if exit is executed every iteration.
12641         (idx_infer_loop_bounds): Similarly here.
12642         (n_of_executions_at_most): Simplify
12643         to only test for cases where statement is dominated by the
12644         particular bound; handle correctly the "postdominance" test.
12645         (scev_probably_wraps_p): Use max loop iterations info
12646         as a global bound first.
12648 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12649             Nick Clifton  <nickc@redhat.com>
12651         * config/v850/v850.md (cbranchsf4): New pattern.
12652         (cstoresf4): New pattern.
12653         (cbranchdf4): New pattern.
12654         (cstoredf4): New pattern.
12655         (movsicc): Disallow floating point comparisons.
12656         (cmpsf_le_insn): Fix order of operators.
12657         (cmpsf_lt_insn): Likewise.
12658         (cmpsf_eq_insn): Likewise.
12659         (cmpdf_le_insn): Likewise.
12660         (cmpdf_lt_insn): Likewise.
12661         (cmpdf_eq_insn): Likewise.
12662         (cmpsf_ge_insn): Use LE comparison.
12663         (cmpdf_ge_insn): Likewise.
12664         (cmpsf_gt_insn): Use LT comparison.
12665         (cmpdf_gt_insn): Likewise.
12666         (cmpsf_ne_insn): Delete pattern.
12667         (cmpdf_ne_insn): Delete pattern.
12668         * config/v850/v850.c (v850_gen_float_compare): Use
12669         gen_cmpdf_eq_insn for NE comparison.
12670         (v850_float_z_comparison_operator)
12671         (v850_float_nz_comparison_operator): Move from here ...
12672         * config/v850/predicates.md: ... to here.  Move GT and GE
12673         comparisons into v850_float_z_comparison_operator.
12674         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12675         Delete prototype.
12676         (v850_float_nz_comparison_operator): Likewise.
12678 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12680         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12681         with calls to gen_insvsi/gen_insvdi.
12683 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12685         * config/i386/i386.c (initial_ix86_tune_features): Set up
12686         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12688 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12689             Jakub Jelinek  <jakub@redhat.com>
12691         PR tree-optimization/48189
12692         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12693         If nitercst is 0, don't predict the exit edge.
12695 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12697         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12698         in asm_fprintf with reg_names.
12699         (aarch64_print_operand_address): Likewise.
12700         (aarch64_return_addr): Likewise.
12701         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12703 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12705         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12706         (INT_U6_BITS): Likewise.
12707         * config/pa/predicates.md (uint6_operand): New predicate.
12708         (shift5_operand, shift6_operand): Likewise.
12709         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12710         arith32_operand.
12711         (lshrdi3): Use shift6_operand.
12712         (shrpsi4, shrpdi4): New insn patterns.
12713         (extzv): Delete expander.
12714         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12715         predicates in unamed zero extract patterns.  Tighten common constraint.
12716         (extv): Delete expander.
12717         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12718         predicates in unamed sign extract patterns.  Tighten common constraint.
12719         (insv): Delete expander.
12720         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12721         predicates in unamed insert patterns.  Tighten common constraint.
12722         Change uint32_operand predicate to uint6_operand predicate in unamed
12723         DImode pattern to insert constant values of type 1...1xxxx.
12725 2013-01-04  Jan Hubicka  <jh@suse.cz>
12727         PR tree-optimization/55823
12728         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12729         issue.
12731 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12732             Uros Bizjak  <ubizjak@gmail.com>
12734         PR rtl-optimization/55845
12735         * df-problems.c (can_move_insns_across): Stop scanning at
12736         volatile_insn_p source instruction or give up if
12737         across_from .. across_to range contains any volatile_insn_p
12738         instructions.
12740 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12742         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12743         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12744         Declare.
12745         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12746         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12748 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12750         PR fortran/55341
12751         * asan.c (asan_clear_shadow): New function.
12752         (asan_emit_stack_protection): Use it.
12754 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12756         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12757         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12758         with tab instead of space.
12760 2013-01-08  Nick Clifton  <nickc@redhat.com>
12762         * config/rl78/rl78.c (rl78_expand_prologue): Always select
12763         register bank 0 at the start of an interrupt handler.
12764         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12765         MDBH registers.
12767 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12769         * config/aarch64/aarch64-simd.md
12770         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12771         (aarch64_simd_bsl): Likewise.
12772         (aarch64_vcond_internal<mode>): Likewise.
12773         (vcond<mode><mode>): Likewise.
12774         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12775         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12777 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12779         * config/aarch64/aarch64-builtins.c
12780         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12782 2013-01-08  Martin Jambor  <mjambor@suse.cz>
12784         PR debug/55579
12785         * tree-sra.c (analyze_access_subtree): Return true also after
12786         potentially creating a debug-only replacement.
12788 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12790         PR middle-end/55890
12791         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12793         PR tree-optimization/54120
12794         * tree-vrp.c (range_fits_type_p): Don't allow
12795         src_precision < precision from signed vr to unsigned_p
12796         if vr->min or vr->max is negative.
12797         (simplify_float_conversion_using_ranges): Test can_float_p
12798         against CODE_FOR_nothing.
12800 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12801             Richard Biener  <rguenther@suse.de>
12803         PR middle-end/55851
12804         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12805         types instead of just INTEGER_TYPE types.
12807 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
12809         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12810         TF_SIZE): Define.
12812 2013-01-07  Steve Ellcey  <sellcey@mips.com>
12814         PR target/42661
12815         * config/mips/mips.opt: Change mad to mmad to match documentation.
12817 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12819         PR target/55897
12820         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12821         .progmemx.data now.
12823 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12825         PR target/55897
12826         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12827         (avr_addrspace_t): Add .section_name field.
12828         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12829         array size.
12830         (avr_addrspace): Same.  Initialize .section_name.  Remove last
12831         NULL entry.  Put __memx into .progmemx.data.
12832         (progmem_section_prefix): Remove.
12833         (avr_asm_init_sections): No need to initialize progmem_section.
12834         (avr_asm_named_section): Use avr_addrspace[].section_name to get
12835         section name prefix.
12836         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
12837         retrieve the progmem section.
12838         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12839         boundary to run over avr_addrspace[].
12840         (avr_register_target_pragmas): Ditto.
12842 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
12844         * varasm.c (output_constant_def_contents): For asan_protect_global
12845         protected strings, adjust DECL_ALIGN if needed, before testing for
12846         anchored symbols.
12847         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12848         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
12849         normal decls.
12850         (output_object_block): For asan protected decls, emit asan padding
12851         after their contents.
12852         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12853         (asan_finish_file): Test it here instead.
12855 2013-01-07  Nick Clifton  <nickc@redhat.com>
12856             Matthias Klose  <doko@debian.org>
12857             Doug Kwan  <dougkwan@google.com>
12858             H.J. Lu  <hongjiu.lu@intel.com>
12860         PR driver/55470
12861         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12863         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12865         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12867         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12869         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12871 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12873         PR target/54461
12874         * doc/install.texi (Cross-Compiler-Specific Options): Document
12875         --with-avrlibc.
12877 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
12879         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12880         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12881         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12882         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12883         vqmovun_high_s64): Fix source operand number and update copyright.
12885 2013-01-07  Richard Biener  <rguenther@suse.de>
12887         PR middle-end/55890
12888         * gimple.h (gimple_call_builtin_p): New overload.
12889         * gimple.c (validate_call): New function.
12890         (gimple_call_builtin_p): Likewise.
12891         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12892         Use gimple_call_builtin_p.
12893         (find_func_clobbers): Likewise.
12894         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12895         (strlen_optimize_stmt): Likewise.
12897 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12899         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12900         (vld1q_dup_*): Likewise.
12901         (vld1_*): Likewise.
12902         (vld1q_*): Likewise.
12903         (vld1_lane_*): Likewise.
12904         (vld1q_lane_*): Likewise.
12906 2013-01-07  Richard Biener  <rguenther@suse.de>
12908         * lto-streamer.h (LTO_minor_version): Bump to 2.
12910 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12912         * config/aarch64/aarch64-protos.h
12913         (aarch64_const_double_zero_rtx_p): Rename to...
12914         (aarch64_float_const_zero_rtx_p): ...this.
12915         (aarch64_float_const_representable_p): New.
12916         (aarch64_output_simd_mov_immediate): Likewise.
12917         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12918         move immediate case.
12919         * config/aarch64/aarch64.c
12920         (aarch64_const_double_zero_rtx_p): Rename to...
12921         (aarch64_float_const_zero_rtx_p): ...this.
12922         (aarch64_print_operand): Allow printing of new constants.
12923         (aarch64_valid_floating_const): New.
12924         (aarch64_legitimate_constant_p): Check for valid floating-point
12925         constants.
12926         (aarch64_simd_valid_immediate): Likewise.
12927         (aarch64_vect_float_const_representable_p): New.
12928         (aarch64_float_const_representable_p): Likewise.
12929         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12930         (aarch64_output_simd_mov_immediate): New.
12931         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12932         (*movdf_aarch64): Likewise.
12933         * config/aarch64/constraints.md (Ufc): New.
12934         (Y): call aarch64_float_const_zero_rtx.
12935         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12937 2013-01-07  Richard Biener  <rguenther@suse.de>
12939         PR tree-optimization/55888
12940         PR tree-optimization/55862
12941         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12942         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12943         not if it is contained therein.
12945 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12947         * config/avr/t-avr: Typo.
12949 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12951         PR55243
12952         * config/avr/t-avr: Don't automatically rebuild
12953         $(srcdir)/config/avr/t-multilib
12954         $(srcdir)/config/avr/avr-tables.opt
12955         $(srcdir)/doc/avr-mmcu.texi
12956         (avr-mcus): New phony target to build them on request.
12957         (s-avr-mlib, s-avr-mmcu-texi): Remove.
12958         * avr/avr-mcus.def: Adjust comments.
12960 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
12962         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12964 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12966         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12968 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12970         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12972 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
12974         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12975         to generate profiling.
12976         * config/rs6000/aix64.h (LIB_SPEC): Same.
12978 2013-01-04  Andrew Pinski  <apinski@cavium.com>
12980         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12981         New function.
12982         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12984 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
12986         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12987         unconditionally.
12988         (ix86_expand_move): Ditto.
12989         (ix86_zero_extend_to_Pmode): Ditto.
12990         (ix86_expand_call): Ditto.
12991         (ix86_expand_special_args_builtin): Ditto.
12992         (ix86_expand_builtin): Ditto.
12994 2013-01-04  Richard Biener  <rguenther@suse.de>
12996         PR tree-optimization/55862
12997         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12998         translating them through PHI nodes.
13000 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13002         PR tree-optimization/55755
13003         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13004         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13006 2013-01-04  Marek Polacek  <polacek@redhat.com>
13008         PR middle-end/55859
13009         * opts.c (default_options_optimization): Clarify error message.
13011 2013-01-04  Richard Biener  <rguenther@suse.de>
13013         PR middle-end/55863
13014         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13015         reassociation.
13017 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13019         PR target/53789
13020         * config/pa/pa.md (movsi): Revert previous change.
13021         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13022         references.
13024 2013-01-03  Richard Henderson  <rth@redhat.com>
13026         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13027         after eliminating TLS symbols.
13029 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13031         PR bootstrap/50167
13032         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13033         * graphite-poly.c (debug_gmp_value): Likewise.
13035 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13037         PR target/55712
13038         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13039         selected code model, define __code_mode_small__, __code_model_medium__,
13040         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13041         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13042         xchg temporary register with %k.  Declare temporary register as
13043         early clobbered.
13044         [__x86_64__]: For medium and large code models, preserve %rbx register.
13046 2013-01-03  Richard Biener  <rguenther@suse.de>
13048         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13049         (dump_subscript): Adjust.
13050         (finalize_ddr_dependent): Do not dump redundant info.
13051         (analyze_siv_subscript): Adjust.
13052         (subscript_dependence_tester): Likewise.
13053         (compute_affine_dependence): Likewise.
13055 2013-01-03  Richard Biener  <rguenther@suse.de>
13057         Revert
13058         2013-01-03  Richard Biener  <rguenther@suse.de>
13060         PR tree-optimization/55857
13061         * tree-vect-stmts.c (vectorizable_load): Do not setup
13062         re-alignment for invariant loads.
13064         2013-01-02  Richard Biener  <rguenther@suse.de>
13066         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13067         invariant load do not generate a vector load from the scalar location.
13069 2013-01-03  Richard Biener  <rguenther@suse.de>
13071         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13072         for not vectorizing.
13073         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13074         not build INDIRECT_REFs, call get_name once only.
13075         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13076         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13078 2013-01-03  Richard Biener  <rguenther@suse.de>
13080         PR tree-optimization/55857
13081         * tree-vect-stmts.c (vectorizable_load): Do not setup
13082         re-alignment for invariant loads.
13084 2013-01-03  Richard Biener  <rguenther@suse.de>
13086         PR lto/55848
13087         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13088         prefer a built-in decl.
13090 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13092         * gcc.c (process_command): Update copyright notice dates.
13093         * gcov.c (print_version): Likewise.
13094         * gcov-dump.c (print_version): Likewise.
13096         PR rtl-optimization/55838
13097         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13098         iv0.step, iv1.step and step.
13100 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13101             Marc Glisse  <marc.glisse@inria.fr>
13103         PR tree-optimization/55832
13104         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13105         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13106         integer_{one,zero}_node.
13108 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13110         PR debug/54402
13111         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13112         * var-tracking.c (reverse_op): Don't add reverse ops to
13113         VALUEs that have already
13114         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13116 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13118         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13120 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13122         * dumpfile.c (dump_loc): Print filename with location.
13123         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13124         new location_t parameter to emit complete unroll message with
13125         new dump framework.
13126         (canonicalize_loop_induction_variables): Compute loops location
13127         and pass to try_unroll_loop_completely.
13128         * loop-unroll.c (report_unroll_peel): New function.
13129         (peel_loops_completely): Use new dump format with location
13130         for main dumpfile message, and invoke report_unroll_peel on success.
13131         (decide_unrolling_and_peeling): Ditto.
13132         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13133         by report_unroll_peel.
13134         (decide_peel_completely): Ditto.
13135         (decide_unroll_constant_iterations): Ditto.
13136         (decide_unroll_runtime_iterations): Ditto.
13137         (decide_peel_simple): Ditto.
13138         (decide_unroll_stupid): Ditto.
13139         * cfgloop.c (get_loop_location): New function.
13140         * cfgloop.h (get_loop_location): Declare.
13142 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13144         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13145         NULL.
13147 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13149         PR middle-end/55198
13150         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13151         BLKmode objects when EXPAND_MEMORY is specified.
13153 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13155         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13156         in loop predicate.
13157         (fold_builtin_cpu): Do not share cpu model decls across statements.
13159 2013-01-02  Jason Merrill  <jason@redhat.com>
13161         PR c++/55804
13162         * tree.c (build_array_type_1): Revert earlier change.
13164 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13166         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13167         "cortex-a57".
13168         * config/aarch64/aarch64-tune.md: Re-generate.
13170 2013-01-02  Richard Biener  <rguenther@suse.de>
13172         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13173         invariant load do not generate a vector load from the scalar location.
13175 2013-01-02  Richard Biener  <rguenther@suse.de>
13177         PR bootstrap/55784
13178         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13179         * configure: Regenerate.
13181 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13183         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13184         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13185         (expand_builtin_int_roundingfn_2): Keep the original target around
13186         for the fallback case.
13188 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13190         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13191         to be clear for sign changes.
13193 2013-01-01  Jan Hubicka  <jh@suse.cz>
13195         * ipa-inline-analysis.c: Fix formatting.
13197 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13199         PR tree-optimization/55831
13200         * tree-vect-loop.c (get_initial_def_for_induction): Use
13201         gsi_after_labels instead of gsi_start_bb.
13203 Copyright (C) 2013 Free Software Foundation, Inc.
13205 Copying and distribution of this file, with or without modification,
13206 are permitted in any medium without royalty provided the copyright
13207 notice and this notice are preserved.