2013-06-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
bloba58dd00927b5d8b70dc3a64b06deb4c57f8f4ce9
1 2013-06-17  Richard Biener  <rguenther@suse.de>
3         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
4         (lto_input_scc): Declare.
5         (lto_input_tree_1): Likewise.
6         (struct lto_stats_d): Add num_tree_bodies_output and
7         num_pickle_refs_output.
8         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
9         (lto_read_tree_1): Split out from ...
10         (lto_read_tree): ... this.
11         (lto_input_scc): New function.
12         (lto_input_tree_1): Split out from ...
13         (lto_input_tree): ... this.  Handle LTO_tree_scc.
14         (lto_data_in_create): Create the streamer cache without hashes.
15         * lto-streamer-out.c (create_output_block): Create the streamer
16         cache with hashes when not doing WPA.
17         (lto_write_tree_1): Split out from ...
18         (lto_write_tree): ... this.
19         (get_symbol_initial_value): New function.
20         (lto_output_tree_1): Split out from ...
21         (lto_output_tree): ... this.  Write trees as series of SCCs
22         using a DFS walk via DFS_write_tree.
23         (struct sccs, struct scc_entry): New types.
24         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
25         (DFS_write_tree_body): New function.
26         (DFS_write_tree): Likewise.
27         (hash_tree): Likewise.
28         (scc_entry_compare): Likewise.
29         (hash_scc): Likewise.
30         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
31         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
32         TREE_CHAIN as regular reference.
33         (streamer_read_integer_cst): Remove.
34         (streamer_get_pickled_tree): Adjust.
35         * tree-streamer-out.c (streamer_write_chain): Disable streaming
36         of DECL_EXTERNALs in BLOCK_VARS for now.
37         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
38         reference.
39         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
40         Add hash value argument and record that if hashes are recorded
41         in the cache.
42         (streamer_tree_cache_insert_1): Adjust.
43         (streamer_tree_cache_insert): Likewise.
44         (streamer_tree_cache_insert_at): Rename to ...
45         (streamer_tree_cache_replace_tree): ... this and adjust.
46         (streamer_tree_cache_append): Adjust.
47         (record_common_node): Likewise.
48         (streamer_tree_cache_create): Add argument whether to
49         record hash values together with trees.
50         (streamer_tree_cache_delete): Adjust.
51         * tree-streamer.h (struct streamer_tree_cache_d): Add
52         vector of hashes.
53         (streamer_read_integer_cst): Remove.
54         (streamer_tree_cache_insert): Adjust.
55         (streamer_tree_cache_append): Likewise.
56         (streamer_tree_cache_insert_at): Rename to ...
57         (streamer_tree_cache_replace_tree): ... this and adjust.
58         (streamer_tree_cache_create): Add argument whether to record hashes.
59         (streamer_tree_cache_get): Rename to ...
60         (streamer_tree_cache_get_tree): ... this.
61         (streamer_tree_cache_get_hash): New function.
62         * tree.c (cache_integer_cst): New function.
63         * tree.h (cache_integer_cst): Declare.
64         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
65         * lto-symtab.c (lto_varpool_replace_node): Only release
66         DECL_INITIAL of non-prevailing decls.
67         * varpool.c (varpool_remove_initializer): Do not release
68         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
70 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
72         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
73         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
74         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
75         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
76         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
77         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
78         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
79         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
80         instead of TARGET_64BIT.
81         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
82         Require ISA_HAS_<D>DIV.
84 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
86         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
87         (mips*-*-linux*): Move default with_llsc setting to where other
88         defaults are set.
89         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
90         with_arch block.
91         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
92         Likewise.  Remove default with_tune setting.  Move default float
93         setting to its own block.  Handle with_llsc in the same block as above.
95 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
97         PR rtl-optimization/57425
98         PR rtl-optimization/57569
99         * alias.c (write_dependence_p): Add new parameters mem_size,
100         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
101         Changed all callers.
102         (canon_anti_dependence): New function.
103         * cse.c (check_dependence): Use canon_anti_dependence.
104         * cselib.c (cselib_invalidate_mem): Likewise.
105         * rtl.h (canon_anti_dependence): Declare.
107 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
109         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
110         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
111         ".set mips3" for 64-bit targets.
113 2013-06-15  Dehao Chen  <dehao@google.com>
115         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
116         * gimple-low.c (gimple_check_call_matching_types): Likewise.
117         (gimple_check_call_args): Likewise.
118         * value-prof.c (check_ic_target): Likewise.
119         * ipa-inline.c (early_inliner): Likewise.
120         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
121         * cgraph.c (cgraph_create_edge_1): Likewise.
122         (cgraph_make_edge_direct): Likewise.
124 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
126         PR target/57615
127         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
128         rs6000_output_move_128bit to handle emitting quad memory
129         operations.  Set attribute length to 8 bytes.
131 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
133         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
134         New pattern.
135         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
136         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
137         (aarch64_<su>mlsl<mode>): Likewise.
139 2013-06-14  Mike Stump  <mikestump@comcast.net>
141         * Makefile.in (TARGET_H): Add insn-codes.h.
143 2013-06-14  Alan Modra  <amodra@gmail.com>
145         PR middle-end/57134
146         PR middle-end/57586
147         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
148         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
149         bitfield expansion when EXPAND_MEMORY.
150         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
152 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
154         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
155         test for clearing quad memory on 32-bit later.
157 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
159         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
160         (fold_negate_expr): Likewise.
161         (fold_real_zero_addition_p): Handle vectors.
162         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
164 2013-06-14  Alan Modra  <amodra@gmail.com>
166         * varasm.c (force_const_mem): Revert 2013-06-07 change.
168 2013-06-13  Jan Hubicka  <jh@suse.cz>
170         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
171         Local comdats are not externally visible.
172         * symtab.c (dump_symtab_base): Dump externally visible.
173         (verify_symtab_base): Verify back links in the symtab hash.
175 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
177         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
178         CONVERT_EXPR as equal nodes.
180 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
182         * rtlanal.c (noop_move_p): Check the code to be executed for
183         COND_EXEC.
185 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
187         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
188         Generalize to complex and vector.
189         * tree.c (build_all_ones_cst): New function.
190         * tree.h (build_all_ones_cst): Declare it.
192 2013-06-13  Alan Modra  <amodra@gmail.com>
194         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
195         * config/rs6000/rs6000.md (signbittf2): New insn.
196         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
197         (abstf2_internal, cmptf_internal2): Likewise.
198         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
200 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
201             Pat Haugen <pthaugen@us.ibm.com>
202             Peter Bergner <bergner@vnet.ibm.com>
204         * config/rs6000/rs6000.c (emit_load_locked): Add support for
205         power8 byte, half-word, and quad-word atomic instructions.
206         (emit_store_conditional): Likewise.
207         (rs6000_expand_atomic_compare_and_swap): Likewise.
208         (rs6000_expand_atomic_op): Likewise.
210         * config/rs6000/sync.md (larx): Add new modes for power8.
211         (stcx): Likewise.
212         (AINT): New mode iterator to include TImode as well as normal
213         integer modes on power8.
214         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
215         that VSX registers are not considered.  Use AINT mode iterator
216         instead of INT1 to allow inclusion of quad word atomic operations
217         on power8.
218         (load_locked<mode>): Likewise.
219         (store_conditional<mode>): Likewise.
220         (atomic_compare_and_swap<mode>): Likewise.
221         (atomic_exchange<mode>): Likewise.
222         (atomic_nand<mode>): Likewise.
223         (atomic_fetch_<fetchop_name><mode>): Likewise.
224         (atomic_nand_fetch<mode>): Likewise.
225         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
226         each type.
227         (ATOMIC): On power8, add QImode, HImode modes.
228         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
229         modes that promote to SImode.
230         (load_lockedti): Convert TImode arguments to PTImode, so that we
231         get a guaranteed even/odd register pair.
232         (load_lockedpti): Likewise.
233         (store_conditionalti): Likewise.
234         (store_conditionalpti): Likewise.
236         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
237         atomic load/store instructions.
238         (HSI): Likewise.
240 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
242         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
243         loads.
244         (insn_count): New attribute, with most cases extracted from...
245         (length): ...here.  Redefine most cases in terms of insn_count.
246         (single_insn): Delete.
247         (can_delay): Use insn_count to check for single instructions.
248         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
249         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
250         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
251         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
252         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
253         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
254         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
255         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
256         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
257         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
258         rather than "length".
259         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
260         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
261         Use "insn_count" rather than "length".
262         * config/mips/mips-dsp.md
263         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
264         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
265         length attributes.
267 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
269         PR tree-optimization/57361
270         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
272 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
274         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): convert to split.
275         (aarch64_simd_combine<mode>): New instruction expansion.
276         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
277         function prototype.
278         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
279         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
281 2013-06-12  Jan Hubicka  <jh@suse.cz>
283         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
284         decl has when in streaming stage.
285         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
286         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
288 2013-06-12  Roland Stigge <stigge@antcom.de>
290         PR target/57578
291         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
293 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
295         PR tree-optimization/57537
296         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
297         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
299 2013-06-12  Richard Biener  <rguenther@suse.de>
301         * data-streamer.h (streamer_write_char_stream): CSE
302         obs->current_pointer.
303         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
304         streamer_write_char_stream manually and optimize the resulting loop.
305         (streamer_write_hwi_stream): Likewise.
307 2013-06-12  Jan Hubicka  <jh@suse.cz>
309         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
310         * cgraph.h (varpool_create_empty_node): Declare.
311         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
312         duplicated nodes.
313         * symtab.c (symtab_unregister_node): Be lax about missin entries
314         in node hash.
315         (symtab_get_node): Update comment.
316         * varpool.c (varpool_create_empty_node): Break out from ...
317         (varpool_node_for_decl): ... here.
318         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
320 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
322         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
323         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
324         part.  Use straight-line flow at the end.
325         <COMPONENT_REF>: Remove superfluous else.
326         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
328 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
330         PR target/56564
331         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
332         target hook even for !TREE_PUBLIC decls.  If no resolution info
333         is available, return false for common and external decls.
335 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
337         * config/rl78/constraints.md (U): New constraint.
338         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
339         valloc attribute.
341 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
343         PR target/57589
344         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
345         to allow returning address to AT_PLATFORM name.
347 2013-06-11  Jan Hubicka  <jh@suse.cz>
349         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
350         * cgraph.h (symtab_node_base): Add weakref flag.
351         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
352         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
353         (output_weakrefs): Use weakref flag.
354         * fold-const.c (simple_operand_p): Handle WEAK.
355         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
356         * ipa.c (varpool_externally_visible_p): Drop weakref.
357         (function_and_variable_visibility): Update comment; fix weakref
358         sanity checks; do not clear DECL_WEAK on them.
359         * lto-cgraph.c (lto_output_node): update.
360         (lto_output_varpool_node): Update.
361         (input_overwrite_node): Update.
362         (input_node): Update.
363         (input_varpool_node): Update.
364         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
365         (lto_symtab_merge_symbols): Add sanity check.
366         (lto_symtab_prevailing_decl): Do not special case weakrefs.
367         * passes.c (rest_of_decl_compilation): Set static flag, too.
368         * symtab.c (dump_symtab_base): Dump weakref.
369         (verify_symtab_base): Sanity check weakrefs.
370         (symtab_make_decl_local): Remove duplicated code.
371         (symtab_alias_ultimate_target): Simplify.
372         * varpool.c (varpool_create_variable_alias): Set weakref flag.
374 2013-06-11  DJ Delorie  <dj@redhat.com>
376         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
377         (rl78_unwind_word_mode): New.
379 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
381         * final.c (debug_prefix_maps): Make static.
383 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
385         * function.c (initial_trampoline): Remove stray copy.
387 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
389         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
391 2013-06-11  Martin Jambor  <mjambor@suse.cz>
393         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
394         within bounds at the beginning of the function.
396 2013-06-11  Alan Modra  <amodra@gmail.com>
398         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
399         reporting.
400         (get_named_section): Don't NULL !DECL_P decl.
402 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
404         * doc/invoke.texi (core-avx2): Document.
405         (slm): Likewise.
406         (atom): Updated with MOVBE.
408 2013-06-11  Richard Biener  <rguenther@suse.de>
410         * collect2.c (main): Do not redirect ld stdout/stderr when
411         debugging.
413 2013-06-11  Anton Blanchard  <anton@samba.org>
415         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
416         correct shift value in little-endian mode.
418 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
420         PR target/56564
421         * varasm.c (get_variable_align): Move #endif to the right place.
423 2013-06-10  Cary Coutant  <ccoutant@google.com>
425         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
426         for hash so that hash table traversal order is deterministic.
428 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
429             Pat Haugen <pthaugen@us.ibm.com>
430             Peter Bergner <bergner@vnet.ibm.com>
432         * config/rs6000/vector.md (GPR move splitter): Do not split moves
433         of vectors in GPRS if they are direct moves or quad word load or
434         store moves.
436         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
437         declaration.
438         (direct_move_p): Likewise.
439         (quad_load_store_p): Likewise.
441         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
442         classes into bins based on the physical register type.
443         (reg_class_to_reg_type): Likewise.
444         (IS_STD_REG_TYPE): Likewise.
445         (IS_FP_VECT_REG_TYPE): Likewise.
446         (reload_fpr_gpr): Arrays to determine what insn to use if we can
447         use direct move instructions.
448         (reload_gpr_vsx): Likewise.
449         (reload_vsx_gpr): Likewise.
450         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
451         information that is a simplification of register classes.  Also
452         precalculate direct move reload helpers.
453         (direct_move_p): New function to return true if the operation can
454         be done as a direct move instruciton.
455         (quad_load_store_p): New function to return true if the operation
456         is a quad memory operation.
457         (rs6000_legitimize_address): If quad memory, only allow register
458         indirect for TImode addresses.
459         (rs6000_legitimate_address_p): Likewise.
460         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
461         (rs6000_reload_register_type): Likewise.
462         (register_to_reg_type): Return register type.
463         (rs6000_secondary_reload_simple_move): New helper function for
464         secondary reload and secondary memory needed to identify anything
465         that is a simple move, and does not need reloading.
466         (rs6000_secondary_reload_direct_move): New helper function for
467         secondary reload to identify cases that can be done with several
468         instructions via the direct move instructions.
469         (rs6000_secondary_reload_move): New helper function for secondary
470         reload to identify moves between register types that can be done.
471         (rs6000_secondary_reload): Add support for quad memory operations
472         and for direct move.
473         (rs6000_secondary_memory_needed): Likewise.
474         (rs6000_debug_secondary_memory_needed): Change argument names.
475         (rs6000_output_move_128bit): New function to return the move to
476         use for 128-bit moves, including knowing about the various
477         limitations of quad memory operations.
479         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
480         memory operations.  call rs6000_output_move_128bit for the actual
481         instruciton(s) to generate.
482         (vsx_movti_64bit): Likewise.
484         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
485         (UNSPEC_P8V_MTVSRWZ): Likewise.
486         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
487         (UNSPEC_P8V_MTVSRD): Likewise.
488         (UNSPEC_P8V_XXPERMDI): Likewise.
489         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
490         (UNSPEC_FUSION_GPR): Likewise.
491         (FMOVE128_GPR): New iterator for direct move.
492         (f32_lv): New mode attribute for load/store of SFmode/SDmode
493         values.
494         (f32_sv): Likewise.
495         (f32_dm): Likewise.
496         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
497         loads and direct move instructions.
498         (zero_extendsidi2_lfiwzx): Likewise.
499         (extendsidi2_lfiwax): Likewise.
500         (extendsidi2_nocell): Likewise.
501         (floatsi<mode>2_lfiwax): Likewise.
502         (lfiwax): Likewise.
503         (floatunssi<mode>2_lfiwzx): Likewise.
504         (lfiwzx): Likewise.
505         (fix_trunc<mode>_stfiwx): Likewise.
506         (fixuns_trunc<mode>_stfiwx): Likewise.
507         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
508         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
509         (parity<mode>2_cmpb): Set length/type attr.
510         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
511         for 'mr.' to fast_compare.
512         (bpermd_<mode>): Change type attr to popcnt.
513         (p8_fmrgow_<mode>): New insns for power8 direct move support.
514         (p8_mtvsrwz_1): Likewise.
515         (p8_mtvsrwz_2): Likewise.
516         (reload_fpr_from_gpr<mode>): Likewise.
517         (p8_mtvsrd_1): Likewise.
518         (p8_mtvsrd_2): Likewise.
519         (p8_xxpermdi_<mode>): Likewise.
520         (reload_vsx_from_gpr<mode>): Likewise.
521         (reload_vsx_from_gprsf): Likewise.
522         (p8_mfvsrd_3_<mode>): LIkewise.
523         (reload_gpr_from_vsx<mode>): Likewise.
524         (reload_gpr_from_vsxsf): Likewise.
525         (p8_mfvsrd_4_disf): Likewise.
526         (multi-word GPR splits): Do not split direct moves or quad memory
527         operations.
529 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
531         * tree-into-ssa.c (interesting_blocks): Make static.
533 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
535         PR target/56564
536         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
537         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
538         Use DATA_ABI_ALIGNMENT for that case instead if defined.
539         (get_variable_align): New function.
540         (get_variable_section, emit_bss, emit_common,
541         assemble_variable_contents, place_block_symbol): Use
542         get_variable_align instead of DECL_ALIGN.
543         (assemble_noswitch_variable): Add align argument, use it
544         instead of DECL_ALIGN.
545         (assemble_variable): Adjust caller.  Use get_variable_align
546         instead of DECL_ALIGN.
547         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
548         caller.
549         (DATA_ABI_ALIGNMENT): Define.
550         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
551         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
552         opt is false, only return the psABI mandated alignment increase.
553         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
554         (DATA_ABI_ALIGNMENT): ... this.
555         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
556         (DATA_ABI_ALIGNMENT): ... this.
557         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
558         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
559         (DATA_ABI_ALIGNMENT): ... this.
560         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
561         * doc/tm.texi: Regenerated.
563 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
565         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
566         cmp_code to construct REG_EQUAL note.
568 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
570         PR target/57568
571         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
572         that operands[2] doesn't overlap with operands[0].
574 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
575             Jan Hubicka  <jh@suse.cz>
577         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
578         hack to mark symbols as used.
580 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
582         PR rtl-optimization/57559
583         * lra-constraints.c (process_alt_operands): Don't discourage
584         memory with known offset for offsetable memory constraint.
585         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
587 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
589         * varasm.c (struct oc_local_state): Reorder fields.
590         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
591         and adjust accordingly.
592         (output_constructor): Reorder initialization code and adjust call to
593         output_constructor_bitfield.
595 2013-06-07  Jan Hubicka  <jh@suse.cz>
597         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
599 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
601         * tree-object-size.c (unknown): Make const.
603 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
605         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
606         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
607         for last alternative in the cpu_facility attribute.
609 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
611         PR target/56315
612         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
613         (xordi3): Change operand 2 constraint to arm_xordi_operand.
614         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
615         * config/arm/constraints.md (Dg): New constraint.
616         * config/arm/neon.md (xordi3_neon): Remove.
617         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
618         * config/arm/predicates.md (arm_xordi_operand): New predicate.
620 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
622         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
623         Clean up alternatives.
625 2013-06-07  Alan Modra  <amodra@gmail.com>
627         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
628         va_list_gpr_size.
630 2013-06-07  Alan Modra  <amodra@gmail.com>
632         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
634 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
636         * config/arm/constraints.md (Df): New constraint.
637         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
638         Correct length attribute for last two alternatives.
640 2013-06-07  Alan Modra  <amodra@gmail.com>
642         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
643         override user -mfp-in-toc.
644         (offsettable_ok_by_alignment): Consider just the current access
645         rather than the whole object, unless BLKmode.  Handle
646         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
647         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
648         for -mcmodel=medium.
649         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
650         override user -mfp-in-toc or -msum-in-toc.  Default to
651         -mno-fp-in-toc for -mcmodel=medium.
653 2013-06-06  DJ Delorie  <dj@redhat.com>
655         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
656         TARGET_VALID_POINTER_MODE.
658 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
659             Pat Haugen <pthaugen@us.ibm.com>
660             Peter Bergner <bergner@vnet.ibm.com>
662         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
663         Document new power8 builtins.
665         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
666         condition code register, to allow 128-bit logical operations to be
667         done in the VSX or GPR registers.
668         (nor<mode>3): Use the canonical form for nor.
669         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
670         vclz*, and vpopcnt* vector instructions.
671         (nand<mode>3): Likewise.
672         (orc<mode>3): Likewise.
673         (clz<mode>2): LIkewise.
674         (popcount<mode>2): Likewise.
676         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
677         that only the GPRs are recognized.
679         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
680         support for new power8 builtins.
682         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
683         builtin functions.
684         (xscvdpspn): Likewise.
685         (vclz): Likewise.
686         (vclzb): Likewise.
687         (vclzh): Likewise.
688         (vclzw): Likewise.
689         (vclzd): Likewise.
690         (vpopcnt): Likewise.
691         (vpopcntb): Likewise.
692         (vpopcnth): Likewise.
693         (vpopcntw): Likewise.
694         (vpopcntd): Likewise.
695         (vgbbd): Likewise.
696         (vmrgew): Likewise.
697         (vmrgow): Likewise.
698         (eqv): Likewise.
699         (eqv_v16qi3): Likewise.
700         (eqv_v8hi3): Likewise.
701         (eqv_v4si3): Likewise.
702         (eqv_v2di3): Likewise.
703         (eqv_v4sf3): Likewise.
704         (eqv_v2df3): Likewise.
705         (nand): Likewise.
706         (nand_v16qi3): Likewise.
707         (nand_v8hi3): Likewise.
708         (nand_v4si3): Likewise.
709         (nand_v2di3): Likewise.
710         (nand_v4sf3): Likewise.
711         (nand_v2df3): Likewise.
712         (orc): Likewise.
713         (orc_v16qi3): Likewise.
714         (orc_v8hi3): Likewise.
715         (orc_v4si3): Likewise.
716         (orc_v2di3): Likewise.
717         (orc_v4sf3): Likewise.
718         (orc_v2df3): Likewise.
720         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
721         allow power8 quad mode in 64-bit.
722         (rs6000_builtin_vectorized_function): Add support to vectorize
723         ISA 2.07 count leading zeros, population count builtins.
724         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
725         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
726         (builtin_function_type): Add vgbbd builtin function which takes an
727         unsigned argument.
728         (altivec_expand_vec_perm_const): Add support for new power8 merge
729         instructions.
731         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
732         that does not include TImdoe for use with 32-bit.
733         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
734         instructions.
735         (UNSPEC_VSX_CVDPSPN): Likewise.
736         (vsx_xscvdpspn): Likewise.
737         (vsx_xscvspdpn): Likewise.
738         (vsx_xscvdpspn_scalar): Likewise.
739         (vsx_xscvspdpn_directmove): Likewise.
740         (vsx_and<mode>3): Split logical operations into 32-bit and
741         64-bit. Add support to do logical operations on TImode as well as
742         VSX vector types.  Allow logical operations to be done in either
743         VSX registers or in general purpose registers in 64-bit mode.  Add
744         splitters if GPRs were used. For AND, add clobber of CCmode to
745         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
746         encoding.
747         (vsx_and<mode>3_32bit): Likewise.
748         (vsx_and<mode>3_64bit): Likewise.
749         (vsx_ior<mode>3): Likewise.
750         (vsx_ior<mode>3_32bit): Likewise.
751         (vsx_ior<mode>3_64bit): Likewise.
752         (vsx_xor<mode>3): Likewise.
753         (vsx_xor<mode>3_32bit): Likewise.
754         (vsx_xor<mode>3_64bit): Likewise.
755         (vsx_one_cmpl<mode>2): Likewise.
756         (vsx_one_cmpl<mode>2_32bit): Likewise.
757         (vsx_one_cmpl<mode>2_64bit): Likewise.
758         (vsx_nor<mode>3): Likewise.
759         (vsx_nor<mode>3_32bit): Likewise.
760         (vsx_nor<mode>3_64bit): Likewise.
761         (vsx_andc<mode>3): Likewise.
762         (vsx_andc<mode>3_32bit): Likewise.
763         (vsx_andc<mode>3_64bit): Likewise.
764         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
765         and xxlorc instructions.
766         (vsx_eqv<mode>3_64bit): Likewise.
767         (vsx_nand<mode>3_32bit): Likewise.
768         (vsx_nand<mode>3_64bit): Likewise.
769         (vsx_orc<mode>3_32bit): Likewise.
770         (vsx_orc<mode>3_64bit): Likewise.
772         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
774         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
775         instruction.
776         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
777         (p8_vmrgow): Likewise.
778         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
779         GPRs to be split under VSX.
780         (p8v_clz<mode>2): Add power8 count leading zero support.
781         (p8v_popcount<mode>2): Add power8 population count support.
782         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
783         support.
785         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
786         instruction.
788         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
789         builtin functions.
790         (vec_nand): Likewise.
791         (vec_vclz): Likewise.
792         (vec_vclzb): Likewise.
793         (vec_vclzd): Likewise.
794         (vec_vclzh): Likewise.
795         (vec_vclzw): Likewise.
796         (vec_vgbbd): Likewise.
797         (vec_vmrgew): Likewise.
798         (vec_vmrgow): Likewise.
799         (vec_vpopcnt): Likewise.
800         (vec_vpopcntb): Likewise.
801         (vec_vpopcntd): Likewise.
802         (vec_vpopcnth): Likewise.
803         (vec_vpopcntw): Likewise.
805 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
807         PR rtl-optimization/57468
808         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
809         spilled pseudos.
811 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
813         PR rtl-optimization/57459
814         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
815         type when setting live regs.
817 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
819         * config/s390/s390.opt (mlra): New option.
820         * config/s390/s390.c (s390_decompose_address): Check displacement
821         for all registers for LRA.
822         (s390_secondary_reload): Don't used secondary reloads for LRA.
823         (s390_lra_p): New function.
824         (TARGET_LRA_P): Define.
825         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
826         of attribute cpu_facility to zarch for the last alternative.
827         (*cmpmem_short): Ditto.
829 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
831         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
832         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
833         (arm_expand_prologue): Likewise.
835 2013-06-06  Teresa Johnson  <tejohnson@google.com>
837         PR c++/53743
838         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
839         as this is now done by redirect_edge_and_branch_force.
840         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
841         barriers, and fix interaction with splitting.
842         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
843         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
844         reflect changes made in the routine.
845         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
846         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
847         since this is called in cfglayout mode, and replace partition fixup
848         with assert as that is now done by force_nonfallthru_and_redirect.
849         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
850         already be marked with region crossing note.
851         (insert_section_boundary_note): Make non-static, gate on flag
852         has_bb_partition, rewrite to also check for multiple partitions.
853         (rest_of_handle_reorder_blocks): Remove call to
854         insert_section_boundary_note, now done later during free_cfg.
855         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
856         * bb-reorder.h (insert_section_boundary_note): Declare.
857         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
858         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
859         invoke insert_section_boundary_note.
860         (try_redirect_by_replacing_jump): Remove unnecessary
861         check for region crossing note.
862         (fixup_partition_crossing): New function.
863         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
864         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
865         in non-cfglayout mode.
866         (force_nonfallthru_and_redirect): Fixup partition boundaries,
867         remove old code that tried to do this. Emit barrier correctly
868         when we are in cfglayout mode.
869         (last_bb_in_partition): New function.
870         (rtl_split_edge): Correctly fixup partition boundaries.
871         (commit_one_edge_insertion): Remove old code that tried to
872         fixup region crossing edge since this is now handled in
873         split_block, and set up insertion point correctly since
874         block may now end in a jump.
875         (verify_hot_cold_block_grouping): Guard against checking when not in
876         linearized RTL mode.
877         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
878         notes.
879         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
880         rtl_verify_flow_info, so not called in cfglayout mode.
881         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
882         (fixup_reorder_chain): Remove old code that attempted to fixup region
883         crossing note as this is now handled in force_nonfallthru_and_redirect.
884         (duplicate_insn_chain): Don't duplicate switch section notes.
885         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
886         note.
887         * basic-block.h (emit_barrier_after_bb): Declare.
889 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
891         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
892         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
893         arm_usatsihi): Adjust alternatives for arm_restrict_it.
895 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
897         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
898         where appropriate.
899         * config/arm/ldmstm.md: Regenerate.
901 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
903         * config/arm/sync.md (atomic_loaddi_1):
904         Disable predication for arm_restrict_it.
905         (arm_load_exclusive<mode>): Likewise.
906         (arm_load_exclusivesi): Likewise.
907         (arm_load_exclusivedi): Likewise.
908         (arm_load_acquire_exclusive<mode>): Likewise.
909         (arm_load_acquire_exclusivesi): Likewise.
910         (arm_load_acquire_exclusivedi): Likewise.
911         (arm_store_exclusive<mode>): Likewise.
912         (arm_store_exclusive<mode>): Likewise.
913         (arm_store_release_exclusivedi): Likewise.
914         (arm_store_release_exclusive<mode>): Likewise.
916 2013-06-06  Richard Biener  <rguenther@suse.de>
918         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
919         after LTO_null.
920         (lto_tag_is_tree_code_p): Adjust.
921         (lto_tag_is_gimple_code_p): Likewise.
922         (lto_gimple_code_to_tag): Likewise.
923         (lto_tag_to_gimple_code): Likewise.
924         (lto_tree_code_to_tag): Likewise.
925         (lto_tag_to_tree_code): Likewise.
926         * data-streamer.h (streamer_write_hwi_in_range): Use
927         uhwi streaming to stream the normalized range.
928         (streamer_read_hwi_in_range): Likewise.
930 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
932         * config/arm/arm.md (enabled_for_depr_it): New attribute.
933         (predicable_short_it): Likewise.
934         (predicated): Likewise.
935         (enabled): Handle above.
936         (define_cond_exec): Set predicated attribute to yes.
938 2013-06-05  Mike Stump  <mikestump@comcast.net>
940         * gdbinit.in (__FUNCTION__): Add.
942 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
944         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
945         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
947 2013-06-05  Jan Hubicka  <jh@suse.cz>
949         * varasm.c (mark_decl_referenced): Revert the removal until targets
950         are fixed.
952 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
954         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
955         instead of mark_decl_referenced.
957 2013-06-05  Jan Hubicka  <jh@suse.cz>
959         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
960         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
961         and symtab_used_from_object_file_p.
962         (cgraph_make_node_local_1): Clear forced_by_abi.
963         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
964         * cgraph.h (symtab_node_base): Add forced_by_abi.
965         (decide_is_variable_needed): Remove.
966         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
967         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
968         (decide_is_symbol_needed): ... this one; handle symbols in general;
969         always analyze virtuals; honnor forced_by_abi.
970         (cgraph_finalize_function): Update.
971         (varpool_finalize_decl): Update.
972         (symbol_defined_and_needed): Remove.
973         (analyze_functions): Update.
974         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
975         output_refs, input_overwrite_node): Handle forced_by_abi.
976         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
977         (address_taken_from_non_vtable_p): ... this one.
978         (comdat_can_be_unshared_p_1): New function.
979         (cgraph_comdat_can_be_unshared_p): Rename to ...
980         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
981         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
982         (function_and_variable_visibility): Clear forced_by_abi as needed.
983         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
984         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
985         * symtab.c (dump_symtab_base): Dump forced_by_abi.
986         * varpool.c (decide_is_variable_needed): Remove.
988 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
990         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
991         (arm_option_override): Override arm_restrict_it where appropriate.
992         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
993         * config/arm/arm.opt (mrestrict-it): New command-line option.
994         * doc/invoke.texi: Document -mrestrict-it.
996 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
998         * tsan.c (tsan_atomic_table): Make const.
1000 2013-06-05  Richard Biener  <rguenther@suse.de>
1002         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1003         index associated with the tree we are supposed to replace.
1004         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1005         TREE_ASM_WRITTEN as zero for everything but SSA names.
1007 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1009         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1011 2013-06-04  Jan Hubicka  <jh@suse.cz>
1013         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1014         (input_node, input_varpool_node): Handle correctly external same
1015         body aliases.
1016         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1017         nodes at ltrans stage.
1019 2013-06-04  Jan Hubicka  <jh@suse.cz>
1021         * ipa-inline.c (update_caller_keys): Fix availability test.
1022         (update_callee_keys): Likewise.
1023         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1024         to follow ELF standard.
1026 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1028         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1029         (mips64r5900el-*-elf*): New configurations.
1030         * config/mips/mips-cpus.def (r5900): New processor.
1031         * config/mips/mips-tables.opt: Regenerate.
1032         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1033         (mips_issue_rate): Handle PROCESSOR_R5900.
1034         (mips_reorg_process_insns): Force reorder mode for the R5900.
1035         * config/mips/mips.h (TARGET_MIPS5900): Define.
1036         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1037         TARGET_MIPS5900.
1038         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1039         TARGET_MIPS5900.
1040         * config/mips/mips.md (processor): Add r5900.
1041         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1043 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1045         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1046         into function to generate MOVI instruction.
1047         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1048         (aarch64_preferred_simd_mode): Turn into wrapper.
1049         (aarch64_output_scalar_simd_mov_immediate): New function.
1050         * config/aarch64/aarch64-protos.h: Add prototype for above.
1052 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1054         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1055         element_char member.
1056         (sizetochar): Return signed char.
1057         (aarch64_simd_valid_immediate): Remove elchar and other
1058         unnecessary variables.
1059         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1060         Calculate element_char as required.
1061         * config/aarch64/aarch64-protos.h: Update and move prototype
1062         for aarch64_output_simd_mov_immediate.
1063         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1064         Update arguments.
1066 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1068         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1069         information completed by aarch64_simd_valid_immediate.
1070         (aarch64_legitimate_constant_p): Update arguments.
1071         (aarch64_simd_valid_immediate): Work with struct rather than many
1072         pointers.
1073         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1074         (aarch64_simd_make_constant): Update arguments.
1075         (aarch64_output_simd_mov_immediate): Work with struct rather than
1076         many pointers.  Output immediate directly rather than as operand.
1077         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1078         Update prototype.
1079         * config/aarch64/constraints.md (Dn): Update arguments.
1081 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1083         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1084         longer static.
1085         (aarch64_simd_immediate_valid_for_move): Remove.
1086         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1087         (aarch64_simd_make_constant): Update call.
1088         (aarch64_output_simd_mov_immediate): Update call.
1089         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1090         Add prototype.
1091         * config/aarch64/constraints.md (Dn): Update call.
1093 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1095         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1096         return type to bool for prototype.
1097         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1098         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1099         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1101 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1103         * config/mips/mips.opt (meva): New.
1104         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1105         (ASM_SPEC): Handle -meva.
1106         * doc/invoke.texi (meva):  Document.
1108 2013-06-04  Alan Modra  <amodra@gmail.com>
1110         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1111         constant output.
1113 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1115         * rtl.def: Add extra fourth optional field to define_cond_exec.
1116         * gensupport.c (process_one_cond_exec): Process attributes from
1117         define_cond_exec.
1118         * doc/md.texi: Document fourth field in define_cond_exec.
1120 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1122         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1123         out the processing order as in store_bit_field_1.
1125 2013-06-04  Jan Hubicka  <jh@suse.cz>
1127         PR middle-end/57500
1128         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1129         non-VAR_DECL node if it does not exist yet.
1131 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1133         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1134         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1135         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1136         target_cpu_default setting.
1138 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1140         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1141         default to -fopt-info=optimized instead of all.
1142         * doc/invoke.texi: Ditto.
1143         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1144         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1145         (execute_vect_slp): Emit BB vectorization success under
1146         MSG_OPTIMIZED_LOCATIONS.
1147         * tree-vect-slp.c (vect_slp_transform_bb): Change
1148         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1149         * tree-vect-loop.c (vect_transform_loop): Ditto.
1151 2013-06-03  Jason Merrill  <jason@redhat.com>
1153         PR c++/57415
1154         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1155         Use TARGET_EXPR for C++.
1157 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1159         PR rtl-optimization/57268
1160         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1161         if DEBUG_INSN_P (insn).
1163         Reapply
1164         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1166         PR rtl-optimization/57268
1167         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1168         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1170 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1172         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1173         (ix86_avoid_lea_for_addr): Likewise.
1174         (exact_dependency_1): Likewise.
1175         (ix86_adjust_cost): Likewise.
1176         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1177         removed.
1178         (do_reorder_for_imul): Fix typo, formatting and
1179         !reload_completed check removed.
1180         (ix86_sched_reorder): Fix typo and formatting.
1181         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1182         list.
1184 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1186         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1188 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1190         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1191         <STRING_CST>: Likewise.
1192         <VECTOR_CST>: Likewise.
1194 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1195             Mikael Morin  <mikael@gcc.gnu.org>
1197         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1198         * config.in: Regenerated.
1199         * configure: Regenerated.
1201 2013-06-01  Jan Hubicka  <jh@suse.cz>
1203         PR middle-end/57366
1204         * cgraphunit.c (compile): When weakref is not supported,
1205         set up transparent aliases before final output pass.
1206         * varasm.c (assemble_alias): Do not try to do it here.
1208 2013-06-01  Jan Hubicka  <jh@suse.cz>
1210         PR middle-end/57467
1211         * passes.c (for_per_function): Skip unanalyzed functions.
1213 2013-06-01  Jan Hubicka  <jh@suse.cz>
1215         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1216         (lto_symtab_merge_symbols_1): ... this one.
1217         (lto_symtab_merge_cgraph_nodes): Rename to ...
1218         (lto_symtab_merge_symbols): ... this one; simplify.
1219         * cgraph.c (same_body_aliases_done): Rename to ...
1220         (cpp_implicit_aliases_done): ... this one.
1221         (cgraph_create_function_alias): Update.
1222         (cgraph_same_body_alias): Update.
1223         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1224         (verify_edge_corresponds_to_fndecl): Simplify.
1225         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1226         (cgraph_node): Remove same_body_alias.
1227         (varpool_node): Remove alias_of and extra_name_alias.
1228         (same_body_aliases_done): Rename to ..
1229         (cpp_implicit_aliases_done): ... this one.
1230         (symtab_alias_ultimate_target): Add default parameter.
1231         (symtab_resolve_alias): New function.
1232         (fixup_same_cpp_alias_visibility): Declare.
1233         (cgraph_function_node): Add default parameter.
1234         (cgraph_node_asm_name): Likewise.
1235         (cgraph_function_or_thunk_node): Add default parameter; do
1236         not ICE when it is NULL.
1237         (varpool_variable_node): Likewise.
1238         * tree-emutls.c (create_emultls_var): Update.
1239         (ipa_lower_emutls): Update.
1240         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1241         (cgraph_reset_node): Reset alias info.
1242         (cgraph_finalize_function): Update.
1243         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1244         (analyze_function): Simplify.
1245         (cgraph_process_same_body_aliases): Simplify.
1246         (analyze_functions): Fixup same body aliases.
1247         (handle_alias_pairs): Simplify.
1248         (assemble_thunk): Update.
1249         (assemble_thunks_and_aliases): Update.
1250         (output_weakrefs): Rewrite.
1251         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1252         (lto_output_varpool_node): Likewise.
1253         (compute_ltrans_boundary): Remve assert.
1254         (get_alias_symbol): New functoin.
1255         (input_node): Rewrite alias handling.
1256         (input_varpool_node): Likewise.
1257         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1258         * ipa.c (process_references): Handle weakrefs correctly.
1259         (symtab_remove_unreachable_nodes): Likewise.
1260         * trans-mem.c (get_cg_data): Update.
1261         (ipa_tm_create_version_alias): Update.
1262         (ipa_tm_execute): Update.
1263         * symtab.c (dump_symtab_base): Dump aliases.
1264         (verify_symtab_base): Verify aliases.
1265         (symtab_node_availability): New function.
1266         (symtab_alias_ultimate_target): Simplify.
1267         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1268         handle all the fixup cases.
1269         (symtab_resolve_alias): New function.
1270         * passes.c (ipa_write_summaries): Handle weakrefs.
1271         * varpool.c (varpool_analyze_node): Simplify.
1272         (assemble_aliases): Update.
1273         (varpool_create_variable_alias): Simplify.
1274         (varpool_extra_name_alias): Simplify.
1275         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1276         (lto_symtab_merge_symbols): ... this one.
1278 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1280         Revert
1281         PR rtl-optimization/57268
1282         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1283         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1285 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1287         Partially reverted:
1288         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1290         PR middle-end/57073
1291         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1292         further up.
1294 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1296         PR rtl-optimization/57268
1297         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1298         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1300 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1302         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1303         unordered comparison operators when -fno-trapping-math is in effect
1304         on the e500.
1305         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1306         and implement unordered comparison operators properly on the e500.
1308 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1310         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1311         for constant scalar integers.
1312         (simplify_relational_operation_1): Likewise.
1314 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1316         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1317         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1318         Fix comment.
1320 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1321             Igor Zamyatin  <igor.zamyatin@intel.com>
1323         Silvermont (SLM) architecture performance tuning.
1324         * config/i386/i386.h (enum ix86_tune_indices): Add
1325         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1326         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1328         * config/i386/i386.c (initial_ix86_tune_features)
1329         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1330         (ix86_lea_outperforms): Handle Silvermont tuning.
1331         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1332         call.
1333         (ix86_use_lea_for_mov): Likewise.
1334         (ix86_avoid_lea_for_addr): Likewise.
1335         (ix86_lea_for_add_ok): Likewise.
1336         (exact_dependency_1): New function.
1337         (exact_store_load_dependency): Likewise.
1338         (ix86_adjust_cost): Handle Silvermont tuning.
1339         (do_reoder_for_imul): Likewise.
1340         (swap_top_of_ready_list): New function.
1341         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1343         * config/i386/i386.md (peepholes that split memory operand in fp
1344         converts): New.
1346 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1348         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1349         Remove un-necessary braces.
1351 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1353         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1354         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1356 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1358         PR middle-end/57073
1359         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1361 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1363         PR target/56315
1364         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1365         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1366         * config/arm/neon.md (iordi3_neon): Remove.
1367         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1368         * config/arm/predicates.md (imm_for_neon_logic_operand):
1369         Move to earlier in the file.
1370         (neon_logic_op2): Likewise.
1371         (arm_iordi_operand_neon): New predicate.
1373 2013-05-31  Richard Biener  <rguenther@suse.de>
1375         PR tree-optimization/57478
1376         PR tree-optimization/57453
1377         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1378         are life as well.
1380 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1382         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1383         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1385 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1386             Thomas Koenig  <tkoenig@gcc.gnu.org>
1388         PR middle-end/57073
1389         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1390         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1392 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1394         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1396 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1398         * target.def (register_usage_leveling_p): New hook.
1399         * targhooks.c (default_register_usage_leveling_p): New.
1400         * targhooks.h (default_register_usage_leveling_p): New prototype.
1401         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1402         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1403         * doc/tm.texi: Update.
1404         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1406 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1408         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1409         (*insv_reg<mode>): New define_insn.
1411 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1413         PR rtl-optimization/57439
1414         * postreload.c (move2add_valid_value_p): Check that we have
1415         a zero subreg_regno_offset when accessing the register in
1416         the requested mode.
1418 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1419             Igor Zamyatin  <igor.zamyatin@intel.com>
1421         Silvermont (SLM) architecture pipeline model, tuning and
1422         insn selection.
1423         * config.gcc: Add slm config options and target.
1425         * config/i386/slm.md: New.
1427         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1429         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
1430         PROCESSOR_SLM.
1431         (ix86_target_macros_internal): Likewise.
1433         * gcc/config/i386/i386.c (slm_cost): New cost.
1434         (m_SLM): New macro flag.
1435         (initial_ix86_tune_features): Set m_SLM.
1436         (x86_accumulate_outgoing_args): Likewise.
1437         (x86_arch_always_fancy_math_387): Likewise.
1438         (processor_target_table): Add slm cost.
1439         (cpu_names): Add slm cpu name.
1440         (x86_option_override_internal): Set SLM ISA.
1441         (ix86_issue_rate): New case PROCESSOR_SLM.
1442         (ia32_multipass_dfa_lookahead): Likewise.
1443         (fold_builtin_cpu): Add slm.
1445         * config/i386/i386.h (TARGET_SLM): New target macro.
1446         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1447         (processor_type): Add PROCESSOR_SLM.
1449         * config/i386/i386.md (cpu): Add new value "slm".
1450         (slm.md): Include slm.md.
1452 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
1453             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1455         * config/arm/arm-protos.h: Add and update function protos.
1456         * config/arm/arm.c (use_simple_return_p): New added.
1457         (thumb2_expand_return): Check simple_return flag.
1458         * config/arm/arm.md: Add simple_return and conditional simple_return.
1459         * config/arm/iterators.md: Add iterator for return and simple_return.
1461 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1463         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1464         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1465         (arm_emit_vfp_multi_reg_pop): Likewise.
1466         (thumb2_emit_ldrd_pop): Likewise.
1467         (arm_expand_epilogue): Add misc REG_CFA notes.
1468         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1470 2013-05-29  Lawrence Crowl  <crowl@google.com>
1472         * config/arm/t-arm: Update for below.
1474         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1475         Change type to hash_table.  Update dependent calls and types.
1477         * config/i386/t-cygming: Update for below.
1479         * config/i386/t-interix: Update for below.
1481         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1482         Change type to hash_table.  Update dependent calls and types.
1483         (i386_find_on_wrapper_list::wrappers): Likewise.
1485         * config/ia64/t-ia64: Update for below.
1487         * config/ia64/ia64.c (bundle_state_table):
1488         Change type to hash_table.  Update dependent calls and types.
1490         * config/mips/mips.c (mips_reorg_process_insns::htab):
1491         Change type to hash_table.  Update dependent calls and types.
1493         * config/sol2.c (solaris_comdat_htab):
1494         Change type to hash_table.  Update dependent calls and types.
1496         * config/t-sol2: Update for above.
1498 2013-05-29  Teresa Johnson  <tejohnson@google.com>
1500         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1501         functions are not yet marked as defined.
1503 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1504             Pat Haugen <pthaugen@us.ibm.com>
1505             Peter Bergner <bergner@vnet.ibm.com>
1507         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1508         instructions.
1509         (VEC_A): Likewise.
1510         (VEC_C): Likewise.
1511         (vrotl<mode>3): Likewise.
1512         (vashl<mode>3): Likewise.
1513         (vlshr<mode>3): Likewise.
1514         (vashr<mode>3): Likewise.
1516         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1517         support for power8 V2DI builtins.
1519         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1520         power8 V2DI builtins.
1521         (vupkhsw): Likewise.
1522         (vupklsw): Likewise.
1523         (vaddudm): Likewise.
1524         (vminsd): Likewise.
1525         (vmaxsd): Likewise.
1526         (vminud): Likewise.
1527         (vmaxud): Likewise.
1528         (vpkudum): Likewise.
1529         (vpksdss): Likewise.
1530         (vpkudus): Likewise.
1531         (vpksdus): Likewise.
1532         (vrld): Likewise.
1533         (vsld): Likewise.
1534         (vsrd): Likewise.
1535         (vsrad): Likewise.
1536         (vsubudm): Likewise.
1537         (vcmpequd): Likewise.
1538         (vcmpgtsd): Likewise.
1539         (vcmpgtud): Likewise.
1540         (vcmpequd_p): Likewise.
1541         (vcmpgtsd_p): Likewise.
1542         (vcmpgtud_p): Likewise.
1543         (vupkhsw): Likewise.
1544         (vupklsw): Likewise.
1545         (vaddudm): Likewise.
1546         (vmaxsd): Likewise.
1547         (vmaxud): Likewise.
1548         (vminsd): Likewise.
1549         (vminud): Likewise.
1550         (vpksdss): Likewise.
1551         (vpksdus): Likewise.
1552         (vpkudum): Likewise.
1553         (vpkudus): Likewise.
1554         (vrld): Likewise.
1555         (vsld): Likewise.
1556         (vsrad): Likewise.
1557         (vsrd): Likewise.
1558         (vsubudm): Likewise.
1560         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1561         support for power8 V2DI instructions.
1563         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1564         power8 V2DI instructions.  Combine pack and unpack insns to use an
1565         iterator for each mode.  Check whether a particular mode supports
1566         Altivec instructions instead of just checking TARGET_ALTIVEC.
1567         (UNSPEC_VPKUWUM): Likewise.
1568         (UNSPEC_VPKSHSS): Likewise.
1569         (UNSPEC_VPKSWSS): Likewise.
1570         (UNSPEC_VPKUHUS): Likewise.
1571         (UNSPEC_VPKSHUS): Likewise.
1572         (UNSPEC_VPKUWUS): Likewise.
1573         (UNSPEC_VPKSWUS): Likewise.
1574         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1575         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1576         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1577         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1578         (UNSPEC_VUPKHSB): Likewise.
1579         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1580         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1581         (UNSPEC_VUPKHSH): Likewise.
1582         (UNSPEC_VUPKLSB): Likewise.
1583         (UNSPEC_VUPKLSH): Likewise.
1584         (VI2): Likewise.
1585         (VI_char): Likewise.
1586         (VI_scalar): Likewise.
1587         (VI_unit): Likewise.
1588         (VP): Likewise.
1589         (VP_small): Likewise.
1590         (VP_small_lc): Likewise.
1591         (VU_char): Likewise.
1592         (add<mode>3): Likewise.
1593         (altivec_vaddcuw): Likewise.
1594         (altivec_vaddu<VI_char>s): Likewise.
1595         (altivec_vadds<VI_char>s): Likewise.
1596         (sub<mode>3): Likewise.
1597         (altivec_vsubcuw): Likewise.
1598         (altivec_vsubu<VI_char>s): Likewise.
1599         (altivec_vsubs<VI_char>s): Likewise.
1600         (altivec_vavgs<VI_char>): Likewise.
1601         (altivec_vcmpbfp): Likewise.
1602         (altivec_eq<mode>): Likewise.
1603         (altivec_gt<mode>): Likewise.
1604         (altivec_gtu<mode>): Likewise.
1605         (umax<mode>3): Likewise.
1606         (smax<mode>3): Likewise.
1607         (umin<mode>3): Likewise.
1608         (smin<mode>3): Likewise.
1609         (altivec_vpkuhum): Likewise.
1610         (altivec_vpkuwum): Likewise.
1611         (altivec_vpkshss): Likewise.
1612         (altivec_vpkswss): Likewise.
1613         (altivec_vpkuhus): Likewise.
1614         (altivec_vpkshus): Likewise.
1615         (altivec_vpkuwus): Likewise.
1616         (altivec_vpkswus): Likewise.
1617         (altivec_vpks<VI_char>ss): Likewise.
1618         (altivec_vpks<VI_char>us): Likewise.
1619         (altivec_vpku<VI_char>us): Likewise.
1620         (altivec_vpku<VI_char>um): Likewise.
1621         (altivec_vrl<VI_char>): Likewise.
1622         (altivec_vsl<VI_char>): Likewise.
1623         (altivec_vsr<VI_char>): Likewise.
1624         (altivec_vsra<VI_char>): Likewise.
1625         (altivec_vsldoi_<mode>): Likewise.
1626         (altivec_vupkhsb): Likewise.
1627         (altivec_vupkhs<VU_char>): Likewise.
1628         (altivec_vupkls<VU_char>): Likewise.
1629         (altivec_vupkhsh): Likewise.
1630         (altivec_vupklsb): Likewise.
1631         (altivec_vupklsh): Likewise.
1632         (altivec_vcmpequ<VI_char>_p): Likewise.
1633         (altivec_vcmpgts<VI_char>_p): Likewise.
1634         (altivec_vcmpgtu<VI_char>_p): Likewise.
1635         (abs<mode>2): Likewise.
1636         (vec_unpacks_hi_v16qi): Likewise.
1637         (vec_unpacks_hi_v8hi): Likewise.
1638         (vec_unpacks_lo_v16qi): Likewise.
1639         (vec_unpacks_hi_<VP_small_lc>): Likewise.
1640         (vec_unpacks_lo_v8hi): Likewise.
1641         (vec_unpacks_lo_<VP_small_lc>): Likewise.
1642         (vec_pack_trunc_v8h): Likewise.
1643         (vec_pack_trunc_v4si): Likewise.
1644         (vec_pack_trunc_<mode>): Likewise.
1646         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1647         V2DI builtins.
1648         (vec_vmaxsd): Likewise.
1649         (vec_vmaxud): Likewise.
1650         (vec_vminsd): Likewise.
1651         (vec_vminud): Likewise.
1652         (vec_vpksdss): Likewise.
1653         (vec_vpksdus): Likewise.
1654         (vec_vpkudum): Likewise.
1655         (vec_vpkudus): Likewise.
1656         (vec_vrld): Likewise.
1657         (vec_vsld): Likewise.
1658         (vec_vsrad): Likewise.
1659         (vec_vsrd): Likewise.
1660         (vec_vsubudm): Likewise.
1661         (vec_vupkhsw): Likewise.
1662         (vec_vupklsw): Likewise.
1664 2013-05-29  Jan Hubicka  <jh@suse.cz>
1666         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1667         flags; reorder rest of fields in more consistent way.
1668         (varpool_node): Remove analyzed, finalized and alias.
1669         (cgraph_ndoe): Likewise.
1670         (symtab_alias_ultimate_target): New function.
1671         (cgraph_function_node): Move offline.
1672         (cgraph_reset_node): Declare.
1673         (cgraph_comdat_can_be_unshared_p): Remove.
1674         (varpool_remove_initializer): Declare.
1675         (varpool_first_defined_variable, varpool_next_defined_variable
1676         cgraph_first_defined_function, cgraph_next_defined_function): Update.
1677         (cgraph_function_with_gimple_body_p): Update.
1678         (varpool_all_refs_explicit_p): Update.
1679         (symtab_alias_target): New function.
1680         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1681         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1682         (cgraph_function_or_thunk_node): Simplify using
1683         symtab_alias_ultimate_target.
1684         (varpool_variable_node): Likewise.
1685         * cgraph.c (cgraph_create_function_alias): Update.
1686         (cgraph_add_thunk): Update.
1687         (cgraph_remove_node): Update.
1688         (dump_cgraph_node): Do not dump removed flags.
1689         (cgraph_function_body_availability): Update.
1690         (cgraph_propagate_frequency): Update.
1691         (verify_cgraph_node): Check sanity of local flag.
1692         (cgraph_function_node): Move here from cgraph.h; revamp for
1693         cgraph_function_or_thunk_node.
1694         * lto-symtab.c (lto_varpool_replace_node): Update.
1695         (lto_symtab_resolve_can_prevail_p): Update.
1696         (lto_symtab_merge_cgraph_nodes): Update.
1697         * ipa-cp.c (determine_versionability, initialize_node_lattices,
1698         propagate_constants_accross_call, devirtualization_time_bonus,
1699         ipcp_propagate_stage): Update.
1700         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1701         * ipa-inline-transform.c (clone_inlined_nodes,
1702         preserve_function_body_p): Update.
1703         * ipa-reference.c (propagate): Update.
1704         (write_node_summary_p): Update.
1705         * toplev.c (wrapup_global_declaration_2): Update.
1706         * cgraphunit.c (cgraph_analyze_function): Rename to ...
1707         (analyze_function) ... this one.
1708         (cgraph_process_new_functions): Update.
1709         (cgraph_reset_node): Export.
1710         (cgraph_finalize_function): Update.
1711         (cgraph_add_new_function): Update.
1712         (process_function_and_variable_attributes): Update.
1713         (varpool_finalize_decl): Update.
1714         (symbol_finalized): Remove.
1715         (symbol_finalized_and_needed): Rename to ...
1716         (symbol_defined_and_needed): ... update.
1717         (cgraph_analyze_functions): Update.
1718         (handle_alias_pairs): Update.
1719         (mark_functions_to_output): Update.
1720         (assemble_thunk): Update.
1721         (output_in_order): Update.
1722         (output_weakrefs): Update.
1723         (finalize_compilation_unit): Update.
1724         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1725         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1726         input_node, input_varpool_node): Update.
1727         * dbxout.c (dbxout_expand_expr): Update.
1728         * cgraphclones.c (cgraph_clone_node): Update.
1729         (cgraph_copy_node_for_versioning): Update.
1730         (cgraph_materialize_clone): Update.
1731         (cgraph_materialize_all_clones): Update.
1732         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1733         propagate_pure_const, propagate_nothrow): Update.
1734         * lto-streamer-out.c (lto_output, write_symbol): Update.
1735         * ipa-utils.c (ipa_reverse_postorder): Update.
1736         * ipa-inline.c (can_inline_edge_p): Update.
1737         (update_caller_keys, ipa_inline): Update.
1738         * dwarf2out.c (reference_to_unused,
1739         premark_types_used_by_global_vars_helper): Update.
1740         * tree-eh.c (tree_could_trap_p): Update.
1741         * ipa-split.c (consider_split, execute_split_functions): Update.
1742         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
1743         has_addr_references_p): Update; move ahead in file for better
1744         readability.
1745         (process_references): Simplify.
1746         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1747         bodies are removed.
1748         (cgraph_comdat_can_be_unshared_p): Make static.
1749         (cgraph_externally_visible_p): Update.
1750         (varpool_externally_visible_p): Update.
1751         (function_and_variable_visibility): Update.
1752         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1753         ipa_tm_mark_force_output_node): Update.
1754         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1755         estimate_edge_devirt_benefit, inline_generate_summary,
1756         inline_write_summary): Update.
1757         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1758         * ipa-prop.c (ipa_compute_jump_functions): Update.
1759         (ipa_print_node_params, ipa_prop_read_section,
1760         ipa_update_after_lto_read, read_replacements_section): Update.
1761         * varasm.c (mark_decl_referenced): Update.
1762         (assemble_alias, dump_tm_clone_pairs): Update.
1763         * tree-inline.c (copy_bb): Update.
1764         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1765         Update.
1766         * symtab.c (dump_symtab_base): Print new flags.
1767         (verify_symtab_base): Verify new flags.
1768         (symtab_alias_ultimate_target): New function.
1769         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1770         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1771         Update.
1772         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1773         Update.
1774         * i386.c (ix86_get_function_versions_dispatcher,
1775         ix86_generate_version_dispatcher_body): Update.
1776         (fold_builtin_cpu): Use varpool_add_new_variable.
1777         * varpool.c (varpool_remove_initializer): Break out from ...
1778         (varpool_remove_node): ... this one.
1779         (dump_varpool_node, varpool_node_for_asm,
1780         cgraph_variable_initializer_availability, varpool_analyze_node,
1781         varpool_assemble_decl, varpool_remove_unreferenced_decls,
1782         varpool_finalize_named_section_flags, varpool_create_variable_alias):
1783         Update.
1785 2013-05-29  Jan Hubicka  <jh@suse.cz>
1787         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1789 2013-05-29  Easwaran Raman  <eraman@google.com>
1791         PR tree-optimization/57442
1792         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1793         when control exits the main loop.
1795 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
1797         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1798         and RX600.
1799         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
1800         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1801         * rx/t-rx: Add rx100 under multi library matches option for nofpu
1802         option.
1804 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1806         PR tree-optimization/57441
1807         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
1808         Don't limit size of incr_vec to number of candidates.
1810 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
1812         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
1813         and mips16 directories.
1814         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
1815         (MULTILIB_DIRNAMES): Ditto.
1816         (MULTILIB_EXCEPTIONS): Add new exceptions.
1817         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1818         (MULTILIB_DIRNAMES): Ditto.
1819         (MULTILIB_EXCEPTIONS): Add new exceptions.
1821 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1822             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1824         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1825         SYMBOL_TINY_ABSOLUTE.
1826         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1827         SYMBOL_TINY_ABSOLUTE.
1828         (aarch64_expand_mov_immediate): Likewise.
1829         (aarch64_classify_symbol): Likewise.
1830         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1831         Permit SYMBOL_TINY_ABSOLUTE.
1832         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1834 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1835             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1837         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1838         Refactor if/switch.  Replace gcc_assert with if.
1840 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
1842         * config/i386/i386.c (initial_ix86_tune_features): Enable
1843         FP Reassociation for AMD bdver1 and bdver2.
1845 2013-05-29  Martin Jambor  <mjambor@suse.cz>
1847         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1848         and IMAGPART_EXPR do not occur within other handled_components.
1850 2013-05-29  Richard Biener  <rguenther@suse.de>
1852         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1853         access on whether the use is in the BB we currently try to
1854         vectorize.
1855         (vect_bb_vectorization_profitable_p): Pass the BB we currently
1856         vectorize to vect_bb_slp_scalar_cost.
1858 2013-05-29  Richard Biener  <rguenther@suse.de>
1860         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1861         computing scalar cost offsetted by stmts that are kept live
1862         by scalar uses.
1863         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1864         for computation of scalar cost.
1866 2013-05-28  Steve Ellcey  <sellcey@mips.com>
1868         * config/mips/mips-cpus.def (mips32r2): Change processor type.
1870 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1872         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1873         array notation built-in reduction functions.
1874         * doc/passes.texi (Passes): Added documentation about changes done
1875         for Cilk Plus.
1876         * doc/invoke.texi (C Dialect Options): Added documentation about
1877         the -fcilkplus flag.
1878         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1879         (BUILTINS_DEF): Depend on cilkplus.def.
1880         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
1881         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1882         * cilkplus.def: New file.
1884 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
1886         PR rtl-optimization/57439
1887         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1889 2013-05-28  Easwaran Raman  <eraman@google.com>
1891         PR tree-optimization/57337
1892         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1893         (find_insert_point): Correctly identify the insertion point
1894         when two statements with the same UID is compared.
1896 2013-05-28  Richard Biener  <rguenther@suse.de>
1898         PR tree-optimization/56787
1899         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1900         from the list of data references.
1901         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1902         clobbers.
1903         (vect_analyze_loop_operations): Likewise.
1904         (vect_transform_loop): Remove clobbers.
1906 2013-05-28  Martin Jambor  <mjambor@suse.cz>
1908         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1909         and REALPART_EXPRs have scalar type.
1911 2013-05-28  Richard Biener  <rguenther@suse.de>
1913         PR tree-optimization/57411
1914         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1915         virtual operands.
1916         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1917         virtual operand propagation.
1919 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
1921         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1922         destination register for bmasksi_vis.
1923         (vector_init_bshuffle): Likewise.
1924         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1926 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
1928         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1929         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1930         mode if the instruction isn't available in the original mode.
1931         * config/sparc/sparc.opt (mfix-ut699): New option.
1932         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1933         (divdf3): Turn into expander.
1934         (divdf3_nofix): New insn.
1935         (divdf3_fix): Likewise.
1936         (divsf3): Disable if -mfix-ut699.
1937         (sqrtdf2): Turn into expander.
1938         (sqrtdf2_nofix): New insn.
1939         (sqrtdf2_fix): Likewise.
1940         (sqrtsf2): Disable if -mfix-ut699.
1942 2013-05-27  Richard Biener  <rguenther@suse.de>
1944         PR middle-end/57412
1945         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1946         block for the new loop.
1948 2013-05-27  Richard Biener  <rguenther@suse.de>
1950         PR tree-optimization/57343
1951         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1952         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1953         (number_of_iterations_cond): Do not build the folded tree.
1955 2013-05-27  Richard Biener  <rguenther@suse.de>
1957         Revert
1958         PR middle-end/57381
1959         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1960         OEP_CONSTANT_ADDRESS_OF retained.
1962         PR tree-optimization/57417
1963         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1964         for unchanged base.
1965         (set_ssa_val_to): Compare addresses using
1966         get_addr_base_and_unit_offset.
1968 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
1970         PR rtl-optimization/56833
1971         * postreload.c (move2add_record_mode): New function.
1972         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1973         (move2add_use_add2_insn): Use move2add_record_sym_value.
1974         (move2add_use_add3_insn): Likewise.
1975         (reload_cse_move2add): Use move2add_valid_value_p and
1976         move2add_record_mode.  Invalidate call-clobbered and REG_INC
1977         affected regs by setting reg_mode to VOIDmode.
1978         (move2add_note_store): Don't pretend the inside of a SUBREG is
1979         the actual destination.  Invalidate single/leading registers by
1980         setting reg_mode to VOIDmode.
1981         Use move2add_record_sym_value, move2add_valid_value_p and
1982         move2add_record_mode.
1984 2013-05-27  Richard Biener  <rguenther@suse.de>
1986         PR tree-optimization/57396
1987         * tree-affine.c (double_int_constant_multiple_p): Properly
1988         return false for val == 0 and div != 0.
1990 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
1992         * config/mips/mips.h: Use #elif in preprocessor conditions.
1994 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
1996         PR target/53916
1997         * config/mips/constraints.md (kl): New constraint.
1998         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1999         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2000         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2001         from LO for MIPS16.
2002         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2004 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2006         PR target/55777
2007         * config/mips/mips.c (mips_can_inline_p): New function.
2008         (TARGET_CAN_INLINE_P): Define.
2010 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2012         * sched-int.h (ds_t, dw_t): Make unsigned int.
2013         Fix documentation that describes how all the ds_t bits are used.
2014         Reserve the last bit for delayed-branch scheduling.
2015         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2016         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2017         (gen_dep_weak_1): Remove prototype.
2018         * sched-deps.c (get_dep_weak_1): Make static.
2019         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2020         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2021         * doc/tm.texi: Regenerate.
2022         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2024 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2026         PR debug/56950
2027         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2029 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2030             Sandra Loosemore  <sandra@codesourcery.com>
2032         * config.gcc (powerpc-*): Allow native for with-cpu.
2034 2013-05-24  Jeff Law  <law@redhat.com>
2036         PR tree-optimization/57124
2037         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2038         conversion feeding a condition if the range has an overflow
2039         if -fstrict-overflow.  Add warnings for when we do make the
2040         transformation.
2042 2013-05-24  Dehao Chen  <dehao@google.com>
2044         * tree-cfg.c (locus_discrim_map): Fix the typo.
2045         (locus_discrim_hasher): Likewise.
2046         (locus_discrim_hasher::hash): Likewise.
2047         (locus_discrim_hasher::equal): Likewise.
2049 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2051         PR tree-optimization/57294
2052         * cgraph.h (ipa_record_stmt_references): Declare.
2053         * cgraphbuild.c (ipa_record_stmt_references): New function.
2054         (build_cgraph_edges): Use ipa_record_stmt_references.
2055         (rebuild_cgraph_edges): Likewise.
2056         (cgraph_rebuild_references): Likewise.
2057         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2058         associated with the old statement and build references from the
2059         newly built statements.
2060         * ipa-ref.c (ipa_remove_stmt_references): New function.
2061         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2063 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2065         * lra-constraints.c (emit_spill_move): Use smaller mode for
2066         mem-mem moves.
2067         (check_and_process_move): Consider mem-reg moves for secondary
2068         too.
2069         (curr_insn_transform): Don't lose insns emitted before for
2070         secondary memory moves.
2071         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2072         reg set up in the current insn.
2074 2013-05-24  Dehao Chen  <dehao@google.com>
2076         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2077         hash function.
2078         (locus_descrim_hasher::equal): Likewise.
2079         (build_gimple_cfg): New discriminator assignment algorithm.
2080         (make_edges): Likewise.
2081         (next_discriminator_for_locus): Likewise.
2082         (same_line_p): Likewise.
2083         (assign_discriminators): Likewise.
2084         (make_cond_expr_edges): Likewise.
2085         (make_gimple_switch_edges): Likewise.
2086         (make_goto_expr_edges): Likewise.
2087         (make_gimple_asm_edges): Likewise.
2089 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2091         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2092         X format specifier to only display bottom 16 bits.
2093         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2094         immediate to match for operand 2, since it will be masked.
2096 2013-05-24  Richard Biener  <rguenther@suse.de>
2098         PR tree-optimization/57287
2099         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2100         all SSA names that occur in abnormal PHIs.
2102 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2104         PR tree-ssa/57385
2105         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2106         that index is not negative.
2108 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2110         PR rtl-optimization/55177
2111         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2112         (simplify_byte_swapping_operation): New.
2113         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2114         (simplify_relational_operation_1): Deal with BSWAP.
2116 2013-05-23  Richard Henderson  <rth@redhat.com>
2118         PR target/56742
2119         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2120         (ix86_reorg): Call it.
2122 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2124         PR target/57379
2125         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2126         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2127         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2129 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2131         PR debug/57351
2132         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2134 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2135             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2137         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2138         * config/aarch64/constraints.md (Usa): Remove.
2139         * doc/md.texi (AArch64 Usa): Remove.
2141 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2142             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2144         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2145         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2146         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2147         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2149 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2151         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2152         instruction (AdvSIMD).
2153         * config/aarch64/aarch64-builtins.c
2154         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2155         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2157 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2159         PR middle-end/57347
2160         * tree.h (contains_bitfld_component_ref_p): Declare.
2161         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2162         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2163         caller.
2164         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2165         not access a bit-field.  Assert all final offsets are byte-aligned.
2167 2013-05-23  Richard Biener  <rguenther@suse.de>
2169         PR tree-optimization/57380
2170         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2171         least one invariant or re-used load.
2172         * passes.c (init_optimization_passes): Move pass_phiprop before
2173         pass_forwprop.
2175 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2177         * config/aarch64/aarch64-simd.md
2178         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2180 2013-05-23  Richard Biener  <rguenther@suse.de>
2182         PR middle-end/57381
2183         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2184         OEP_CONSTANT_ADDRESS_OF retained.
2186 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2188         PR middle-end/57344
2189         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2190         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2192 2013-05-23  Richard Biener  <rguenther@suse.de>
2194         PR rtl-optimization/57341
2195         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2196         instead of true_dependence.
2198 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2200         * bb-reorder.c (branch_threshold): Make const.
2201         (exec_threshold): Ditto.
2203 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2204             Pat Haugen <pthaugen@us.ibm.com>
2205             Peter Bergner <bergner@vnet.ibm.com>
2207         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2208         documentation for the power8 crypto builtins.
2210         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2212         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2213         macros for defining power8 builtin functions.
2214         (BU_P8V_AV_2): Likewise.
2215         (BU_P8V_AV_P): Likewise.
2216         (BU_P8V_VSX_1): Likewise.
2217         (BU_P8V_OVERLOAD_1): Likewise.
2218         (BU_P8V_OVERLOAD_2): Likewise.
2219         (BU_CRYPTO_1): Likewise.
2220         (BU_CRYPTO_2): Likewise.
2221         (BU_CRYPTO_3): Likewise.
2222         (BU_CRYPTO_OVERLOAD_1): Likewise.
2223         (BU_CRYPTO_OVERLOAD_2): Likewise.
2224         (XSCVSPDP): Fix typo, point to the correct instruction.
2225         (VCIPHER): Add power8 crypto builtins.
2226         (VCIPHERLAST): Likewise.
2227         (VNCIPHER): Likewise.
2228         (VNCIPHERLAST): Likewise.
2229         (VPMSUMB): Likewise.
2230         (VPMSUMH): Likewise.
2231         (VPMSUMW): Likewise.
2232         (VPERMXOR_V2DI): Likewise.
2233         (VPERMXOR_V4SI: Likewise.
2234         (VPERMXOR_V8HI: Likewise.
2235         (VPERMXOR_V16QI: Likewise.
2236         (VSHASIGMAW): Likewise.
2237         (VSHASIGMAD): Likewise.
2238         (VPMSUM): Likewise.
2239         (VPERMXOR): Likewise.
2240         (VSHASIGMA): Likewise.
2242         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2243         __CRYPTO__ if the crypto instructions are available.
2244         (altivec_overloaded_builtins): Add support for overloaded power8
2245         builtins.
2247         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2248         support for power8 crypto builtins.
2249         (builtin_function_type): Likewise.
2250         (altivec_init_builtins): Add support for builtins that take vector
2251         long long (V2DI) arguments.
2253         * config/rs6000/crypto.md: New file, define power8 crypto
2254         instructions.
2256 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2257             Pat Haugen <pthaugen@us.ibm.com>
2258             Peter Bergner <bergner@vnet.ibm.com>
2260         * doc/invoke.texi (Option Summary): Add power8 options.
2261         (RS/6000 and PowerPC Options): Likewise.
2263         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2264         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2265         wm, wn, wr documentation.
2267         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2268         registers if direct move instructions are enabled.
2269         (wn): New constraint for no registers.
2270         (wq): New constraint for quad word even GPR registers.
2271         (wr): New constraint if 64-bit instructions are enabled.
2272         (wv): New constraint if power8 vector instructions are enabled.
2273         (wQ): New constraint for quad word memory locations.
2275         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2276         constraint for 0..15 for crypto instructions.
2277         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2278         as GPR and floating point registers.
2279         (int_reg_operand): New predicate to match only GPR registers.
2280         (base_reg_operand): New predicate to match base registers.
2281         (quad_int_reg_operand): New predicate to match even GPR registers
2282         for quad memory operations.
2283         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2284         operations in both GPR and VSX registers.
2285         (quad_memory_operand): New predicate for quad memory operations.
2286         (reg_or_indexed_operand): New predicate for direct move support.
2288         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2289         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2290         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2291         (POWERPC_MASKS): Add power8 options.
2292         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2293         various options.
2295         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2296         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2298         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2299         (-mpower8-fusion): New power8 options.
2300         (-mpower8-fusion-sign): Likewise.
2301         (-mpower8-vector): Likewise.
2302         (-mcrypto): Likewise.
2303         (-mdirect-move): Likewise.
2304         (-mquad-memory): Likewise.
2306         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2307         power8.
2308         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2309         registers.
2310         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2311         (rs6000_debug_vector_unit): Add p8_vector.
2312         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2313         definitions.  Also print fusion state.
2314         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2315         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2316         (rs6000_option_override_internal): Add support for power8.
2317         (rs6000_common_init_builtins): Add debugging for skipped builtins
2318         if -mdebug=builtin.
2319         (rs6000_adjust_cost): Add power8 support.
2320         (rs6000_issue_rate): Likewise.
2321         (insn_must_be_first_in_group): Likewise.
2322         (insn_must_be_last_in_group): Likewise.
2323         (force_new_group): Likewise.
2324         (rs6000_register_move_cost): Likewise.
2325         (rs6000_opt_masks): Likewise.
2327         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2328         power8 capable assembler, default to power7 options.
2329         (TARGET_DIRECT_MOVE): Likewise.
2330         (TARGET_CRYPTO): Likewise.
2331         (TARGET_P8_VECTOR): Likewise.
2332         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2333         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2334         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2335         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2336         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2337         (TARGET_XSCVDPSPN): Likewise.
2338         (TARGET_XSCVSPDPN): Likewsie.
2339         (TARGET_SYNC_HI_QI): Likewise.
2340         (TARGET_SYNC_TI): Likewise.
2341         (MASK_CRYPTO): Likewise.
2342         (MASK_DIRECT_MOVE): Likewise.
2343         (MASK_P8_FUSION): Likewise.
2344         (MASK_P8_VECTOR): Likewise.
2345         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2346         temporary used by some of the direct move instructions to get two FP
2347         temporary registers does not force creation of a stack frame.
2348         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2349         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2350         that any VSX registers are tieable, even if they are also an
2351         Altivec vector mode.
2352         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2353         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2354         (RS6000_BTM_CRYPTO): Likewise.
2355         (RS6000_BTM_COMMON): Likewise.
2357         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2358         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2359         (enum rs6000_vector): Add power8 vector support.
2361 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2363         PR target/19599
2364         PR target/57340
2365         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2366         (any_sibcall_could_use_r3): this and handle indirect calls.
2367         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2369 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2371         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2373 2013-05-22  Richard Biener  <rguenther@suse.de>
2375         PR middle-end/57349
2376         * profile.c (branch_prob): Do not split blocks that are
2377         abnormally receiving from ECF_RETURNS_TWICE functions.
2379 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2381         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2382         address mode.  Move pointer mode initialization to the same place.
2384 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2386         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2387         while it has any effect.
2389 2013-05-21  Easwaran Raman  <eraman@google.com>
2391         PR tree-optimization/57322
2392         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2393         UID of the statement added to the BB to be 1.
2395 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2397         PR tree-optimization/57331
2398         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2399         of conversion from pointer type to integral type with integer.
2401 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2403         PR lto/57289
2404         * ipa-prop.c (ipa_read_node_info): Process param_used and
2405         controlled_uses in the same order as when writing.
2407 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2409         PR plugins/56754
2410         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2412 2013-05-21  Richard Biener  <rguenther@suse.de>
2414         PR tree-optimization/57318
2415         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2416         estimate stmts with side-effects as likely eliminated.
2418 2013-05-21  Richard Biener  <rguenther@suse.de>
2420         PR tree-optimization/57330
2421         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2422         preserve the call stmts fntype.
2424 2013-05-21  Richard Biener  <rguenther@suse.de>
2426         PR tree-optimization/57303
2427         * tree-ssa-sink.c (statement_sink_location): Improve killing
2428         stmt detection and properly handle self-assignments.
2430 2013-05-21  Christian Bruel  <christian.bruel@st.com>
2432         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2433         spanning registers. LEAF_REG_REMAP is supported only for contiguous
2434         registers. Set register size out of the PARALLEL loop.
2436 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
2438         PR target/56547
2439         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2440         (*fmasf4, *fmasf4_media): New insns.
2442 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2444         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2445         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2446         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2447         (mips_idiv_insns): Update the comments to say that the returned
2448         instruction counts are in units of BASE_INSN_LENGTH.
2449         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2450         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
2451         using 2 rather than 4 as the length of indirect MIPS16 and
2452         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
2453         length of a NOP.  Don't divide MIPS16 lengths by 2.
2454         (mips16_split_long_branches): Assume a branch is long if the
2455         length is greater than 4 rather than 8.
2456         * config/mips/mips.md (length): Give MIPS16 lengths directly,
2457         rather than multiplying them by 2.  Multiply instruction counts
2458         by BASE_INSN_LENGTH rather than 4.
2459         (*jump_mips16, tls_get_tp_mips16_<mode>)
2460         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2462 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2464         * config/mips/mips.md (extended_mips16): Remove branch case.
2465         (length): Remove duplicated extended_mips16 test.
2467 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2469         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2471 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
2473         * recog.h (Recog_data): Rename to...
2474         (recog_data_d): ...this.
2475         (recog_data): Update accordingly.
2476         * recog.c (recog_data): Likewise.
2477         * reload.c (save_recog_data): Likewise.
2478         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2479         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2481 2013-05-17  Julian Brown  <julian@codesourcery.com>
2483         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2484         found in a REG_EQUAL note, invalidate it.
2486 2013-05-17   Easwaran Raman  <eraman@google.com>
2488         * tree-ssa-reassoc.c (find_insert_point): New function.
2489         (insert_stmt_after): Likewise.
2490         (get_def_stmt): Likewise.
2491         (ensure_ops_are_available): Likewise.
2492         (not_dominated_by): Likewise.
2493         (rewrite_expr_tree): Do not move statements beyond what is
2494         necessary. Remove call to swap_ops_for_binary_stmt...
2495         (reassociate_bb): ... and move it here.
2496         (build_and_add_sum): Assign UIDs for new statements.
2497         (linearize_expr): Likewise.
2498         (do_reassoc): Renumber gimple statement UIDs.
2500 2013-05-17  Jan Hubicka  <jh@suse.cz>
2502         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2503         weakrefs.
2504         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2505         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2506         weakrefs.
2507         (output_weakrefs): Update.
2509 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
2510             Martin Jambor  <mjambor@suse.cz>
2512         PR middle-end/57276
2513         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2514         value that corresponds to the given aggval is found in values vector.
2516 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
2518         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2519         sse, sse2, sse3, ssse3 and sse4a flags to options.
2521 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
2523         * gengtype-state.c: (s_expr_writer): New class, to handle
2524         prettifying of output layout of s-expressions.
2525         (state_writer): New class, to write out gtype.state.
2526         (state_written_type_count): Move this variable into member data of
2527         state_writer.
2528         (s_expr_writer::s_expr_writer): New code: constructor for new class
2529         (state_writer::state_writer(): ditto
2530         (s_expr_writer::write_new_line): New function
2531         (s_expr_writer::write_any_indent): ditto
2532         (s_expr_writer::begin_s_expr): ditto
2533         (s_expr_writer::end_s_expr): ditto
2534         (write_state_fileloc): convert to method of state_writer...
2535         (state_writer:: write_state_fileloc): ...and use methods of
2536         s_expr_writer to write indentation into the gtype.state output file
2537         to visually represent the hierarchical structure of the list
2538         structures
2539         (write_state_fields): ditto, renaming to...
2540         (state_writer::write_state_fields)
2541         (write_state_a_string): ditto, renaming to...
2542         (state_writer::write_state_a_string)
2543         (write_state_string_option): ditto, renaming to...
2544         (state_writer::write_state_string_option)
2545         (write_state_type_option): ditto, renaming to...
2546         (state_writer::write_state_type_option)
2547         (write_state_nested_option): ditto, renaming to...
2548         (state_writer::write_state_nested_option)
2549         (write_state_option): ditto, renaming to...
2550         (state_writer::write_state_option)
2551         (write_state_options): ditto, renaming to...
2552         (state_writer::write_state_options)
2553         (write_state_lang_bitmap): ditto, renaming to...
2554         (state_writer::write_state_lang_bitmap)
2555         (write_state_version): ditto, renaming to...
2556         (state_writer::write_state_version)
2557         (write_state_scalar_type): ditto, renaming to...
2558         (state_writer::write_state_scalar_type)
2559         (write_state_string_type): ditto, renaming to...
2560         (state_writer::write_state_string_type)
2561         (write_state_undefined_type): ditto, renaming to...
2562         (state_writer::write_state_undefined_type)
2563         (write_state_struct_union_type): ditto, renaming to...
2564         (state_writer::write_state_struct_union_type)
2565         (write_state_struct_type): ditto, renaming to...
2566         (state_writer::write_state_struct_type)
2567         (write_state_user_struct_type): ditto, renaming to...
2568         (state_writer::write_state_user_struct_type)
2569         (write_state_lang_struct_type): ditto, renaming to...
2570         (state_writer::write_state_lang_struct_type)
2571         (write_state_param_struct_type): ditto, renaming to...
2572         (state_writer::write_state_param_struct_type)
2573         (write_state_pointer_type): ditto, renaming to...
2574         (state_writer::write_state_pointer_type)
2575         (write_state_array_type): ditto, renaming to...
2576         (state_writer::write_state_array_type)
2577         (write_state_gc_used): ditto, renaming to...
2578         (state_writer::write_state_gc_used)
2579         (write_state_common_type_content): ditto, renaming to...
2580         (state_writer::write_state_common_type_content)
2581         (write_state_type): ditto, renaming to...
2582         (state_writer::write_state_type)
2583         (write_state_pair_list): ditto, renaming to...
2584         (state_writer::write_state_pair_list)
2585         (write_state_pair): ditto, renaming to...
2586         (state_writer::write_state_pair)
2587         (write_state_typedefs): ditto, renaming to...
2588         (state_writer::write_state_typedefs)
2589         (write_state_structures): ditto, renaming to...
2590         (state_writer::write_state_structures)
2591         (write_state_param_structs): ditto, renaming to...
2592         (state_writer::write_state_param_structs)
2593         (write_state_variables): ditto, renaming to...
2594         (state_writer::write_state_variables)
2595         (write_state_srcdir): ditto, renaming to...
2596         (state_writer::write_state_srcdir)
2597         (write_state_files_list): ditto, renaming to...
2598         (state_writer::write_state_files_list)
2599         (write_state_languages): ditto, renaming to...
2600         (state_writer::write_state_languages)
2601         (write_state): create a state_writer instance and use it when
2602         writing out the state file
2604 2013-05-17  Mike Stump  <mikestump@comcast.net>
2606         PR rtl-optimization/57304
2607         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2608         accessing DF_REF_REAL_LOC.
2610 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2612         PR rtl-optimization/57281
2613         PR rtl-optimization/57300
2614         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2615         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2616         what the other splitter did if the registers are dead.
2618 2013-05-17  Richard Biener  <rguenther@suse.de>
2620         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2621         MEM_REF offsets.
2623 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2625         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2626         linking.
2628 2013-05-17  Marek Polacek  <polacek@redhat.com>
2630         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2631         length when doing non-zero store of storing '\0' to '\0'.
2633 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2635         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2636         vect_external_def oprnd1 with loop_vinfo, try to emit
2637         optional cast, negation and and stmts on the loop preheader
2638         edge instead of into the pattern def seq.
2640         PR tree-optimization/57051
2641         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2642         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2644 2013-05-16  Nick Clifton  <nickc@redhat.com>
2646         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2647         (rl78_is_naked_func): New function.
2648         (rl78_expand_prologue): Skip prologue generation for naked functions.
2649         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2650         * doc/extend.texi (naked): Add RL78 to the list of processors
2651         that supports this attribute.
2653 2013-05-16  Jeff Law  <law@redhat.com>
2655         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2657 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2659         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2660         cache parameters using detect_caches_amd also for CYRIX,
2661         NSC and TM2 signatures.
2663 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2664             Dzianis Kahanovich  <mahatma@eu.by>
2666         PR target/45359
2667         PR target/46396
2668         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2669         VIA/Centaur processors and determine their cache parameters
2670         using detect_caches_amd.
2672 2013-05-16  Teresa Johnson  <tejohnson@google.com>
2674         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2675         (rtl_verify_edges): New function.
2676         (rtl_verify_bb_insns): Ditto.
2677         (rtl_verify_bb_pointers): Ditto.
2678         (rtl_verify_bb_insn_chain): Ditto.
2679         (rtl_verify_fallthru): Ditto.
2680         (rtl_verify_bb_layout): Ditto.
2681         (rtl_verify_flow_info_1): Outline checks into new functions.
2682         (rtl_verify_flow_info): Ditto.
2684 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
2686         * cfghooks.c (copy_bbs): Add update_dominance argument.
2687         * cfghooks.h (copy_bbs): Update prototype.
2688         * tree-cfg.c (gimple_duplicate_sese_region):
2689         Add update_dominance argument.
2690         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2691         * tree-ssa-loop-ch.c (copy_loop_headers): Update
2692         gimple_duplicate_sese_region call.
2693         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2694         Update copy_bbs call.
2695         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2696         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2698 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2700         * tree-vectorizer.h (NUM_PATTERNS): Increment.
2701         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2702         vect_recog_rotate_pattern.
2703         (vect_recog_rotate_pattern): New function.
2705 2013-05-16  Jason Merrill  <jason@redhat.com>
2707         * Makefile.in (LLINKER): New variable.
2708         (mostlyclean): Remove link mutex.
2709         * configure.ac: Handle --enable-link-mutex.
2710         * lock-and-run.sh: New script.
2712 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2714         PR target/19599
2715         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2716         for NULL decl.
2718 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2720         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2722 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
2724         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2725         * config/arm/arm.c (next_consecutive_mem): New function.
2726         (gen_movmem_ldrd_strd): Likewise.
2727         * config/arm/arm.md (movmemqi): Update condition and code.
2728         (unaligned_loaddi, unaligned_storedi): New patterns.
2730 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2732         * config.gcc: Obsolete *-*-solaris2.9*.
2733         * doc/install.texi (Specific, *-*-solaris2*): Document it.
2735 2013-05-16  Richard Biener  <rguenther@suse.de>
2737         * passes.c (init_optimization_passes): Move pass_parallelize_loops
2738         earlier, after GRAPHITE transforms and IV canonicalization.
2740 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2742         * omp-low.c (extract_omp_for_data): For collapsed loops,
2743         if at least one of the loops is known at compile time to
2744         iterate zero times, set count to 0.
2745         (expand_omp_regimplify_p): New function.
2746         (expand_omp_for_generic): For collapsed loops, if at least
2747         one of the loops isn't known to iterate at least once,
2748         add runtime check with setting count to 0.
2749         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2750         For unsigned types if it isn't known at compile time that
2751         the loop will iterate at least once, add runtime check to bypass
2752         the whole loop if initial condition isn't true.
2754 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
2756         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2758 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
2760         PR middle-end/57286
2761         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2762         transformations to avoid an infinite loop.
2764 2013-05-16  Marek Polacek  <polacek@redhat.com>
2766         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2768 2013-05-15  Leif Ekblad  <leif@rdos.net>
2770         * config/i386/i386.c (ix86_decompose_address): Use
2771         DEFAULT_TLS_SEG_REG to access TLS segment register.
2772         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2773         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2774         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2776 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
2778         PR target/57260
2779         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2780         sibling calls to functions that would normally be lazily bound,
2781         unless $gp is call-clobbered.
2783 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
2785         * config/i386/i386.c (ix86_option_override_internal): Update
2786         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
2787         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2788         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2789         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2790         of TARGET_3DNOW.
2791         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2793 2013-05-15  Andreas Schwab  <schwab@suse.de>
2795         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2796         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
2797         third operand.
2799 2013-05-15  Teresa Johnson  <tejohnson@google.com>
2801         * loop-unroll.c (report_unroll_peel): Check decision before
2802         emitting unroll/peel message.
2804 2013-05-15  Teresa Johnson  <tejohnson@google.com>
2806         * function.h (has_bb_partition): New rtl_data flag.
2807         (bb_reorder_complete): Ditto.
2808         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
2809         instead of flag_reorder_blocks_and_partition.
2810         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
2811         with some enhancements.
2812         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
2813         * bb-reorder.c (connect_traces): Check for has_bb_partition
2814         instead of flag_reorder_blocks_and_partition.
2815         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2816         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2817         verify_hot_cold_block_grouping.
2818         (partition_hot_cold_basic_blocks): Set has_bb_partition.
2820 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2822         PR target/19599
2823         * config/arm/predicates.md (call_insn_operand): New predicate.
2824         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
2825         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2826         if insn is not a tail call.
2827         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2828         registers.
2829         * config/arm/arm.h (enum reg_class): New caller save register class.
2830         (REG_CLASS_NAMES): Likewise.
2831         (REG_CLASS_CONTENTS): Likewise.
2832         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2833         without decls.
2835 2013-05-15  Richard Biener  <rguenther@suse.de>
2837         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2838         of MSG_OPTIMIZED_LOCATIONS.
2839         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2840         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2841         message.
2842         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2843         of MSG_OPTIMIZED_LOCATIONS.
2844         (execute_vect_slp): Likewise.
2845         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2846         (vect_create_cond_for_alias_checks): Likewise.
2847         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2848         (vect_recog_widen_mult_pattern): Likewise.
2849         (vect_recog_widen_sum_pattern): Likewise.
2850         (vect_recog_over_widening_pattern): Likewise.
2851         (vect_recog_widen_shift_pattern): Likewise.
2852         (vect_recog_vector_vector_shift_pattern): Likewise.
2853         (vect_recog_divmod_pattern): Likewise.
2854         (vect_recog_mixed_size_cond_pattern): Likewise.
2855         (vect_recog_bool_pattern): Likewise.
2856         (vect_pattern_recog_1): Likewise.
2858 2013-05-15  Martin Jambor  <mjambor@suse.cz>
2860         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2861         non-functions to builtin_unreachable.
2862         * ipa-inline-transform.c (inline_call): Do not assert estimates were
2863         correct when new direct edges were discovered.
2865 2013-05-15  Martin Jambor  <mjambor@suse.cz>
2867         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2868         header, print symbol order instead of node uid, print more information
2869         about indirect edge targets.
2870         (ipa_make_edge_direct_to_target): Print symbol order instead of node
2871         uids.
2872         (ipa_make_edge_direct_to_target): Likewise.
2873         (remove_described_reference): Likewise.
2874         (propagate_controlled_uses): Likewise.
2875         (ipa_print_node_params): Also print symbol order.
2876         (ipcp_transform_function): Print symbol order instead of node uids.
2877         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2878         (cgraph_get_create_real_symbol_node): Likewise.
2879         * ipa-cp.c (print_lattice): Likewise.
2880         (print_all_lattices): Likewise.
2881         (determine_versionability): Likewise.
2882         (initialize_node_lattices): Likewise.
2883         (estimate_local_effects): Likewise.
2884         (update_profiling_info): Likewise.
2885         (create_specialized_node): Likewise.
2886         (perhaps_add_new_callers): Likewise.
2887         (decide_about_value): Likewise.
2888         (decide_whether_version_node): Likewise.
2889         (identify_dead_nodes): Likewise.
2890         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2891         (dump_inline_summary): Likewise.
2892         (estimate_node_size_and_time): Likewise.
2893         (inline_analyze_function): Likewise.
2894         * ipa-inline.c (report_inline_failed_reason): Likewise.
2895         (want_early_inline_function_p): Likewise.
2896         (edge_badness): Likewise.
2897         (update_edge_key): Likewise.
2898         (inline_small_functions): Likewise.  Add dumping of order to two other
2899         dumps.
2900         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2901         instead of node uids.
2902         (propagate_pure_const): Likewise.
2903         (propagate_pure_const): Likewise.
2904         * ipa-utils.c (dump_cgraph_node_set): Likewise.
2905         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2906         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2907         of node uids.
2908         * tree-pretty-print.c (dump_function_header): Likewise.
2909         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2910         Print symbol order instead of node uids.
2912 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2914         * config/s390/s390.c (s390_register_move_cost): Don't impose the
2915         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2917 2013-05-15  Richard Biener  <rguenther@suse.de>
2919         PR tree-optimization/57275
2920         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2921         return value for fail to do runtime alias checks for gather loads.
2923 2013-05-15  Jan Hubicka  <jh@suse.cz>
2925         PR lto/57038
2926         PR lto/47375
2927         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2928         weakrefs are not external.
2929         (lto_symtab_merge_decls): Fix thinko when dealing with
2930         non-lto_symtab decls.
2931         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2932         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2933         * varpool.c (dump_varpool_node): Dump more flags.
2935 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2937         * config/i386/i386.c (processor_alias_table): Add instruction
2938         FSGSBASE for AMD bdver3 architecture.
2940 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2942         * tree.c (warn_deprecated_use): Print file:line using locus color.
2943         * diagnostic.c (diagnostic_report_current_module): Print file:line
2944         and file:line:column using locus color.
2946 2013-05-14  Mike Stump  <mikestump@comcast.net>
2948         * gdbinit.in: Add __null.
2950 2013-05-14  Mike Stump  <mikestump@comcast.net>
2952         * recog.h: Rename struct recog_data to Recog_data.
2953         * recog.c: Likewise.
2954         * reload.c (can_reload_into): Likewise.
2955         * config/picochip/picochip.c: Likewise.
2957 2013-05-14  Mike Stump  <mikestump@comcast.net>
2959         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2961 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
2963         * resource.h (struct resources): Remove unch_memory member.
2964         (CLEAR_RESOURCE): Don't clear unch_memory.
2965         * resource.c (mark_referenced_resources): Don't set it.
2966         (mark_set_resources): Likewise.
2967         (mark_target_live_regs): Don't clear it.
2968         (init_resource_info): Likewise.
2969         * reorg.c (resource_conflicts_p): Don't compare it.
2970         (redundant_insn): Don't set it.
2972         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2973         Remove prototypes.
2974         * emit-rtl.c (next_label): Remove unused function.
2975         (skip_consecutive_labels, link_cc0_insns): Move to ...
2976         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2977         only place where these functions are used, and make them static.
2979 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
2981         * fold-const.c (fold_negate_expr): Handle vectors.
2982         (fold_truth_not_expr): Make it static.
2983         (fold_invert_truthvalue): New static function.
2984         (invert_truthvalue_loc): Handle vectors. Do not call
2985         fold_truth_not_expr directly.
2986         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2987         <TRUTH_NOT_EXPR>: Do not cast to boolean.
2988         (fold_comparison): Handle vector constants.
2989         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2990         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2991         * tree.h (fold_truth_not_expr): Remove declaration.
2993 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
2995         * config/aarch64/aarch64-simd.md
2996         (aarch64_vcond_internal<mode>): Rename to...
2997         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2998         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2999         float modes. Clarify all iterator modes.
3000         (vcond<mode><mode>): Use new name for vcond expanders.
3001         (vcond<v_cmp_result><mode>): Likewise.
3002         (vcondu<mode><mode>: Likewise.
3003         * config/aarch64/iterators.md (VDQF_COND): New.
3005 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3007         PR bootstrap/57266
3008         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3009         variable for the shift amount. Check that we shift by non-negative
3010         amounts.
3012 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3014         PR target/42017
3015         * config/arm/arm.h (EPILOGUE_USES): Only return true
3016         for LR_REGNUM after epilogue_completed.
3018 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3020         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3021         is error_mark_node.
3023 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3025         PR target/57261
3026         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3027         and Solaris 11+/x86 with gld.
3028         * configure: Regenerate.
3030 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3032         * expmed.c (expand_shift_1): Canonicalize rotates by
3033         constant bitsize / 2 to bitsize - 1.
3034         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3035         case ROTATERT>: Likewise.
3037         Revert:
3038         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3040         * config/i386/i386.md (rotateinv): New code attr.
3041         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3042         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3043         roll $31, %eax, etc.
3045 2013-05-14  Richard Biener  <rguenther@suse.de>
3047         PR middle-end/57235
3048         * tree-eh.c (sink_clobbers): Give up for successors with
3049         multiple predecessors and no virtual uses.
3051 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3053         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3054         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3056 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3058         PR middle-end/57251
3059         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3060         the case when both op0 and op1 have VOIDmode.
3062 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3064         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3065         in multiply-accumulate mode.
3067 2013-05-13  Guozhi Wei  <carrot@google.com>
3069         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3071 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3073         PR target/56975
3074         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3075         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3076         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3077         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3078         (ix86_expand_prologue): Likewise.
3079         (ix86_expand_split_stack_prologue): Likewise.
3080         (legitimate_pic_address_disp_p): Likewise.
3081         (legitimize_pic_address): Likewise.
3082         (legitimize_tls_address): Likewise.
3083         (legitimize_pe_coff_symbol): Likewise.
3084         (output_pic_addr_const): Likewise.
3085         (construct_plt_address): Likewise.
3086         (ix86_expand_call): Likewise.
3087         (x86_output_mi_thunk): Likewise.
3088         (x86_function_profiler): Likewise.
3090 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3092         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3093         similar switch cases.
3094         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3095         (aarch64_simd_mov_to_<mode>low): Delete.
3096         (aarch64_simd_mov_to_<mode>high): Delete.
3097         (move_lo_quad_<mode>): Add w<-r alternative.
3098         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3099         (aarch64_simd_mov_from_*): Update type attribute.
3100         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3101         statement.
3103 2013-05-13  Jan Hubicka  <jh@suse.cz>
3105         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3106         * config/i386/i386.c (ix86_compute_frame_layout,
3107         ix86_expand_epilogue, emit_i387_cw_initialization,
3108         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3109         ix86_local_alignment): Fix use of size/speed predicates.
3111 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3113         PR tree-optimization/45216
3114         PR tree-optimization/57157
3115         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3116         the (-Y) & (B - 1) variant if OP is |.
3117         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3118         return shifted.  Use (-op1) & (prec - 1) as other_amount
3119         instead of prec - op1.
3121 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3123         PR middle-end/42371
3124         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3125         (ipa_constant_data): New type.
3126         (ipa_jump_func): Use ipa_constant_data to hold information about
3127         constant jump functions.
3128         (ipa_get_jf_constant): Adjust to jump function type changes.
3129         (ipa_get_jf_constant_rdesc): New function.
3130         (ipa_param_descriptor): New field controlled_uses.
3131         (ipa_get_controlled_uses): New function.
3132         (ipa_set_controlled_uses): Likewise.
3133         * ipa-ref.h (ipa_find_reference): Declare.
3134         * ipa-prop.c (ipa_cst_ref_desc): New type.
3135         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3136         changes.
3137         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3138         New parameter cs.  Adjust all callers.
3139         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3140         (remove_described_reference): New function.
3141         (jfunc_rdesc_usable): Likewise.
3142         (try_make_edge_direct_simple_call): Decrement controlled use count,
3143         attempt to remove reference if it hits zero.
3144         (combine_controlled_uses_counters): New function.
3145         (propagate_controlled_uses): Likewise.
3146         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3147         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3148         (ipa_print_node_params): Print described use counter.
3149         (ipa_write_jump_function): Adjust to jump function type changes.
3150         (ipa_read_jump_function): New parameter CS, pass it to
3151         ipa_set_jf_constant.  Adjust caller.
3152         (ipa_write_node_info): Stream controlled use count
3153         (ipa_read_node_info): Likewise.
3154         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3155         asserting.
3156         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3157         count.  Remove cloning-added reference if it reaches zero.
3158         * ipa-ref.c (ipa_find_reference): New function.
3160 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3162         * config/i386/i386.c (processor_target_table): Modified default
3163         alignment values for AMD BD and BT architectures.
3165 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3167         * tree-vect-generic.c (uniform_vector_p): Move ...
3168         * tree.c (uniform_vector_p): ... here.
3169         * tree.h (uniform_vector_p): Declare it.
3170         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3171         into a scalar.
3173 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3175         PR tree-optimization/57230
3176         * tree-ssa-strlen.c (handle_char_store): Record length for
3177         array store from STRING_CST.
3179         PR tree-optimization/57230
3180         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3181         check.
3183 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3185         * config/epiphany/epiphany.c (epiphany_init): Check size of
3186         NUM_MODES_FOR_MODE_SWITCHING.
3187         (epiphany_expand_prologue):
3188         Remove CONFIG_REGNUM initial value handling code.
3189         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3190         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3191         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3192         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3193         Don't return 1 for FP_MODE_NONE.
3194         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3195         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3196         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3197         * config/epiphany/epiphany.md (save_config): New pattern.
3199 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3201         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3203 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3205         * config/i386/i386.md (memory): Handle sseishft1.
3206         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3207         (*vec_extractv2di_1): Ditto.
3209 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3211         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3212         saved registers.
3214 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3216         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3217         Add mthumb/march=armv7-a multilib.
3218         Add mthumb/march=armv7-r multilib.
3219         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3221 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3223         * config/v850/t-rtems: Add more multilibs.
3225 2013-05-10  Richard Biener  <rguenther@suse.de>
3227         PR tree-optimization/57214
3228         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3229         not propagate from SSA names that occur in abnormal PHI nodes.
3231 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3233         * stor-layout.c (element_precision): New function.
3234         * machmode.h (element_precision): Declare it.
3235         * tree.c (build_minus_one_cst): New function.
3236         (element_precision): Likewise.
3237         * tree.h (build_minus_one_cst): Declare new function.
3238         (element_precision): Likewise.
3239         * fold-const.c (operand_equal_p): Use element_precision.
3240         (fold_binary_loc): Handle vector types.
3241         * convert.c (convert_to_integer): Use element_precision.
3242         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3243         separately.
3245 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3247         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3248         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3249         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3250         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3251         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3252         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3253         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3254         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3255         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3256         (Uuw8): New constraints.
3257         (Usb4): Move into alphabetical order.
3258         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3259         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3260         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3261         previously unnamed patterns.
3262         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3263         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3264         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3265         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3266         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3267         of specific lengths.
3269 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3271         * config/i386/i386.md (rotateinv): New code attr.
3272         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3273         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3274         roll $31, %eax, etc.
3276         PR tree-optimization/45216
3277         PR tree-optimization/57157
3278         * tree-ssa-forwprop.c (simplify_rotate): New function.
3279         (ssa_forward_propagate_and_combine): Call it.
3281 2013-05-10  Richard Biener  <rguenther@suse.de>
3283         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3284         disable peeling when we version for aliasing.
3285         (vector_alignment_reachable_p): Honor explicit user alignment.
3286         (vect_supportable_dr_alignment): Likewise.
3287         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3288         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3289         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3290         then peeling to arrange for the cost-model check to come first.
3292 2013-05-10  Alan Modra  <amodra@gmail.com>
3294         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3295         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3296         * configure: Regenerate.
3298 2013-05-10  Alan Modra  <amodra@gmail.com>
3300         PR target/55033
3301         * varasm.c (default_elf_select_section): Move !DECL_P check..
3302         (get_named_section): ..to here before calling get_section_name.
3303         Adjust assertion.
3304         (default_section_type_flags): Add DECL_P check.
3305         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3306         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3308 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3310         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3311         When using gen_stack_adjust_str with a register offset, add a
3312         REG_FRAME_RELATED_EXPR note.
3314 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3316         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3317         (*vec_extractv4si_zext_mem): Ditto.
3318         (*vec_extractv2di): Add 0->x and x->x alternatives.
3319         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3320         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3322 2013-05-09  Jason Merrill  <jason@redhat.com>
3324         N3639 C++1y VLA support
3325         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3326         DECL_VALUE_EXPR.
3328         * tree.c (build_constructor_va): New.
3329         * tree.h: Declare it.
3331 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3333         PR lto/57084
3334         * gimple-fold.c (canonicalize_constructor_val): Call
3335         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3337 2013-05-09  Jan Hubicka  <jh@suse.cz>
3338             Richard Biener  <rguenther@suse.de>
3340         PR lto/54095
3341         * symtab.c (symtab_make_decl_local): Do not add private names.
3343 2013-05-09  Jan Hubicka  <jh@suse.cz>
3345         PR lto/54095
3346         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3347         (unlink_from_assembler_name_hash): Likewise.
3348         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3349         symtab_unregister_node, symtab_initialize_asm_name_hash,
3350         change_decl_assembler_name): Update.
3352 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3354         * config/aarch64/aarch64.md: New movtf split.
3355         (*movtf_aarch64): Update.
3356         (aarch64_movdi_tilow): Handle TF modes and rename to
3357         aarch64_movdi_<mode>low.
3358         (aarch64_movdi_tihigh): Handle TF modes and rename to
3359         aarch64_movdi_<mode>high
3360         (aarch64_movtihigh_di): Handle TF modes and rename to
3361         aarch64_mov<mode>high_di
3362         (aarch64_movtilow_di): Handle TF modes and rename to
3363         aarch64_mov<mode>low_di
3364         (aarch64_movtilow_tilow): Remove spurious whitespace.
3365         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3366         splits.
3367         (aarch64_print_operand): Update.
3369 2013-05-09  Alan Modra  <amodra@gmail.com>
3371         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3372         powerpc64le.
3373         * configure: Regenerate.
3375 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3377         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3378         splitter preparation statements.
3379         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3380         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3381         adjust_address_nv.
3383 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3385         * gimple-ssa-strength-reduction.c (count_candidates): Change
3386         return value to int.
3387         (analyze_candidates_and_replace): Change type of length to int.
3389 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3391         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3392         (*vec_extract<mode>): Use VI12_128 mode iterator.
3393         (*vec_extract<mode>_mem): Ditto.
3394         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3395         attribute.
3397 2013-05-08  Diego Novillo  <dnovillo@google.com>
3399         PR bootstrap/54659
3401         Revert:
3402         2012-08-17  Diego Novillo  <dnovillo@google.com>
3404         PR bootstrap/54281
3405         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3406         * config.in: Regenerate.
3407         * configure: Regenerate.
3408         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3410 2013-05-08  Jan Hubicka  <jh@suse.cz>
3412         PR lto/54095
3413         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3414         * cgraph.h (symtab_node_base): Add unique_name.
3415         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3416         input_overwrite_node, input_varpool_node): Stream unique_name.
3417         * cgraphclones.c (cgraph_create_virtual_clone,
3418         cgraph_function_versioning): Set unique_name.
3419         * ipa.c (function_and_variable_visibility): Set unique_name.
3421 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3423         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3424         (alloc_cand_and_find_basis): Restrict conditional candidate
3425         processing to CAND_MULTs.
3427 2013-05-08  Jan Hubicka  <jh@suse.cz>
3429         PR lto/54095
3430         lto-symtab.c (lto_symtab_symbol_p): New function.
3431         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3432         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3433         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3434         Skip static symbols.
3436 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
3438         PR tree-optimization/57200
3439         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3440         Only call inform if the preceding warning_at returns true.
3442 2013-05-07  Han Shen  <shenhan@google.com>
3444         * cfgexpand.c (record_or_union_type_has_array_p): New function.
3445         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3446         * common.opt (fstack-protector-strong): New option.
3447         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3448         * doc/invoke.texi (Optimization Options): Document
3449         "-fstack-protector-strong".
3450         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3452 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3454         * config/mips/mips.c (mips_machine_reorg2): Return 0.
3456 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
3458         * ira.c (update_equiv_regs): Add insn having equiv memory even if
3459         it is not lhs of the insn.
3460         (setup_reg_equiv): Remove insn having equiv memory which it is not
3461         lhs of the insn.
3462         * lra-constraints.c (process_address): Try to improve generation
3463         code for address base + disp.
3464         (lra_constraints): Make correct the code for checking insn setting
3465         up backward equivalence.  Remove insn only if it is in the init
3466         insn list.
3467         * lra-eliminations.c (update_reg_eliminate): Change return value.
3468         (lra_eliminate): Use the result.
3470 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
3472         * config/i386/sse.md (ssescalarnummask): New mode attribute.
3473         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3474         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3475         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3476         register target operands.
3477         (*vec_extractv8hi_sse2): New pattern.
3478         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3479         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3480         (*vec_extract<mode>_mem): New insn and split pattern.
3482 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
3484         * config/arm/arm.c (arm_asan_shadow_offset): New function.
3485         (TARGET_ASAN_SHADOW_OFFSET): Define.
3486         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3487         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3489 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3491         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3492         (incr_vec_index): Return -1 if increment not found.
3493         (create_add_on_incoming_edge): Assert if increment not found.
3494         (record_increment): Limit number of increments recorded.
3495         (all_phi_incrs_profitable): Return false if an increment not found.
3496         (replace_profitable_candidates): Don't process increments that were
3497         not recorded.
3498         (analyze_candidates_and_replace): Limit size of incr_vec.
3500 2013-05-07  Richard Biener  <rguenther@suse.de>
3502         * calls.c (special_function_p): setjmp-like functions are leaf.
3503         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3504         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3506 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
3508         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3509         (aarch64_simd_mov<mode>): New expander.
3510         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3511         (aarch64_simd_mov_to_<mode>high): Likewise.
3512         (aarch64_simd_mov_from_<mode>low): Likewise.
3513         (aarch64_simd_mov_from_<mode>high): Likewise.
3514         (aarch64_dup_lane<mode>): Update.
3515         (aarch64_dup_lanedi): New instruction pattern.
3516         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3517         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3519 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3521         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3522         (replace_mult_candidate): Remove unnecessary argument; remove
3523         unnecessary parameter from call to introduce_cast_before_cand.
3524         (replace_unconditional_candidate): Remove unnecessary parameter
3525         from call to replace_mult_candidate.
3526         (replace_conditional_candidate): Likewise.
3527         (insert_initializers): Use make_temp_ssa_name.
3528         (introduce_cast_before_cand): Remove unnecessary argument; use
3529         make_temp_ssa_name.
3530         (replace_one_candidate): Remove unnecessary argument; remove
3531         unnecessary parameter from calls to introduce_cast_before_cand.
3532         (replace_profitable_candidates): Remove unnecessary parameters
3533         from calls to replace_one_candidate.
3535 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3537         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3538         phi def as possibly hiding a basis for a CAND_ADD whose operands
3539         have been commuted in the analysis.
3540         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3542 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3544         * config/aarch64/aarch64.md
3545         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3546         shift value between 0-4.
3548 2013-05-07  Richard Biener  <rguenther@suse.de>
3550         * double-int.h (rshift): New overload.
3551         * double-int.c (rshift): New function.
3552         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3553         (create_reference_ops_from_ref): Remove.
3554         (vn_reference_insert): Use shared ops for constructing the
3555         reference and copy it.
3557 2013-05-07  Richard Biener  <rguenther@suse.de>
3559         PR middle-end/57190
3560         * tree-eh.c (sink_clobbers): Properly propagate
3561         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3563 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
3565         PR tree-optimization/57149
3566         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3567         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3568         collect_phi_def_edges, execute_late_warn_uninitialized): Use
3569         uninit_undefined_value_p instead of ssa_undefined_value_p.
3571         PR debug/57184
3572         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3573         for modifier == EXPAND_INITIALIZER.
3575 2013-05-07  Anton Blanchard  <anton@samba.org>
3577         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3578         for powerpc64 little endian.
3579         * configure: Regenerate.
3581 2013-05-06  Graham Stott  <grahams@btinternet.com>
3583         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3584         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3585         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3586         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3588 2013-05-06  Graham Stott  <grahams@btinternet.com>
3590         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3591         codes which allow non-lvalues.
3593 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
3595         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3596         components are all 1s.
3597         (integer_minus_onep): New function.
3598         * tree.h (integer_minus_onep): Declare it.
3599         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3600         integer_minus_onep instead of integer_all_onesp.
3602 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3604         PR target/52933
3605         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3606         variations of these patterns.
3608 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3610         * config/i386/i386.md (isa): Add x64_sse4 member.
3611         (enabled): Handle x64_sse4.
3612         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3613         instruction for 64bit SSE4_1 targets.  Update insn attributes.
3614         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3615         instruction for SSE4_1 targets.  Update insn attributes.
3616         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3617         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3618         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3619         const_1 selector.
3620         (*vec_extractv4si): Rename from *sse4_1_pextrd.
3621         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3622         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3624 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3626         PR target/57108
3627         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3629 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
3631         * final.c (do_assembler_dialects): Don't handle curly braces and
3632         vertical bar escaped by % as dialect delimiters.
3633         (output_asm_insn): Print curly braces and vertical bar if escaped
3634         by % and ASSEMBLER_DIALECT defined.
3635         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3636         * doc/tm.texi: Regenerated.
3638 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3640         * config/mips/mips.c: Include tree-pass.h.
3641         (mips_reorg): Split in pre- and post-dbr_schedule parts.
3642         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3643         (pass_mips_machine_reorg2): New machine specific pass.
3644         (insert_pass_mips_machine_reorg2): New pass plugin definition.
3645         (mips_option_override): Register the new pass.
3646         * rtl.h (cleanup_barriers): Remove prototype.
3647         (dbr_schedule): Likewise.
3648         * jump.c (cleanup_barriers): Make static.
3649         * reorg.c (dbr_schedule): Likewise.
3651 2013-05-06  Richard Biener  <rguenther@suse.de>
3653         PR tree-optimization/57185
3654         * tree-parloops.c (add_field_for_reduction): Handle anonymous
3655         SSA names properly.
3657 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3659         PR target/57106
3660         * config/i386/i386.c (add_parameter_dependencies): Add dependence
3661         between "first_arg" and "insn", not "last" and "insn".
3663 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3665         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3666         (find_candidates_in_block): Re-enable slsr_process_phi.
3667         (create_phi_basis): Fix double counting of candidate adjustment.
3669 2013-05-06  Richard Biener  <rguenther@suse.de>
3671         PR middle-end/57147
3672         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3673         the edge is also fallthru, preserve it and just clear the
3674         abnormal flag.
3675         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3676         also complex, preserve that and just clear the fallthru flag.
3677         * tree-inline.c (update_ssa_across_abnormal_edges): Also
3678         update virtual operands.
3680 2013-05-06  Alan Modra  <amodra@gmail.com>
3682         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3683         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3684         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3685         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3686         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3687         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3689 2013-05-06  Alan Modra  <amodra@gmail.com>
3691         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3692         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
3693         (DEFAULT_ASM_ENDIAN): Define.
3694         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3695         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3696         Update -K PIC clause from sysv4.h.
3697         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3698         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3700 2013-05-06  Alan Modra  <amodra@gmail.com>
3702         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3703         twice for little-endian.
3704         (ashrdi3_no_power, ashrdi3): Support little-endian.
3706 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3708         PR target/55303
3709         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3710         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3711         related expanders.
3712         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3713         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3714         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3715         New predicates.
3717 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3718             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3720         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3721         * config/pa/pa.opt: Make mbig-switch a no-op.
3722         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3723         (CASE_VECTOR_MODE): Always return SImode.
3724         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3725         for the !TARGET_BIG_SWITCH case.
3726         * config/pa/pa-linux.h: Likewise.
3727         * config/pa/pa-openbsd.h: Likewise.
3728         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3729         * config/pa/pa.md (short_jump): Remove define_insn.
3730         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3731         (casesi0): Remove define_insn.
3732         (type): Remove btable_branch.
3733         (pa_combine_type): Likewise.
3734         (in_nullified_branch_delay): Likewise.
3735         (in_call_delay): Likewise.
3736         (define_delay): Likewise.
3737         (define_insn_reservation "Z3"): Likewise.
3738         (define_insn_reservation "Z4"): Likewise.
3739         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3740         (pa_adjust_insn_length): Remove adjustment for btable branches.
3741         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3742         and mno-big-switch
3744 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
3746         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3747         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3748         Add m->r,x alternatives.
3749         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3750         splitters using SWI48x mode iterator.
3751         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
3752         TARGET_64BIT.  Add m->x alternative.
3753         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3754         Add o->x alternative.  Enable for TARGET_SSE.
3755         (sse_storeq): Remove expander.
3756         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3757         with memory input operand.
3758         (*vec_extractv2di_1 splitter): New.
3759         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3760         * config/i386/i386.md (ssevecmodelower): New mode attribute.
3762 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3764         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
3765         (INT_LOWPART): Delete.
3766         (extract_MB): Adjust.
3767         (extract_ME): Adjust.
3768         (print_operand): Adjust.
3770 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3772         * config/rs6000/predicates.md (reg_or_add_cint_operand,
3773         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3774         (reg_or_logical_cint_operand, easy_fp_constant,
3775         logical_const_operand): Delete "CONST_DOUBLE" case.
3776         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3777         "HOST_BITS_PER_WIDE_INT == 64" test.
3778         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
3779         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3780         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3781         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3782         test.
3783         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3784         CONST_DOUBLE DImode/VOIDmode case.
3785         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3786         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
3787         CONST_DOUBLE VOIDmode case.
3788         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3789         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3790         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3791         Delete CONST_DOUBLE case.
3792         (splitters for mov FMOVE64 const_double): Delete
3793         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
3794         "HOST_BITS_PER_WIDE_INT >= 64" test.
3795         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3796         case.
3797         (mov DI const_double): Delete.
3799 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
3801         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3802         on op shows all bits zero in mode of a lowpart subreg, return zero.
3804 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3806         PR target/57150
3807         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3808         to save TFmode registers and DImode to save TImode registers for
3809         caller save operations.
3810         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3811         mark being partially clobbered since they only use the first
3812         double word.
3814         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3815         and TDmode only use the upper 64-bits of each VSX register.
3817 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3819         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3820         (find_candidates_in_block): Disable slsr_process_phi.
3822 2013-05-03  Guozhi Wei  <carrot@google.com>
3824         * coverage.c (coverage_obj_init): Move the construction of gcov
3825         constructor to ...
3826         (build_init_ctor): ... here.
3828 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3830         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3831         (slsr_cand_d): Redefine def_phi.
3832         (stride_status, phi_adjust_status, count_phis_status): New enums.
3833         (find_phi_def): New.
3834         (find_basis_for_base_expr): New.
3835         (find_basis_for_candidate): Handle hidden bases.
3836         (alloc_cand_and_find_basis): Handle phi candidates.
3837         (slsr_process_phi): New.
3838         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3839         (create_mul_imm_cand): Likewise.
3840         (create_add_ssa_cand): Exclude phi base candidates.
3841         (create_add_imm_cand): Likewise.
3842         (slsr_process_cast): Likewise.
3843         (slsr_process_copy): Likewise.
3844         (find_candidates_in_block): Handle phi candidates.
3845         (dump_candidate): Likewise.
3846         (unconditional_cands): Delete.
3847         (unconditional_cands_with_known_stride_p): Delete.
3848         (phi_dependent_cand_p): New.
3849         (cand_increment): Handle phi-dependent candidates.
3850         (replace_dependent): Delete.
3851         (replace_mult_candidate): New.
3852         (replace_unconditional_candidate): New.
3853         (incr_vec_index): Move to avoid forward reference.
3854         (create_add_on_incoming_edge): New.
3855         (create_phi_basis): New.
3856         (replace_dependents): Delete.
3857         (replace_conditional_candidate): New.
3858         (phi_add_costs): New.
3859         (replace_uncond_cands_and_profitable_phis): New.
3860         (record_increment): Handle phi adjustments.
3861         (record_phi_increments): New.
3862         (record_increments): Handle phi adjustments.
3863         (phi_incr_cost): New.
3864         (lowest_cost_path): Handle phis.
3865         (total_savings): Likewise.
3866         (analyze_increments): Likewise.
3867         (ncd_with_phi): New.
3868         (ncd_of_cand_and_phis): New.
3869         (nearest_common_dominator_for_cands): Handle phi increments.
3870         (all_phi_incrs_profitable): New.
3871         (replace_profitable_candidates): Handle phi-dependent candidates.
3872         (analyze_candidates_and_replace): Likewise.
3874 2013-05-03  Teresa Johnson  <tejohnson@google.com>
3876         PR bootstrap/57154
3877         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3878         do not exceed REG_BR_PROB_BASE.
3880 2013-05-03  Jeff Law  <law@redhat.com>
3882         PR tree-optimization/57144
3883         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3884         operand of the condition will bit into the new type when eliminating
3885         a cast feeding a condition.
3887 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
3889         PR rtl-optimization/57130
3890         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3891         of COMPARE as in_code to the recursive call if needed.
3893 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
3895         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3896         (enabled): Handle new members.
3897         * config/i386/sse.md (*vec_concatv2si): Merge from
3898         *vec_concatv2si_sse2 and vec_concatv2si_sse.
3899         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3901 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
3903         PR tree-optimization/57027
3904         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3905         for fnms opportunity, check we got the prerequisite kind
3906         of tree / gimple before using accessor functions.
3908 2013-05-03  Richard Biener  <rguenther@suse.de>
3910         * double-int.h (lshift): New overload without precision
3911         and arith argument.
3912         (operator *=, operator +=, operator -=): Move ...
3913         * double-int.c (operator *=, operator +=, operator -=): ... here
3914         and implement more efficiently.
3915         (mul_double_with_sign): Remove.
3916         (lshift_double): Adjust to take unsinged shift argument, push
3917         dispatching code to callers.
3918         (mul_double_wide_with_sign): Add early out for callers that
3919         are not interested in high parts or overflow.
3920         (lshift): New function.
3921         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3922         dispatch code here.
3923         (lrotate, rrotate): Use logical shifts.
3924         * expr.c (get_inner_reference): Use lshift.
3925         * fixed-value.c (do_fixed_divide): Likewise.
3926         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3927         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3928         (indirect_refs_may_alias_p): Likewise.
3929         (stmt_kills_ref_p_1): Likewise.
3931 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
3933         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3935 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
3937         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3938         scalar form of FABD instruction.
3940 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
3942         * lra-constraints.c (process_alt_operands): Add checking alt
3943         number to choose the best alternative.
3945 2013-05-02  Richard Biener  <rguenther@suse.de>
3947         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3948         bitmap and its handling.
3949         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3951 2013-05-02  Richard Biener  <rguenther@suse.de>
3953         PR middle-end/57140
3954         * tree-inline.c (copy_loops): Properly handle removed loops.
3955         (copy_cfg_body): Mark destination loops for fixup if source
3956         loops needed fixup.
3958 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
3960         PR target/56732
3961         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3962         generating simple_return for naked functions.
3964 2013-05-02  Martin Jambor  <mjambor@suse.cz>
3966         PR middle-end/56988
3967         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3968         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3969         flags match.
3970         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3971         ipa_agg_replacement_value structures.
3972         (known_aggs_to_agg_replacement_list): Likewise.
3973         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3974         (read_agg_replacement_chain): Likewise.
3975         (ipcp_transform_function): Also check that by_ref flags match.
3977 2013-05-02  Richard Biener  <rguenther@suse.de>
3979         * graphds.h (struct graph): Add obstack member.
3980         * graphds.c (new_graph): Initialize obstack and allocate
3981         vertices from it.
3982         (add_edge): Allocate edge from the obstack.
3983         (free_graph): Free the obstack instead of all edges and vertices.
3985 2013-05-02  Teresa Johnson  <tejohnson@google.com>
3987         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3988         divides.
3989         * cfg.c (update_bb_profile_for_threading): Ditto.
3990         * tree-inline.c (copy_bb): Ditto.
3991         (copy_edges_for_bb): Ditto.
3992         (initialize_cfun): Ditto.
3993         (copy_cfg_body): Ditto.
3994         (expand_call_inline): Ditto.
3995         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3996         (estimate_node_size_and_time): Ditto.
3997         (inline_merge_summary): Ditto.
3998         * cgraphclones.c (cgraph_clone_edge): Ditto.
3999         (cgraph_clone_node): Ditto.
4000         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4001         (compute_trg_info): Ditto.
4003 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4005         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4006         S reg when fp attribute set.
4007         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4009 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4011         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4012         New pattern.
4013         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4014         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4015         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4017 2013-05-02  Richard Biener  <rguenther@suse.de>
4019         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4020         (struct instantiate_cache_entry): New type.
4021         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4022         (struct instantiate_cache_type): New type.
4023         (set_instantiated_value, get_instantiated_value): Remove.
4024         (get_instantiated_value_entry): New function.
4025         (instantiate_scev_name): Use the new cache and adjust.
4026         (instantiate_scev_poly): Adjust.
4027         (instantiate_scev_binary): Likewise.
4028         (instantiate_array_ref): Likewise.
4029         (instantiate_scev_convert): Likewise.
4030         (instantiate_scev_not): Likewise.
4031         (instantiate_scev_3): Likewise.
4032         (instantiate_scev_2): Likewise.
4033         (instantiate_scev_r): Likewise.
4034         (instantiate_scev): Likewise.
4035         (resolve_mixers): Likewise.
4037 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4039         PR target/57091
4040         * lra-constraints.c (best_small_class_operands_num): Remove.
4041         (process_alt_operands): Remove small_class_operands_num.  Take
4042         small classes operands into losers and only if the operand is not
4043         matched.  Modify debugging output.
4044         (curr_insn_transform): Remove best_small_class_operands_num.
4045         Print insn name.
4047 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4049         * config/aarch64/aarch64-builtins.c
4050         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4051         * config/aarch64/aarch64-simd-builtins.def
4052         (reduc_splus_): Add new modes.
4053         (reduc_uplus_): New.
4054         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4055         (reduc_uplus_v4sf): Likewise.
4056         (reduc_splus_v4sf): Likewise.
4057         (aarch64_addv<mode>): Likewise.
4058         (reduc_uplus_<mode>): Likewise.
4059         (reduc_splus_<mode>): Likewise.
4060         (aarch64_addvv2di): Likewise.
4061         (reduc_uplus_v2di): Likewise.
4062         (reduc_splus_v2di): Likewise.
4063         (aarch64_addvv2si): Likewise.
4064         (reduc_uplus_v2si): Likewise.
4065         (reduc_splus_v2si): Likewise.
4066         (reduc_<sur>plus_<mode>): New.
4067         (reduc_<sur>plus_v2di): Likewise.
4068         (reduc_<sur>plus_v2si): Likewise.
4069         (reduc_<sur>plus_v4sf): Likewise.
4070         (aarch64_addpv4sf): Likewise.
4071         * config/aarch64/arm_neon.h
4072         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4073         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4074         add UNSPEC_SADDV, UNSPEC_UADDV.
4075         (SUADDV): New.
4076         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4078 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4080         * config/aarch64/arm_neon.h
4081         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4083 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4085         * config/aarch64/aarch64-builtins
4086         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4088 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4090         * config/aarch64/aarch64-simd-builtins.def
4091         (reduc_smax_): New.
4092         (reduc_smin_): Likewise.
4093         (reduc_umax_): Likewise.
4094         (reduc_umin_): Likewise.
4095         (reduc_smax_nan_): Likewise.
4096         (reduc_smin_nan_): Likewise.
4097         (fmax): Remove.
4098         (fmin): Likewise.
4099         (smax): Update for V2SF, V4SF and V2DF modes.
4100         (smin): Likewise.
4101         (smax_nan): New.
4102         (smin_nan): Likewise.
4103         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4104         (<su><maxmin><mode>3): ...This, refactor.
4105         (s<maxmin><mode>3): New.
4106         (<maxmin_uns><mode>3): Likewise.
4107         (reduc_<maxmin_uns>_<mode>): Refactor.
4108         (reduc_<maxmin_uns>_v4sf): Likewise.
4109         (reduc_<maxmin_uns>_v2si): Likewise.
4110         (aarch64_<fmaxmin><mode>: Remove.
4111         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4112         new builtin names.
4113         (vmin<q>_f<32,64>): Likewise.
4114         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4115         (FMAXMIN): New.
4116         (su): Add mappings for smax, smin, umax, umin.
4117         (maxmin): New.
4118         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4119         (FMAXMIN): Rename as...
4120         (FMAXMIN_UNS): ...This.
4121         (maxminv): Remove.
4122         (fmaxminv): Likewise.
4123         (fmaxmin): Likewise.
4124         (maxmin_uns): New.
4125         (maxmin_uns_op): Likewise.
4127 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4129         * config/aarch64/arm_neon.h
4130         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4131         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4132         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4134 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4136         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4137         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4139 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4141         * config/aarch64/aarch64-simd.md
4142         (vcond<mode>_internal): Handle special cases for constant masks.
4143         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4144         (vcondu<mode><mode>): Likewise.
4145         (vcond<v_cmp_result><mode>): New.
4147 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4149         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4150         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4151         * config/aarch64/aarch64-simd-builtins.def
4152         (cmeq): Update to BUILTIN_VALLDI.
4153         (cmgt): Likewise.
4154         (cmge): Likewise.
4155         (cmle): Likewise.
4156         (cmlt): Likewise.
4157         * config/aarch64/arm_neon.h
4158         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4159         to builtins or C as appropriate.
4161 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4163         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4164         (cmgeu): ...This.
4165         (cmhi): Rename to...
4166         (cmgtu): ...This.
4167         * config/aarch64/aarch64-simd.md
4168         (simd_mode): Add SF.
4169         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4170         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4171         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4172         (cstore<mode>_neg): ...This.
4173         * config/aarch64/iterators.md
4174         (VALLF): new.
4175         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4176         (COMPARISONS): New.
4177         (UCOMPARISONS): Likewise.
4178         (optab): Add missing comparisons.
4179         (n_optab): New.
4180         (cmp_1): Likewise.
4181         (cmp_2): Likewise.
4182         (CMP): Likewise.
4183         (cmp): Remove.
4184         (VCMP_S): Likewise.
4185         (VCMP_U): Likewise.
4186         (V_cmp_result): Add DF, SF modes.
4187         (v_cmp_result): Likewise.
4188         (v): Likewise.
4189         (vmtype): Likewise.
4190         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4192 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4194         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4195         define_insn to define_insn_and_split.
4196         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4197         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4198         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4199         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4200         (thumb2_negscc): Likewise.
4202 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4204         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4206 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4208         * config/arm/thumb2.md: Remove trailing whitespaces.
4210 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4212         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4213         Use gen_int_mode rather than GEN_INT.
4215 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4217         * value-prof.c (stream_in_histogram_value): Remove the strayed
4218         debug_gimple_stmt.
4220 2013-04-30  Richard Biener  <rguenther@suse.de>
4222         PR middle-end/57122
4223         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4225 2013-04-30  Richard Biener  <rguenther@suse.de>
4227         PR middle-end/57107
4228         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4230 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4232         PR rtl-optimization/56957
4233         PR rtl-optimization/57105
4234         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4235         variable.  Use just INSN_UID for determining whether an insn
4236         should be only disconnected from the insn stream.
4237         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4239 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4241         PR tree-optimization/57104
4242         * tsan.c (instrument_expr): Don't instrument accesses to
4243         DECL_HARD_REGISTER VAR_DECLs.
4245 2013-04-30  Richard Biener  <rguenther@suse.de>
4247         * function.h (loops_for_fn): New inline function.
4248         (set_loops_for_fn): Likewise.
4249         * cfgloop.h (place_new_loop): Add struct function parameter.
4250         (get_loop): Likewise.
4251         (get_loops): Likewise.
4252         (number_of_loops): Likewise.
4253         (fel_next): Adjust.
4254         (fel_init): Likewise.
4255         * cfg.c (get_loop_copy): Adjust.
4256         * cfgloop.c (flow_loops_dump): Likewise.
4257         (record_loop_exits): Likewise.
4258         (verify_loop_structure): Likewise.
4259         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4260         (estimate_reg_pressure_cost): Likewise.
4261         (mark_loop_exit_edges): Likewise.
4262         * cfgloopmanip.c (place_new_loop): Likewise.
4263         (add_loop): Likewise.
4264         (duplicate_loop): Likewise.
4265         * graph.c (draw_cfg_nodes): Likewise.
4266         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4267         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4268         (extract_affine_chrec): Likewise.
4269         (build_scop_iteration_domain): Likewise.
4270         * graphite.c (graphite_initialize): Likewise.
4271         * ira-build.c (create_loop_tree_nodes): Likewise.
4272         (more_one_region_p): Likewise.
4273         (rebuild_regno_allocno_maps): Likewise.
4274         (mark_loops_for_removal): Likewise.
4275         (mark_all_loops_for_removal): Likewise.
4276         (remove_unnecessary_regions): Likewise.
4277         (ira_build): Likewise.
4278         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4279         * loop-init.c (fix_loop_structure): Likewise.
4280         (gate_rtl_move_loop_invariants): Likewise.
4281         (gate_rtl_unswitch): Likewise.
4282         (gate_rtl_unroll_and_peel_loops): Likewise.
4283         (rtl_doloop): Likewise.
4284         * lto-streamer-in.c (input_cfg): Likewise.
4285         * lto-streamer-out.c (output_cfg): Likewise.
4286         * modulo-sched.c (sms_schedule): Likewise.
4287         * predict.c (tree_estimate_probability): Likewise.
4288         (tree_estimate_probability_driver): Likewise.
4289         (estimate_loops): Likewise.
4290         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4291         (move_sese_region_to_fn): Likewise.
4292         (debug_loop_num): Likewise.
4293         * tree-chrec.c (chrec_evaluate): Likewise.
4294         (hide_evolution_in_other_loops_than_loop): Likewise.
4295         (chrec_component_in_loop_num): Likewise.
4296         (reset_evolution_in_loop): Likewise.
4297         (evolution_function_is_invariant_rec_p): Likewise.
4298         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4299         * tree-inline.c (copy_loops): Likewise.
4300         (copy_cfg_body): Likewise.
4301         (tree_function_versioning): Likewise.
4302         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4303         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4304         Likewise.
4305         (add_to_evolution_1): Likewise.
4306         (scev_const_prop): Likewise.
4307         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4308         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4309         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4310         (tree_ssa_lim_initialize): Likewise.
4311         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4312         (verify_loop_closed_ssa): Likewise.
4313         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4314         (tree_ssa_loop_im): Likewise.
4315         (tree_ssa_loop_unswitch): Likewise.
4316         (tree_vectorize): Likewise.
4317         (check_data_deps): Likewise.
4318         (tree_ssa_loop_ivcanon): Likewise.
4319         (tree_ssa_loop_bounds): Likewise.
4320         (tree_complete_unroll): Likewise.
4321         (tree_complete_unroll_inner): Likewise.
4322         (tree_parallelize_loops): Likewise.
4323         (tree_ssa_loop_prefetch): Likewise.
4324         (tree_ssa_loop_ivopts): Likewise.
4325         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4326         * tree-vectorizer.c (vectorize_loops): Likewise.
4328 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4330         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4331         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4332         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4333         with EABI_LINK_SPEC.
4335 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4337         PR target/44578
4338         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4339         alternative.
4341 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4343         PR target/57097
4344         * lra-constraints.c (process_alt_operands): Discourage a bit more
4345         using memory for pseudos.  Print cost dump for alternatives.
4346         Modify cost values for conflicts with early clobbers.
4347         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4349 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4351         PR target/57098
4352         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4354 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4356         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4357         from/to S register.
4358         (movdi_aarch64): Support LDR/STR from/to D register.
4360 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4362         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4363         or higher by default.
4365 2013-04-29  Richard Biener  <rguenther@suse.de>
4367         PR middle-end/57075
4368         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4369         even if not adding abnormal edges for calls that can make
4370         abnormal gotos.
4372 2013-04-29  Richard Biener  <rguenther@suse.de>
4374         PR middle-end/57103
4375         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4376         TREE_BLOCK.
4377         (move_stmt_r): Remove redundant checking.
4379 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4381         PR bootstrap/57077
4382         * basic-block.h (apply_scale): New function.
4383         (apply_probability): Use apply_scale.
4384         * gimple-streamer-in.c (input_bb): Ditto.
4385         * lto-streamer-in.c (input_cfg): Ditto.
4386         * lto-cgraph.c (merge_profile_summaries): Ditto.
4387         * tree-optimize.c (execute_fixup_cfg): Ditto.
4388         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4389         (copy_edges_for_bb): Ditto.
4390         (copy_cfg_body): Ditto.
4392 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4394         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4395         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4396         (tail_merge_optimize): Handle current_loops == NULL.
4398 2013-04-26  Jeff Law  <law@redhat.com>
4400         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4401         (simplify_cond_using_ranges): Generalize code to simplify
4402         COND_EXPRs where one argument is a constant and the other
4403         is an SSA_NAME created by an integral type conversion.
4405 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4407         * config/arm/arm.md (store_minmaxsi): Use only when
4408         optimize_insn_for_size_p.
4410 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4412         PR target/57108
4413         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4415 2013-04-29  Richard Biener  <rguenther@suse.de>
4417         PR middle-end/57089
4418         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4419         loop tree make sure to schedule a fixup for the child as well.
4420         (expand_omp_for_generic): Properly add loops.
4421         (expand_omp_for_static_nochunk): Likewise.
4422         (expand_omp_for_static_chunk): Likewise.
4423         (expand_omp_for): For the degenerate case fixup loops.
4424         (expand_omp_sections): Fix default bb placement in loops.
4425         (expand_omp_atomic_pipeline): Properly add loops.
4427 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4429         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4431 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4433         * tree-ssa-tail-merge.c: Update header comment.
4435 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4437         * config/aarch64/arm_neon.h
4438         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4439         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4440         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4441         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4442         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4443         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4444         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4445         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4447 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4449         * config/aarch64/aarch64-simd.md
4450         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4451         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4452         fix_trunc, fixuns_trunc.
4453         (ftrunc<VDQF:mode>2): New.
4454         * config/aarch64/iterators.md (optab): Add fix, fixuns.
4455         (fix_trunc_optab): New.
4457 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4459         * config/aarch64/aarch64-builtins.c
4460         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4461         iceilf, lround, iroundf.
4463 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4465         PR target/54349
4466         * config/i386/i386.h (enum ix86_tune_indices)
4467         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4468         New, split from X86_TUNE_INTER_UNIT_MOVES.
4469         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4470         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4471         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4472         (TARGET_INTER_UNIT_MOVES): Remove.
4473         * config/i386/i386.c (initial_ix86_tune_features): Update.
4474         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4475         (ix86_expand_convert_uns_didf_sse): Use
4476         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4477         (ix86_expand_vector_init_one_nonzero): Ditto.
4478         (ix86_expand_vector_init_interleave): Ditto.
4479         (inline_secondary_memory_needed): Return true for moves from SSE class
4480         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4481         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4482         * config/i386/constraints.md (Yi, Ym): Depend on
4483         TARGET_INTER_UNIT_MOVES_TO_VEC.
4484         (Yj, Yn): New constraints.
4485         * config/i386/i386.md (*movdi_internal): Change constraints of
4486         operand 1 from Yi to Yj and from Ym to Yn.
4487         (*movsi_internal): Ditto.
4488         (*movdf_internal): Ditto.
4489         (*movsf_internal): Ditto.
4490         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4491         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4492         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4493         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4494         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4495         * config/i386/sse.md (movdi_to_sse): Ditto.
4496         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4497         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4498         TARGET_INTER_UNIT_MOVES.
4499         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4500         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4501         instead of TARGET_INTER_UNIT_MOVES.
4502         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4503         operand 1 from Yi to Yj and from Ym to Yn.
4505 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4507         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4508         (float_truncate_hi_): Likewise.
4509         (float_extend_lo_): Likewise.
4510         (float_truncate_lo_): Likewise.
4511         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4512         (aarch64_float_extend_lo_v2df): Likewise.
4513         (vec_unpacks_hi_v4sf): Likewise.
4514         (aarch64_float_truncate_lo_v2sf): Likewise.
4515         (aarch64_float_truncate_hi_v4sf): Likewise.
4516         (vec_pack_trunc_v2df): Likewise.
4517         (vec_pack_trunc_df): Likewise.
4519 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4521         * config/aarch64/aarch64-builtins.c
4522         (aarch64_fold_builtin): Fold float conversions.
4523         * config/aarch64/aarch64-simd-builtins.def
4524         (floatv2si, floatv4si, floatv2di): New.
4525         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4526         * config/aarch64/aarch64-simd.md
4527         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4528         * config/aarch64/iterators.md (FLOATUORS): New.
4529         (optab): Add float, floatuns.
4530         (su_optab): Likewise.
4532 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4534         * config/aarch64/aarch64-builtins.c
4535         (aarch64_builtin_vectorized_function): Use new names for
4536         fcvt builtins.
4537         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4538         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4539         (fcvtzu): Split as...
4540         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4541         (fcvtas): Split as...
4542         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4543         (fcvtau): Split as...
4544         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4545         (fcvtps): Split as...
4546         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4547         (fcvtpu): Split as...
4548         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4549         (fcvtms): Split as...
4550         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4551         (fcvtmu): Split as...
4552         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4553         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4554         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4555         (lfrintnusf, lfrintnudf): Likewise.
4556         * config/aarch64/aarch64-simd.md
4557         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4558         define_insn.
4559         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4560         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4561         (fcvt_pattern): Likewise.
4563 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4565         * config/aarch64/aarch64-simd.md
4566         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4567         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4569 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4571         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4572         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4573         (vrnd<a,m,n,p>_f32): Implement using builtins.
4574         (vrnd<i,x><q>_f<32, 64>): New.
4576 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4578         * config/aarch64/aarch64-builtins.c
4579         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4580         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4581         (frintz): Rename to...
4582         (btrunc): ...this.
4583         (frintp): Rename to...
4584         (ceil): ...this.
4585         (frintm): Rename to...
4586         (floor): ...this.
4587         (frinti): Rename to...
4588         (nearbyint): ...this.
4589         (frintx): Rename to...
4590         (rint): ...this.
4591         (frinta): Rename to...
4592         (round): ...this.
4593         * config/aarch64/aarch64-simd.md
4594         (aarch64_frint<frint_suffix><mode>): Delete.
4595         (<frint_pattern><mode>2): Convert to insn.
4596         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4597         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4598         (frint_pattern): Likewise.
4599         (frint_suffix): Likewise.
4601 2013-04-29  Richard Biener  <rguenther@suse.de>
4603         PR tree-optimization/57081
4604         * loop-init.c: Include tree-flow.h.
4605         (loop_optimizer_finalize): Free number of iteration estimates.
4606         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4608 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
4610         PR tree-optimization/57083
4611         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4612         non-singleton shift count range, zero extend low_bound for uns case.
4614         * config/i386/predicates.md (general_vector_operand): New predicate.
4615         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4616         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4617         if they aren't nonimmediate operands.  If their original values
4618         satisfy const_vector_equal_evenodd_p, don't shift them.
4619         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4620         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
4621         if not nonimmediate_operand.
4622         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4623         instead of register_operand.
4624         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4626 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4628         * stor-layout.c (finalize_size_functions): Allocate a structure and
4629         reset cfun before dumping the functions.
4631 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
4633         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4635         PR target/56866
4636         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4637         use xop_pmacsdqh if uns_p.
4638         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4639         the immediate rotate count.
4641 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
4643         * rtl.h (struct rtx_def): Add comment for field jump.
4644         (LRA_SUBREG_P): New macro.
4645         * recog.c (register_operand): Check LRA_SUBREG_P.
4646         * lra.c (lra): Add note at the end of RTL code. Align non-empty
4647         stack frame.
4648         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4649         (lra_final_code_change): Skip subreg change for operators.
4650         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4651         if there are no operand changes.
4652         * lra-constraints.c (curr_insn_set): New.
4653         (match_reload): Set LRA_SUBREG_P.
4654         (emit_spill_move): Ditto.
4655         (check_and_process_move): Use curr_insn_set. Process only single
4656         set insns.  Don't initialize sec_mem_p and change_p.
4657         (simplify_operand_subreg): Use LRA_SUBREG_P.
4658         (reg_in_class_p): New function.
4659         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
4660         of #ifdef.  Add code to remove cycling.
4661         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4662         non-null disp.  Reload inner instead of disp when base and index
4663         are null.  Try to put lo_sum into register.
4664         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4665         (check_and_process_move): Move code for move cost check to
4666         simple_move_p.  Remove equiv_substitution.
4667         (simple_move_p): New function.
4668         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
4669         curr_insn_set.  Call check_and_process_move only for single set
4670         insns.  Use the new function.  Move call of check_and_process_move
4671         after operand equiv substitution and address process.
4673 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4675         PR go/57045
4676         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4677         with nonlocal goto receivers or returns twice calls, ignore
4678         unininitialized values from abnormal edges to nl goto receiver
4679         or returns twice call.
4681 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4683         PR tree-optimization/57051
4684         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4685         and VEC_RSHIFT_EXPR if shift count is a multiple of element
4686         bitsize.
4688 2013-04-26  Richard Biener  <rguenther@suse.de>
4690         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4691         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
4692         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4693         (fixup_loop_arrays_after_move): New function.
4694         (move_sese_region_to_fn): Properly outline the loop tree parts
4695         of the SESE region.
4697 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
4699         * config/i386/i386.md (type, unit): Fix long lines.
4701 2013-04-26  Richard Biener  <rguenther@suse.de>
4703         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4704         (lto-streamer-out.o): Likewise.
4705         * cfgloop.c (init_loops_structure): Export, add struct function
4706         argument and adjust.
4707         (flow_loops_find): Adjust.
4708         * cfgloop.h (enum loop_estimation): Add EST_LAST.
4709         (init_loops_structure): Declare.
4710         * lto-streamer-in.c: Include cfgloop.h.
4711         (input_cfg): Input the loop tree.
4712         * lto-streamer-out.c: Include cfgloop.h.
4713         (output_cfg): Output the loop tree.
4714         (output_struct_function_base): Do not drop PROP_loops.
4716 2013-03-26  Richard Biener  <rguenther@suse.de>
4718         * tree-cfg.c (execute_build_cfg): Build the loop tree.
4719         (pass_build_cfg): Provide PROP_loops.
4720         (move_sese_region_to_fn): Remove loops that are outlined into fn
4721         for now.
4722         * tree-inline.c: Include cfgloop.h.
4723         (initialize_cfun): Do not drop PROP_loops.
4724         (copy_loops): New function.
4725         (copy_cfg_body): Copy loop structure.
4726         (tree_function_versioning): Initialize destination loop tree.
4727         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4728         (pass_parallelize_loops): Do IL verification.
4729         * loop-init.c (loop_optimizer_init): Fixup loops if required.
4730         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4731         the CFG make sure we fixup loops as well.
4732         * tree-ssa-tail-merge.c: Include cfgloop.h.
4733         (replace_block_by): When merging loop latches mark loops for fixup.
4734         * lto-streamer-out.c (output_struct_function_base): Drop
4735         PROP_loops for now.
4736         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4737         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4738         * ipa-split.c: Include cfgloop.h.
4739         (split_function): Add the new return block to the loop tree root.
4740         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4741         whether we have removed the forwarder block.
4742         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4743         * cfgloop.h (place_new_loop): Declare.
4744         * cfgloopmanip.c (place_new_loop): Export.
4745         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4746         (tree-switch-conversion.o): Likewise.
4747         (tree-complex.o): Likewise.
4748         (tree-inline.o): Likewise.
4749         (tree-ssa-tailmerge.o): Likewise.
4750         (ipa-split.o): Likewise.
4751         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4752         (tree-ssa-copy.o): Likewise.
4753         * tree-switch-conversion.c: Include cfgloop.h
4754         (process_switch): If we emit a bit-test cascade, schedule loops
4755         for fixup.
4756         * tree-complex.c: Include cfgloop.h.
4757         (expand_complex_div_wide): Properly add new basic-blocks to loops.
4758         * asan.c: Include cfgloop.h.
4759         (create_cond_insert_point): Properly add new basic-blocks to
4760         loops, schedule loop fixup.
4761         * cfgloop.c (verify_loop_structure): Check that looks are not
4762         marked for fixup.
4763         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4764         to loops.
4765         (expand_omp_for_generic): Likewise.
4766         (expand_omp_sections): Likewise.
4767         (expand_omp_atomic_pipeline): Schedule loops for fixup.
4768         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4769         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4770         is initialized, not when loops are present.
4771         * tree-parloops.c (parallelize_loops): Remove checking here.
4772         * passes.c (init_optimization_passes): Schedule a copy-propagation
4773         pass before complete unrolling of inner loops.
4775 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4777         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4778         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4779         (colorize_init): Add argument to _WIN32 version.
4780         * toplev.c: Include diagnostic-color.h.
4781         (process_options): Default to -fdiagnostics-color=auto if
4782         GCC_COLORS env var is in the environment.
4783         * common.opt (fdiagnostics-color=): Add Var and Init.
4784         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4785         env var is in the environment, the default is auto rather than never.
4787         * diagnostic.h (file_name_as_prefix): Add context argument.
4788         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
4789         the string as locus.
4790         * langhooks.c (lhd_print_error_function): Adjust caller.
4792 2013-04-25  Lawrence Crowl  <crowl@google.com>
4794         * var-tracking.c (shared_hash_def::htab):
4795         Change type to hash_table.  Update dependent calls and types.
4797 2013-04-25  Lawrence Crowl  <crowl@google.com>
4799         * Makefile.in: Update as needed below.
4801         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4802         Move declaration to after the type's method definitons.
4804         * attribs.c (htab_t scoped_attributes::attribute_hash):
4805         Change type to hash_table.  Update dependent calls and types.
4807         * bitmap.c (htab_t bitmap_desc_hash):
4808         Change type to hash_table.  Update dependent calls and types.
4810         * cselib.c (htab_t cselib_hash_table):
4811         Change type to hash_table.  Update dependent calls and types.
4813         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4814         (hash_string_slot_node): Move implementation into lto-streamer.h
4815         struct string_slot_hasher.
4816         (eq_string_slot_node): Likewise.
4818         * data-streamer-out.c: Update output_block::string_hash_table
4819         dependent calls and types.
4821         * dwarf2cfi.c (htab_t trace_index):
4822         Change type to hash_table.  Update dependent calls and types.
4824         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4825         Change type to hash_table.  Update dependent calls and types.
4826         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4827         (htab_t optimize_external_refs::map): Likewise.
4828         (htab_t output_comp_unit::extern_map): Likewise.
4829         (htab_t output_comdat_type_unit::extern_map): Likewise.
4830         (htab_t output_macinfo::macinfo_htab): Likewise.
4831         (htab_t optimize_location_lists::htab): Likewise.
4832         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4834         * except.c (htab_t ehspec_hash_type):
4835         Change type to hash_table.  Update dependent calls and types.
4836         (assign_filter_values::ttypes): Likewise.
4837         (assign_filter_values::ehspec): Likewise.
4838         (sjlj_assign_call_site_values::ar_hash): Likewise.
4839         (convert_to_eh_region_ranges::ar_hash): Likewise.
4841         * gcse.c (htab_t pre_ldst_table):
4842         Change type to hash_table.  Update dependent calls and types.
4844         * ggc-common.c (htab_t saving_htab):
4845         Change type to hash_table.  Update dependent calls and types.
4846         (htab_t loc_hash): Likewise.
4847         (htab_t ptr_hash): Likewise.
4848         (call_count): Rename ggc_call_count.
4849         (call_alloc): Rename ggc_call_alloc.
4850         (loc_descriptor): Rename make_loc_descriptor.
4851         (add_statistics): Rename ggc_add_statistics.
4853         * ggc-common.c (saving_htab):
4854         Change type to hash_table.  Update dependent calls and types.
4856         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4857         (push_gimplify_context): Likewise.
4858         (pop_gimplify_context): Likewise.
4859         (struct gimple_temp_hash_elt): Added.
4860         (struct gimplify_hasher): Likewise.
4861         (struct gimplify_ctx.temp_htab):
4862         Change type to hash_table.  Update dependent calls and types.
4864         * gimple-fold.c: Include gimplify-ctx.h.
4866         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4867         Change type to hash_table.  Update dependent calls and types.
4868         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4869         avoid potential global name collision.
4871         * gimplify.c: Include gimplify-ctx.h.
4872         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4873         (htab_t gimplify_ctx::temp_htab):
4874         Update dependent calls and types for new type hash_table.
4875         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4876         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4878         * gimplify-ctx.h: New.
4879         (struct gimple_temp_hash_elt): Move from gimplify.c.
4880         (class gimplify_hasher): New.
4881         (struct gimplify_ctx): Move from gimple.h.
4882         (htab_t gimplify_ctx::temp_htab):
4883         Change type to hash_table.  Update dependent calls and types.
4885         * graphite-clast-to-gimple.c: Include graphite-htab.h.
4886         (htab_t ivs_params::newivs_index):
4887         Change type to hash_table.  Update dependent calls and types.
4888         (htab_t ivs_params::params_index): Likewise.
4889         (htab_t print_generated_program::params_index): Likewise.
4890         (htab_t gloog::newivs_index): Likewise.
4891         (htab_t gloog::params_index): Likewise.
4893         * graphite.c: Include graphite-htab.h.
4894         4htab_t graphite_transform_loops::bb_pbb_mapping):
4895         Change type to hash_table.  Update dependent calls and types.
4897         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4898         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4899         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4901         * graphite-dependences.c: Include graphite-htab.h.
4902         (loop_is_parallel_p): Change hash table type of parameter.
4904         * graphite-htab.h: New.
4905         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4906         (extern find_pbb_via_hash): Move from graphite-poly.h.
4907         (extern loop_is_parallel_p): Move from graphite-poly.h.
4908         (extern get_loop_body_pbbs): Move from graphite-poly.h.
4910         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4911         (extern loop_is_parallel_p): Move to graphite-htab.h.
4912         (extern get_loop_body_pbbs): Move to graphite-htab.h.
4914         * haifa-sched.c (htab_t delay_htab):
4915         Change type to hash_table.  Update dependent calls and types.
4916         (htab_t delay_htab_i2): Likewise.
4918         * ira-color.c (htab_t allocno_hard_regs_htab):
4919         Change type to hash_table.  Update dependent calls and types.
4921         * ira-costs.c (htab_t cost_classes_htab):
4922         Change type to hash_table.  Update dependent calls and types.
4924         * loop-invariant.c (htab_t merge_identical_invariants::eq):
4925         Change type to hash_table.  Update dependent calls and types.
4927         * loop-iv.c (htab_t bivs):
4928         Change type to hash_table.  Update dependent calls and types.
4930         * loop-unroll.c (htab_t opt_info::insns_to_split):
4931         Change type to hash_table.  Update dependent calls and types.
4932         (htab_t opt_info::insns_with_var_to_expand): Likewise.
4934         * lto-streamer.h (struct string_slot): Move from data-streamer.h
4935         (struct string_slot_hasher): New.
4936         (htab_t output_block::string_hash_table):
4937         Change type to hash_table.  Update dependent calls and types.
4939         * lto-streamer-in.c (freeing_string_slot_hasher): New.
4940         (htab_t file_name_hash_table):
4941         Change type to hash_table.  Update dependent calls and types.
4943         * lto-streamer-out.c: Update output_block::string_hash_table dependent
4944         calls and types.
4946         * lto-streamer.c (htab_t tree_htab):
4947         Change type to hash_table.  Update dependent calls and types.
4949         * omp-low.c: Include gimplify-ctx.h.
4951         * passes.c (htab_t name_to_pass_map):
4952         Change type to hash_table.  Update dependent calls and types.
4953         (pass_traverse): Rename to passes_pass_traverse.
4955         * plugin.c (htab_t event_tab):
4956         Change type to hash_table.  Update dependent calls and types.
4958         * postreload-gcse.c (htab_t expr_table):
4959         Change type to hash_table.  Update dependent calls and types.
4960         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4962         * sese.c (debug_rename_map_1): Make extern.
4963         (htab_t copy_bb_and_scalar_dependences::rename_map):
4964         Change type to hash_table.  Update dependent calls and types.
4966         * sese.h (extern debug_rename_map): Move to .c file.
4968         * store-motion.c (htab_t store_motion_mems_table):
4969         Change type to hash_table.  Update dependent calls and types.
4971         * trans-mem.c (htab_t tm_new_mem_hash):
4972         Change type to hash_table.  Update dependent calls and types.
4974         * tree-browser.c (htab_t TB_up_ht):
4975         Change type to hash_table.  Update dependent calls and types.
4977         * tree-cfg.c (htab_t discriminator_per_locus):
4978         Change type to hash_table.  Update dependent calls and types.
4980         * tree-complex.c: Include tree-hasher.h
4981         (htab_t complex_variable_components):
4982         Change type to hash_table.  Update dependent calls and types.
4984         * tree-eh.c (htab_t finally_tree):
4985         Change type to hash_table.  Update dependent calls and types.
4987         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4988         struct int_tree_hasher.
4989         (extern int_tree_map_eq): Likewise.
4990         (uid_decl_map_hash): Removed.
4991         (extern decl_tree_map_eq): Likewise.
4993         * tree-hasher.h: New.
4994         (struct int_tree_hasher): New.
4995         (typedef int_tree_htab_type): New.
4997         * tree-inline.c: Include gimplify-ctx.h.
4999         * tree-mudflap.c: Include gimplify-ctx.h.
5001         * tree-parloops.c: Include tree-hasher.h.
5002         (htab_t eliminate_local_variables_stmt::decl_address):
5003         Change type to hash_table.  Update dependent calls and types.
5004         (htab_t separate_decls_in_region::decl_copies): Likewise.
5006         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5007         Change type to hash_table.  Update dependent calls and types.
5009         * tree-sra.c (candidates):
5010         Change type to hash_table.  Update dependent calls and types.
5012         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5013         in tree-flow.h.
5014         (int_tree_map_hash): Likewise.
5016         * tree-ssa-dom.c (htab_t avail_exprs):
5017         Change type to hash_table.  Update dependent calls and types.
5019         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5020         Change type to hash_table.  Update dependent calls and types.
5022         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5023         Change type to hash_table.  Update dependent calls and types.
5025         * tree-ssa-phiopt.c (seen_ssa_names):
5026         Change type to hash_table.  Update dependent calls and types.
5028         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5029         Change type to hash_table.  Update dependent calls and types.
5031         * tree-ssa-uncprop.c (equiv):
5032         Change type to hash_table.  Update dependent calls and types.
5034 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5036         PR rtl-optimization/57003
5037         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5038         call note_stores with kill_clobbered_value callback again after
5039         killing regs_invalidated_by_call.
5041 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5043         * config/aarch64/aarch64-simd.md
5044         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5045         (aarch64_simd_bsl<mode>): Likewise.
5046         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5048 2013-04-25  Marek Polacek  <polacek@redhat.com>
5050         PR tree-optimization/57066
5051         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5053 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5055         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5057 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5059         * config/aarch64/aarch64-builtins.c
5060         (aarch64_fold_builtin): New.
5061         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5062         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5063         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5064         * config/aarch64/arm_neon.h
5065         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5067 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5068             Tejas Belagod  <tejas.belagod@arm.com>
5070         * config/aarch64/aarch64-builtins.c
5071         (aarch64_gimple_fold_builtin): New.
5072         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5073         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5074         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5075         (addvv4sf): Update.
5076         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5078 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5080         * config/aarch64/aarch64.md
5081         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5083 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5085         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5086         (*ngcsi_uxtw): New pattern.
5088 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5089             Julian Brown  <julian@codesourcery.com>
5091         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5092         (TB_DREG): Add T_V4HF.
5093         (v4hf_UP): New macro.
5094         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5095         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5096         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5097         built-ins.
5098         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5099         (arm_vector_mode_supported_p): Handle V4HF.
5100         (arm_mangle_map): Handle V4HFmode.
5101         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5102         * config/arm/arm_neon_builtins.def: Add entries for
5103         vcvtv4hfv4sf, vcvtv4sfv4hf.
5104         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5105         (neon_vcvtv4hfv4sf): Likewise.
5106         * config/arm/neon-gen.ml: Handle half-precision floating point
5107         features.
5108         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5109         * config/arm/arm_neon.h: Regenerate.
5110         * config/arm/neon.ml (type elts): Add F16.
5111         (type vectype): Add T_float16x4, T_floatHF.
5112         (type vecmode): Add V4HF.
5113         (type features): Add Requires_FP_bit feature.
5114         (elt_width): Handle F16.
5115         (elt_class): Likewise.
5116         (elt_of_class_width): Likewise.
5117         (mode_of_elt): Refactor.
5118         (type_for_elt): Handle F16, fix error messages.
5119         (vectype_size): Handle T_float16x4.
5120         (vcvt_sh): New function.
5121         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5122         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5123         (string_of_mode): Handle V4HF.
5124         * doc/arm-neon-intrinsics.texi: Regenerate.
5126 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5128         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5129         format specifier in 'X' case.
5131 2013-04-25  Alan Modra  <amodra@gmail.com>
5133         PR target/57052
5134         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5135         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5136         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5137         Repeat for many other rotate/shift and mask patterns using subregs.
5138         Name lshiftrt insns.
5139         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5140         on WORDS_BIG_ENDIAN.
5142 2013-04-25  Alan Modra  <amodra@gmail.com>
5144         * config.gcc: Support little-endian powerpc-linux targets.
5145         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5146         (LINK_OS_LINUX_SPEC): Define.
5147         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5148         Preserve MASK_LITTLE_ENDIAN.
5149         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5150         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5151         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5152         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5153         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5154         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5155         Correct fp word order for little-endian.  Don't shift toc entries
5156         smaller than a word for little-endian.
5157         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5158         (bswapdi2 splits): Correct low-part subreg for little-endian.
5159         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5160         low/high where such is correct only for be.
5161         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5162         little-endian for -mcall-aixdesc.
5164 2013-04-25  Alan Modra  <amodra@gmail.com>
5166         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5167         replace_equiv_address_nv.
5169 2013-04-25  Alan Modra  <amodra@gmail.com>
5171         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5173 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5175         Revert:
5176         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5177         * rtl.h (struct rtx_def): ...
5179 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5181         PR rtl-optimizations/57046
5182         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5183         for multi-reg splits.
5185 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5187         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5189 2013-04-24  Sterling Augustine  <saugustine@google.com>
5191         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5192         (comp_dir_string, debug_str_dwo_section): New.
5193         (DEBUG_STR_DWO_SECTION): Rename to ...
5194         (DEBUG_DWO_STR_SECTION): ... this.
5195         (DEBUG_NORM_STR_SECTION): Delete.
5196         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5197         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5198         (find_AT_string): Move most logic to ...
5199         (find_AT_string_in_table): ... here.  New.
5200         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5201         add_skeleton_AT_string.  Delete logic.
5202         (output_skeleton_debug_sections): Remove call to
5203         add_top_level_skeleton_die_attrs.
5204         (add_comp_dir_attribute): Move logic to comp_dir_string.
5205         (dwarf2out_init): Initialize debug_str_dwo_section.
5206         (output_indirect_string): Call find_string_form.
5207         (output_indirect_strings): Rewrite.
5208         (prune_unused_types): Empty skeleton_debug_str_hash.
5209         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5210         (dwarf2out_finish):  Call output_indirect_strings.
5212 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5214         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5216 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5218         * rtl.h (struct rtx_def): Add comment for field jump.
5219         (LRA_SUBREG_P): New macro.
5220         * recog.c (register_operand): Check LRA_SUBREG_P.
5221         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5222         stack frame.
5223         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5224         (lra_final_code_change): Skip subreg change for operators.
5225         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5226         if there are no operand changes.
5227         * lra-constraints.c (curr_insn_set): New.
5228         (match_reload): Set LRA_SUBREG_P.
5229         (emit_spill_move): Ditto.
5230         (check_and_process_move): Use curr_insn_set. Process only single
5231         set insns.  Don't initialize sec_mem_p and change_p.
5232         (simplify_operand_subreg): Use LRA_SUBREG_P.
5233         (reg_in_class_p): New function.
5234         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5235         of #ifdef.  Add code to remove cycling.
5236         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5237         non-null disp.  Reload inner instead of disp when base and index
5238         are null.  Try to put lo_sum into register.
5239         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5240         (check_and_process_move): Move code for move cost check to
5241         simple_move_p.  Remove equiv_substitution.
5242         (simple_move_p): New function.
5243         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5244         curr_insn_set.  Call check_and_process_move only for single set
5245         insns.  Use the new function.  Move call of check_and_process_move
5246         after operand equiv substitution and address process.
5248 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5250         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5251         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5252         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5254 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5256         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5258 2013-04-24  Marek Polacek  <polacek@redhat.com>
5260         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5261         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5262         (select_loops_exit_conditions): Likewise.
5263         (number_of_iterations_for_all_loops): Likewise.
5264         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5265         (scev_analysis): Likewise.
5267 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5268             Chao-ying Fu <fu@mips.com>
5270         * config/mips/micromips.md (jraddiusp): New pattern.
5271         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5272         instruction if possible.
5274 2013-04-24  Alan Modra  <amodra@gmail.com>
5276         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5278 2013-04-24  Julian Brown  <julian@codesourcery.com>
5279             Chung-Lin Tang  <cltang@codesourcery.com>
5281         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5282         dependency behavior in enumeration type DIE generation. Add TODO note
5283         to comments about future DW_FORM_sdata/udata re-work of related code.
5285 2013-04-23  Lawrence Crowl  <crowl@google.com>
5287         * Makefile.in: Update as needed below.
5289         * hash-table.h (class hash_table):
5290         Correct many methods with parameter types compare_type to the correct
5291         value_type.  (Correct code was unlikely to notice the change.)
5292         (hash_table::elements_with_deleted) New.
5293         (class hashtable::iterator): New.
5294         (hashtable::begin()): New.
5295         (hashtable::end()): New.
5296         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5298         * statistics.c (statistics_hashes):
5299         Change type to hash_table.  Update dependent calls and types.
5301         * tree-into-ssa.c (var_infos):
5302         Change type to hash_table.  Update dependent calls and types.
5304         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5305         Change type to hash_table.  Update dependent calls and types.
5307         * tree-ssa-loop-im.c (struct mem_ref.refs):
5308         Change type to hash_table.  Update dependent calls and types.
5310         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5311         Change type to hash_table.  Update dependent calls and types.
5313         * tree-ssa-sccvn.c (vn_tables_s::nary):
5314         Change type to hash_table.  Update dependent calls and types.
5315         (vn_tables_s::phis): Likewise.
5316         (vn_tables_s::references): Likewise.
5318         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5319         (vn_reference_eq): Update parameter and return types.
5321         * tree-ssa-structalias.c (pointer_equiv_class_table):
5322         Change type to hash_table.  Update dependent calls and types.
5323         (location_equiv_class_table): Likewise.
5325         * tree-vect-data-refs.c: Consequential changes for making
5326         peeling a hash_table.
5328         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5329         (destroy_loop_vec_info): Dependent hash_table update.
5331         * tree-vectorizer.h (peeling_htab):
5332         Change type to hash_table.  Update dependent calls and types.
5334 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5336         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5337         to check the register content is equal or not.
5338         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5339         to assign register content record.
5340         * lra-eliminations.c (update_reg_eliminate): Use
5341         lra_update_reg_val_offset to update register content offset.
5342         * lra-int.h (struct lra_reg): Add offset member.
5343         (lra_reg_val_equal_p): New static inline function.
5344         (lra_update_reg_val_offset): New static inline function.
5345         (lra_assign_reg_val): New static inline function.
5346         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5347         to assign register content record.
5348         (initialize_lra_reg_info_element): Initial offset to zero.
5350 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5352         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5353         operands.  Record compression.
5355 2013-04-23  Xinliang David Li  <davidxl@google.com>
5357         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5359 2013-04-23  Richard Biener  <rguenther@suse.de>
5361         PR middle-end/57036
5362         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5363         parameter, only add abnormal goto edges from the copied body
5364         if the call could perform abnormal gotos.
5365         (copy_cfg_body): Adjust.
5367 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5369         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5371 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5373         * coretypes.h (gimple_stmt_iterator): Add struct to make
5374         compatible with C.
5376 2013-04-23  Richard Biener  <rguenther@suse.de>
5378         PR tree-optimization/57026
5379         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5380         from SSA names occuring in abnormal PHI nodes.
5382 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5384         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5386 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5388         * lto/lto.c (print_lto_report_1): Declare early.
5389         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5391 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5393         * common.opt (-flto-report-wpa): Add.
5394         * doc/invoke.texi (-flto-report-wpa): Add.
5395         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5396         (lto_main): dito.
5398 2013-04-22  Xinliang David Li  <davidxl@google.com>
5400         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5401         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5402         * Makefile.in: New dependency
5404             David Daney <ddaney.cavm@gmail.com>
5406         * configure.ac (gcc_cv_as_micromips_support):  Use the
5407         --fatal-warnings option.
5408         * configure: Regenerate.
5410 2013-04-22  Marek Polacek  <polacek@redhat.com>
5412         PR sanitizer/56990
5413         * tsan.c (instrument_expr): Don't instrument expression
5414         in case its size is zero.
5416 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
5418         PR target/57032
5419         Revert:
5420         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5422         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5424 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5426         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5427         (gimple_stmt_iterator): New typedef.
5428         * gimple.h (gimple_stmt_iterator): Rename to...
5429         (gimple_stmt_iterator_d): ... This.
5430         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5431         trees be valid for GIMPLE and GENERIC.
5432         (TARGET_GIMPLE_FOLD_BUILTIN): New.
5433         * gimple-fold.c (gimple_fold_call): Call target hook
5434         gimple_fold_builtin.
5435         * hooks.c (hook_bool_gsiptr_false): New.
5436         * hooks.h (hook_bool_gsiptr_false): New.
5437         * target.def (fold_stmt): New.
5438         * doc/tm.texi: Regenerate.
5440 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
5442         PR target/57018
5443         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5444         a set sp if no stack realignment.
5446 2013-04-22  Nick Clifton  <nickc@redhat.com>
5448         * config.gcc (tilegx-linux): Extend extra_objs rather than
5449         overwriting it.
5450         (tilepro-linux): Likewise.
5452 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5454         * config/aarch64/aarch64-builtins.c
5455         (CF): Remove.
5456         (CF0, CF1, CF2, CF3, CF4, CF10): New.
5457         (VAR<1-12>): Add MAP parameter.
5458         (BUILTIN_*): Likewise.
5459         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5460         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5461         (aarch64_ushl_n<mode>): Likewise.
5462         (aarch64_sshr_n<mode>): Likewise.
5463         (aarch64_ushr_n<mode>): Likewise.
5464         (aarch64_<maxmin><mode>): Likewise.
5465         (aarch64_sqrt<mode>): Likewise.
5466         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5467         (vshr<q>_n_*): Likewise.
5469 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5471         * config/aarch64/aarch64-builtins.c
5472         (aarch64_simd_builtin_type_mode): Handle SF types.
5473         (sf_UP): Define.
5474         (BUILTIN_GPF): Define.
5475         (aarch64_init_simd_builtins): Handle SF types.
5476         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5477         (frecps): Likewise.
5478         (frecpx): Likewise.
5479         * config/aarch64/aarch64-simd.md
5480         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5481         (aarch64_frecpe<mode>): New.
5482         (aarch64_frecps<mode>): Likewise.
5483         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5484         (v8type): Add frecp<esx>.
5485         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5486         (aarch64_frecps<mode>): Likewise.
5487         * config/aarch64/iterators.md (FRECP): New.
5488         (frecp_suffix): Likewise.
5489         * config/aarch64/arm_neon.h
5490         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5492 2013-04-22  Christian Bruel  <christian.bruel@st.com>
5494         PR target/56995
5495         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5496         (REG_CLASS_NAMES): Idem.
5497         (REG_CLASS_CONTENTS): Idem.
5498         (REGCLASS_HAS_FP_REG): Idem.
5499         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5500         (sh_conditional_register_usage): Idem.
5502 2013-04-21  Jeff Law  <law@redhat.com>
5504         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5505         (ssa_forward_propagate_and_combine): Use it.
5507 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5509         * lra.c: Update the flow chart diagram.
5511 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5513         PR rtl-optimization/56847
5514         * lra-constraints.c (process_alt_operands): Discourage alternative
5515         with non-matche doffsettable memory constraint fro memory with
5516         known offset.
5518 2013-04-19  Richard Biener  <rguenther@suse.de>
5520         PR tree-optimization/56982
5521         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5522         function.
5523         * gimplify.c (gimplify_call_expr): Notice special calls.
5524         (gimplify_modify_expr): Likewise.
5525         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5526         abnormal control flow receivers.
5527         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5528         in the same way as cfun->has_nonlocal_labels.
5529         (gimple_purge_dead_abnormal_call_edges): Likewise.
5530         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5531         receivers start a basic-block.
5533 2013-04-19  Richard Biener  <rguenther@suse.de>
5535         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5536         member ...
5537         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
5538         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5539         (SLP_TREE_LOAD_PERMUTATION): Add.
5540         (vect_transform_slp_perm_load): Adjust prototype.
5541         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5542         (vect_free_slp_instance): Likewise.
5543         (vect_create_new_slp_node): Likewise.
5544         (vect_supported_slp_permutation_p): Remove.
5545         (vect_slp_rearrange_stmts): Adjust.
5546         (vect_supported_load_permutation_p): Likewise.  Inline
5547         vect_supported_slp_permutation_p here.
5548         (vect_analyze_slp_instance): Compute load permutations per
5549         slp node instead of per instance.
5550         (vect_get_slp_defs): Adjust.
5551         (vect_transform_slp_perm_load): Likewise.
5552         (vect_schedule_slp_instance): Remove redundant code.
5553         (vect_schedule_slp): Remove hack for PR56270, add it ...
5554         * tree-vect-stmts.c (vectorizable_load): ... here, do not
5555         CSE loads for SLP.  Adjust.
5557 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5559         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5560         spelling in two comments.
5562 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5564         PR target/56797
5565         * config/arm/arm.c (load_multiple_sequence): Require SP
5566         as base register for loads if SP is in the register list.
5568 2013-04-19  Martin Jambor  <mjambor@suse.cz>
5570         PR tree-optimization/56718
5571         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5572         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5573         and made public.  Adjusted all callers.
5574         (ipa_intraprocedural_devirtualization): New function.
5575         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5576         (ipa_intraprocedural_devirtualization): Likewise.
5577         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5579 2013-04-19  Richard Biener  <rguenther@suse.de>
5581         PR tree-optimization/57000
5582         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5584 2013-04-19  Terry Guo  <terry.guo@arm.com>
5586         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5587         Replace with ...
5588         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
5589         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5590         (cortex_m4_fmacs): Use new reservations.
5591         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5593 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5595         PR rtl-optimization/56999
5596         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5597         related code.
5598         (lra_coalesce): Remove split_origin_bitmap and related code.
5599         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
5600         ranges if necessary.
5602 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
5604         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5605         New array.
5606         (ix86_expand_call): Remove clobbered_registers array and use
5607         x86_64_ms_sysv_extra_clobbered_registers instead.
5608         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5609         Declare here.
5610         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5611         predicate.
5612         * config/i386/i386.md (*call_rex64_ms_sysv): Use
5613         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
5614         (*call_value_rex64_ms_sysv): Ditto.
5616 2013-04-18  Cary Coutant  <ccoutant@google.com>
5618         * dwarf2out.c (output_pubnames): Check die_perennial_p of
5619         parent instead of die_mark.
5621 2013-04-18  Diego Novillo  <dnovillo@google.com>
5623         * gimple.c (create_gimple_tmp): New.
5624         (get_expr_type): New.
5625         (build_assign): New.
5626         (build_type_cast): New.
5627         * gimple.h (enum ssa_mode): Define.
5628         (gimple_seq_set_location): New.
5629         * asan.c (build_check_stmt): Change some gimple_build_* calls
5630         to use build_assign and build_type_cast.
5632 2013-04-18  Richard Biener  <rguenther@suse.de>
5634         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5635         handle negative step.  Remove redundant checks.
5636         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5637         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5638         for negative step and grouped loads fail to vectorize.
5640 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5642         * emit-rtl.c (reset_insn_used_flags): New function.
5643         (reset_all_used_flags): Use it.
5644         (verify_insn_sharing): New function.
5645         (verify_rtl_sharing): Fix verification for SEQUENCEs.
5647 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
5649         PR tree-optimization/56984
5650         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5651         and (x >> M) >= N don't register any assertion if N << M is the
5652         minimum value.
5654 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5656         * lower-subreg.c (resolve_simple_move): If called self-recursive,
5657         do not delete_insn insns that have not yet been emitted, only
5658         unlink them with remove_insn.
5659         * df-scan.c (df_insn_delete): Revert r197492.
5661 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
5663         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5664         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5666 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5668         * config/arm/arm.md (movsicc_insn): Convert define_insn into
5669         define_insn_and_split.
5670         (and_scc,ior_scc,negscc): Likewise.
5671         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5673 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5675         * config/arm/arm.c (use_return_insn): Return 0 for targets that
5676         can benefit from using a sequence of LDRD instructions in epilogue
5677         instead of a single LDM instruction.
5679 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5681         PR 45688
5682         * doc/extend.texi: Fix typo.
5684 2013-04-17  Richard Biener  <rguenther@suse.de>
5686         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5687         (vect_build_slp_tree): ... here.
5688         (vect_build_slp_tree_1): Compute which stmts of the SLP group
5689         match.  Remove special-casing of mismatched complex loads.
5690         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5691         re-try the match with swapped commutative operands.
5692         (vect_supported_load_permutation_p): Remove special-casing of
5693         mismatched complex loads.
5694         (vect_analyze_slp_instance): Adjust.
5696 2013-04-17  Richard Biener  <rguenther@suse.de>
5698         PR rtl-optimization/56921
5699         * cfgloop.h (struct loop): Add simple_loop_desc member.
5700         (struct niter_desc): Mark with GTY(()).
5701         (simple_loop_desc): Do not use aux field but simple_loop_desc.
5702         * loop-iv.c (get_simple_loop_desc): Likewise.
5703         (free_simple_loop_desc): Likewise.
5705         Revert
5706         2013-04-16  Richard Biener  <rguenther@suse.de>
5708         PR rtl-optimization/56921
5709         * loop-init.c (pass_rtl_move_loop_invariants): Add
5710         TODO_do_not_ggc_collect to todo_flags_finish.
5711         (pass_rtl_unswitch): Same.
5712         (pass_rtl_unroll_and_peel_loops): Same.
5713         (pass_rtl_doloop): Same.
5715 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5717         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5718         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5719         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5720         references.
5721         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5722         * tree-streamer.c (record_common_node): Adjust reference in comment.
5724 2013-04-17  Terry Guo  <terry.guo@arm.com>
5726         * config/arm/cortex-m4.md: Add a new bypass.
5728 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5730         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5731         New pattern.
5732         (*subs_<optab><mode>_multp2): New pattern.
5733         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5734         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5736 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5738         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5739         (*subs_mul_imm_<mode>): New pattern.
5741 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
5743         PR target/56948
5744         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5745         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
5746         (vsx_movti_32bit): Change j->wa to O->wa.
5748 2013-04-16  Richard Biener  <rguenther@suse.de>
5750         PR rtl-optimization/56921
5751         * loop-init.c (pass_rtl_move_loop_invariants): Add
5752         TODO_do_not_ggc_collect to todo_flags_finish.
5753         (pass_rtl_unswitch): Same.
5754         (pass_rtl_unroll_and_peel_loops): Same.
5755         (pass_rtl_doloop): Same.
5757 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
5759         * config/arm/arm.c (emit_multi_reg_push): New declaration
5760         for an existing function.
5761         (arm_emit_strd_push): New function.
5762         (arm_expand_prologue): Used here.
5763         (arm_emit_ldrd_pop): New function.
5764         (arm_expand_epilogue): Used here.
5765         (arm_get_frame_offsets): Update condition.
5766         (arm_emit_multi_reg_pop): Add a special case for load of a single
5767         register with writeback.
5769 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
5771         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5772         description.
5774 2013-04-16  Richard Biener  <rguenther@suse.de>
5776         PR tree-optimization/56756
5777         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5778         (first_mem_ref_loc): New.
5779         (execute_sm): Place the load temporarily before a previous
5780         access instead of in the latch edge to ensure its SSA dependencies
5781         are defined at points dominating the load.
5783 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
5785         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5786         correct fix by moving header and footer insn to the footer of
5787         the merged basic block.  Clear BB_END of the merged-away block.
5789         PR middle-end/43631
5790         * emit-rtl.c (make_note_raw): New function.
5791         (link_insn_into_chain): New static inline function.
5792         (add_insn): Use it.
5793         (add_insn_before, add_insn_after): Factor insn chain linking code...
5794         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5795         using link_insn_into_chain.
5796         (note_outside_basic_block_p): New helper function for emit_note_after
5797         and emit_note_before.
5798         (emit_note_after): Use nobb variant of add_insn_after if the note
5799         should not be contained in a basic block.
5800         (emit_note_before): Use nobb variant of add_insn_before if the note
5801         should not be contained in a basic block.
5802         (emit_note_copy): Use make_note_raw.
5803         (emit_note): Likewise.
5804         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
5805         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
5806         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
5807         the moved barrier the tail of the basic block it follows.
5808         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
5810 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
5812         PR tree-optimization/56962
5813         * gimple-ssa-strength-reduction.c (record_increment): Only set
5814         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5815         either rhs1 or rhs2 is equal to c->base_expr.
5817 2013-04-15  Richard Biener  <rguenther@suse.de>
5819         PR tree-optimization/56933
5820         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5821         member.
5822         (GROUP_READ_WRITE_DEPENDENCE): Remove.
5823         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5824         * tree-vect-data-refs.c (vect_analyze_group_access): Move
5825         dependence check ...
5826         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5827         ... here.
5828         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5829         GROUP_READ_WRITE_DEPENDENCE.
5831 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5833         * emit-rtl.c (reset_all_used_flags): New function.
5834         (verify_rtl_sharing): Call reset_all_used_flags before and after
5835         performing the checks.
5837 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5839         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5840         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5841         * config/arm/constraints.md (De): New constraint.
5842         * config/arm/neon.md (anddi3_neon): Delete.
5843         (neon_vand<mode>): Expand to standard anddi3 pattern.
5844         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5845         Move earlier in the file.
5846         (neon_inv_logic_op2): Likewise.
5847         (arm_anddi_operand_neon): New predicate.
5849 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5851         * configure.ac (gcc_cv_ld_as_needed): Set
5852         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5853         Use -z ignore, -z record on *-*-solaris2*.
5854         (HAVE_LD_AS_NEEDED): Update comment.
5855         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5856         * configure: Regenerate.
5857         * config.in: Regenerate.
5858         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5859         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5860         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5861         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5862         equivalents.  Fix markup.
5863         * doc/tm.texi: Regenerate.
5865 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
5867         * config/i386/i386.opt: New option mstack-protector-guard=.
5868         * config/i386/i386-opts.h: Add enum stack_protector_guard.
5869         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5870         TARGET_SSP_TLS_GUARD.
5871         * config/i386/i386.c (ix86_option_override_internal): Set
5872         ix86_stack_protector_guard.
5873         * config/i386/i386.md (stack_protect_set): Enable for
5874         TARGET_SSP_TLS_GUARD only.
5875         (stack_protect_set_<mode>): Ditto.
5876         (stack_protect_test): Ditto.
5877         (stack_protect_test_<mode>): Ditto.
5878         * doc/invoke.texi (i386 Option): Document.
5880 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5882         PR target/56890
5883         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5884         (S_MODES): Set H_MODE bit.
5885         (SF_MODES): Set only S_MODE and SF_MODE bits.
5886         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5887         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5888         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5889         <MODE_FLOAT>: Likewise.
5891 2013-04-15  Joey Ye  <joey.ye@arm.com>
5893         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5895 2013-04-15  Joey Ye  <joey.ye@arm.com>
5897         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5898         for real far jump.
5899         (thumb_far_jump_used_p): Count instruction size and set
5900         far_jump_used.
5902 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
5904         * reorg.c (fill_simple_delay_slots): Reindent block of code.
5905         * resource.c (mark_target_live_regs): Reformat conditional block.
5907 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
5909         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5910         notes, they are emitted only just before final.
5911         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5913 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
5915         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5916         * cfgrtl.c (delete_insn): Call it here instead.
5917         * lra-spills.c (lra_final_code_change): Use delete_insn.
5918         * haifa-sched.c (sched_remove_insn): Likewise.
5919         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5920         returning to the nop pool.
5921         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5922         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
5924 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
5926         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5927         * doc/tm.texi: Regenerated.
5929 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
5931         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5932         QImode checks.
5934 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
5936         * df-core.c (df_find_def): Compare register numbers.
5937         (df_find_use): Likewise.
5939 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
5941         PR target/56903
5942         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5943         lra_in_progress for return.
5945 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
5947         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5948         define_insn into define_insn_and_split and emit movsicc patterns.
5950 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
5952         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5954 2013-04-12  Richard Biener  <rguenther@suse.de>
5956         * tree-pass.h (TODO_do_not_ggc_collect): New.
5957         * passes.c (execute_one_ipa_transform_pass): Honor
5958         TODO_do_not_ggc_collect.
5959         (execute_one_pass): Likewise.
5961         Revert
5962         2013-04-10  Richard Biener  <rguenther@suse.de>
5964         * passes.c (init_optimization_passes): Remove reload pass.
5965         * ira.c (do_reload): Merge into ...
5966         (ira): ... this.
5967         (rest_of_handle_reload): Remove.
5968         (pass_reload): Likewise.
5969         * config/i386/i386.c (ix86_option_override): Refer to ira instead
5970         of reload for vzeroupper pass placement.
5972 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
5974         PR tree-optimization/56918
5975         PR tree-optimization/56920
5976         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5977         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
5978         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
5979         use wide_mul_with_sign method.
5981 2013-04-12  Richard Biener  <rguenther@suse.de>
5983         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5984         not be considered a gimple constant.
5986 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
5988         * fold-const.c (const_binop): Handle vector shifts by a scalar.
5989         (fold_binary_loc): Call const_binop also for mixed vector-scalar
5990         operations.
5992 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5993             Jakub Jelinek  <jakub@redhat.com>
5995         * opts.c: Include diagnostic-color.h.
5996         (common_handle_option): Handle OPT_fdiagnostics_color_.
5997         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5998         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5999         (diagnostic-color.o): New.
6000         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6001         (diagnostic_color_rule): New enum.
6002         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6003         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6004         the location string.
6005         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6006         either NULL, or color kind.
6007         * diagnostic-color.c: New file.
6008         * diagnostic-color.h: New file.
6009         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6010         arguments.
6011         * doc/invoke.texi (-fdiagnostics-color): Document.
6012         * pretty-print.h (pp_show_color): Define.
6013         (struct pretty_print_info): Add show_color field.
6014         * diagnostic.c: Include diagnostic-color.h.
6015         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6016         macros.  Colorize error:, warning: etc. strings and also the location
6017         string.
6018         (diagnostic_show_locus): Colorize the caret line.
6019         * pretty-print.c: Include diagnostic-color.h.
6020         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6021         inside of %< %> quotes or quoted through q format modifier.
6023 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6025         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6027 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6029         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6030         code in CC_NZ mode.
6031         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6032         pattern.
6034 2013-04-11  Marek Polacek  <polacek@redhat.com>
6036         PR tree-optimization/48184
6037         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6039 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6041         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6042         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6043         (skip_simple_arithmetic): Tidy up.
6044         * tree.h (skip_simple_constant_arithmetic): Declare.
6046 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6048         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6050 2013-04-11  Richard Biener  <rguenther@suse.de>
6052         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6053         generate vector constants.
6055 2013-04-11  Richard Biener  <rguenther@suse.de>
6057         PR tree-optimization/56878
6058         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6059         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6060         New function.
6061         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6062         Prefer to align the DR with the most invariant base address.
6064 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6066         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6067         comment.
6069 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6071         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6072         floating-point vector comparisons against 0.
6074 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6076         PR tree-optimization/56899
6077         * fold-const.c (extract_muldiv_1): Apply distributive law
6078         only if TYPE_OVERFLOW_WRAPS (ctype).
6080 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6082         PR target/56124
6083         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6084         loading has side effect.
6086 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6088         * config/sparc/sparc.c: Include tree-pass.h.
6089         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6090         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6091         head of file.  Change return type.  Split off gate function.
6092         (sparc_gate_work_around_errata): New function.
6093         (pass_work_around_errata): New pass definition.
6094         (insert_pass_work_around_errata) New pass insert definition to
6095         insert pass_work_around_errata just after delayed-branch scheduling.
6096         (sparc_option_override): Insert the pass.
6097         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6099 2013-04-10  David S. Miller  <davem@davemloft.net>
6101         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6102         or -mcpu=hypersparc.
6104         * target.def (cstore_mode): New hook.
6105         * target.h: Include insn-codes.h
6106         * targhooks.c: Likewise.
6107         (default_cstore_mode): New function.
6108         * targhooks.h: Declare it.
6109         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6110         * doc/tm.texi: Rebuild.
6111         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6112         target hook, rather than inspecting the insn_data.
6113         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6114         (TARGET_CSTORE_MODE): Redefine.
6115         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6116         result patterns.
6117         * config/sparc/predicates.md (cstore_result_operand): New special
6118         predicate.
6119         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6120         Use it for operand 0.
6121         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6122         (*snesi_special): Likewise.
6123         (*snesi_zero): Likewise.
6124         (*seqsi_zero): Likewise.
6125         (*sltu_insn): Likewise.
6126         (*sgeu_insn): Likewise.
6127         (*seqdi_special): Make operand 0 and comparison operation be of
6128         DImode.
6129         (*snedi_special): Likewise.
6130         (*snedi_special_vis3): Likewise.
6131         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6132         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6133         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6134         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6135         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6136         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6137         (*sltu_extend_sp64): Likewise.
6138         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6139         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6140         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6141         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6142         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6144 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6146         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6147         (aarch64_start_file): Use the new function.
6149 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6150             Jason Merrill  <jason@redhat.com>
6152         * common.opt: Add -gdwarf.
6153         * opts.c (common_handle_option): Handle it.
6154         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6156 2013-04-10  Richard Biener  <rguenther@suse.de>
6158         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6159         (execute_one_ipa_transform_pass): But unconditionally here.
6160         (execute_one_pass): And here.
6161         (init_optimization_passes): Remove reload pass.
6162         * tree-pass.h (TODO_ggc_collect): Remove.
6163         (pass_reload): Likewise.
6164         * ira.c (do_reload): Merge into ...
6165         (ira): ... this.
6166         (rest_of_handle_reload): Remove.
6167         (pass_reload): Likewise.
6168         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6169         of reload for vzeroupper pass placement.
6170         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6171         and todo_flags_finish of all passes.
6173 2013-04-10  Richard Biener  <rguenther@suse.de>
6175         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6176         first_const_oprnd field, rename first_def_type to first_op_type.
6177         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6178         (vect_get_and_check_slp_defs): Always use the type of the
6179         operand.  Allow mixed vect_external_def, vect_constant_def types.
6180         (vect_get_constant_vectors): Handle mixed vect_external_def,
6181         vect_constant_def types.
6183 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6185         PR tree-optimization/55524
6186         * tree-ssa-math-opts.c
6187         (convert_mult_to_fma): Don't use an fms construct
6188         when we don't have an fms operation, but fnma, and it looks
6189         likely that we'll be able to use the latter.
6191 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6193         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6194         function.
6195         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6196         inline fail caused by overwritable functions.
6198 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6200         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6201         unnecessary bits in the constant power of two case.
6203 2013-04-10  Richard Biener  <rguenther@suse.de>
6205         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6206         broken code swapping operands.
6207         (vect_build_slp_tree): Do not compute load permutations here.
6208         (vect_analyze_slp_instance): Compute load permutations here,
6209         after building the SLP tree.
6211 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6213         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6214         of next/prev_real_insn.
6216 2013-04-09  Jan Hubicka  <jh@suse.cz>
6218         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6219         Drop aliased parameter.
6220         (function_and_variable_visibility): Do not handle alias pairs.
6221         * cgraph.c (varpool_externally_visible_p): Update prototype.
6222         * varpool.c (varpool_add_new_variable): Update.
6224 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6226         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6228 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6230         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6232         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6234 2013-04-09  Marek Polacek  <polacek@redhat.com>
6236         PR tree-optimization/48762
6237         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6239 2013-04-09  Richard Biener  <rguenther@suse.de>
6241         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6242         dealing with cost.
6243         (vect_build_slp_tree): Likewise.
6244         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6245         calculating the cost of a SLP instance.
6246         (vect_analyze_slp_instance): Use it from here, after building
6247         the SLP tree.
6249 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6251         PR middle-end/56883
6252         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6253         expand_omp_for_static_chunk): Use simple_p = true in
6254         force_gimple_operand_gsi calls when assigning to addressable decls.
6256 2013-04-09  Jeff Law  <law@redhat.com>
6258         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6259         when the boolean was created by converting a wider object which
6260         had a boolean range.
6262 2013-04-09  Richard Biener  <rguenther@suse.de>
6264         * tree-vectorizer.h (slp_void_p): Remove.
6265         (slp_tree): Typedef before _slp_tree declaration.
6266         (struct _slp_tree): Use a vector of slp_tree as children.
6267         (vect_get_place_in_interleaving_chain): Remove.
6268         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6269         Move ...
6270         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6271         and make static.
6272         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6273         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6274         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6275         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6276         Use slp_node instead of slp_void_p and adjust.
6278 2013-04-09  Richard Biener  <rguenther@suse.de>
6280         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6281         work that is not necessary.
6283 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6285         PR tree-optimization/56854
6286         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6287         forward into clobber stmts if it would change MEM_REF lhs into
6288         non-MEM_REF.
6290 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6292         * tree.c (type_hash_lookup, type_hash_add): Make static.
6293         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6295 2013-04-09  Richard Biener  <rguenther@suse.de>
6297         * tree.h (unsave_expr_now): Remove.
6298         * tree-inline.c (mark_local_for_remap_r): Remove.
6299         (unsave_expr_1): Likewise.
6300         (unsave_r): Likewise.
6301         (unsave_expr_now): Likewise.
6302         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6303         (propagate_tree_value): Likewise.
6305 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6307         * doc/rtl.texi (sequence): Rewrite documentation to match the
6308         current use of SEQUENCE rtl objects.
6309         * rtl.def (SEQUENCE): Likewise.
6311         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6312         Update documentation.
6313         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6314         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6316         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6318 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6320         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6321         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6322         methods.
6323         (estimate_edge_size_and_time): Add comment to suggest using rounding
6324         methods.
6325         (estimate_node_size_and_time): Ditto.
6326         (remap_edge_change_prob): Use helper rounding divide methods.
6327         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6328         (gimple_mod_pow2_value_transform): Ditto.
6329         (gimple_mod_subtract_transform): Ditto.
6330         (gimple_ic_transform): Ditto.
6331         (gimple_stringops_transform): Ditto.
6332         * stmt.c (conditional_probability): Ditto.
6333         (emit_case_dispatch_table): Ditto.
6334         * lto-cgraph.c (merge_profile_summaries): Ditto.
6335         * tree-optimize.c (execute_fixup_cfg): Ditto.
6336         * cfgcleanup.c (try_forward_edges): Ditto.
6337         * cfgloopmanip.c (scale_loop_profile): Ditto.
6338         (loopify): Ditto.
6339         (duplicate_loop_to_header_edge): Ditto.
6340         (lv_adjust_loop_entry_edge): Ditto.
6341         * tree-vect-loop.c (vect_transform_loop): Ditto.
6342         * profile.c (compute_branch_probabilities): Ditto.
6343         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6344         * lto-streamer-in.c (input_cfg): Ditto.
6345         * gimple-streamer-in.c (input_bb): Ditto.
6346         * ipa-cp.c (update_profiling_info): Ditto.
6347         (update_specialized_profile): Ditto.
6348         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6349         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6350         rounding methods.
6351         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6352         (compute_trg_info): Ditto.
6353         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6354         (purge_dead_edges): Ditto.
6355         * loop-unswitch.c (unswitch_loop): Ditto.
6356         * cgraphclones.c (cgraph_clone_edge): Ditto.
6357         (cgraph_clone_node): Ditto.
6358         * tree-inline.c (copy_bb): Ditto.
6359         (copy_edges_for_bb): Ditto.
6360         (initialize_cfun): Ditto.
6361         (copy_cfg_body): Ditto.
6362         (expand_call_inline): Ditto.
6364 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6366         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6367         TARGET_CYGWIN64 by TARGET_64BIT.
6369 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6371         * config/epiphany/epiphany.md (GPR_1): New constant.
6372         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6373         * config/epiphany/epiphany.c (gen_compare_reg):
6374         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6375         is already in place.
6376         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6377         Don't require being called during rtl expansion; If y operlaps r0,
6378         return 0.
6379         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6380         (epiphany_expand_epilogue): Likewise.
6382         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6383         Don't use CC_FPmode for ORDERED / UNORDERED.
6384         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6386         * config/epiphany/constraints.md (CnL): New constraint.
6387         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6388         * config/epiphany/predicates.md (add_operand): Allow 1024.
6390         * config/epiphany/epiphany.md (logical_op): New code iterator.
6391         (op_mnc): New code attribute.
6392         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6393         (mov_f+1, mov_f+2): New peephole2 patterns.
6395         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6396         (cstoresi4): Also allow re-use of zero result when doing a NE
6397         comparison to a non-zero operand.
6398         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6400         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6401         Use gen_addsi3_i / gen_subsi3_i.
6403 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6405         PR c++/34949
6406         PR c++/50243
6407         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6408         contain anything but clobbers, at most one __builtin_stack_restore,
6409         optionally debug stmts and final resx, and if it has at least one
6410         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6411         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6412         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6413         which isn't defaut definition, remove them.
6414         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6415         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6416         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6417         with MEM_REF LHS with SSA_NAME address.
6419 2013-04-08  Jeff Law  <law@redhat.com>
6421         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6423 2013-04-08  Richard Biener  <rguenther@suse.de>
6425         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6426         extra newline.
6427         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6428         determined vector type.
6429         (vect_analyze_data_refs): Likewise.
6430         (vect_get_new_vect_var): Adjust.
6431         (vect_create_destination_var): Preserve SSA name versions.
6432         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6433         not dump anything here.
6435 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6437         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6438         Add member lr_slot_known.
6439         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6440         if necessary.
6441         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6442         Remove code that sets lr_slot_offset according to what a previous
6443         version of epiphany_emit_save_restore used to do.
6444         (epiphany_emit_save_restore): When doing an lr save or restore,
6445         set/verify lr_slot_known and lr_slot_offset.
6447 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
6449         PR target/54338
6450         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6451         in ALL_REGS.
6453 2013-04-08  Richard Biener  <rguenther@suse.de>
6455         * alias.c (find_base_term): Fix thinko in previous change.
6457 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6459         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6460         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6461         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
6462         if possible to compute val.
6463         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6464         For QImode integers don't require anything about precision.  Use
6465         const_with_all_bytes_same to find out if the constant doesn't have
6466         repeated bytes in it.
6468 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6470         * config/s390/s390.c (s390_expand_insv): Only accept insertions
6471         within mode size.
6473 2013-04-08  Marek Polacek  <polacek@redhat.com>
6475         PR rtl-optimization/48182
6476         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6477         value to 1.
6479 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6481         PR target/55487
6482         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6483         nuses, make sure we have a label.
6485 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6487         PR target/56843
6488         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6489         (rs6000_emit_swdiv_low_precision): Remove.
6490         (rs6000_emit_swdiv): Rewrite to handle between one and four
6491         iterations of Newton-Raphson generally; modify required number of
6492         iterations for some cases.
6493         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6495 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6497         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6498         set-but-unused variable.
6500         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6501         basic blocks of released function bodies garbage-collectable.
6503         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6504         (struct rtl_opt_pass): Add TODO_df_finish.
6506         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6508 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6510         * config/arm/constraints.md (q): New constraint.
6511         * config/arm/ldrdstrd.md: New file.
6512         * config/arm/arm.md (ldrdstrd.md) New include.
6513         (arm_movdi): Use "q" instead of "r" constraint
6514         for double-word memory access.
6515         (movdf_soft_insn): Likewise.
6516         * config/arm/vfp.md (movdi_vfp): Likewise.
6517         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6518         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6519         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6520         (mem_ok_for_ldrd_strd): Likewise.
6521         (output_move_double): Update assertion.
6523 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6525         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6527 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6529         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6530         define_insn_and_split.
6531         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6533 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6535         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6536         define_insn_and_split.
6537         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6538         (shiftsi3_compare): New pattern.
6539         (rrx): New pattern.
6540         * config/arm/unspecs.md (UNSPEC_RRX): New.
6542 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6544         * config/arm/arm.md (negdi_extendsidi): New pattern.
6545         (negdi_zero_extendsidi): Likewise.
6547 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6549         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6550         define_insn_and_split.
6551         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6552         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6554 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6556         * config/arm/arm.md (arm_subdi3): Convert define_insn into
6557         define_insn_and_split.
6558         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6559         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6561 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6563         * config/arm/arm.md (subsi3_carryin): New pattern.
6564         (subsi3_carryin_const): Likewise.
6565         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6566         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6568 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6570         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6572 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6574         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6575         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6577 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6579         * config/arm/arm.c (arm_expand_builtin): Change fcode
6580         type to unsigned int.
6582 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6584         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6586 2013-04-04  Ian Lance Taylor  <iant@google.com>
6588         * doc/standards.texi (Standards): The Go frontend supports the Go 1
6589         language standard.
6591 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6593         PR middle-end/56729
6594         * df-scan.c (df_insn_delete): Disable failing assert.
6596 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6598         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6599         New function prototype.
6600         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6601         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6602         (arm_builtin_vectorized_function): New function.
6604 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6606         * config/arm/arm_neon_builtins.def: New file.
6607         * config/arm/arm.c (neon_builtin_data): Move contents to
6608         arm_neon_builtins.def.
6609         (enum arm_builtins): Include neon builtin definitions.
6610         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6611         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6613 2013-04-04  Marek Polacek  <polacek@redhat.com>
6615         PR tree-optimization/48186
6616         * predict.c (maybe_hot_frequency_p): Return false if
6617         HOT_BB_FREQUENCY_FRACTION is 0.
6618         (cgraph_maybe_hot_edge_p): Likewise.
6620 2013-04-04  Richard Biener  <rguenther@suse.de>
6622         PR tree-optimization/56826
6623         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6624         more accurately.
6626 2013-04-04  Richard Biener  <rguenther@suse.de>
6628         PR tree-optimization/56213
6629         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6630         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6632 2013-04-04  Richard Biener  <rguenther@suse.de>
6634         PR tree-optimization/56837
6635         * tree-loop-distribution.c (classify_partition): For non-zero
6636         values require that the value has the same precision as its
6637         mode to be useful as memset value.
6639 2013-04-03  Nick Clifton  <nickc@redhat.com>
6641         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6642         (fmssf4): Use fmsf.s on E3V5 architectures.
6643         (fnmasf4): Use fnmaf.s on E3V5 architectures.
6644         (fnmssf4): Use fnmsf.s on E3V5 architectures.
6646 2013-04-03  Jeff Law  <law@redhat.com>
6648         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6649         (lra-eliminations.o): Likewise.
6651 2013-04-03  Teresa Johnson  <tejohnson@google.com>
6653         * gcov-io.c (compute_working_sets): Moved most of body of old
6654         compute_working_sets here from profile.c.
6655         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6656         (gcov_working_set_t): Moved typedef here from basic-block.h
6657         (compute_working_set): Declare.
6658         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6659         (get_working_sets): Renamed from compute_working_set,
6660         replace most of body with call to new compute_working_sets.
6661         (get_exec_counts): Replace call to compute_working_sets
6662         to get_working_sets.
6663         * profile.h (get_working_sets): Renamed from compute_working_set.
6664         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6665         to get_working_sets.
6666         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6667         * gcov-dump.c (dump_working_sets): New function.
6669 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
6671         * hwint.c (sext_hwi, zext_hwi): New functions.
6672         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6673         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6674         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6675         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6676         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6677         (sext_hwi, zext_hwi): New functions.
6679 2013-04-03  Jeff Law  <law@redhat.com>
6681         PR tree-optimization/56799
6682         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6683         back test for widening conversion erroneously dropped in prior change.
6685 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6687         PR target/56809
6688         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6689         instead of next_real_insn.
6691 2013-04-03  Marek Polacek  <polacek@redhat.com>
6693         PR sanitizer/55702
6694         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6696 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6698         PR target/56809
6699         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6700         next_real_insn.
6701         (thumb1_output_casesi): Likewise.
6702         (thumb2_output_casesi): Likewise.
6704 2013-04-03  Richard Biener  <rguenther@suse.de>
6706         PR tree-optimization/56817
6707         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6708         Split out ...
6709         (tree_unroll_loops_completely_1): ... new function to manually
6710         walk the loop tree, properly defering outer loops of unrolled
6711         loops to later iterations.
6713 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6715         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6716         (vectorizable_load): Likewise.
6717         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6718         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6720 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6722         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6723         BIT_FIELD_REF.
6725 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6727         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6729 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
6731         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6733 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6735         PR tree-optimization/56790
6736         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6737         folding.
6739 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6741         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6742         Handle VEC_MERGE.
6743         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6744         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6745         equal arguments.
6747 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
6749         PR c/19449
6750         * tree.h (force_folding_builtin_constant_p): New decl.
6751         * builtins.c (force_folding_builtin_constant_p): New variable.
6752         (fold_builtin_constant_p): Fold immediately also if
6753         force_folding_builtin_constant_p.
6755 2013-04-03  Richard Biener  <rguenther@suse.de>
6757         PR tree-optimization/56812
6758         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6759         DRs of the same interleaving chain are independent.
6761 2013-04-02  Jason Merrill  <jason@redhat.com>
6763         * gdbinit.in (pbb): Use debug fn.
6765 2013-04-02  Lawrence Crowl  <crowl@google.com>
6767         * sese.h (struct ivtype_map_elt_s): Remove unused.
6768         (extern debug_ivtype_map): Remove unused.
6769         (extern eq_ivtype_map_elts): Remove unused.
6770         * sese.c (debug_ivtype_map): Removed unused.
6771         (debug_ivtype_map_1): Removed unused.
6772         (debug_ivtype_elt): Remove unused.
6773         (eq_ivtype_map_elts): Remove unused.
6776 2013-04-02  Kai Tietz  <ktietz@redhat.com>
6778         PR target/52790
6779         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6780         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
6781         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6782         function.
6783         (legitimize_pe_coff_symbol): Likewise.
6784         (is_imported_p): New helper-function.
6785         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6786         for Windows x64 targets.
6787         (ix86_expand_prologue): Optimize for pe-coff targets.
6788         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6789         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6790         medium/large code-model.
6791         (legitimize_pic_address): Likewise.
6792         (legitimize_tls_address): Likewise.
6793         (ix86_expand_call): Likewise.
6794         (x86_output_mi_thunk): Likewise.
6795         (get_dllimport_decl): Add new beimport argument.
6796         (construct_plt_address): Don't assert for x64 pe-coff targets.
6797         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6798         targets.
6799         (SYMBOL_FLAG_STUBVAR): New macro.
6800         (SYMBOL_REF_STUBVAR_P): Likewise.
6801         * config/i386/winnt.c (stub_list): New structure.
6802         (stub_head): New local variable.
6803         (i386_pe_record_stub): New function.
6804         (i386_pe_file_end): Emit refptr-stubs.
6806 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
6808         PR rtl-optimization/56745
6809         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
6810         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
6812         PR c++/34949
6813         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6814         and both of them are MEM_REFs, just compare first argument for
6815         equality and attempt to deal even with differing offsets.
6817         PR c++/34949
6818         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6819         of gimple_clobber_p to be MEM_REF.
6820         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6821         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
6822         after gimplification.
6823         * asan.c (get_mem_ref_of_assignment): Don't instrument
6824         gimple_clobber_p stmts.
6825         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6826         gimple_clobber_p stmt if they have MEM_REF lhs and
6827         are dead because of another gimple_clobber_p stmt.
6828         * tree-ssa-live.c (clear_unused_block_pointer): Treat
6829         gimple_clobber_p stmts like debug stmts.
6830         (remove_unused_locals): Remove clobbers with MEM_REF lhs
6831         that refer to unused VAR_DECLs or uninitialized values.
6832         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6833         gimple_clobber_p stmts if they refer to removed parameters.
6834         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6835         formatting.
6837 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
6839         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6840         using SWI48 mode attribute.
6842 2013-04-02  Wei Mi  <wmi@google.com>
6844         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6845         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6846         *<rotate_insn><mode>3_mask in i386.md.
6848 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6850         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6852 2013-04-02  Richard Biener  <rguenther@suse.de>
6854         PR tree-optimization/56778
6855         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6856         Runtime alias tests are not supported for gather loads.
6857         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6858         stmts referenced from SSA operands before updating SSA form.
6860 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
6861             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6863         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
6864         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6865         * config/arm/cortex-a53.md: New file.
6866         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6867         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6868         * config/arm/arm.c (arm_issue_rate): Likewise.
6869         * config/arm/arm-tune.md: Regenerate
6870         * config/arm/arm-tables.opt: Regenerate.
6871         * config/arm/arm-cores.def: Add cortex-a53.
6873 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6875         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6876         non-static link.
6878 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
6880         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6881         scalar load/store operations using B/H registers.
6882         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6884 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
6886         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6887         scalar move.
6888         * config/aarch64/aarch64.c
6889         (aarch64_simd_scalar_immediate_valid_for_move): New.
6890         * config/aarch64/aarch64-protos.h
6891         (aarch64_simd_scalar_immediate_valid_for_move): New.
6892         * config/aarch64/constraints.md (Dh, Dq): New.
6893         * config/aarch64/iterators.md (hq): New.
6895 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6897         * reorg.c (get_branch_condition): Deal with conditional returns.
6898         (fill_simple_delay_slots): Remove dead code dealing with jumps.
6900 2013-04-01  Wei Mi  <wmi@google.com>
6902         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6903         Truncate operand 2 using %b asm operand modifier.
6904         (*<shift_insn><mode>3_mask): Ditto.
6905         (*<rotate_insn><mode>3_mask): Ditto.
6907 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
6909         PR middle-end/56798
6910         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6912 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6914         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6915         of next_real_insn.
6916         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6918 2013-03-30  Lawrence Crowl  <crowl@google.com>
6920         * dse.c (clear_alias_sets): Remove never set.
6921         (disqualified_clear_alias_sets): Remove never set.
6922         (clear_alias_mode_pool): Remove never set.
6923         (dse_step0): Remove condition that is never true.
6924         (canon_address): Remove condition that is never true.
6925         (dse_step7): Remove condition that is never true.
6926         (rest_of_handle_dse): Remove condition that is never true.
6927         (rest_of_handle_dse::did_global): Remove never read from above.
6928         (dse_step2_spill): Remove never called from above.
6929         (dse_step5_spill): Remove never called from above.
6931 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
6933         * doc/md.texi (Standard Names) <casesi>: Update documentation for
6934         JUMP_TABLE_DATA changes.
6935         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6936         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6937         (Insns) <jump_table_data>: New entry.
6938         * doc/tm.texi: Regenerate.
6940         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6942         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6943         for table jump at the end of a basic block using tablejump_p.
6944         * targhooks.c (default_invalid_within_doloop): Likewise.
6945         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6946         target hook implementation that is identical to the default hook.
6947         (rs6000_invalid_within_doloop): Remove.
6949         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6950         unused variable from tablejump_p call.
6952         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6953         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6954         (INSN_DELETED_P): Likewise.
6955         (emit_jump_table_data): New prototype.
6956         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6957         after 4th as unused.
6958         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6959         * sched-vis.c (print_insn): Likewise.
6960         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6961         insn for compatibility with back ends that use next_active_insn to
6962         identify jump table data.
6963         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6964         (remove_insn): Likewise.
6965         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6966         to be emitted.
6967         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6968         (emit_jump_table_data): New function.
6970         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6971         basic block, a JUMP_TABLE_DATA never is.
6972         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6973         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6974         off from code handling real insns.
6975         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6976         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6977         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6978         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6979         is not a NONDEBUG_INSN_P.
6980         * ira-costs.c (scan_one_insn): Likewise.
6981         * jump.c (mark_all_labels): Likewise.
6982         (mark_jump_label_1): Likewise.
6983         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6984         * lra.c (get_insn_freq): Expect all insns reaching here to be in
6985         a basic block.
6986         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6987         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6988         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6989         JUMP_TABLE_DATA_P insns.
6990         (calculate_elim_costs_all_insns): Likewise.
6991         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6992         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6993         (delete_output_reload): Code style fixups.
6994         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6995         insn flags on this non-insn.
6996         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6997         as scheduling barriers, for pre-change compatibility.
6998         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6999         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7001         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7002         redundant JUMP_TABLE_DATA_P test.
7003         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7004         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7005         (frv_for_each_packet): Likewise.
7006         * config/i386/i386.c (min_insn_size): Likewise.
7007         (ix86_avoid_jump_mispredicts): Likewise.
7008         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7009         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7010         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7011         (mips16_insn_length): Robustify.
7012         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7013         (mips16_split_long_branches): Likewise.
7014         * config/pa/pa.c (pa_combine_instructions): Likewise.
7015         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7016         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7017         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7018         as contributing to pool range lengths.
7019         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7020         Remove redundant JUMP_TABLE_DATA_P test.
7021         (sh_loop_align): Likewise.
7022         (split_branches): Likewise.
7023         (sh_insn_length_adjustment): Likewise.
7024         * config/spu/spu.c (get_branch_target): Likewise.
7026 2013-03-29  Jan Hubicka  <jh@suse.cz>
7028         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7029         gcov streaming; stream hot bb threshold to ltrans.
7030         * predict.c (get_hot_bb_threshold): Break out from ....
7031         (maybe_hot_count_p): ... here.
7032         (set_hot_bb_threshold): New function.
7033         * lto-section-in.c (lto_section_name): Add profile.
7034         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7035         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7036         and data-streamer.h
7037         (histogram_entry): New structure.
7038         (histogram, histogram_pool): New global vars.
7039         (histogram_hash): New structure.
7040         (histogram_hash::hash): New method.
7041         (histogram_hash::equal): Likewise.
7042         (account_time_size): New function.
7043         (cmp_counts): New function.
7044         (dump_histogram): New function.
7045         (ipa_profile_generate_summary): New function.
7046         (ipa_profile_write_summary): New function.
7047         (ipa_profile_read_summary): New function.
7048         (ipa_profile): Decide on threshold.
7049         (pass_ipa_profile): Add ipa_profile_write_summary and
7050         ipa_profile_read_summary.
7051         * Makefile.in (ipa.o): Update dependencies.
7052         * lto-streamer.h (LTO_section_ipa_profile): New section.
7054 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7056         * tree.h (VAR_P): New.
7058 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7060         PR lto/56777
7061         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7063 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7065         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7066         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7067         (control_flow_insn_p): Likewise.
7068         * cfgrtl.c (duplicate_insn_chain): Likewise.
7069         * final.c (get_attr_length_1): Likewise.
7070         (shorten_branches): Likewise.
7071         (final_scan_insn): Likewise.
7072         * function.c (instantiate_virtual_regs): Likewise.
7073         * gcse.c (insert_insn_end_basic_block): Likewise.
7074         * ira-costs.c (scan_one_insn): Likewise.
7075         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7076         * lra.c (check_rtl): Likewise.
7077         * reload1.c (elimination_costs_in_insn): Likewise.
7078         * reorg.c (follow_jumps): Likewise.
7080         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7081         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7082         (thumb_far_jump_used_p): Likewise.
7083         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7084         (workaround_speculation): Likewise.
7085         (add_sched_insns_for_speculation): Likewise.
7086         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7087         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7088         (frv_for_each_packet): Likewise.
7089         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7090         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7091         (final_emit_insn_group_barriers): Likewise.
7092         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7093         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7094         (mips16_insn_length): Likewise.
7095         * config/pa/pa.c (pa_reorg): Likewise.
7096         (pa_combine_instructions): Likewise.
7097         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7098         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7099         (sh_reorg): Likewise.
7100         (split_branches): Likewise.
7101         * config/spu/spu.c (get_branch_target): Likewise.
7103         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7104         JUMP_TABLE_DATA_P.
7106 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7108         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7109         Fix declaration name.
7111 2013-03-28  Lawrence Crowl  <crowl@google.com>
7113         * graphds.h (struct graph.indicies): Remove unused.
7114         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7115         (SCOP_ORIGINAL_PDDRS): Remove unused.
7116         * sese.h (extern insert_loop_close_phis): Removed unused.
7117         (extern insert_guard_phis): Removed unused.
7118         (extern ivtype_map_elt_info): Removed unused.
7119         (new_ivtype_map_elt): Removed unused.
7120         * sese.c (ivtype_map_elt_info): Removed unused.
7122 2013-03-28  Lawrence Crowl  <crowl@google.com>
7124         * Makefile.in: Add several missing include dependences.
7125         (DUMPFILE_H): New.
7126         (test-dump.o): New.  This object is not added to any executable,
7127         but is present for ad-hoc testing.
7128         * bitmap.c
7129         (debug (const bitmap_head_def &)): New.
7130         (debug (const bitmap_head_def *)): New.
7131         * bitmap.h
7132         (extern debug (const bitmap_head_def &)): New.
7133         (extern debug (const bitmap_head_def *)): New.
7134         * cfg.c
7135         (debug (edge_def &)): New.
7136         (debug (edge_def *)): New.
7137         * cfghooks.c
7138         (debug (basic_block_def &)): New.
7139         (debug (basic_block_def *)): New.
7140         * dumpfile.h
7141         (dump_node (const_tree, int, FILE *)): Correct source file.
7142         * dwarf2out.c
7143         (debug (die_struct &)): New.
7144         (debug (die_struct *)): New.
7145         * dwarf2out.h
7146         (extern debug (die_struct &)): New.
7147         (extern debug (die_struct *)): New.
7148         * gimple-pretty-print.c
7149         (debug (gimple_statement_d &)): New.
7150         (debug (gimple_statement_d *)): New.
7151         * gimple-pretty-print.h
7152         (extern debug (gimple_statement_d &)): New.
7153         (extern debug (gimple_statement_d *)): New.
7154         * ira-build.c
7155         (debug (ira_allocno_copy &)): New.
7156         (debug (ira_allocno_copy *)): New.
7157         (debug (ira_allocno &)): New.
7158         (debug (ira_allocno *)): New.
7159         * ira-int.h
7160         (extern debug (ira_allocno_copy &)): New.
7161         (extern debug (ira_allocno_copy *)): New.
7162         (extern debug (ira_allocno &)): New.
7163         (extern debug (ira_allocno *)): New.
7164         * ira-lives.c
7165         (debug (live_range &)): New.
7166         (debug (live_range *)): New.
7167         * lra-int.h
7168         (debug (lra_live_range &)): New.
7169         (debug (lra_live_range *)): New.
7170         * lra-lives.c
7171         (debug (lra_live_range &)): New.
7172         (debug (lra_live_range *)): New.
7173         * omega.c
7174         (debug (omega_pb_d &)): New.
7175         (debug (omega_pb_d *)): New.
7176         * omega.h
7177         (extern debug (omega_pb_d &)): New.
7178         (extern debug (omega_pb_d *)): New.
7179         * print-rtl.c
7180         (debug (const rtx_def &)): New.
7181         (debug (const rtx_def *)): New.
7182         * print-tree.c
7183         (debug_tree (tree): Move within file.
7184         (debug_raw (const tree_node &)): New.
7185         (debug_raw (const tree_node *)): New.
7186         (dump_tree_via_hooks (const tree_node *, int)): New.
7187         (debug (const tree_node &)): New.
7188         (debug (const tree_node *)): New.
7189         (debug_verbose (const tree_node &)): New.
7190         (debug_verbose (const tree_node *)): New.
7191         (debug_head (const tree_node &)): New.
7192         (debug_head (const tree_node *)): New.
7193         (debug_body (const tree_node &)): New.
7194         (debug_body (const tree_node *)): New.
7195         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7196         (debug (vec<tree, va_gc> &)): New.
7197         (debug (vec<tree, va_gc> *)): New.
7198         * rtl.h
7199         (extern debug (const rtx_def &)): New.
7200         (extern debug (const rtx_def *)): New.
7201         * sbitmap.c
7202         (debug_raw (simple_bitmap_def &)): New.
7203         (debug_raw (simple_bitmap_def *)): New.
7204         (debug (simple_bitmap_def &)): New.
7205         (debug (simple_bitmap_def *)): New.
7206         * sbitmap.h
7207         (extern debug (simple_bitmap_def &)): New.
7208         (extern debug (simple_bitmap_def *)): New.
7209         (extern debug_raw (simple_bitmap_def &)): New.
7210         (extern debug_raw (simple_bitmap_def *)): New.
7211         * sel-sched-dump.c
7212         (debug (vinsn_def &)): New.
7213         (debug (vinsn_def *)): New.
7214         (debug_verbose (vinsn_def &)): New.
7215         (debug_verbose (vinsn_def *)): New.
7216         (debug (expr_def &)): New.
7217         (debug (expr_def *)): New.
7218         (debug_verbose (expr_def &)): New.
7219         (debug_verbose (expr_def *)): New.
7220         (debug (vec<rtx> &)): New.
7221         (debug (vec<rtx> *)): New.
7222         * sel-sched-dump.h
7223         (extern debug (vinsn_def &)): New.
7224         (extern debug (vinsn_def *)): New.
7225         (extern debug_verbose (vinsn_def &)): New.
7226         (extern debug_verbose (vinsn_def *)): New.
7227         (extern debug (expr_def &)): New.
7228         (extern debug (expr_def *)): New.
7229         (extern debug_verbose (expr_def &)): New.
7230         (extern debug_verbose (expr_def *)): New.
7231         (extern debug (vec<rtx> &)): New.
7232         (extern debug (vec<rtx> *)): New.
7233         * sel-sched-ir.h
7234         (_list_iter_cond_expr): Make inline instead of static.
7235         * sreal.c
7236         (debug (sreal &)): New.
7237         (debug (sreal *)): New.
7238         * sreal.h
7239         (extern debug (sreal &)): New.
7240         (extern debug (sreal *)): New.
7241         * tree.h
7242         (extern debug_raw (const tree_node &)): New.
7243         (extern debug_raw (const tree_node *)): New.
7244         (extern debug (const tree_node &)): New.
7245         (extern debug (const tree_node *)): New.
7246         (extern debug_verbose (const tree_node &)): New.
7247         (extern debug_verbose (const tree_node *)): New.
7248         (extern debug_head (const tree_node &)): New.
7249         (extern debug_head (const tree_node *)): New.
7250         (extern debug_body (const tree_node &)): New.
7251         (extern debug_body (const tree_node *)): New.
7252         (extern debug (vec<tree, va_gc> &)): New.
7253         (extern debug (vec<tree, va_gc> *)): New.
7254         * tree-cfg.c
7255         (debug (struct loop &)): New.
7256         (debug (struct loop *)): New.
7257         (debug_verbose (struct loop &)): New.
7258         (debug_verbose (struct loop *)): New.
7259         * tree-dump.c: Add header dependence.
7260         * tree-flow.h
7261         (extern debug (struct loop &)): New.
7262         (extern debug (struct loop *)): New.
7263         (extern debug_verbose (struct loop &)): New.
7264         (extern debug_verbose (struct loop *)): New.
7265         * tree-data-ref.c
7266         (debug (data_reference &)): New.
7267         (debug (data_reference *)): New.
7268         (debug (vec<data_reference_p> &)): New.
7269         (debug (vec<data_reference_p> *)): New.
7270         (debug (vec<ddr_p> &)): New.
7271         (debug (vec<ddr_p> *)): New.
7272         * tree-data-ref.h
7273         (extern debug (data_reference &)): New.
7274         (extern debug (data_reference *)): New.
7275         (extern debug (vec<data_reference_p> &)): New.
7276         (extern debug (vec<data_reference_p> *)): New.
7277         (extern debug (vec<ddr_p> &)): New.
7278         (extern debug (vec<ddr_p> *)): New.
7279         * tree-ssa-alias.c
7280         (debug (pt_solution &)): New.
7281         (debug (pt_solution *)): New.
7282         * tree-ssa-alias.h
7283         (extern debug (pt_solution &)): New.
7284         (extern debug (pt_solution *)): New.
7285         * tree-ssa-alias.c
7286         (debug (_var_map &)): New.
7287         (debug (_var_map *)): New.
7288         (debug (tree_live_info_d &)): New.
7289         (debug (tree_live_info_d *)): New.
7290         * tree-ssa-alias.h
7291         (extern debug (_var_map &)): New.
7292         (extern debug (_var_map *)): New.
7293         (extern debug (tree_live_info_d &)): New.
7294         (extern debug (tree_live_info_d *)): New.
7296 2013-03-28  Jan Hubicka  <jh@suse.cz>
7298         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7300 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7302         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7303         record only when desired or required.
7305 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7307         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7308         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7310 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7312         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7313         (*andsi3_compare0_uxtw): New pattern.
7314         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7315         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7317 2013-03-28  Jan Hubicka  <jh@suse.cz>
7319         * data-streamer-in.c (streamer_read_gcov_count): New function.
7320         * gimple-streamer-out.c: Include value-prof.h.
7321         (output_gimple_stmt): Output histogram.
7322         (output_bb): Use streamer_write_gcov_count.
7323         * value-prof.c: Include data-streamer.h
7324         (dump_histogram_value): Add HIST_TYPE_MAX.
7325         (stream_out_histogram_value): New function.
7326         (stream_in_histogram_value): New function.
7327         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7328         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7329         * data-streamer-out.c (streamer_write_gcov_count): New function.
7330         (streamer_write_gcov_count_stream): New function.
7331         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7332         (lto_output_node): Likewise.
7333         (input_node, input_edge): Likewise.
7334         * lto-streamer-out.c (output_cfg): Update streaming.
7335         * lto-streamer-in.c (input_cfg): Likewise.
7336         * data-streamer.h (streamer_write_gcov_count,
7337         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7338         * gimple-streamer-in.c: Include value-prof.h
7339         (input_gimple_stmt): Input histograms.
7340         (input_bb): Update profile streaming.
7342 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7344         * genmodes.c (emit_max_int): New function.
7345         (emit_insn_modes_h): Added call to emit_max_function.
7346         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7347         Added doc.
7348         * machmode.def: Fixed comment.
7350 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7352         * combine.c (try_combine): Removed useless assert.
7353         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7355 2013-03-28  Marek Polacek  <polacek@redhat.com>
7356             Richard Biener  <rguenther@suse.de>
7358         PR tree-optimization/56695
7359         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7360         build signed result of a vector comparison.
7361         * tree-cfg.c (verify_gimple_comparison): Check that a result
7362         of a vector comparison has signed type.
7364 2013-03-28  Richard Biener  <rguenther@suse.de>
7366         PR tree-optimization/37021
7367         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7368         do not restrict gaps between groups.
7369         * tree-vect-stmts.c (vectorizable_load): Properly account for
7370         a gap between groups.
7372 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7374         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7375         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7376         is not enabled.
7378 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7380         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7381         * doc/extend.texi (Named Address Spaces): Ditto.
7382         (Variable Attributes): Ditto.
7384 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7386         * config.build: Add support for cygwin x64 target.
7387         * config.gcc: Likewise.
7388         * config.host: Likewise.
7389         * configure.ac: Likewise
7390         * configure: Regenerated.
7392 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7394         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7395         * config/i386/t-cygwin-w64: New file.
7396         * config/i386/cygwin-w64.h: New file.
7397         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7398         and add support for x64-cygwin target.
7399         (CPP_SPEC): Likewise.
7400         (CXX_WRAP_SPEC_LIST): Undefine before define.
7401         (LIBGCJ_SONAME): Use 15 as version.
7403 2013-03-27  Richard Biener  <rguenther@suse.de>
7405         PR tree-optimization/56716
7406         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7407         dumping for ref nodes.
7409 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7411         PR tree-optimization/55334
7412         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7413         restricted pointers to arrays.
7415 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7417         * Makefile.in (.SUFFIXES): Add .cc.
7418         (.c.o): Apply same recipe for implicit rule .cc.o.
7420 2013-03-27  Richard Biener  <rguenther@suse.de>
7422         PR tree-optimization/37021
7423         * tree-vect-data-refs.c (vect_check_strided_load): Allow
7424         REALPART/IMAGPART_EXPRs around the supported refs.
7425         * tree-ssa-structalias.c (find_func_aliases): Assume that
7426         floating-point values are not used to transfer pointers.
7428 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7430         * target.def (TARGET_HAS_IFUNC_P): New target hook.
7431         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7432         * doc/tm.texi: Regenerate.
7433         * targhooks.h (default_has_ifunc_p): New.
7434         * targhooks.c (default_has_ifunc_p): Ditto.
7435         * config/linux-protos.h: New file.
7436         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7437         this hook for linux which disables support of indirect functions in
7438         android.
7439         * config/linux-android.c: New file.
7440         * config/t-linux-android.c: Ditto.
7441         * config.gcc: Added new object file linux-android.o.
7442         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7443         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7444         * varasm.c (do_assemble_alias): Likewise.
7445         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7446         doesn't support indirect functions.
7447         * configure: Regenerate.
7449 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
7451         PR target/56102
7452         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7453         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7454         mult-word mode.
7456 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7458         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7460 2013-03-27  Terry Guo  <terry.guo@arm.com>
7462         * config/arm/arm-cores.def: Added core cortex-r7.
7463         * config/arm/arm-tune.md: Regenerated.
7464         * config/arm/arm-tables.opt: Regenerated.
7465         * doc/invoke.texi: Added entry for core cortex-r7.
7467 2013-03-27  Walter Lee  <walt@tilera.com>
7469         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7470         double-decrement of next_scratch_regno.
7472 2013-03-27  Walter Lee  <walt@tilera.com>
7474         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7475         input operands.
7476         (insn_v1mulus): Ditto.
7477         (insn_v2muls): Ditto.
7479 2013-03-27  Walter Lee  <walt@tilera.com>
7481         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7482         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7484 2013-03-27  Walter Lee  <walt@tilera.com>
7486         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7487         (*sibcall_value): Ditto.
7489 2013-03-27  Walter Lee  <walt@tilera.com>
7491         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7492         (insn_mnz_v8qi): ... this ...
7493         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
7494         vector equivalent.
7495         (insn_v<n>mnz): Replaced by ...
7496         (insn_v1mnz): ... this ...
7497         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
7498         equivalent.
7499         (insn_mz_<mode>): Replaced by ...
7500         (insn_mz_v8qi): ... this ...
7501         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
7502         vector equivalent.
7503         (insn_v<n>mz): Replaced by ...
7504         (insn_v1mz): ... this ...
7505         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
7506         equivalent.
7508 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7510         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7512 2013-03-26  Roland McGrath  <mcgrathr@google.com>
7514         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7515         than fprintf with a non-constant, non-format string.
7517 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7519         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7520         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
7521         operand 0 predicate.
7522         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7523         attribute.  Use general_x64nomem_operand as operand 1 predicate.
7524         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7525         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7526         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7527         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7528         (mov<mode>_insv_1): Remove expander.  Merge insn with
7529         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7530         Use general_x64nomem_operand as operand 1 predicate.
7531         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7532         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7533         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7534         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7535         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
7536         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7537         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7538         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7539         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
7540         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7541         (general_x64nomem_operand): Ditto.
7543 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7545         * config/rtems.opt: Add -pthread option.
7547 2013-03-26  Richard Biener  <rguenther@suse.de>
7549         * alias.c (find_base_term): Avoid redundant and not used recursion.
7550         (base_alias_check): Get the initial base term from the caller.
7551         (true_dependence_1): Compute and pass base terms to base_alias_check.
7552         (write_dependence_p): Likewise.
7553         (may_alias_p): Likewise.
7555 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
7557         * config/aarch64/aarch64.c (aarch64_classify_address): Support
7558         PC-relative load in SI modes and above only.
7560 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
7562         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7563         * config/arm/iwmmxt.md (WCGR0): Update.
7564         (WCGR1, WCGR2, WCGR3): Likewise.
7566 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7568         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7569         Use x64 and nox64 isa attributes.
7571 2013-03-26  Richard Biener  <rguenther@suse.de>
7573         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7574         alignment computations and rely on get_object_alignment_1
7575         for the !TYPE_P case.
7576         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7578 2013-03-26  Walter Lee  <walt@tilera.com>
7580         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7581         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7583 2013-03-25  Jeff Law  <law@redhat.com>
7585         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7586         check for INTEGRAL_TYPE_P that was missing due to checking in
7587         wrong version of prior patch.
7589 2013-03-25  Walter Lee  <walt@tilera.com>
7591         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7592         TILEGX_INSN_SHUFFLEBYTES1.
7593         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7594         shufflebytes1.
7595         (tilegx_builtins): Ditto.
7596         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7598 2013-03-25  Walter Lee  <walt@tilera.com>
7600         * config/tilegx/tilegx.md (floatsisf2): New pattern.
7601         (floatunssisf2): New pattern.
7602         (floatsidf2): New pattern.
7603         (floatunssidf2): New pattern.
7605 2013-03-25  Walter Lee  <walt@tilera.com>
7607         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7608         tests for constraint J, K, N, P.
7610 2013-03-25  Walter Lee  <walt@tilera.com>
7612         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7613         Use indirect/pcrel encoding.
7614         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7615         Ditto.
7617 2013-03-25  Steve Ellcey  <sellcey@mips.com>
7619         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7620         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7621         * config/mips/mips.c (mips_option_override): Set IMADD default.
7622         * config/mips/mips.h (PTF_AVOID_IMADD): New.
7623         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7624         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7625         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7626         * doc/invoke.texi (-mimadd/-mno-imadd): New.
7628 2013-03-25  Jeff Law  <law@redhat.com>
7630         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7631         slightly to avoid creating and folding useless trees.  Simplify
7632         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7634 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
7636         * config/i386/i386.md (*zero_extendsidi2): Merge with
7637         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
7638         * config/i386/predicates.md (x86_64_zext_operand): Rename from
7639         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
7640         targets.  Clarify comment.
7642 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7644         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7645         pass-through jump functions differently.
7646         (ipa_read_jump_function): Likewise.  Also use setter functions to set
7647         up jump functions.
7649 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7651         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7652         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7653         process it.
7654         (ipa_get_indirect_edge_target): New function.
7655         (devirtualization_time_bonus): New parameter known_aggs, pass it to
7656         ipa_get_indirect_edge_target.  Update all callers.
7657         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
7658         ipa_get_indirect_edge_target_1 instead of calling
7659         ipa_get_indirect_edge_target.
7660         (create_specialized_node): Pass aggvlas to
7661         ipcp_discover_new_direct_edges.
7663 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7665         * config/arm/arm.md (f_sels, f_seld): New types.
7666         (*cmov<mode>): New pattern.
7667         * config/arm/predicates.md (arm_vsel_comparison_operator): New
7668         predicate.
7670 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7672         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7673         POSIX-printf for mingw-hosted  builds.
7675 2013-03-25  Richard Biener  <rguenther@suse.de>
7677         PR middle-end/56694
7678         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7679         must-not-throw stmt location.
7681 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7683         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7684         Emit load-acquire versions when acq is true.
7685         (arm_emit_store_exclusive): Add rel parameter.
7686         Emit store-release versions when rel is true.
7687         (arm_split_compare_and_swap): Use acquire-release instructions
7688         instead.
7689         of barriers when appropriate.
7690         (arm_split_atomic_op): Likewise.
7691         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7692         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7693         (VUNSPEC_SLX): Likewise.
7694         (VUNSPEC_LDA): Likewise.
7695         (VUNSPEC_STL): Likewise.
7696         * config/arm/sync.md (atomic_load<mode>): New pattern.
7697         (atomic_store<mode>): Likewise.
7698         (arm_load_acquire_exclusive<mode>): Likewise.
7699         (arm_load_acquire_exclusivesi): Likewise.
7700         (arm_load_acquire_exclusivedi): Likewise.
7701         (arm_store_release_exclusive<mode>): Likewise.
7703 2013-03-25  Catherine Moore  <clm@codesourcery.com>
7705         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7706         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7707         * config/mip/predicates.md (lwsp_swsp_operand,
7708         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7709         sb16_operand, db4_operand, db7_operand, ib3_operand,
7710         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7711         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7712         andi16_operand): New predicates.
7713         * config/mips/mips.md (compression): New attribute.
7714         (enabled): New attribute.
7715         (length): Consider compression in computing length.
7716         (shift_compression): New code attribute.
7717         (*add<mode>3): New operands. Record compression.
7718         (sub<mode>3): Likewise.
7719         (one_cmpl<mode>2): Likewise.
7720         (*and<mode>3): Likewise.
7721         (*ior<mode>3): Likewise.
7722         (unnamed pattern for xor): Likewise.
7723         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7724         (*<optab><mode>3): Likewise.
7725         (*mov<mode>_internal: Likewise.
7726         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7727         (mips_unsigned_immediate_p): New.
7728         (umips_lwsp_swsp_address_p): New.
7729         (m16_based_address_p): New.
7730         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7731         (mips_unsigned_immediate_p): New prototype.
7732         (lwsp_swsp_address_p): New prototype.
7733         (m16_based_address_p): New prototype.
7734         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7735         (mips_signed_immediate_p): New function.
7736         (m16_based_address_p): New function.
7737         (lwsp_swsp_address_p): New function.
7738         (mips_print_operand_punctuation): Recognize short delay slot insns
7739         for microMIPS.add<mode>3"
7741 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7743         PR target/56720
7744         * config/arm/iterators.md (v_cmp_result): New mode attribute.
7745         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7747 2013-03-25  Richard Biener  <rguenther@suse.de>
7749         PR tree-optimization/56689
7750         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7751         any edge.
7753 2013-03-25  Richard Biener  <rguenther@suse.de>
7755         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7756         of bitmap.
7757         (memory_references): Likewise.
7758         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7759         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7760         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7761         (gather_mem_refs_in_loops): Fold into ...
7762         (analyze_memory_references): ... this.  Move initialization
7763         to tree_ssa_lim_initialize.
7764         (fill_always_executed_in): Rename to ...
7765         (fill_always_executed_in_1): ... this.
7766         (fill_always_executed_in): Move contains_call computation to
7767         this new function from ...
7768         (tree_ssa_lim_initialize): ... here.
7769         (tree_ssa_lim): Call fill_always_executed_in.
7771 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7773         * postreload.c (reload_combine): Fix code detecting returns.
7775 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7777         * function.c (emit_use_return_register_into_block): On cc0 targets,
7778         do not emit the sequence between cc0 setter and user.
7780 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7782         * config/i386/predicates.md (local_symbolic_operand): Interpret
7783         dll-imported symbols as none-local.
7785 2013-03-25  Richard Biener  <rguenther@suse.de>
7787         * tree-ssa-loop-im.c (struct depend): Remove.
7788         (struct lim_aux_data): Make depends a vec of gimples.
7789         (free_lim_aux_data): Adjust.
7790         (add_dependency): Likewise.
7791         (set_level): Likewise.
7793 2013-03-25  Richard Biener  <rguenther@suse.de>
7795         PR middle-end/56434
7796         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7797         the pointer returned by calls with ECF_MALLOC set.
7799 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
7801         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7803 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
7805         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
7806         using MMXMODE mode iterator.
7807         (*move<mode>_internal): Merge with *movv2sf_internal and
7808         *movv2sf_internal_rex64 using MMXMODE mode iterator.
7810 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
7812         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
7813         (record_last_mem_set_info): Likewise.
7815         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7816         of XNEWVEC followed by memset.
7817         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7819 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
7821         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7822         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7823         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7824         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7825         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7826         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7827         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7828         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7829         BARRIER_P instead of GET_CODE.
7831 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
7833         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7834         inaccuracy in the probing code.
7836         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7837         (ctrapdi4): Likewise.
7839 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
7841         * calls.c (expand_call): Add missing guard to code handling return
7842         of non-BLKmode structures in MSB.
7843         * function.c (expand_function_end): Likewise.
7845 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
7847         * combine.c (try_combine): Adjust comment.  Do not add the set of
7848         insn #0 if the destination indirectly is set or dies in insn #2.
7849         Tidy up code to distribute a new note.
7851 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
7853         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7854         also for alternatives 16 and 17.
7856 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
7858         * config/i386/sse.md (*mov<mode>_internal): Merge with
7859         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
7860         Emit insn template depending on type attribute.  Use
7861         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7862         movd instead of movq mnemonic for interunit moves.  Rewrite mode
7863         attribute calculation.  Remove unit attribute calculation.
7864         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7865         Set prefix_data16 attribute for DImode ssemov types.
7866         Use Ym instead of y for SSE-MMX conversion alternatives.
7867         Reorder operand constraints.
7869 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
7871         * df.h (df_insn_delete): Adjust prototype.
7872         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7873         and let it decide whether mark the basic block dirty.
7874         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7875         * df-scan.c (df_insn_info_delete): New helper function, split
7876         off from df_insn_delete.
7877         (df_scan_free_bb_info): Use it.
7878         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7879         Likewise.
7880         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
7881         that the insn is actually an insn and it has a non-NULL basic block.
7882         Do not mark basic block dirty if only deleting a DEBUG_INSN.
7884 2013-03-22  Richard Biener  <rguenther@suse.de>
7886         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7887         dep_ref members.
7888         (mem_ref_alloc): Do not allocate them.
7889         (refs_independent_p): Do not query or maintain a cache.
7891 2013-03-22  Richard Biener  <rguenther@suse.de>
7893         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7894         (gather_mem_refs_in_loops): Do not compute it.
7895         (analyze_memory_references): Do not allocate it.
7896         (tree_ssa_lim_finalize): Do not free it.
7897         (for_all_locs_in_loop): Do not query all_refs_in_loop.
7899 2013-03-22  Richard Biener  <rguenther@suse.de>
7901         * is-a.h (as_a): Use gcc_checking_assert.
7903 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
7905         * config/aarch64/aarch64.c (aarch64_print_operand): New
7906         format specifier for printing a constant in hex.
7907         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7908         format specifier for printing second operand.
7910 2013-03-22  Richard Biener  <rguenther@suse.de>
7912         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7913         bitmaps.
7914         (gather_mem_refs_in_loops): Perform store accumulation here.
7915         (create_vop_ref_mapping_loop): Remove.
7916         (create_vop_ref_mapping): Likewise.
7917         (analyze_memory_references): Initialize refs_stored_in_loop.
7918         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
7919         (record_indep_loop): Remove.
7920         (record_dep_loop): New function.
7921         (ref_indep_loop_p_1): Adjust to only walk over references
7922         in the loop, not its subloops.
7923         (ref_indep_loop_p): Rename to ...
7924         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7925         maintaining a more fine-grained cache.
7926         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7927         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7929 2013-03-22  Richard Biener  <rguenther@suse.de>
7931         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7932         (struct mem_ref): Make accesses_in_loop a vec of a vec of
7933         aggregate mem_ref_loc.
7934         (free_mem_ref_locs): Inline into ...
7935         (memref_free): ... this and adjust.
7936         (mem_ref_alloc): Adjust.
7937         (mem_ref_locs_alloc): Remove.
7938         (record_mem_ref_loc): Adjust.
7939         (get_all_locs_in_loop): Rewrite into ...
7940         (for_all_locs_in_loop): ... this iterator.
7941         (rewrite_mem_ref_loc): New functor.
7942         (rewrite_mem_refs): Use for_all_locs_in_loop.
7943         (sm_set_flag_if_changed): New functor.
7944         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7945         (ref_always_accessed): New functor.
7946         (ref_always_accessed_p): Use for_all_locs_in_loop.
7948 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
7950         * tree-pass.h (PROP_gimple_lvec): New.
7951         * passes.c (dump_properties): Handle PROP_gimple_lvec.
7952         (init_optimization_passes): Move pass_lower_vector.
7953         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7954         PROP_gimple_lvec.
7955         (pass_lower_vector): Provide PROP_gimple_lvec.
7956         (pass_lower_vector_ssa): Likewise.
7957         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7959 2013-03-21  Mark Wielaard  <mjw@redhat.com>
7961         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7963 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
7965         * config/i386/i386.md (*movdi_internal): Disparage slightly
7966         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
7967         conversion alternatives.
7969 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
7971         PR middle-end/48087
7972         * diagnostic.def (DK_WERROR): New kind.
7973         * diagnostic.h (werrorcount): Define.
7974         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7975         promoted to DK_ERROR, increment DK_WERROR counter instead of
7976         DK_ERROR counter.
7977         * toplev.c (toplev_main): Call print_ignored_options even if
7978         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
7979         even if just werrorcount is non-zero.
7981         PR debug/55608
7982         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7983         on failure.
7984         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7985         (string_cst_pool_decl): New function.
7986         (optimize_one_addr_into_implicit_ptr): New function.
7987         (resolve_addr_in_expr): Optimize DWARF location expression
7988         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7989         which doesn't live in memory, but has DW_AT_location or
7990         DW_AT_const_value, or refers to a string literal, into
7991         DW_OP_GNU_implicit_pointer.
7992         (optimize_location_into_implicit_ptr): New function.
7993         (resolve_addr): If removing DW_AT_location of a variable because
7994         it was DW_OP_addr of address of the variable, but the variable doesn't
7995         live in memory, try to emit const value attribute for the initializer.
7997 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
7999         * tree.h (VECTOR_TYPE_P): New macro.
8000         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8001         TYPE_MODE): Use it.
8002         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8003         VEC_COND_EXPR cannot be lvalues.
8004         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8006 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8008         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8009         Restrict the transformation to equal modes.
8011 2013-03-21  Richard Biener  <rguenther@suse.de>
8013         PR tree-optimization/39326
8014         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8015         (MEM_ANALYZABLE): Adjust.
8016         (record_mem_ref_loc): Move bitmap ops ...
8017         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8018         unanalyzable refs, do not record locations for it.
8019         (analyze_memory_references): Allocate ref zero as shared
8020         unanalyzable ref.
8021         (refs_independent_p): Do not test for unanalyzed mems here.
8022         (ref_indep_loop_p_1): Special-case disambiguation against
8023         the unanalyzed ref.
8024         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8026 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8028         * config/arm/arm-protos.h (tune_params): Add
8029         prefer_neon_for_64bits field.
8030         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8031         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8032         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8033         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8034         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8035         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8036         (arm_option_override): Handle -mneon-for-64bits new option.
8037         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8038         (prefer_neon_for_64bits): Declare new variable.
8039         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8040         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8041         (arch_enabled): Handle new arch types. Remove support for onlya8
8042         and nota8.
8043         (one_cmpldi2): Use new arch names.
8044         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8045         * config/arm/arm.opt (mneon-for-64bits): Add option.
8046         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8047         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8048         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8049         of onlya8.
8050         * doc/invoke.texi (-mneon-for-64bits): Document.
8052 2013-03-21  Richard Biener  <rguenther@suse.de>
8054         PR tree-optimization/39326
8055         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8056         (sort_bbs_in_loop_postorder_cmp): New function.
8057         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8059 2013-03-21  Richard Biener  <rguenther@suse.de>
8061         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8062         (vect_insert_into_interleaving_chain): Likewise.
8063         (vect_drs_dependent_in_basic_block): Inline ...
8064         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8065         split out from ...
8066         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8067         (vect_check_interleaving): Simplify.
8068         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8069         (vect_slp_analyze_data_ref_dependences): ... this new function.
8070         (dr_group_sort_cmp): New function.
8071         (vect_analyze_data_ref_accesses): Compute data-reference groups
8072         here instead of in vect_analyze_data_ref_dependence.  Use
8073         a more efficient algorithm.
8074         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8075         vect_slp_analyze_data_ref_dependences.  Call
8076         vect_analyze_data_ref_accesses earlier.
8077         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8078         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8079         (vect_slp_analyze_data_ref_dependences): New prototype.
8081 2013-03-21  Richard Biener  <rguenther@suse.de>
8083         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8084         ref is stored in the loop.
8085         (find_refs_for_sm): Walk only over all stores.
8086         (store_motion_loop): Allocate from lim_bitmap_obstack.
8087         (store_motion): Likewise.
8089 2013-03-21  Richard Biener  <rguenther@suse.de>
8091         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8092         Update virtual SSA form.
8094 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8096         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8097         * configure: Regenerate.
8098         * config.in: Regenerate.
8099         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8100         if !HAVE_LD_EH_FRAME_CIEV3.
8102 2013-03-21  Richard Biener  <rguenther@suse.de>
8104         * tree-cfg.c (verify_expr_no_block): New function.
8105         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8106         nor DECL_VALUE_EXPR have locations with associated blocks.
8107         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8108         (clear_unused_block_pointer): Remove code dealing with
8109         blocks in DECL_DEBUG_EXPR locations.
8111 2013-03-21  Richard Biener  <rguenther@suse.de>
8113         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8114         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8115         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8116         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8117         instead of DECL_DEBUG_EXPR_IS_FROM.
8118         * gimplify.c (gimplify_modify_expr): Likewise.
8119         * tree-cfg.c (verify_expr_location_1): Likewise.
8120         * tree-complex.c (create_one_component_var): Likewise.
8121         * tree-sra.c (create_access_replacement): Likewise.
8122         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8123         (clear_unused_block_pointer): Likewise.
8124         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8125         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8126         * var-tracking.c (var_debug_decl): Likewise.
8127         (track_expr_p): Likewise.
8128         * tree-inline.c (add_local_variables): Likewise.  Set
8129         DECL_HAS_DEBUG_EXPR_P after copying it.
8130         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8131         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8133 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8135         PR bootstrap/56656
8136         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8137         * configure: Regenerate.
8138         * config.in: Regenerate.
8139         * config/i386/i386.md (*movdf_internal): Use
8140         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8141         movd instead of movq mnemonic for interunit moves.
8142         (*movdi_internal): Ditto.
8144 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8146         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8147         (abd<mode>_3): New pattern.
8148         (aba<mode>_3): New pattern.
8149         (fabd<mode>_3): New pattern.
8151 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8153         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8154         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8155         occurrence of REGISTER_PREFIX as its empty string.
8157 2013-03-20  Jeff Law  <law@redhat.com>
8159         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8160         addititional equivalences for equality comparisons between an SSA_NAME
8161         and a constant where the SSA_NAME was set from a widening conversion.
8163 2013-03-20  Walter Lee  <walt@tilera.com>
8165         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8167 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8169         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8170         depending on type attribute.
8171         (*movti_internal): Ditto.
8172         (*movtf_internal): Ditto.
8173         (*movxf_internal): Ditto.
8174         (*movdf_internal): Ditto.
8175         (*movsf_internal): Ditto.
8177 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8179         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8180         maybe_vex for sselog1 and ssemov types.
8181         (*movdi_internal): Reorder operand constraints.
8182         (*movsi_internal): Ditto.  Set prefix attribute to
8183         maybe_vex for sselog1 and ssemov types.
8184         (*movtf_internal): Set prefix attribute to maybe_vex
8185         for sselog1 and ssemov types.
8186         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8187         DImode ssemov types.  Reorder operand constraints.
8188         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8189         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8190         attribute for SImode ssemov types.  Reorder operand constraints.
8192 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8194         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8195         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8197 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8199         * config/rs6000/predicates.md (indexed_address, update_address_mem
8200         update_indexed_address_mem): New predicates.
8201         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8202         attribute for load/store instructions.
8203         * config/rs6000/dfp.md (movsd_store): Likewise.
8204         (movsd_load): Likewise.
8205         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8206         (unnamed HI->DI extend define_insn): Likewise.
8207         (unnamed SI->DI extend define_insn): Likewise.
8208         (unnamed QI->SI extend define_insn): Likewise.
8209         (unnamed QI->HI extend define_insn): Likewise.
8210         (unnamed HI->SI extend define_insn): Likewise.
8211         (unnamed HI->SI extend define_insn): Likewise.
8212         (extendsfdf2_fpr): Likewise.
8213         (movsi_internal1): Likewise.
8214         (movsi_internal1_single): Likewise.
8215         (movhi_internal): Likewise.
8216         (movqi_internal): Likewise.
8217         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8218         attribute for load/store instructions.
8219         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8220         instructions.
8221         (mov<mode>_softfloat): Likewise.
8222         (mov<mode>_hardfloat32): Likewise.
8223         (mov<mode>_hardfloat64): Likewise.
8224         (mov<mode>_softfloat64): Likewise.
8225         (movdi_internal32): Likewise.
8226         (movdi_internal64): Likewise.
8227         (probe_stack_<mode>): Likewise.
8229 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8231         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8232         floating point, and decimal floating point to reload iterator.
8234         * config/rs6000/constraints.md (wl constraint): New constraints to
8235         return FLOAT_REGS if certain options are used to reduce the number
8236         of separate patterns that exist in the file.
8237         (wx constraint): Likewise.
8238         (wz constraint): Likewise.
8240         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8241         -mdebug=reg, print wg, wl, wx, and wz constraints.
8242         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8243         Initialize the reload functions for 64-bit binary/decimal floating
8244         point types.
8245         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8246         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8247         create the buffer on the stack to overcome not having a 32-bit
8248         load and store.
8249         (rs6000_emit_move): Likewise.
8250         (rs6000_secondary_memory_needed_rtx): Likewise.
8251         (rs6000_alloc_sdmode_stack_slot): Likewise.
8252         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8253         via xxlxor, just like DFmode 0.0.
8255         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8256         define as 1 if we are running on a power7 or newer.
8257         (enum r6000_reg_class_enum): Add new constraints.
8259         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8260         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8261         with other moves by using conditional constraits (wg).  Use LFIWZX
8262         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8263         (movsd splitter): Likewise.
8264         (movsd_hardfloat): Likewise.
8265         (movsd_softfloat): Likewise.
8267         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8268         binary and decimal floating point moves.
8269         (fmove_ok): New attributes to combine binary and decimal floating
8270         point moves, and to combine power6x (mfpgpr) moves along normal
8271         floating moves.
8272         (real_value_to_target): Likewise.
8273         (f32_lr): Likewise.
8274         (f32_lm): Likewise.
8275         (f32_li): Likewise.
8276         (f32_sr): Likewise.
8277         (f32_sm): Likewise.
8278         (f32_si): Likewise.
8279         (movsf): Combine binary and decimal floating point moves.  Combine
8280         power6x (mfpgpr) moves with other moves by using conditional
8281         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8282         (mov<mode> for SFmode/SDmode); Likewise.
8283         (SFmode/SDmode splitters): Likewise.
8284         (movsf_hardfloat): Likewise.
8285         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8286         (movsf_softfloat): Likewise.
8287         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8289         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8290         wx and wz constraints.
8292         * config/rs6000/constraints.md (wg constraint): New constraint to
8293         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8295         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8296         constraint.
8298         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8299         -mdebug=reg, print wg, wl, wx, and wz constraints.
8300         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8301         Initialize the reload functions for 64-bit binary/decimal floating
8302         point types.
8303         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8304         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8305         create the buffer on the stack to overcome not having a 32-bit
8306         load and store.
8307         (rs6000_emit_move): Likewise.
8308         (rs6000_secondary_memory_needed_rtx): Likewise.
8309         (rs6000_alloc_sdmode_stack_slot): Likewise.
8310         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8311         via xxlxor, just like DFmode 0.0.
8313         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8314         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8315         with other moves by using conditional constraits (wg).  Use LFIWZX
8316         and STFIWX for loading SDmode on power7.
8317         (movdd splitters): Likewise.
8318         (movdd_hardfloat32): Likewise.
8319         (movdd_softfloat32): Likewise.
8320         (movdd_hardfloat64_mfpgpr): Likewise.
8321         (movdd_hardfloat64): Likewise.
8322         (movdd_softfloat64): Likewise.
8324         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8325         64-bit binary and decimal floating point moves.
8326         (FMOVE64X): Likewise.
8327         (movdf): Combine 64-bit binary and decimal floating point moves.
8328         Combine power6x (mfpgpr) moves with other moves by using
8329         conditional constraits (wg).
8330         (mov<mode> for DFmode/DDmode): Likewise.
8331         (DFmode/DDmode splitters): Likewise.
8332         (movdf_hardfloat32): Likewise.
8333         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8334         (movdf_softfloat32): Likewise.
8335         (movdf_hardfloat64_mfpgpr): Likewise.
8336         (movdf_hardfloat64): Likewise.
8337         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8338         (movdf_softfloat64): Likewise.
8339         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8340         (reload_<mode>_load): Move to later in the file so they aren't in
8341         the middle of the floating point move insns.
8342         (reload_<mode>_store): Likewise.
8344         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8345         constraint.
8347         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8348         constraint if -mdebug=reg.
8349         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8350         Enable using dd reload support if needed.
8352         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8353         binary and decimal floating point moves in rs6000.md.
8354         (movtd_internal): Likewise.
8356         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8357         decimal floating point moves.
8358         (movtf): Likewise.
8359         (movtf_internal): Likewise.
8360         (mov<mode>_internal, TDmode/TFmode): Likewise.
8361         (movtf_softfloat): Likewise.
8362         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8364         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8365         movdi_internal64, using wg constraint for move direct operations.
8366         (movdi_internal64): Likewise.
8368         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8369         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8370         the various virtual registers. Use GPR/FPR first/last values,
8371         instead of hard coding the register numbers.  Print which modes
8372         have reload functions registered.
8373         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8374         settings before/after setting cpu, target and subtarget settings.
8375         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8376         and for secondary reload failures in rs6000_secondary_reload_inner.
8377         (rs6000_secondary_reload_fail): Likewise.
8378         (rs6000_secondary_reload_inner): Likewise.
8380         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8381         macros for first/last GPR and FPR registers.
8382         (LAST_GPR_REGNO): Likewise.
8383         (FIRST_FPR_REGNO): Likewise.
8384         (LAST_FPR_REGNO): Likewise.
8386         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8387         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8388         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8389         (vcond<mode><mode>): Likewise.
8390         (vcondu<mode><mode>): Likewise.
8391         (vector_gtu<mode>): Likewise.
8392         (vector_gte<mode>): Likewise.
8393         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8394         to prevent the compiler from converting DImode operations to TImode.
8395         (ior<mode>3): Likewise.
8396         (and<mode>3): Likewise.
8397         (one_cmpl<mode>2): Likewise.
8398         (nor<mode>3): Likewise.
8399         (andc<mode>3): Likewise.
8401         * config/rs6000/constraints.md (wt constraint): New constraint
8402         that returns VSX_REGS if TImode is allowed in VSX registers.
8404         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8405         constant under VSX.
8407         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8408         similar to TImode, but it is restricted to being in the GPRs.
8410         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8411         TImode to occupy a single VSX register.
8413         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8414         -mvsx-timode for power7/power8.
8415         (power7 cpu): Likewise.
8416         (power8 cpu): Likewise.
8418         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8419         sure that TFmode/TDmode take up two registers if they are ever
8420         allowed in the upper VSX registers.
8421         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8422         registers.
8423         (rs6000_init_hard_regno_mode_ok): Likewise.
8424         (rs6000_debug_reg_global): Add debugging for PTImode and wt
8425         constraint.  Print if LRA is turned on.
8426         (rs6000_option_override_internal): Give an error if -mvsx-timode
8427         and VSX is not enabled.
8428         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
8429         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8430         to reg+offset addressing.  Use PTImode when checking offset
8431         addresses for validity.
8432         (reg_offset_addressing_ok_p): Likewise.
8433         (rs6000_legitimate_offset_address_p): Likewise.
8434         (rs6000_legitimize_address): Likewise.
8435         (rs6000_legitimize_reload_address): Likewise.
8436         (rs6000_legitimate_address_p): Likewise.
8437         (rs6000_eliminate_indexed_memrefs): Likewise.
8438         (rs6000_emit_move): Likewise.
8439         (rs6000_secondary_reload): Likewise.
8440         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
8441         reloads to fpr registers to continue to use reg+offset addressing,
8442         but 64-bit reloads to altivec registers need reg+reg addressing.
8443         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8444         it.  Treat LO_SUM like a PLUS operation.
8445         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8446         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8447         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8448         registers to share a register with a smaller sized type, since VSX
8449         puts scalars in the upper 64-bits.
8450         (print_operand): Add support for PTImode.
8451         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8452         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8453         registers, but don't have arithmetic support.
8454         (rs6000_memory_move_cost): Add test for VSX.
8455         (rs6000_opt_masks): Add -mvsx-timode.
8457         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8458         for TImode.
8459         (VSs): Likewise.
8460         (VSr): Use wt constraint for TImode.
8461         (VSv): Drop TImode support.
8462         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8463         (vsx_movti_64bit): Likewise.
8464         (vsx_movti_32bit): Likewise.
8465         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8466         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8467         one '?' on the appropriate output constraint.  Do not allow TImode
8468         logical operations on 32-bit systems.
8469         (vsx_ior<mode>3): Likewise.
8470         (vsx_xor<mode>3): Likewise.
8471         (vsx_one_cmpl<mode>2): Likewise.
8472         (vsx_nor<mode>3): Likewise.
8473         (vsx_andc<mode>3): Likewise.
8474         (vsx_concat_<mode>): Likewise.
8475         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8477         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8478         OPTION_MASK_VSX_TIMODE.
8479         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8480         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8482         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8483         (TI2 iterator): New iterator for TImode, PTImode.
8484         (wd mode attribute): Add values for vector types.
8485         (movti_string): Replace TI move operations with operations for TImode
8486         and PTImode.  Add support for TImode being allowed in VSX registers.
8487         (mov<mode>_string, TImode/PTImode): Likewise.
8488         (movti_ppc64): Likewise.
8489         (mov<mode>_ppc64, TImode/PTImode): Likewise.
8490         (TI mode splitters): Likewise.
8492         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8493         constraint.
8495 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
8497         PR tree-optimization/56355
8498         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8499         Also handle integers with undefined overflow.
8501 2013-03-20  Catherine Moore  <clm@codesourcery.com>
8502             Maciej W. Rozycki  <macro@codesourcery.com>
8503             Tom de Vries  <tom@codesourcery.com>
8504             Nathan Sidwell <nathan@codesourcery.com>
8505             Iain Sandoe  <iain@codesourcery.com>
8506             Nathan Froyd  <froydnj@codesourcery.com>
8507             Chao-ying Fu <fu@mips.com>
8509         * doc/extend.texi: (micromips, nomicromips, nocompression):
8510         Document new function attributes.
8511         * doc/invoke.texi (minterlink-compressed, mmicromips,
8512         m14k, m14ke, m14kec): Document new options.
8513         (minterlink-mips16): Update documentation.
8514         * doc/md.texi (ZC, ZD): Document new constraints.
8515         * configure.ac (gcc_cv_as_micromips): Check if linker
8516         supports the .set micromips directive.
8517         * configure: Regenerate.
8518         * config.in: Regenerate.
8519         * config/mips/mips-tables.opt: Regenerate.
8520         * config/mips/micromips.md: New file.
8521         * constraints.md (ZC, ZD): New constraints.
8522         * config/mips/predicates.md (movep_src_register): New predicate.
8523         (movep_src_operand): New predicate.
8524         (non_volatile_mem_operand): New predicate.
8525         * config/mips/mips.md (multimem): New type.
8526         (length): Differentiate between 17-bit and 18-bit branch offsets.
8527         (MOVEP1, MOVEP2): New mode iterator.
8528         (mov_<load>l): Use ZC constraint.
8529         (mov_<load>r): Likewise.
8530         (mov_<store>l): Likewise.
8531         (mov_<store>r): Likewise.
8532         (*branch_equality<mode>_inverted): Add microMIPS support.
8533         (*branch_equality<mode>): Likewise.
8534         (*jump_absolute): Likewise.
8535         (indirect_jump_<mode>): Likewise.
8536         (tablejump_<mode>): Likewise.
8537         (<optab>_internal): Likewise.
8538         (sibcall_internal): Likewise.
8539         (sibcall_value_internal): Likewise.
8540         (prefetch): Use constraint ZD.
8541         * config/mips/mips.opt (minterlink-compressed): New option.
8542         (minterlink-mips16): Now an alias for minterlink-compressed.
8543         (mmicromips): New option.
8544         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8545         (compare_and_swap_12): Likewise.
8546         (sync_add<mode>): Likewise.
8547         (sync_<optab>_12): Likewise.
8548         (sync_old_<optab>_12): Likewise.
8549         (sync_new_<optab>_12): Likewise.
8550         (sync_nand_12): Likewise.
8551         (sync_old_nand_12): Likewise.
8552         (sync_new_nand_12): Likewise.
8553         (sync_sub<mode>): Likewise.
8554         (sync_old_add<mode>): Likewise.
8555         (sync_old_sub<mode>): Likewise.
8556         (sync_new_add<mode>): Likewise.
8557         (sync_new_sub<mode>): Likewise.
8558         (sync_<optab><mode>): Likewise.
8559         (sync_old_<optab><mode>): Likewise.
8560         (sync_new_<optab><mode>): Likewise.
8561         (sync_nand<mode>): Likewise.
8562         (sync_old_nand<mode>): Likewise.
8563         (sync_new_nand<mode>): Likewise.
8564         (sync_lock_test_and_set<mode>): Likewise.
8565         (test_and_set_12): Likewise.
8566         (atomic_compare_and_swap<mode>): Likewise.
8567         (atomic_exchange<mode>_llsc): Likewise.
8568         (atomic_fetch_add<mode>_llsc): Likewise.
8569         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8570         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8571         (umips_save_restore_pattern_p): Likewise.
8572         (umips_load_store_pair_p): Likewise.
8573         (umips_output_load_store_pair): Likewise.
8574         (umips_movep_target_p): Likewise.
8575         (umips_12bit_offset_address_p): Likewise.
8576         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8577         (mips_base_mips16): Rename this...
8578         (mips_base_compression_flags): ...to this. Update all uses.
8579         (mips_attribute_table): Add micromips, nomicromips and nocompression.
8580         (mips_mips16_decl_p): Delete.
8581         (mips_nomips16_decl_p): Delete.
8582         (mips_get_compress_on_flags): New function.
8583         (mips_get_compress_off_flags): New function.
8584         (mips_get_compress_mode): New function.
8585         (mips_get_compress_on_name): New function.
8586         (mips_get_compress_off_name): New function.
8587         (mips_insert_attributes): Support multiple compression types.
8588         (mips_merge_decl_attributes): Likewise.
8589         (umips_12bit_offset_address_p): New function.
8590         (mips_start_function_definition): Emit .set micromips directive.
8591         (mips_call_may_need_jalx_p): New function.
8592         (mips_function_ok_for_sibcall): Add microMIPS support.
8593         (mips_print_operand_punctuation): Support short delay slots and
8594         compact jumps.
8595         (umips_swm_mask, umips_swm_encoding): New.
8596         (umips_build_save_restore): New function.
8597         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8598         (was_mips16_p): Remove.
8599         (old_compression_mode): New.
8600         (mips_set_compression_mode): New function.
8601         (mips_set_current_function): Add microMIPS support.
8602         (mips_option_override): Likewise.
8603         (umips_save_restore_pattern_p): New function.
8604         (umips_output_save_restore): New function.
8605         (umips_load_store_pair_p_1): New function.
8606         (umips_load_store_pair_p): New function.
8607         (umips_output_load_store_pair_1): New function.
8608         (umips_output_load_store_pair): New function.
8609         (umips_movep_target_p) New function.
8610         (mips_prepare_pch_save): Add microMIPS support.
8611         * config/mips/mips.h (TARGET_COMPRESSION): New.
8612         (TARGET_CPU_CPP_BUILTINS): Update macro
8613         to use new compression flags and to support microMIPS.
8614         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8615         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8616         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8617         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8618         (ASM_SPEC): Support mmicromips and mno-micromips.
8619         (M16STORE_REG_P): New macro.
8620         (MIPS_CALL): Support TARGET_MICROMIPS.
8621         (MICROMIPS_J): New macro.
8622         (mips_base_mips16): Rename this...
8623         (mips_base_compression_flags): ...to this.
8624         (UMIPS_12BIT_OFFSET_P): New macro.
8625         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8626         (MULTILIB_DIRNAMES): Likewise.
8627 2013-03-20  Richard Biener  <rguenther@suse.de>
8629         PR tree-optimization/56661
8630         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8631         the result does not have to be distinct.
8633 2013-03-20  Richard Biener  <rguenther@suse.de>
8635         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8636         remap_gimple_op_r.
8638 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8639             Steven Bosscher <steven@gcc.gnu.org>
8641         PR rtl-optimization/56605
8642         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8644 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8646         PR bootstrap/56656
8647         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8648         that require movd instead of movq.
8650 2013-03-20  Richard Biener  <rguenther@suse.de>
8652         * tree-ssa-structalias.c (struct variable_info): Add pointer
8653         to the first field of an aggregate with sub-vars.  Make
8654         this and the pointer to the next subfield its ID.
8655         (vi_next): New function.
8656         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8657         storedanything_id, integer_id): Increment by one.
8658         (new_var_info, get_call_vi, lookup_call_clobber_vi,
8659         get_call_clobber_vi): Adjust.
8660         (solution_set_expand): Simplify and speedup.
8661         (solution_set_add): Inline into ...
8662         (set_union_with_increment): ... this.  Adjust accordingly.
8663         (do_sd_constraint): Likewise.
8664         (do_ds_constraint): Likewise.
8665         (do_complex_constraint): Simplify.
8666         (build_pred_graph): Adjust.
8667         (solve_graph): Likewise.  Simplify and speedup.
8668         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8669         get_constraint_for_component_ref, get_constraint_for_1,
8670         first_vi_for_offset, first_or_preceding_vi_for_offset,
8671         create_function_info_for, create_variable_info_for_1,
8672         create_variable_info_for, intra_create_variable_infos): Adjust.
8673         (init_base_vars): Push NULL for ID zero.
8674         (compute_points_to_sets): Adjust.
8676 2013-03-20  Richard Biener  <rguenther@suse.de>
8678         * cfgloop.c (verify_loop_structure): Streamline and avoid
8679         ICEing on corrupt loop tree.
8680         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8681         loop tree.
8683 2013-03-20  Richard Biener  <rguenther@suse.de>
8685         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8686         check whether an SSA update is needed.
8688 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
8690         * config/mips/constraints.md (T): Rename to...
8691         (Yf): ...this.
8692         (U): Rename to...
8693         (Yd): ...this.
8694         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8695         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8697 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8699         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8700         (*subsi3_carryin_uxtw): Likewise.
8702 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8704         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8705         (*rorsi3_insn_uxtw): Likewise.
8707 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8709         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8710         (*extrsi5_insn_uxtw): Likewise.
8712 2013-03-19  Richard Biener  <rguenther@suse.de>
8714         PR tree-optimization/56273
8715         * passes.c (init_optimization_passes): Move second VRP after DOM.
8717 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
8719         * config/i386/i386.md (*movti_internal): Merge from
8720         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
8721         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
8722         nox64 isa attributes.
8724 2013-03-18  Richard Biener  <rguenther@suse.de>
8726         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8727         (unite): Likewise.
8728         (merge_node_constraints): Likewise.
8729         (build_succ_graph): Likewise.
8730         (valid_graph_edge): Inline into single caller.
8731         (unify_nodes): Likewise.  Use bitmap_set_bit return value
8732         and cache varinfo.
8733         (scc_visit): Fix formatting and variable use.
8734         (do_sd_constraint): Use gcc_checking_assert.
8735         (do_ds_constraint): Likewise.
8736         (do_complex_constraint): Likewise.
8737         (condense_visit): Likewise.  Cleanup.
8738         (dump_pred_graph): New function.
8739         (perform_var_substitution): Dump the pred-graph before
8740         variable substitution.
8741         (find_equivalent_node): Use gcc_checking_assert.
8742         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8744 2013-03-18  Richard Biener  <rguenther@suse.de>
8746         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8747         Remove cond_expr_stmt_list argument and do not gimplify the
8748         built expression.
8749         (vect_loop_versioning): Adjust.
8750         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8751         Cleanup to use less temporaries.
8752         (vect_create_data_ref_ptr): Cleanup.
8754 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
8756         PR tree-optimization/56635
8757         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8758         require types_compatible_p types.
8760 2013-03-18  Nick Clifton  <nickc@redhat.com>
8762         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8763         spurious backslash.
8765         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8766         Add missing line to comment describing function.
8768 2013-03-18  Richard Biener  <rguenther@suse.de>
8770         PR tree-optimization/56210
8771         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8772         Handle string / character search functions.
8773         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8775 2013-03-18  Richard Biener  <rguenther@suse.de>
8777         PR middle-end/56483
8778         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8779         and implement properly.
8780         * gimple.h (gimple_cond_single_var_p): Remove.
8782 2013-03-18  Richard Biener  <rguenther@suse.de>
8784         * tree-data-ref.h (find_data_references_in_loop): Declare.
8785         * tree-data-ref.c (get_references_in_stmt): Use a stack
8786         vector pre-allocated in the callers.
8787         (find_data_references_in_stmt): Adjust.
8788         (graphite_find_data_references_in_stmt): Likewise.
8789         (create_rdg_vertices): Likewise.
8790         (find_data_references_in_loop): Export.
8791         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8792         Compute dependences here...
8793         (vect_analyze_data_refs): ...not here.  When we encounter
8794         a non-vectorizable data reference in basic-block vectorization
8795         truncate the data reference vector.  Do not bother to
8796         fixup data-dependence information for gather loads.
8797         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8798         of data references, as reported.
8800 2013-03-18  Richard Biener  <rguenther@suse.de>
8802         PR tree-optimization/3713
8803         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
8804         has_constants and expr.
8805         (stmt_has_constants): Properly valueize SSA names when deciding
8806         whether the stmt has constants.
8808 2013-03-18  Richard Biener  <rguenther@suse.de>
8810         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
8811         whole function when there is nothing to do.
8812         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
8813         * tree-vectorizer.c (vectorize_loops): Update virtual and
8814         loop-closed SSA once.
8815         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8817 2013-03-18  Richard Biener  <rguenther@suse.de>
8819         PR middle-end/56113
8820         * domwalk.c (bb_postorder): New global static.
8821         (cmp_bb_postorder): New function.
8822         (walk_dominator_tree): Replace scheme imposing an order for
8823         visiting dominator sons by one sorting them at the time they
8824         are pushed on the stack.
8826 2013-03-18  Richard Biener  <rguenther@suse.de>
8828         PR tree-optimization/39326
8829         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8830         (struct mem_ref): Replace mem member with ao_ref typed member.
8831         (MEM_ANALYZABLE): Adjust.
8832         (memref_eq): Likewise.
8833         (mem_ref_alloc): Likewise.
8834         (gather_mem_refs_stmt): Likewise.
8835         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8836         (execute_sm_if_changed_flag_set): Adjust.
8837         (execute_sm): Likewise.
8838         (ref_always_accessed_p): Likewise.
8839         (refs_independent_p): Likewise.
8840         (can_sm_ref_p): Likewise.
8842 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
8844         PR c/56566
8845         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8846         return 1 even for !unsignedp.
8848 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
8850         * config/i386/i386.md (isa): Add x64 and nox64.
8851         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8852         (*pushtf): Enable *roF alternative for x64 isa only.
8853         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
8854         mode attribute of integer alternatives to DImode for TARGET_64BIT.
8855         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
8856         (*movtf_internal): Merge from *movtf_internal_rex64 and
8857         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
8858         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
8859         nox64 isa attributes.
8860         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
8861         nox64 isa attributes.
8862         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8864 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
8866         * config/alpha/alpha.c (TARGET_LRA_P): New define.
8868 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
8870         PR target/56640
8871         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8872         class names.  Remove trailing comma after "ALL_REGS".
8874 2013-03-16  Jan Hubicka  <jh@suse.cz>
8876         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8877         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8878         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8879         of cgraph_get_create_node.
8880         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8882 2013-03-16  Jason Merrill  <jason@redhat.com>
8884         PR debug/49090
8885         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8886         with DW_AT_default_value.
8888 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
8890         * BASE-VER: Set to 4.9.0.
8892 2013-03-14  Andi Kleen  <ak@linux.intel.com>
8894         PR target/56619
8895         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8896         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8897         Document _x* TSX intrinsics.
8899 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
8900             David Holsgrove  <david.holsgrove@xilinx.com>
8902         * configure.ac: Add MicroBlaze TLS support detection.
8903         * configure: Regenerate.
8904         * config/microblaze/microblaze-protos.h
8905         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8906         symbol_mentioned_p, label_mentioned_p): Add prototypes.
8907         * config/microblaze/microblaze.c (microblaze_address_type): Add
8908         ADDRESS_TLS and tls_reloc address types.
8909         (microblaze_address_info): Add tls_reloc.
8910         (TARGET_HAVE_TLS): Define.
8911         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8912          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
8913          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8914         load_tls_operand,  microblaze_call_tls_get_addr,
8915         microblaze_legitimize_tls_address): New functions.
8916         (microblaze_classify_unspec): Handle UNSPEC_TLS.
8917         (get_base_reg): Use microblaze_tls_symbol_p.
8918         (microblaze_classify_address): Handle TLS.
8919         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8920         label_mentioned_p and microblaze_tls_referenced_p.
8921         (microblaze_legitimize_address): Handle TLS.
8922         (microblaze_address_insns): Handle ADDRESS_TLS.
8923         (pic_address_needs_scratch): Handle TLS.
8924         (print_operand_address): Handle TLS.
8925         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8926         (microblaze_expand_move): Handle TLS.
8927         (microblaze_legitimate_constant_p): Check
8928         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8929         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8930         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8931         (PIC_OFFSET_TABLE_REGNUM): Set.
8932         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8933         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8934         (addsi3, movsi_internal2, movdf_internal): Update constraints
8935         * config/microblaze/predicates.md (arith_plus_operand): Define
8936         (move_operand): Redefine as move_src_operand,
8937         check microblaze_tls_referenced_p.
8939 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
8941         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8942         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8944 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
8946         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8947         CC mode for AND.
8949 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
8951         PR tree-optimization/53265
8952         * common.opt (Waggressive-loop-optimizations): New option.
8953         * tree-ssa-loop-niter.c: Include tree-pass.h.
8954         (do_warn_aggressive_loop_optimizations): New function.
8955         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
8956         if number_of_latch_executions returned constant.
8957         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8958         early.  If number_of_latch_executions returned constant, set
8959         nb_iterations_upper_bound back to it.
8960         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8961         field.
8962         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8963         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8965         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8966         (MULTILIB_OSDIRNAMES): Set.
8967         * genmultilib: If defaultosdirname doesn't start with :: , set
8968         defaultosdirname2 instead, clear it and emit two . multilib_raw
8969         entries instead of just one.
8971 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
8973         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8974         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8975         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8976         (SUBTARGET_OVERRIDE_OPTIONS): New.
8978 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
8980         PR target/49880
8981         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8982         (musermode): Convert to Var(TARGET_USERMODE).
8983         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8984         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8985         * config/sh/sh.c (sh_option_override): Use
8986         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8987         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8988         condition.
8989         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8990         TARGET_SH4.
8991         (udivsi3_i4_single, divsi3_i4_single): Use
8992         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8994 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
8996         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8997         default setting.
8999 2013-03-13  Richard Biener  <rguenther@suse.de>
9001         PR tree-optimization/56608
9002         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9003         calls when vectorizing basic-blocks.
9005 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9007         PR plugins/45078
9008         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9009         tm_file.
9011 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9013         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9015 2013-03-11  Jan Hubicka  <jh@suse.cz>
9017         PR lto/56557
9018         * lto-streamer-out.c (output_symbol_p): Skip references from
9019         constructors of external variables.
9021 2013-03-11  Jan Hubicka  <jh@suse.cz>
9023         PR middle-end/56571
9024         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9025         from pseudos.
9026         * emit-rtl.c (verify_rtx_sharing): Likewise.
9027         (copy_insn_1): Likewise.
9028         * rtl.c (copy_rtx): Likewise.
9030 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9032         PR target/56591
9033         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9034         output_operand_lossage message.
9036 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9038         PR target/56470
9039         * arm.c (shift_op): Validate RTL pattern on the fly.
9040         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9041         the RTL.
9043 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9045         PR target/56347
9046         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9047         new call patterns that clobber %fr12.
9048         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9049         split and postreload patterns.
9050         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9051         registers %fr12 and %fr12R as call used.
9053 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9055         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9056         (canon_address, record_store, replace_read, check_mem_read_rtx,
9057         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9058         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9059         rest_of_handle_dse): Likewise.
9061 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9063         PR middle-end/56524
9064         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9065         Add base_optabs.
9066         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9067         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9068         (save_optabs_if_changed): Replace with...
9069         (init_tree_optimization_optabs): ...this.
9070         * optabs.c (save_optabs_if_changed): Rename to...
9071         (init_tree_optimization_optabs): ...this.  Take the optimization node
9072         as argument.  Do nothing if the base optabs are already correct.
9073         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9074         to recompute optabs.
9075         * function.h (function): Remove optabs field.
9076         * function.c (invoke_set_current_function_hook): Call
9077         init_tree_optimization_optabs.  Use the result to initialize
9078         this_fn_optabs.
9080 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9082         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9083         if GTMA_HAS_NO_INSTRUMENTATION.
9084         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9085         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9086         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9087         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9088         GTMA_HAS_NO_INSTRUMENTATION.
9090 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9092         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9093         libasan_preinit.o.
9095 2013-03-08  Marek Polacek  <polacek@redhat.com>
9096             Jakub Jelinek  <jakub@redhat.com>
9098         PR tree-optimization/56478
9099         * predict.c (is_comparison_with_loop_invariant_p): Change the
9100         type of loop_step to tree.
9101         (predict_loops): Adjust.
9102         (predict_iv_comparison): Perform the computations on double_ints.
9104 2013-03-08  Richard Biener  <rguenther@suse.de>
9106         PR tree-optimization/56570
9107         * tree-cfg.c (verify_expr_location_1): Verify locations for
9108         DECL_DEBUG_EXPR.
9109         * tree-sra.c (create_access_replacement): Strip locations
9110         from DECL_DEBUG_EXPRs.
9112 2013-03-08  Richard Biener  <rguenther@suse.de>
9114         * tree-inline.c (expand_call_inline): Do not associate
9115         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9116         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9118 2013-03-08  Richard Biener  <rguenther@suse.de>
9120         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9121         or block changes with -Og.  Fix for location / block encoding
9122         changes and PHI arguments with locations.
9124 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9126         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9127         for all counters.
9128         (struct output_info): Likewise.
9129         (register_overhead): Remove bad gcc_assert.
9130         (bitmap_find_bit): If there is only a single bitmap element, do not
9131         count a miss as a search.
9132         (print_statistics): Update for counter type changes.
9133         (dump_bitmap_statistics): Likewise.  Print headers such that they
9134         are properly lined up with the printed counters.
9136 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9138         PR tree-optimization/56559
9139         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9140         check that it has only a single use.
9142 2013-03-07  Richard Biener  <rguenther@suse.de>
9144         * doc/invoke.texi (fwhole-program): Discourage use in combination
9145         with -flto.
9147 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9149         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9151         PR tree-optimization/56539
9152         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9153         instead of GSI_CONTINUE_LINKING as last argument to
9154         force_gimple_operand_gsi.  Adjust function comment.
9156         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9157         aarch64-cores.def.
9159         PR middle-end/56548
9160         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9161         promoted mode, convert the result back to the original mode.
9163 2013-03-06  Richard Biener  <rguenther@suse.de>
9165         PR middle-end/56294
9166         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9167         (insert_updated_phi_nodes_compare_uids): New function.
9168         (update_ssa): Sort symbols_to_rename after UID before
9169         traversing it to insert PHI nodes.
9171 2013-03-06  Richard Biener  <rguenther@suse.de>
9173         PR middle-end/50494
9174         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9175         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9177         Revert
9178         2013-02-13  Richard Biener  <rguenther@suse.de>
9180         PR lto/50494
9181         * varasm.c (output_constant_def_1): Get the decl representing
9182         the constant as argument.
9183         (output_constant_def): Wrap output_constant_def_1.
9184         (make_decl_rtl): Use output_constant_def_1 with the decl
9185         representing the constant.
9186         (build_constant_desc): Optionally re-use a decl already
9187         representing the constant.
9188         (tree_output_constant_def): Adjust.
9190 2013-03-06  Joey Ye  <joey.ye@arm.com>
9192         PR lto/50293
9193         * gcc.c (convert_white_space): New function.
9194         (main): Handles white space in function name.
9196 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9198         PR target/56529
9199         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9200         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9201         to SH_DIV_CALL_TABLE for TARGET_SH2.
9202         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9203         list.
9204         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9205         call-table options.
9207 2013-03-05  Sterling Augustine  <saugustine@google.com>
9208             Cary Coutant  <ccoutant@google.com>
9210         PR debug/55364
9211         * dwarf2out.c (resolve_addr): Don't call
9212         remove_loc_list_addr_table_entries a second time for the same
9213         expression.
9215 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9217         PR debug/56510
9218         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9219         (avoid_complex_debug_insns): New function.
9220         (expand_debug_locations): Call it.
9222         PR rtl-optimization/56484
9223         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9224         lifetimes of hard registers on small register class machines.
9226 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9228         * config/microblaze/microblaze-protos.h: Rename
9229         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9230         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9231         fast_interrupt.
9232         (microblaze_fast_interrupt_function_p): New function.
9233         (microblaze_is_interrupt_handler): Rename to
9234         microblaze_is_interrupt_variant and add fast_interrupt check.
9235         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9236         (save_restore_insns): Likewise.
9237         (compute_frame_size): Likewise.
9238         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9239         (microblaze_globalize_label): Likewise.
9240         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9241         * config/microblaze/microblaze.md: Use wrapper
9242         microblaze_is_interrupt_variant.
9244 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9246         * sdbout.c (sdbout_one_type): Switch to current function's section
9247         supporting cold/hot.
9249 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9251         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9252         -mxl-reorder.
9254 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9256         PR middle-end/56461
9257         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9258         if VALGRIND_GET_VBITS is defined, temporarily make object
9259         memory all defined, and restore previous valgrind addressability
9260         and definability afterwards.  Free this_object at the end.
9262         PR middle-end/56461
9263         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9264         right before calling lra_create_live_ranges, also call it
9265         when clearing live_p.  Only call lra_clear_live_ranges
9266         at the end if live_p.
9268         PR middle-end/56461
9269         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9271 2013-03-05  Richard Biener  <rguenther@suse.de>
9273         PR tree-optimization/56521
9274         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9275         value-id.
9277 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9279         PR c++/55135
9280         * except.h (remove_unreachable_eh_regions): New prototype.
9281         * except.c (remove_eh_handler_splicer): New function, split out
9282         of remove_eh_handler.
9283         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9284         warning about running it on many EH regions one at a time.
9285         (remove_unreachable_eh_regions_worker): New function, walk the
9286         EH tree in depth-first order and remove non-marked regions.
9287         (remove_unreachable_eh_regions): New function.
9288         * tree-eh.c (mark_reachable_handlers): New function, split out
9289         from remove_unreachable_handlers.
9290         (remove_unreachable_handlers): Use mark_reachable_handlers and
9291         remove_unreachable_eh_regions.
9292         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9293         and remove_unreachable_eh_regions.
9295 2013-03-05  Richard Biener  <rguenther@suse.de>
9297         PR middle-end/56525
9298         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9299         not freeing them until the end.
9301 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9303         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9305 2013-03-05  Richard Biener  <rguenther@suse.de>
9307         PR tree-optimization/56270
9308         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9309         of loads after scheduling an SLP instance.
9311 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9313         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9314         tic6x.exp.
9315         (check_gcc_parallelize): Run guality.exp as a separate job from
9316         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9317         struct-layout-1.exp with stackalign.exp.
9319         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9321         PR middle-end/56461
9322         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9323         load_index sbitmap even if some bit in it isn't set.
9325         PR middle-end/56461
9326         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9327         (discover_iteration_bound_by_body_walk): Change queues to
9328         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9329         spelling in comment.  Call safe_push on queues[bound_index] directly.
9330         Release queues[queue_index] in every iteration unconditionally.
9331         Release bounds vector.
9333         PR middle-end/56461
9334         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9335         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9336         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9337         inner_phis vector.
9339 2013-03-05  Richard Biener  <rguenther@suse.de>
9341         PR lto/56515
9342         * tree-inline.c (remap_blocks_to_null): New function.
9343         (expand_call_inline): When expanding a call stmt without
9344         an associated block inline remap all callee blocks to NULL.
9346 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9348         PR rtl-optimization/56494
9349         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9350         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9351         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9353         PR middle-end/56461
9354         * sel-sched-ir.c (free_sched_pools): Release
9355         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9356         if succs_info_pool.max_top isn't -1.
9358         PR bootstrap/56509
9359         * opts.c (opts_obstack, opts_concat): Moved to...
9360         * opts-common.c (opts_obstack, opts_concat): ... here.
9362 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9364         PR middle-end/56461
9365         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9367 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9369         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9370         all appropriate places.
9372 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9374         PR tree-optimization/56424
9375         * ipa-split.c (split_function): Do not set the RSO flag if result is
9376         not by reference and its type is a register type.
9378 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9380         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9381         (microblaze_legitimate_pic_operand): Likewise
9382         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9383         new function microblaze_legitimate_pic_operand
9384         * config/microblaze/microblaze-protos.h
9385         (microblaze_legitimate_pic_operand): Declare.
9387 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9389         * config/microblaze/predicates.md (call_insn_simple_operand):
9390         New predicate for supported rtx code types.
9391         * config/microblaze/microblaze.md (call_internal1): Use
9392         call_insn_simple_operand predicate.
9394 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9396         PR middle-end/56461
9397         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9398         partitions.ordered_remove.
9400         PR middle-end/56461
9401         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9402         vec_oprnds0.create (1) for modifier == NONE.
9404         PR middle-end/56461
9405         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9406         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9407         vec_oprnds1 right before pushing anything to it for
9408         scalar_shift_arg.
9410         PR middle-end/56461
9411         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9412         set nbbs to 0 instead of having separate code path.
9413         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9414         instead of false as last argument if returning NULL.
9416 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
9418         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9419         the attribute is now called "target" instead of "option".
9420         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9421         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
9422         attribute/pragma name for TARGET_OPTION_VALID_P and
9423         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9424         * doc/tm.texi: Regenerated.
9426 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
9428         * config/microblaze/microblaze.c:
9429         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9430         * config/microblaze/microblaze.h: Add -mxl-reorder to
9431         DRIVER_SELF_SPECS.
9432         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9433         instructions emitted if TARGET_REORDER.
9434         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9435         or 0 for -m/-mno case, but initialises as 2 to detect default use case
9436         separately.
9438 2013-03-01  Xinliang David Li  <davidxl@google.com>
9440         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9441         walk length.
9443 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
9445         PR middle-end/56461
9446         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9447         vector even when returning true.  Fix up function comment formatting.
9449         PR middle-end/56461
9450         * ira-build.c (ira_loop_nodes_count): New variable.
9451         (create_loop_tree_nodes): Initialize it.
9452         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9454         PR middle-end/56461
9455         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9456         method on dr_chain and result_chain.
9457         * tree-vect-stmts.c (vectorizable_store): Only call
9458         result_chain.create if j == 0.
9460         PR middle-end/56461
9461         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9462         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9463         before overwriting it.
9465 2013-03-01  Tobias Burnus  <burnus@net-b.de>
9467         * doc/extended.texi (C Extensions): Change order in @menu
9468         to match @node.
9469         (Other MIPS Built-in Functions): Move last MIPS entry before
9470         "picoChip Built-in Functions".
9471         (SH Built-in Functions): Move after RX Built-in Functions.
9472         * doc/gcc.texi (Introduction): Change order in @menu
9473         to match @node.
9474         * doc/md.texi (Constraints): Ditto.
9475         * gty.texi (Type Information): Ditto.
9476         (User-provided marking routines for template types): Make
9477         subsection.
9478         * doc/invoke.texi (AArch64 Options): Move before
9479         "Adapteva Epiphany Options".
9481 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
9482             Jakub Jelinek  <jakub@redhat.com>
9484         PR sanitizer/56454
9485         * asan.c (gate_asan): Lookup no_sanitize_address instead of
9486         no_address_safety_analysis attribute.
9487         * doc/extend.texi (no_address_safety_attribute): Rename to
9488         no_sanitize_address attribute, mention no_address_safety_analysis
9489         attribute as deprecated alias.
9491 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
9493         PR middle-end/56461
9494         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9495         type to vec<vec<tree> > *.
9496         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
9497         to be vec<tree> instead of vec<tree> *, set vec_defs
9498         to vNULL and call vec_defs.create (number_of_vects), adjust other
9499         uses of vec_defs.
9500         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9501         vectorizable_condition): Adjust vect_get_slp_defs callers.
9503 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9505         * config/aarch64/aarch64.c
9506         (aarch64_float_const_representable): Remove unused variable.
9508 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9510         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9512 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9514         * config/aarch64/aarch64-builtins.c
9515         (aarch64_init_simd_builtins): Make static.
9517 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9519         * config/aarch64/aarch64.c
9520         (aarch64_simd_make_constant): Make static.
9522 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9524         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9525         with no initialization to the RHS of debug statements.
9527 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9529         PR tree-optimization/56294
9530         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9531         Adjust dumping.
9532         (get_access_replacement): Do not call create_access_replacement.
9533         Assert a replacement exists.
9534         (get_repl_default_def_ssa_name): Create the replacement declaration
9535         itself.
9537 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9539         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9540         final_end_function.
9542 2013-02-28  Marek Polacek  <polacek@redhat.com>
9544         PR rtl-optimization/56466
9545         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9546         if we're changing a loop.
9547         (peel_loops_completely): Likewise.
9549 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
9551         PR c++/55813
9552         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9554 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9556         PR target/56445
9557         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9558         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9559         INTX_FTYPE_FX, FX_FTYPE_INTX.
9560         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9562 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9564         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9565         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9566         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9567         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9568         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9569         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9570         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9571         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9572         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9573         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9574         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9575         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9576         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9577         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9578         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9579         (avrxmega6): Increase max flash segments from 5 to 6.
9580         * config/avr/t-multilib: Regenerate.
9581         * config/avr/avr-tables.opt: Regenerate.
9582         * doc/avr-mmcu.texi: Regenerate.
9584 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9586         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9587         (avr_device_to_arch): Rename to avr_device_to_ld.
9588         (avr_device_to_as): New prototype.
9589         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9590         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9591         * config/avr/driver-avr.c (avr_device_to_as): New.
9592         (avr_device_to_arch): Rename to avr_device_to_ld.
9594 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9596         PR middle-end/56461
9597         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9598         method on dr_chain and result_chain.
9600         PR middle-end/56461
9601         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9602         pointer_set_destroy on not_executed_last_iteration.
9604         PR middle-end/56461
9605         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9607         PR middle-end/56461
9608         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9609         FOR_EACH_DEFINED_FUNCTION when freeing state.
9611         PR middle-end/56461
9612         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9613         pool_free.
9614         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9615         overwriting it.
9617         PR middle-end/56461
9618         * ipa-cp.c (decide_whether_version_node): Call vec_free on
9619         known_aggs[i].items and release known_aggs vector.
9621         PR middle-end/56461
9622         * ipa-reference.c (propagate): Free node_info even for alias nodes.
9624 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9626         * config/microblaze/microblaze.c (microblaze_emit_compare):
9627         Use xor for EQ/NE comparisions.
9628         * config/microblaze/microblaze.md (cstoresf4): Add constraints
9629         (cbranchsf4): Adjust operator to comparison_operator.
9631 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9633         PR middle-end/56461
9634         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9635         vector.
9636         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9637         vec_safe_push, always update *slot.
9638         (redirect_edge_var_map_clear): Use vec_free.
9639         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9640         (free_var_map_entry): Use vec_free.
9641         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9642         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9644 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
9646         PR middle-end/45472
9647         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9648         when the may_trap_p bit of the exprs being merged differs.
9649         Reorder tests for speculativeness in the logical and operator.
9651 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9653         * incpath.c (add_standard_paths): Use reconcat instead of concat
9654         where appropriate and avoid leaking memory.
9656         * opts.h: Include obstack.h.
9657         (opts_concat): New prototype.
9658         (opts_obstack): New declaration.
9659         * opts.c (opts_concat): New function.
9660         (opts_obstack): New variable.
9661         (init_options_struct): Call gcc_init_obstack on opts_obstack.
9662         (finish_options): Use opts_concat instead of concat
9663         and XOBNEWVEC instead of XNEWVEC.
9664         * opts-common.c (generate_canonical_option, decode_cmdline_option,
9665         generate_option): Likewise.
9666         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9667         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9669         PR target/56455
9670         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9671         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9673 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9675         PR middle-end/56461
9676         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9678 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9680         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9681         (arm_block_move_unaligned_straight): Likewise.
9682         (arm_adjust_block_mem): Likewise.
9684 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9686         PR target/48901
9687         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9688         temp, cond and label.
9689         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9691         PR target/52500
9692         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9693         * config/c6x/c6x.h (dbx_register_map): Update declaration.
9695         PR target/52501
9696         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9697         of prologue/epilogue functions.
9699         PR target/52550
9700         * config/tilegx/tilegx.c (tilegx_expand_prologue):
9701         Remove unused variable cfa_offset.
9702         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9704         PR target/54639
9705         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9706         type promotion to unsigned.
9708         PR target/54640
9709         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9710         for HOST_WIDE_INT of 32 bit / same size as int.
9711         (arm_block_move_unaligned_straight): Likewise.
9712         (arm_adjust_block_mem): Likewise.
9714         PR target/54662
9715         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9716         ALL_CFLAGS.
9718 2013-02-26  Marek Polacek  <polacek@redhat.com>
9720         PR tree-optimization/56426
9721         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9723 2013-02-26  Richard Biener  <rguenther@suse.de>
9725         PR target/56444
9726         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9727         unused variable loops.
9729 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9731         PR tree-optimization/56448
9732         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9733         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9734         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9735         later operands of the references, or even first operand for
9736         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9738         PR tree-optimization/56443
9739         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9740         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9741         to type_for_mode langhook.
9743 2013-02-25  Matt Turner  <mattst88@gmail.com>
9745         * doc/invoke.texi: Document r4700.
9747 2013-02-25  Richard Biener  <rguenther@suse.de>
9749         PR tree-optimization/56175
9750         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9751         split out from ...
9752         (simplify_bitwise_binary): ... here.  Also guard the conversion
9753         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9755 2013-02-25  Catherine Moore  <clm@codesourcery.com>
9757         Revert:
9758         2013-02-24  Catherine Moore  <clm@codesourcery.com>
9759             Maciej W. Rozycki  <macro@codesourcery.com>
9760             Tom de Vries  <tom@codesourcery.com>
9761             Nathan Sidwell  <nathan@codesourcery.com>
9762             Iain Sandoe  <iain@codesourcery.com>
9763             Nathan Froyd  <froydnj@codesourcery.com>
9764             Chao-ying Fu  <fu@mips.com>
9766         * doc/extend.texi: (micromips, nomicromips, nocompression):
9767         Document new function attributes.
9768         * doc/invoke.texi (minterlink-compressed, mmicromips,
9769         m14k, m14ke, m14kec): Document new options.
9770         (minterlink-mips16): Update documentation.
9771         * doc/md.texi (ZC, ZD): Document new constraints.
9772         * configure.ac (gcc_cv_as_micromips): Check if linker
9773         supports the .set micromips directive.
9774         * configure: Regenerate.
9775         * config.in: Regenerate.
9776         * config/mips/mips-tables.opt: Regenerate.
9777         * config/mips/micromips.md: New file.
9778         * constraints.md (ZC, AD): New constraints.
9779         * config/mips/predicates.md (movep_src_register): New predicate.
9780         (movep_src_operand): New predicate.
9781         (non_volatile_mem_operand): New predicate.
9782         * config/mips/mips.md (multimem): New type.
9783         (length): Differentiate between 17-bit and 18-bit branch offsets.
9784         (MOVEP1, MOVEP2): New mode iterator.
9785         (mov_<load>l): Use ZC constraint.
9786         (mov_<load>r): Likewise.
9787         (mov_<store>l): Likewise.
9788         (mov_<store>r): Likewise.
9789         (*branch_equality<mode>_inverted): Add microMIPS support.
9790         (*branch_equality<mode>): Likewise.
9791         (*jump_absolute): Likewise.
9792         (indirect_jump_<mode>): Likewise.
9793         (tablejump_<mode>): Likewise.
9794         (<optab>_internal): Likewise.
9795         (sibcall_internal): Likewise.
9796         (sibcall_value_internal): Likewise.
9797         (prefetch): Use constraint ZD.
9798         * config/mips/mips.opt (minterlink-compressed): New option.
9799         (minterlink-mips16): Now an alias for minterlink-compressed.
9800         (mmicromips): New option.
9801         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9802         (compare_and_swap_12): Likewise.
9803         (sync_add<mode>): Likewise.
9804         (sync_<optab>_12): Likewise.
9805         (sync_old_<optab>_12): Likewise.
9806         (sync_new_<optab>_12): Likewise.
9807         (sync_nand_12): Likewise.
9808         (sync_old_nand_12): Likewise.
9809         (sync_new_nand_12): Likewise.
9810         (sync_sub<mode>): Likewise.
9811         (sync_old_add<mode>): Likewise.
9812         (sync_old_sub<mode>): Likewise.
9813         (sync_new_add<mode>): Likewise.
9814         (sync_new_sub<mode>): Likewise.
9815         (sync_<optab><mode>): Likewise.
9816         (sync_old_<optab><mode>): Likewise.
9817         (sync_new_<optab><mode>): Likewise.
9818         (sync_nand<mode>): Likewise.
9819         (sync_old_nand<mode>): Likewise.
9820         (sync_new_nand<mode>): Likewise.
9821         (sync_lock_test_and_set<mode>): Likewise.
9822         (test_and_set_12): Likewise.
9823         (atomic_compare_and_swap<mode>): Likewise.
9824         (atomic_exchange<mode>_llsc): Likewise.
9825         (atomic_fetch_add<mode>_llsc): Likewise.
9826         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9827         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9828         (umips_save_restore_pattern_p): Likewise.
9829         (umips_load_store_pair_p): Likewise.
9830         (umips_output_load_store_pair): Likewise.
9831         (umips_movep_target_p): Likewise.
9832         (umips_12bit_offset_address_p): Likewise.
9833         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9834         (mips_base_mips16): Rename this...
9835         (mips_base_compression_flags): ...to this. Update all uses.
9836         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9837         (mips_mips16_decl_p): Delete.
9838         (mips_nomips16_decl_p): Delete.
9839         (mips_get_compress_on_flags): New function.
9840         (mips_get_compress_off_flags): New function.
9841         (mips_get_compress_mode): New function.
9842         (mips_get_compress_on_name): New function.
9843         (mips_get_compress_off_name): New function.
9844         (mips_insert_attributes): Support multiple compression types.
9845         (mips_merge_decl_attributes): Likewise.
9846         (umips_12bit_offset_address_p): New function.
9847         (mips_start_function_definition): Emit .set micromips directive.
9848         (mips_call_may_need_jalx_p): New function.
9849         (mips_function_ok_for_sibcall): Add microMIPS support.
9850         (mips_print_operand_punctuation): Support short delay slots and
9851         compact jumps.
9852         (umips_swm_mask, umips_swm_encoding): New.
9853         (umips_build_save_restore): New function.
9854         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9855         (was_mips16_p): Remove.
9856         (old_compression_mode): New.
9857         (mips_set_compression_mode): New function.
9858         (mips_set_current_function): Add microMIPS support.
9859         (mips_option_override): Likewise.
9860         (umips_save_restore_pattern_p): New function.
9861         (umips_output_save_restore): New function.
9862         (umips_load_store_pair_p_1): New function.
9863         (umips_load_store_pair_p): New function.
9864         (umips_output_load_store_pair_1): New function.
9865         (umips_output_load_store_pair): New function.
9866         (umips_movep_target_p) New function.
9867         (mips_prepare_pch_save): Add microMIPS support.
9868         * config/mips/mips.h (TARGET_COMPRESSION): New.
9869         (TARGET_CPU_CPP_BUILTINS): Update macro
9870         to use new compression flags and to support microMIPS.
9871         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9872         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9873         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9874         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9875         (ASM_SPEC): Support mmicromips and mno-micromips.
9876         (M16STORE_REG_P): New macro.
9877         (MIPS_CALL): Support TARGET_MICROMIPS.
9878         (MICROMIPS_J): New macro.
9879         (mips_base_mips16): Rename this...
9880         (mips_base_compression_flags): ...to this.
9881         (UMIPS_12BIT_OFFSET_P): New macro.
9882         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9883         (MULTILIB_DIRNAMES): Likewise.
9885 2013-02-25  Tom de Vries  <tom@codesourcery.com>
9887         PR rtl-optimization/56131
9888         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9889         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9890         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9892 2013-02-25  Tobias Burnus  <burnus@net-b.de>
9894         * doc/invoke.texi (-fsanitize=): Move from optimization
9895         to debugging options.
9897 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
9899         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9901 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
9902             Alexander Monakov  <amonakov@ispras.ru>
9904         PR middle-end/56077
9905         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9906         flush pending lists also on non-jumps.  Adjust comment.
9908 2013-02-24  Catherine Moore  <clm@codesourcery.com>
9909             Maciej W. Rozycki  <macro@codesourcery.com>
9910             Tom de Vries  <tom@codesourcery.com>
9911             Nathan Sidwell  <nathan@codesourcery.com>
9912             Iain Sandoe  <iain@codesourcery.com>
9913             Nathan Froyd  <froydnj@codesourcery.com>
9914             Chao-ying Fu  <fu@mips.com>
9916         * doc/extend.texi: (micromips, nomicromips, nocompression):
9917         Document new function attributes.
9918         * doc/invoke.texi (minterlink-compressed, mmicromips,
9919         m14k, m14ke, m14kec): Document new options.
9920         (minterlink-mips16): Update documentation.
9921         * doc/md.texi (ZC, ZD): Document new constraints.
9922         * configure.ac (gcc_cv_as_micromips): Check if linker
9923         supports the .set micromips directive.
9924         * configure: Regenerate.
9925         * config.in: Regenerate.
9926         * config/mips/mips-tables.opt: Regenerate.
9927         * config/mips/micromips.md: New file.
9928         * constraints.md (ZC, AD): New constraints.
9929         * config/mips/predicates.md (movep_src_register): New predicate.
9930         (movep_src_operand): New predicate.
9931         (non_volatile_mem_operand): New predicate.
9932         * config/mips/mips.md (multimem): New type.
9933         (length): Differentiate between 17-bit and 18-bit branch offsets.
9934         (MOVEP1, MOVEP2): New mode iterator.
9935         (mov_<load>l): Use ZC constraint.
9936         (mov_<load>r): Likewise.
9937         (mov_<store>l): Likewise.
9938         (mov_<store>r): Likewise.
9939         (*branch_equality<mode>_inverted): Add microMIPS support.
9940         (*branch_equality<mode>): Likewise.
9941         (*jump_absolute): Likewise.
9942         (indirect_jump_<mode>): Likewise.
9943         (tablejump_<mode>): Likewise.
9944         (<optab>_internal): Likewise.
9945         (sibcall_internal): Likewise.
9946         (sibcall_value_internal): Likewise.
9947         (prefetch): Use constraint ZD.
9948         * config/mips/mips.opt (minterlink-compressed): New option.
9949         (minterlink-mips16): Now an alias for minterlink-compressed.
9950         (mmicromips): New option.
9951         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9952         (compare_and_swap_12): Likewise.
9953         (sync_add<mode>): Likewise.
9954         (sync_<optab>_12): Likewise.
9955         (sync_old_<optab>_12): Likewise.
9956         (sync_new_<optab>_12): Likewise.
9957         (sync_nand_12): Likewise.
9958         (sync_old_nand_12): Likewise.
9959         (sync_new_nand_12): Likewise.
9960         (sync_sub<mode>): Likewise.
9961         (sync_old_add<mode>): Likewise.
9962         (sync_old_sub<mode>): Likewise.
9963         (sync_new_add<mode>): Likewise.
9964         (sync_new_sub<mode>): Likewise.
9965         (sync_<optab><mode>): Likewise.
9966         (sync_old_<optab><mode>): Likewise.
9967         (sync_new_<optab><mode>): Likewise.
9968         (sync_nand<mode>): Likewise.
9969         (sync_old_nand<mode>): Likewise.
9970         (sync_new_nand<mode>): Likewise.
9971         (sync_lock_test_and_set<mode>): Likewise.
9972         (test_and_set_12): Likewise.
9973         (atomic_compare_and_swap<mode>): Likewise.
9974         (atomic_exchange<mode>_llsc): Likewise.
9975         (atomic_fetch_add<mode>_llsc): Likewise.
9976         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9977         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9978         (umips_save_restore_pattern_p): Likewise.
9979         (umips_load_store_pair_p): Likewise.
9980         (umips_output_load_store_pair): Likewise.
9981         (umips_movep_target_p): Likewise.
9982         (umips_12bit_offset_address_p): Likewise.
9983         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9984         (mips_base_mips16): Rename this...
9985         (mips_base_compression_flags): ...to this. Update all uses.
9986         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9987         (mips_mips16_decl_p): Delete.
9988         (mips_nomips16_decl_p): Delete.
9989         (mips_get_compress_on_flags): New function.
9990         (mips_get_compress_off_flags): New function.
9991         (mips_get_compress_mode): New function.
9992         (mips_get_compress_on_name): New function.
9993         (mips_get_compress_off_name): New function.
9994         (mips_insert_attributes): Support multiple compression types.
9995         (mips_merge_decl_attributes): Likewise.
9996         (umips_12bit_offset_address_p): New function.
9997         (mips_start_function_definition): Emit .set micromips directive.
9998         (mips_call_may_need_jalx_p): New function.
9999         (mips_function_ok_for_sibcall): Add microMIPS support.
10000         (mips_print_operand_punctuation): Support short delay slots and
10001         compact jumps.
10002         (umips_swm_mask, umips_swm_encoding): New.
10003         (umips_build_save_restore): New function.
10004         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10005         (was_mips16_p): Remove.
10006         (old_compression_mode): New.
10007         (mips_set_compression_mode): New function.
10008         (mips_set_current_function): Add microMIPS support.
10009         (mips_option_override): Likewise.
10010         (umips_save_restore_pattern_p): New function.
10011         (umips_output_save_restore): New function.
10012         (umips_load_store_pair_p_1): New function.
10013         (umips_load_store_pair_p): New function.
10014         (umips_output_load_store_pair_1): New function.
10015         (umips_output_load_store_pair): New function.
10016         (umips_movep_target_p) New function.
10017         (mips_prepare_pch_save): Add microMIPS support.
10018         * config/mips/mips.h (TARGET_COMPRESSION): New.
10019         (TARGET_CPU_CPP_BUILTINS): Update macro
10020         to use new compression flags and to support microMIPS.
10021         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10022         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10023         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10024         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10025         (ASM_SPEC): Support mmicromips and mno-micromips.
10026         (M16STORE_REG_P): New macro.
10027         (MIPS_CALL): Support TARGET_MICROMIPS.
10028         (MICROMIPS_J): New macro.
10029         (mips_base_mips16): Rename this...
10030         (mips_base_compression_flags): ...to this.
10031         (UMIPS_12BIT_OFFSET_P): New macro.
10032         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10033         (MULTILIB_DIRNAMES): Likewise.
10035 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10037         PR target/52555
10038         * target-globals.c (save_target_globals): For init_reg_sets and
10039         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10041 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10043         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10044         * config/aarch64/t-aarch64
10045         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10047 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10049         PR inline-asm/56148
10050         * lra-constraints.c (process_alt_operands): Reload operand
10051         conflicting with earlier clobber only if no more other conflicting
10052         operands.
10054 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10056         PR sanitizer/56393
10057         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10058         if not linking a shared library.
10060 2013-02-22  Seth LaForge  <sethml@google.com>
10062         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10064 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10066         * config/arm/arm.md (split for extendsidi): Update condition.
10067         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10068         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10069         (qhs_zextenddi_cstr): Likewise.
10071 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10073         PR middle-end/56420
10074         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10075         avoid signed wrapping.
10076         (expand_mult): Handle properly multiplication by
10077         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10078         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10079         in the compiler if coeff is HOST_WIDE_INT_MIN.
10080         (expand_divmod): Don't make ext_op1 static, change it's type to
10081         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10083         PR rtl-optimization/50339
10084         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10085         field.
10086         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10087         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10088         into splitting_ashiftrt field.
10089         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10090         ASHIFTRT.
10091         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10092         choices.
10094 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10096         PR middle-end/56108
10097         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10098         are sure to go irrevocable.
10100 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10102         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10103         scalars are valid operands.
10105 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10107         PR tree-optimization/56310
10108         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10109         only matching indices and non-negative final offsets.
10110         (intersect_aggregates_with_edge): Pass src_idx to
10111         agg_replacements_to_vector.  Pass src_idx insstead of index to
10112         intersect_with_agg_replacements.
10114 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10116         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10117         instead of hard-wired defaults.
10119 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10121         * doc/invoke.texi (MIPS Options): Update documentation of the
10122         floating-point multiply-accumulate instruction restrictions.
10124 2013-02-21  Kostya Serebryany  <kcc@google.com>
10126         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10127         asan_shadow_offset on x86_64 linux.
10129 2013-02-21  Richard Biener  <rguenther@suse.de>
10131         PR tree-optimization/56415
10132         Revert
10133         2013-02-11  Richard Biener  <rguenther@suse.de>
10135         PR tree-optimization/56273
10136         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10137         first VRP run.
10139 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10141         PR bootstrap/56258
10142         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10143         instead of @itemx.
10145         PR inline-asm/56405
10146         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10147         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10149 2013-02-20  Jan Hubicka  <jh@suse.cz>
10151         PR tree-optimization/56265
10152         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10153         when target is referenced for first time.
10155 2013-02-20  Richard Biener  <rguenther@suse.de>
10157         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10158         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10159         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10160         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10161         not return anything.
10162         (rename_ssa_copies): Do not remove unused locals.
10163         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10164         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10165         * passes.c (execute_function_todo): Do not schedule unused locals
10166         removal if cleanup_tree_cfg did something.
10167         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10168         about the number of removed locals.
10170 2013-02-20  Richard Biener  <rguenther@suse.de>
10172         PR tree-optimization/56398
10173         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10175 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10177         PR tree-optimization/55334
10178         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10179         restricted pointers to arrays.
10181 2013-02-20  Richard Biener  <rguenther@suse.de>
10182             Jakub Jelinek  <jakub@redhat.com>
10184         PR tree-optimization/56396
10185         * tree-ssa-ccp.c (n_const_val): New static variable.
10186         (get_value): Return NULL for SSA names we don't have a lattice
10187         entry for.
10188         (ccp_initialize): Initialize n_const_val.
10189         * tree-ssa-copy.c (n_copy_of): New static variable.
10190         (init_copy_prop): Initialize n_copy_of.
10191         (get_value): Return NULL_TREE for SSA names we don't have a
10192         lattice entry for.
10194 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10196         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10198 2013-02-20  Richard Biener  <rguenther@suse.de>
10200         * genpreds.c (write_lookup_constraint): Do not compare first
10201         letter of the constraint again.
10203 2013-02-20  Richard Biener  <rguenther@suse.de>
10205         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10206         and ceil_log2.
10207         (get_use_iv_cost): Terminate hashtable walk when coming across
10208         an empty entry.
10210 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10212         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10213         reassociation for avx2 targets.
10215 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10217         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10218         Add version check for v8.10.a to enable microblaze_has_clz
10219         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10220         version and TARGET_PATTERN_COMPARE check
10221         * config/microblaze/microblaze.md: New clzsi2 instruction
10223 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10225         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10226         function before branching.
10228 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10230         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10231         DUMP_INSN_RTX_UID.
10232         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10234 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10236         PR middle-end/55889
10237         * sel-sched.c: Include ira.h.
10238         (implicit_clobber_conflict_p): New function.
10239         (moveup_expr): Use it.
10240         * Makefile.in (sel-sched.o): Depend on ira.h.
10242 2013-02-19  Richard Biener  <rguenther@suse.de>
10244         PR tree-optimization/56384
10245         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10246         (vn_hash_type): Split out from ...
10247         (vn_hash_constant_with_type): ... here.
10248         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10249         (vn_phi_eq): Compare types from vn_phi_s structure.
10250         (vn_phi_lookup): Populate vn_phi_s type.
10251         (vn_phi_insert): Likewise.
10253 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10255         PR tree-optimization/56350
10256         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10257         if haven't found reduction or nested cycle operand, rather than
10258         asserting we must find it.
10260         PR tree-optimization/56381
10261         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10262         to fold_build3.
10264 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10265             Jakub Jelinek  <jakub@redhat.com>
10267         PR target/52555
10268         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10269         (swap_optab_enable): Same.
10270         (init_all_optabs): Use argument instead of global.
10271         * tree.h (struct tree_optimization_option): New field target_optabs.
10272         * expr.h (init_all_optabs): Add argument to prototype.
10273         (TREE_OPTIMIZATION_OPTABS): New.
10274         (save_optabs_if_changed): Protoize.
10275         * optabs.h: Declare this_fn_optabs.
10276         * optabs.c (save_optabs_if_changed): New.
10277         Declare this_fn_optabs.
10278         (init_optabs): Add argument to init_all_optabs() call.
10279         * function.c (invoke_set_current_function_hook): Handle per
10280         function optabs.
10281         * function.h (struct function): New field optabs.
10282         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10283         optimization_current_node has changed.
10284         * target-globals.h (save_target_globals_default_opts): Protoize.
10285         * target-globals.c (save_target_globals_default_opts): New.
10287 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10289         PR target/56347
10290         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10291         registers %fr12 and %fr12R as call used.
10293         PR target/56214
10294         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10295         and HImode, require all displacements to be an integer multiple of
10296         their mode size.
10297         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10298         only allow QImode and HImode when reload is in progress and strict is
10299         true.  Likewise for symbolic addresses.  Use base14_operand to check
10300         displacements in REG+BASE addresses.
10302 2013-02-18  Richard Biener  <rguenther@suse.de>
10304         PR tree-optimization/56366
10305         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10306         handle sign-conversion of outer-loop initial induction value.
10308 2013-02-18  Richard Biener  <rguenther@suse.de>
10310         PR middle-end/56349
10311         * cfghooks.c (merge_blocks): If we merge a latch into another
10312         block adjust references to it.
10313         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10314         (verify_loop_structure): Verify that a recorded latch is in fact
10315         a latch.
10317 2013-02-18  Richard Biener  <rguenther@suse.de>
10319         PR tree-optimization/56321
10320         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10321         order SSA name release and virtual operand unlinking.
10323 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10325         * config/microblaze/microblaze.md (save_stack_block): Define.
10326         (restore_stack_block): Likewise.
10328 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10330         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10331         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10332         * config/microblaze/microblaze.c (microblaze_option_override):
10333         Bail out early for PIC modes when target does not support PIC.
10335 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10337         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10338         Replace with a microblaze version.
10339         (microblaze_trampoline_init): Adapt for microblaze.
10340         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10341         microblaze.
10343 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10344             Dodji Seketeli  <dodji@redhat.com>
10346         PR asan/56330
10347         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10348         (instrument_mem_region_access): Do not forget to always put
10349         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10350         0) statement, even for cases where either 'base' or 'base + len'
10351         are not instrumented -- because they have been previously
10352         instrumented.  Simplify the logic by putting all the statements
10353         instrument 'base + len' inside a sequence, and then insert that
10354         sequence right before the current insertion point.  Then, to
10355         instrument 'base + len', just get an iterator on that statement.
10356         And do not forget to update the pointer to iterator the function
10357         received as argument.
10359 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10361         PR rtl-optimization/56348
10362         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10364 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10366         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10367         (clean_graph_dump_file): Pass base to start_graph_dump.
10369 2013-02-14  Richard Henderson  <rth@redhat.com>
10371         PR target/55941
10372         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10374 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10376         * collect2-aix.h: Define F_LOADONLY.
10378 2013-02-14  Richard Biener  <rguenther@suse.de>
10380         PR lto/50494
10381         * varasm.c (output_constant_def_1): Get the decl representing
10382         the constant as argument.
10383         (output_constant_def): Wrap output_constant_def_1.
10384         (make_decl_rtl): Use output_constant_def_1 with the decl
10385         representing the constant.
10386         (build_constant_desc): Optionally re-use a decl already
10387         representing the constant.
10388         (tree_output_constant_def): Adjust.
10390 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10392         Fix an asan crash
10393         * asan.c (instrument_builtin_call):  Really put the length of the
10394         second source argument into src1_len.
10396 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10398         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10399         argument.  If it is false, don't create edge from then_bb to
10400         fallthru_bb.
10401         (insert_if_then_before_iter): Pass true to it.
10402         (build_check_stmt): Pass false to it.
10403         (transform_statements): Flush hash table only on extended basic
10404         block boundaries, rather than at the beginning of every bb.
10405         Don't flush hash table on nonfreeing_call_p calls.
10406         * tree-flow.h (nonfreeing_call_p): New prototype.
10407         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10409 2013-02-13  David S. Miller  <davem@davemloft.net>
10411         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10413 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10415         PR target/56184
10416         * ira.c (max_regno_before_ira): Move from ...
10417         (ira): ... here.
10418         (fix_reg_equiv_init): Use max_regno_before_ira instead of
10419         vec_safe_length.
10421 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10423         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10425 2013-02-13  Richard Biener  <rguenther@suse.de>
10427         PR lto/56295
10428         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10429         globals in MEM_REFs.
10431 2013-02-13  Richard Biener  <rguenther@suse.de>
10433         * loop-init.c (loop_optimizer_init): Clear loop state when
10434         re-initializing preserved loops.
10435         * loop-unswitch.c (unswitch_single_loop): Return whether
10436         we unswitched the loop.  Do not verify loop state here.
10437         (unswitch_loops): When we unswitched a loop discover new loops.
10439 2013-02-13  Kostya Serebryany  <kcc@google.com>
10441         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10442         on x86_64 linux.
10443         * sanitizer.def: Rename __asan_init to __asan_init_v1.
10445 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
10447         Avoid instrumenting duplicated memory access in the same basic block
10448         * Makefile.in (asan.o): Add new dependency on hash-table.h
10449         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10450         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10451         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10452         (free_mem_ref_resources, has_mem_ref_been_instrumented)
10453         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10454         (get_mem_ref_of_assignment): New functions.
10455         (get_mem_refs_of_builtin_call): Extract from
10456         instrument_builtin_call and tweak a little bit to make it fit with
10457         the new signature.
10458         (instrument_builtin_call): Use the new
10459         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
10460         of is_gimple_builtin_call.
10461         (instrument_derefs, instrument_mem_region_access): Insert the
10462         instrumented memory reference into the hash table.
10463         (maybe_instrument_assignment): Renamed instrument_assignment into
10464         this, and change it to advance the iterator when instrumentation
10465         actually happened and return true in that case.  This makes it
10466         homogeneous with maybe_instrument_assignment, and thus give a
10467         chance to callers to be more 'regular'.
10468         (transform_statements): Clear the memory reference hash table
10469         whenever we enter a new BB, when we cross a function call, or when
10470         we are done transforming statements.  Use
10471         maybe_instrument_assignment instead of instrumentation.  No more
10472         need to special case maybe_instrument_assignment and advance the
10473         iterator after calling it; it's now handled just like
10474         maybe_instrument_call.  Update comment.
10476 2013-02-13  Richard Biener  <rguenther@suse.de>
10478         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10479         Fix loop discovery code.
10481 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
10483         PR inline-asm/56148
10484         * lra-constraints.c (process_alt_operands): Match early clobber
10485         operand with itself.  Check conflicts with earlyclobber only if
10486         the operand is not reloaded.  Prefer to reload conflicting operand
10487         if earlyclobber and matching operands are the same.
10489 2013-02-12  Richard Biener  <rguenther@suse.de>
10491         PR lto/56297
10492         * lto-streamer-out.c (write_symbol): Do not output symbols
10493         for hard register variables.
10495 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
10497         PR target/54222
10498         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10499         (umulsidi3_insn, mulsidi3_insn): New insns.
10501 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
10503         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10504         (struct tune_params): Add vec_costs field.
10505         * config/arm/arm.c (arm_builtin_vectorization_cost)
10506         (arm_add_stmt_cost): New functions.
10507         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10508         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10509         (arm_default_vec_cost): New struct of type cpu_vec_costs.
10510         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10511         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10512         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10513         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10515 2013-02-12  Richard Biener  <rguenther@suse.de>
10517         PR lto/56295
10518         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10519         decls again if possible.
10521 2013-02-12  Richard Biener  <rguenther@suse.de>
10523         PR middle-end/56288
10524         * tree-ssa.c (verify_ssa_name): Fix check, move
10525         SSA_NAME_IN_FREE_LIST check up.
10527 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
10528             Steven Bosscher   <steven@gcc.gnu.org>
10530         PR rtl-optimization/56151
10531         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10532         equal to op0 or op1, and last_insn pattern is CODE operation
10533         with MEM dest and one of the operands matches that MEM.
10535 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
10537         * doc/extend.texi: Document Function Multiversioning and "default"
10538         parameter string to target attribute.
10539         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10540         target attribute parameter is "default".
10541         (ix86_compare_version_priority): Remove checks for target attribute.
10542         (ix86_mangle_function_version_assembler_name): Change error to sorry.
10543         Remove check for target attribute equal to NULL. Add assert.
10544         (ix86_generate_version_dispatcher_body): Change error to sorry.
10546 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
10547             Jack Howarth  <howarth@bromo.med.uc.edu>
10548             Patrick Marlier  <patrick.marlier@gmail.com>
10550         PR libitm/55693
10551         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10552         define ENDFILE_SPEC as TM_DESTRUCTOR.
10553         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10555 2013-02-11  Alexander Potapenko  <glider@google.com>
10556             Jack Howarth  <howarth@bromo.med.uc.edu>
10557             Jakub Jelinek  <jakub@redhat.com>
10559         PR sanitizer/55617
10560         * config/darwin.c (cdtor_record): Rename ctor_record.
10561         (sort_cdtor_records): Rename sort_ctor_records.
10562         (finalize_dtors): New routine to sort destructors by
10563         priority before use in assemble_integer.
10564         (machopic_asm_out_destructor): Use finalize_dtors if needed.
10566 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
10568         PR rtl-optimization/56275
10569         * simplify-rtx.c (avoid_constant_pool_reference): Check that
10570         offset is non-negative and less than cmode size before
10571         calling simplify_subreg.
10573 2013-02-11  Richard Biener  <rguenther@suse.de>
10575         PR tree-optimization/56264
10576         * cfgloop.h (fix_loop_structure): Adjust prototype.
10577         * loop-init.c (fix_loop_structure): Return the number of
10578         newly discovered loops.
10579         * tree-cfgcleanup.c (repair_loop_structures): When new loops
10580         are discovered, do a full loop-closed SSA rewrite.
10582 2013-02-11  Richard Biener  <rguenther@suse.de>
10584         PR tree-optimization/56273
10585         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10586         first VRP run.
10587         (check_array_ref): Fix missing newline in dumps.
10588         (search_for_addr_array): Likewise.
10590 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
10592         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10594 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
10596         PR target/56256
10597         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10599 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
10601         PR rtl-optimization/56246
10602         * lra-constraints.c (simplify_operand_subreg): Try to reuse
10603         reload pseudo.
10604         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10605         constraints are satisfied.
10607 2013-02-08  Jeff Law  <law@redhat.com>
10609         PR debug/53948
10610         * emit-rtl.c (reg_is_parm_p): New function.
10611         * regs.h (reg_is_parm_p): New prototype.
10612         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10613         callee-clobbered registers.
10615 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10617         PR target/56043
10618         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10619         If there is no implicit builtin declaration, just return NULL.
10621 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10623         * config/i386/sse.md (FMAMODEM): New mode iterator.
10624         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10625         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10627 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10629         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10630         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10631         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10633 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10635         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10636         (microblaze*-*-elf): Likewise.
10637         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10638         LINK_SPEC.
10639         * config/microblaze/microblaze-c.c: Add builtin defines for
10640         _LITTLE_ENDIAN and _BIG_ENDIAN.
10641         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10642         add to TARGET_DEFAULT flags.
10643         Expand ASM_SPEC and LINK_SPEC.
10644         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10645         * config/microblaze/microblaze.md: Update extendsidi2 and
10646         movdi_internal instructions to use low-order / high-order reg
10647         print_operands.
10648         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10649         options and inversemask / mask of LITTLE_ENDIAN.
10650         * config/microblaze/t-microblaze: Expand multilib options to
10651         include mlittle-endian (le) and update exceptions patterns.
10653 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
10655         PR rtl-optimization/56195
10656         * lra-constraints.c (get_reload_reg): Don't reuse regs
10657         if they have smaller mode than requested, if they have
10658         wider mode than requested, try to return a SUBREG.
10660         PR tree-optimization/56250
10661         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10662         if type is unsigned and code isn't MULT_EXPR.
10664 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10666         PR tree-optimization/56064
10667         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10668         bits according to mode.
10669         * fixed-value.h (fixed_from_double_int)
10670         (const_fixed_from_double_int): Adjust comments.
10672 2013-02-08  Richard Biener  <rguenther@suse.de>
10674         PR lto/56231
10675         * lto-streamer.h (struct data_in): Remove current_file, current_line
10676         and current_col members.
10677         * lto-streamer-out.c (lto_output_location): Stream changed bits
10678         en-block for efficiency.
10679         * lto-streamer-in.c (clear_line_info): Remove.
10680         (lto_input_location): Cache current file, line and column
10681         globally via local statics.  Read changed bits en-block.
10682         (input_function): Do not call clear_line_info.
10683         (lto_read_body): Likewise.
10684         (lto_input_toplevel_asms): Likewise.
10686 2013-02-08  Michael Matz  <matz@suse.de>
10688         PR tree-optimization/52448
10689         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10690         (nt_call_phase): New static.
10691         (add_or_mark_expr): Only mark accesses with newer phase than any
10692         call seen.
10693         (nonfreeing_call_p): New.
10694         (nt_init_block): Update nt_call_phase, mark blocks as visited.
10695         (nt_fini_block): Keep blocks marked as visited.
10696         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10698 2013-02-08  Richard Biener  <rguenther@suse.de>
10700         * ira.c (ira): Free broken dominator information.
10702 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10704         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10706 2013-02-08  Marek Polacek  <polacek@redhat.com>
10708         * cfgloop.c (verify_loop_structure): Add more checking of headers.
10710 2013-02-08  Richard Biener  <rguenther@suse.de>
10712         PR middle-end/56181
10713         * cfgloop.h (flow_loops_find): Adjust.
10714         (bb_loop_header_p): Declare.
10715         * cfgloop.c (bb_loop_header_p): New function split out from ...
10716         (flow_loops_find): ... here.  Adjust function signature,
10717         support incremental loop structure update.
10718         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
10719         * cfgloopmanip.c (fix_loop_structure): Move ...
10720         * loop-init.c (fix_loop_structure): ... here.
10721         (apply_loop_flags): Split out from ...
10722         (loop_optimizer_init): ... here.
10723         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
10724         in incremental mode, only remove dead loops here.
10726 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10728         PR target/54222
10729         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10730         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10731         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10732         (*round<mode>3.libgcc): New insns for fixed-modes.
10733         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10734         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10735         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10736         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10737         implementations.  Define to __builtin_avr_absFX,
10738         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10739         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10740         __builtin_avr_countlsFX, respectively.
10741         * config/avr/avr-c.c (target.h): Include it.
10742         (enum avr_builtin_id): New enum.
10743         (avr_resolve_overloaded_builtin): New static function.
10744         (avr_register_target_pragmas): Use it to set
10745         targetm.resolve_overloaded_builtin.
10746         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10747         tree nodes used by DEF_BUILTIN.
10748         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10749         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10750         <AVR_BUILTIN_xxBITS>: Same.
10752 2013-02-08  Richard Biener  <rguenther@suse.de>
10754         * cfgloop.c (verify_loop_structure): Properly handle
10755         a loop exiting to another loop header.
10756         * ira-int.h (ira_loops): Remove.
10757         * ira.c (ira_loops): Remove.
10758         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10759         (do_reload): Use loop_optimizer_finalize.
10760         * ira-build.c (create_loop_tree_nodes): Use get_loops and
10761         number_of_loops to access the loop tree.
10762         (more_one_region_p): Likewise.
10763         (finish_loop_tree_nodes): Likewise.
10764         (rebuild_regno_allocno_maps): Likewise.
10765         (mark_loops_for_removal): Likewise.
10766         (mark_all_loops_for_removal): Likewise.
10767         (remove_unnecessary_regions): Likewise.
10768         (ira_build): Likewise.
10769         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10771 2013-02-08  Richard Biener  <rguenther@suse.de>
10773         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10774         * ipa-pure-const.c (analyze_function): Avoid calling
10775         mark_irreducible_loops twice.
10776         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
10778 2013-02-07  David S. Miller  <davem@davemloft.net>
10780         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10781         on 'reg'.
10782         * var-tracking.c (vt_add_function_parameter): Test the presence of
10783         HAVE_window_save properly and do not remap argument registers when
10784         we have a leaf function.
10786 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
10788         PR bootstrap/56227
10789         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10790         instead of "ll".
10791         * config/i386/i386.c (ix86_print_operand): Ditto.
10793 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
10795         * lra-constraints.c (process_alt_operands): Fix recently added comment.
10797 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
10799         PR rtl-optimization/56225
10800         * lra-constraints.c (process_alt_operands): Check that reload hard
10801         reg can hold value for strict_low_part.
10803 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
10805         PR debug/56154
10806         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
10807         dwarf2out_end_function.
10808         (in_first_function_p, maybe_at_text_label_p,
10809         first_loclabel_num_not_at_text_label): New variables.
10810         (dwarf2out_var_location): In the first function find out
10811         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
10812         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10813         functions.
10815 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
10817         PR rtl-optimization/56178
10818         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10819         SUBREG of a register.  Tidy up related block of code.
10820         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10821         note if the source is a register or a SUBREG of a register.
10823 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
10825         PR target/56228
10826         * config/rs6000/rs6000.md (ptrm): New mode attr.
10827         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10828         call_value_indirect_aix<pttrsize>,
10829         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10830         m in constraints.
10832 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10834         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10835         if -bnortl. Convert to strcmp and strncmp.
10837 2013-02-07  Alan Modra  <amodra@gmail.com>
10839         PR target/54009
10840         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10841         addresses won't wrap when offsetting.
10842         (rs6000_secondary_reload): Provide secondary reloads needed for
10843         wrapping LO_SUM addresses.
10845 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
10847         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10848         MACH, just __MACH__.
10850 2013-02-06  Richard Biener  <rguenther@suse.de>
10852         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10853         instead of calling fix_loop_structure.
10855 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
10857         PR middle-end/56217
10858         * omp-low.c (use_pointer_for_field): Return false if
10859         lower_send_shared_vars doesn't generate any copy-out code.
10861 2013-02-06  Tom de Vries  <tom@codesourcery.com>
10863         PR rtl-optimization/56131
10864         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10865         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
10866         of the label is NULL.  Add comment.
10868 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
10870         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10872         PR sanitizer/55374
10873         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10874         (STATIC_LIBTSAN_LIBS): Likewise.
10875         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10876         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10877         is defined, don't add anything else beyond that.
10878         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10879         (LINK_COMMAND_SPEC): Use them.
10881         PR tree-optimization/56205
10882         * tree-stdarg.c (check_all_va_list_escapes): Return true if
10883         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10884         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10886 2013-02-05  Richard Biener  <rguenther@suse.de>
10888         PR tree-optimization/53342
10889         PR tree-optimization/53185
10890         * tree-vectorizer.h (vect_check_strided_load): Remove.
10891         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10892         not disallow peeling for vectorized strided loads.
10893         (vect_check_strided_load): Make static and simplify.
10894         (vect_analyze_data_refs): Adjust.
10895         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10896         correctly when vectorizing strided loads.
10898 2013-02-05  Richard Biener  <rguenther@suse.de>
10900         * doc/install.texi: Refer to ISL, not PPL.
10902 2013-02-05  Jan Hubicka  <jh@suse.cz>
10904         PR tree-optimization/55789
10905         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10907 2013-02-05  Jan Hubicka  <jh@suse.cz>
10909         PR tree-optimization/55789
10910         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10911         the dead call anyway.
10913 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
10915         PR sanitizer/55374
10916         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10918 2013-02-04  Alexander Potapenko  <glider@google.com>
10919             Jack Howarth  <howarth@bromo.med.uc.edu>
10920             Jakub Jelinek  <jakub@redhat.com>
10922         PR sanitizer/55617
10923         * config/darwin.c (sort_ctor_records): Stabilized qsort
10924         on constructor priority by using original position.
10925         (finalize_ctors): New routine to sort constructors by
10926         priority before use in assemble_integer.
10927         (machopic_asm_out_constructor): Use finalize_ctors if needed.
10929 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
10931         PR libstdc++/54314
10932         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10933         about visibility on artificial decls.
10934         * config/sol2.c (solaris_assemble_visibility): Likewise.
10936 2013-02-04  Kai Tietz  <ktietz@redhat.com>
10938         PR target/56186
10939         * config/i386/i386.c (function_value_ms_64): Add additional valtype
10940         argument and improve checking of return-argument types for 16-byte
10941         modes.
10942         (ix86_function_value_1): Add additional valtype argument on call
10943         of function_value_64.
10944         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10945         handling infunction_value_64 function.
10947 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
10949         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
10951 2013-02-04  Richard Biener  <rguenther@suse.de>
10953         PR tree-optimization/56188
10954         * tree-ssa-structalias.c (label_visit): Consider case with
10955         initially non-empty points-to set.
10956         (perform_var_substitution): Dump node mapping and clean up.
10958 2013-02-04  Richard Guenther  <rguenther@suse.de>
10960         PR lto/56168
10961         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10962         node prevail as last resort.
10963         (lto_symtab_merge_decls): Remove guard on LTRANS here.
10964         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
10966 2013-02-04  Richard Biener  <rguenther@suse.de>
10968         PR tree-optimization/56113
10969         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10970         Merge into ...
10971         (equiv_class_lookup_or_add): ... this.
10972         (label_visit): Adjust and fix error in previous patch.
10973         (perform_var_substitution): Adjust.
10975 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
10977         * config/sh/divtab.c: Fix formatting and comments throughout the file.
10978         * config/sh/sh4-300.md: Likewise.
10979         * config/sh/sh4a.md: Likewise.
10980         * config/sh/constraints.md: Likewise.
10981         * config/sh/sh.md: Likewise.
10982         * config/sh/netbsd-elf.h: Likewise.
10983         * config/sh/predicates.md: Likewise.
10984         * config/sh/sh-protos.h: Likewise.
10985         * config/sh/ushmedia.h: Likewise.
10986         * config/sh/linux.h: Likewise.
10987         * config/sh/sh.c: Likewise.
10988         * config/sh/superh.h: Likewise.
10989         * config/sh/elf.h: Likewise.
10990         * config/sh/sh4.md: Likewise.
10991         * config/sh/sh.h: Likewise.
10993 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10995         * config/pa/constraints.md: Adjust unused letters.  Change "T"
10996         constraint to match_test floating_point_store_memory_operand().
10997         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10998         (base14_operand): New.
10999         (floating_point_store_memory_operand): New.
11000         (integer_store_memory_operand): Revise to use base14_operand and
11001         reg_plus_base_memory_operand.
11002         (move_dest_operand): Allow symbolic_memory_operands.
11003         (symbolic_memory_operand): Check for LO_SOM.
11004         (symbolic_operand): Change default case to break.
11005         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11006         CONST_DOUBLE values to be reloaded by putting them into memory when
11007         the destination is a floating point register.
11008         (movdf): Remove code to handle CONST_DOUBLE.
11009         (movsf): Likewise.
11010         (reload_indf_r1): New.
11011         (reload_insf_r1): New.
11012         Consistently use "Q" and "T" constraints with integer and floating
11013         point move instructions, respectively.
11014         (movdi): Remove FAIL.
11015         Change predicate for source operand unamed DImode move from
11016         general_operand to move_src_operand.
11017         (umulsidi3): Change predicate for destination operand to
11018         register_operand.
11019         Likewise for similar unamed patterns.
11020         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11021         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11022         (hppa_legitimize_address): Simplify mask calculation.
11023         (pa_emit_move_sequence): Revised handling of secondary reloads from
11024         REG+D addresses for floating point loads and stores.  Directly handle
11025         loading CONST0_RTX (mode) to a floating point register.
11026         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11027         to floating point registers.  Don't restrict secondary reloads to
11028         floating point registers to integer modes.  Revise some comments and
11029         cleanup some code.
11030         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11031         (pa_legitimate_address_p): New.
11032         (pa_legitimize_reload_address): New.
11033         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11034         (STRICT_REG_OK_FOR_BASE_P): New.
11035         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11036         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11038 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11039             Andrew Dixie  <andrewd@gentrack.com>
11041         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11042         flag set.
11044 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11046         * expmed.c (extract_bit_field_1): Pass the full width of the
11047         structure to get_best_reg_extraction_insn.
11049 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11051         PR target/54601
11052         * configure.ac (use_cxa_atexit): Add AIX.
11053         * configure: Regenerate.
11055         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11057 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11059         PR debug/54793
11060         * final.c (need_profile_function): New variable.
11061         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11062         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11063         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11064         notes, targetm.asm_out.function_prologue doesn't emit anything,
11065         HAVE_prologue and profiler should be emitted before prologue,
11066         set need_profile_function instead of emitting it.
11067         (final_scan_insn): If need_profile_function, emit
11068         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11069         NOTE_INSN_FUNCTION_BEG note.
11071 2013-02-01  Richard Henderson  <rth@redhat.com>
11073         * config/rs6000/rs6000.md (smulditi3): New.
11074         (umulditi3): New.
11076         * config/alpha/alpha.md (umulditi3): New.
11078 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11080         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11081         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11083 2013-02-01  Richard Biener  <rguenther@suse.de>
11085         PR tree-optimization/56113
11086         * tree-ssa-structalias.c (label_visit): Reduce work for
11087         single-predecessor nodes.
11089 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11091         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11092         range isn't testing for zero.
11094 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11096         PR middle-end/56113
11097         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11099 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11100             Nick Clifton  <nickc@redhat.com>
11102         * config/v850/constraints.md (Q): Define as a memory constraint.
11103         * config/v850/predicates.md (label_ref_operand): New predicate.
11104         (e3v5_shift_operand): New predicate.
11105         (ior_operator): New predicate.
11106         * config/v850/t-v850: Add e3v5 multilib.
11107         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11108         (v850_gen_movdi): Prototype.
11109         * config/v850/v850.c: Add support for e3v5 architecture.
11110         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11111         TARGET_V850E_UP.
11112         (construct_save_jarl): Add e3v5 long JARL support.
11113         (v850_adjust_insn_length): New function.  Adjust length of call
11114         insns when using e3v5 instructions.
11115         (v850_gen_movdi): New function: Generate instructions to move a
11116         DImode value.
11117         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11118         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11119         (TARGET_USE_FPU): Enable for e3v5.
11120         (CONST_OK_FOR_W): New macro.
11121         (ADJUST_INSN_LENGTH): Define.
11122         * config/v850/v850.md (UNSPEC_LOOP): Define.
11123         (attr cpu): Add v850e3v5.
11124         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11125         (movdi): New pattern.
11126         (movdi_internal): New pattern.
11127         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11128         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11129         (cstoresf4): Likewise.
11130         (cstoredf4): Likewise.
11131         (insv): New pattern.
11132         (rotlso3_a): New pattern.
11133         (rotlsi3_b): New pattern
11134         (rotlsi3_v850e3v5): New pattern.
11135         (doloop_begin): New pattern.
11136         (fix_loop_counter): New pattern.
11137         (doloop_end): New pattern.
11138         (branch_normal): Add e3v5 long branch support.
11139         (branch_invert): Likewise.
11140         (branch_z_normal): Likewise.
11141         (branch_z_invert): Likewise.
11142         (branch_nz_normal): Likewise.
11143         (branch_nz_invert): Likewise.
11144         (call_internal_short): Add e3v5 register-indirect JARL support.
11145         (call_internal_long): Likewise.
11146         (call_value_internal_short): Likewise.
11147         (call_value_internal_long): Likewise.
11148         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11149         (mloop): New option.
11150         * config.gcc: Add support for configuring v840e3v5 target.
11151         * doc/invoke.texi: Document new v850 specific command line options.
11153 2013-01-31  Paul Koning  <ni1d@arrl.net>
11155         PR debug/55059
11156         PR debug/54508
11157         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11158         children if parent is a class.
11159         (prune_unused_types_prune): Don't add DW_AT_declaration.
11161 2013-01-31  Richard Biener  <rguenther@suse.de>
11163         PR tree-optimization/56157
11164         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11165         match up operand with SLP child.
11167 2013-01-31  Jason Merrill  <jason@redhat.com>
11169         PR debug/54410
11170         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11171         parameters the first time.
11172         (gen_scheduled_generic_parms_dies): Check completeness here.
11174 2013-01-31  Richard Biener  <rguenther@suse.de>
11176         PR middle-end/53073
11177         * common.opt (faggressive-loop-optimizations): New flag,
11178         enabled by default.
11179         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11180         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11181         infer_loop_bounds_from_undefined by it.
11183 2013-01-31  Richard Biener  <rguenther@suse.de>
11185         PR tree-optimization/56150
11186         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11187         visit virtual operands.
11188         (find_uses_to_rename_bb): Likewise.
11190 2013-01-31  Richard Biener  <rguenther@suse.de>
11192         PR tree-optimization/56150
11193         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11194         mixed store non-store stmts.
11196 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11198         PR sanitizer/55374
11199         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11200         LIBASAN_EARLY_SPEC is defined.
11201         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11202         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11203         before %o.
11204         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11206         PR c++/55742
11207         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11208         invalid args instead of ICEing on it.
11209         (ix86_valid_target_attribute_tree): Return error_mark_node if
11210         ix86_valid_target_attribute_inner_p failed.
11211         (ix86_valid_target_attribute_p): Return false only if
11212         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11213         target("default") attribute.
11214         (sorted_attr_string): Change argument from const char * to tree,
11215         merge in all target attribute arguments rather than just one.
11216         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11217         instead of free.  Avoid using strcat.
11218         (ix86_mangle_function_version_assembler_name): Mangle
11219         target("default") as if no target attribute is present.  Adjust
11220         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11221         instead of xmalloc and XDELETEVEC instead of free.
11222         (ix86_function_versions): Don't return true if one of the decls
11223         doesn't have target attribute.  If they don't and one of the decls
11224         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11225         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11226         (ix86_supports_function_versions): Remove.
11227         (make_name): Fix up formatting.
11228         (make_dispatcher_decl): Remove resolver_name and its initialization.
11229         Avoid leaking memory.
11230         (is_function_default_version): Return true if there is
11231         target("default") attribute rather than no target attribute at all.
11232         (make_resolver_func): Avoid leaking memory.
11233         (ix86_generate_version_dispatcher_body): Likewise.
11234         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11235         * target.def (supports_function_versions): Remove.
11236         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11237         * doc/tm.texi: Regenerated.
11239 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11241         PR rtl-optimization/56144
11242         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11243         for values with side effects.
11245 2013-01-30  Richard Biener  <rguenther@suse.de>
11247         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11248         (sparseset_pop): Likewise.
11249         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11250         to be able to use quick_push in the worker loop.
11252 2013-01-30  Marek Polacek  <polacek@redhat.com>
11254         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11256 2013-01-30  Richard Biener  <rguenther@suse.de>
11258         PR lto/56147
11259         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11261 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11263         PR tree-optimization/56064
11264         * fixed-value.c (fixed_from_double_int): New function.
11265         * fixed-value.h (fixed_from_double_int): New prototype.
11266         (const_fixed_from_double_int): New static inline function.
11267         * fold-const.c (native_interpret_fixed): New static function.
11268         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11269         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11270         (native_encode_fixed): New static function.
11271         (native_encode_expr) <FIXED_CST>: Use it.
11272         (native_interpret_int): Move double_int worker code to...
11273         * double-int.c (double_int::from_buffer): ...this new static method.
11274         * double-int.h (double_int::from_buffer): Prototype it.
11276 2013-01-30  Richard Biener  <rguenther@suse.de>
11278         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11279         New pointer-map and obstack.
11280         (init_alias_vars): Allocate pointer-map and obstack.
11281         (delete_points_to_sets): Free them.
11282         (find_what_var_points_to): Cache result.
11283         (find_what_p_points_to): Adjust for changed interface of
11284         find_what_var_points_to.
11285         (compute_points_to_sets): Likewise.
11286         (ipa_pta_execute): Likewise.
11288 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11290         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11291         * configure: Regenerate.
11292         * config.in: Regenerate.
11293         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11294         #nobits/#progbits if supported.
11296 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11298         PR target/56121
11299         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11300         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11301         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11303 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11305         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11306         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11308 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11310         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11311         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11313 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11315         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11316         declaration.
11317         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11318         * config/arm/cortex-a7.md: New bypasses using
11319         arm_mac_accumulator_is_result.
11321 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11323         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11324         (cortex_a7_neon_mla): Likewise.
11325         (cortex_a7_fpfmad): New reservation.
11326         (cortex_a7_fpmacs): Use ffmas and update required units.
11327         (cortex_a7_fpmuld): Update required units and latency.
11328         (cortex_a7_fpmacd): Likewise.
11329         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11330         (cortex_a7_neon). Likewise.
11331         (bypass) Update participating units.
11333 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11335         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11336         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11337         from fmac to ffma.
11338         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11339         (vfp_fmul): Use ffmad.
11340         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11341         (cortex_r4_fmacd): Use ffmad.
11342         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11343         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11344         (cortex_a9_fmacd): Use ffmad.
11345         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11346         (cortex_a8_vfp_macd): Use ffmad.
11347         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11348         (cortex_a5_fpmacd): Use ffmad.
11349         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11350         (cortex_a15_vfp_macd): Use ffmad.
11351         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11353 2013-01-29  Jason Merrill  <jason@redhat.com>
11355         PR libstdc++/54314
11356         * varasm.c (default_assemble_visibility): Don't warn about
11357         visibility on artificial decls.
11359 2013-01-29  Richard Biener  <rguenther@suse.de>
11361         PR tree-optimization/56113
11362         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11363         the bitmap leader.
11364         (label_visit): Free duplicate bitmaps and record the leader instead.
11365         (perform_var_substitution): Adjust.
11367 2013-01-29  Richard Biener  <rguenther@suse.de>
11369         PR tree-optimization/55270
11370         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11371         the CFG, schedule loops for fixup.
11373 2013-01-29  Nick Clifton  <nickc@redhat.com>
11375         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11376         SP_REG.
11378 2013-01-28  Leif Ekblad  <leif@rdos.net>
11380         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11381         * config/i386/i386.h (TARGET_RDOS): New macro.
11382         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11383         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11384         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11385         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11386         DEFAULT_LARGE_SECTION_THRESHOLD.
11387         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11388         * config/i386/rdos.h: New file.
11389         * config/i386/rdos64.h: New file.
11391 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11393         PR other/54814
11394         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11395         TEST_HARD_REG_BIT.
11397 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11399         PR rtl-optimization/56117
11400         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11401         call cselib_lookup_from_insn on the MEM before calling
11402         add_insn_mem_dependence.
11404 2013-01-28  Richard Biener  <rguenther@suse.de>
11406         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11407         to a stmt that didn't have one.
11408         (copy_phis_for_bb): Likewise for PHI arguments.
11409         (copy_debug_stmt): Likewise for debug stmts.
11411 2013-01-28  Richard Biener  <rguenther@suse.de>
11413         PR tree-optimization/56034
11414         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11415         (partition_builtin_p): Adjust.
11416         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
11417         it is the last partition.
11418         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11419         up the vertex for the definition.
11420         (classify_partition): Classify whether a partition is a
11421         PKIND_REDUCTION, thus has uses outside of the loop.
11422         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11423         Merge all PKIND_REDUCTION partitions into the last partition.
11424         (tree_loop_distribution): Seed partitions from reductions as well.
11426 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11428         PR tree-optimization/56125
11429         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11430         pow(x,c) into sqrt(x) * powi(x, n/2) or
11431         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11432         optimizing for size.
11433         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11434         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11435         integer.
11437         PR tree-optimization/56094
11438         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11439         to UNKNOWN_LOCATION while gimplifying expr.
11441 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
11443         PR target/56114
11444         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11445         operand 0 in movabs insn template for -masm=intel asm alternative.
11446         (*movabs<mode>_2): Ditto for operand 1.
11448 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
11450         PR target/54663
11451         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11452         of microblaze-c.o
11454 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11456         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11457         tm_file.
11459 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11461         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11462         Undef to avoid warning.
11464 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11466         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11467         * configure: Regenerate.
11469 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
11471         PR tree-optimization/56098
11472         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11473         for stmts with volatile ops.
11474         (cond_store_replacement): Don't optimize if assign has volatile ops.
11475         (cond_if_else_store_replacement_1): Don't optimize if either
11476         then_assign or else_assign have volatile ops.
11477         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11478         volatile ops.
11480 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11482         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11484 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11486         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11487         missing ':' in asm example.
11489 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
11491         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11492         entries into lane and laneq entries.
11493         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11494         Remove AdvSIMD scalar modes.
11495         (aarch64_sq<r>dmulh_laneq<mode>): New.
11496         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11497         modes.
11498         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11499         builtin implementations to relfect changes in RTL in aarch64-simd.md.
11500         * config/aarch64/iterators.md (VCOND): New.
11501         (VCONQ): New.
11503 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11505         PR target/54222
11506         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11507         Add NULL LIBNAME argument to existing definitions.
11508         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11509         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11510         * config/avr/avr.c (DEF_BUILTIN): Same.
11511         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11512         (avr_expand_builtin): Expand to a vanilla call if a libgcc
11513         implementation is available (DECL_ASSEMBLER_NAME is set).
11514         (avr_fold_absfx): New static function.
11515         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11516         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11517         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11518         AVR_BUILTIN_ABSLLK.
11519         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11520         (abshk, absk, abslk, absllk): Provide as static inline functions.
11522 2013-01-25  Marek Polacek  <polacek@redhat.com>
11524         PR tree-optimization/56035
11525         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11527 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
11529         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11530         (*movtf_internal_rex64): Add (!o,C) alternative
11531         (*movxf_internal_rex64): Ditto.
11532         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11534 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
11536         * doc/invoke.texi: fix typo.
11537         * doc/objc.texi: fix typo.
11539 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
11541         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11542         for the first two alternatives.
11544 2013-01-24  Diego Novillo  <dnovillo@google.com>
11546         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
11547         (ggc-zone.o): Remove.
11548         * configure.ac: Remove option --with-gc.
11549         * configure: Re-generate.
11550         * doc/install.texi: Remove documentation for --with-gc.
11551         * gengtype.c (write_enum_defn): Remove.  Update all users.
11552         (write_Types_process_field): Remove generation of gt_e_* argument.
11553         (output_type_enum): Remove.  Update all users.
11554         (write_enum_defn): Remove.  Update all users.
11555         (enum alloc_zone): Remove.  Update all users.
11556         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11557         * ggc-common.c (ggc_splay_alloc): Remove first argument.
11558         Update all callers.
11559         (struct ptr_data): Remove field TYPE.  Update all users.
11560         (gt_pch_note_object): Remove argument TYPE.  Update all users.
11561         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11562         Update all users.
11563         * ggc-none.c (ggc_alloc_typed_stat): Remove.
11564         (struct alloc_zone): Remove.
11565         (ggc_internal_alloc_zone_stat): Remove.
11566         (ggc_internal_cleared_alloc_zone_stat): Remove.
11567         * ggc-page.c (ggc_alloc_typed_stat): Remove.
11568         (ggc_pch_count_object): Remove last argument.  Update all users.
11569         (ggc_pch_alloc_object): Remove last argument.  Update all users.
11570         (struct alloc_zone): Remove.
11571         * ggc-zone.c: Remove.
11572         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
11573         (struct alloc_zone): Remove.
11574         (ggc_alloc_typed_stat): Remove.
11575         (ggc_alloc_typed): Remove.
11576         (ggc_splay_alloc): Remove first argument.
11577         (rtl_zone): Remove.  Update all users.
11578         (tree_zone): Remove.  Update all users.
11579         (tree_id_zone): Remove.  Update all users.
11580         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
11581         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
11582         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
11583         * tree-ssanames.c: Remove references to zone allocator in comments.
11585 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
11587         * config/avr/avr.c (avr_out_fract): Make register numbers that
11588         might be outside of source operand signed.
11590 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
11592         * config/i386/constraints.md (Yf): New constraint.
11593         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11594         of f constraint to conditionaly disable x87 register preferences.
11595         (*movdf_internal): Ditto.
11596         (*movsf_internal): Ditto.
11598 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
11600         PR inline-asm/55934
11601         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11602         that have operands with impossible constraints.
11603         Add a FIXME for a speed-up opportunity.
11604         * lra-constraints.c (process_alt_operands): Verify that a class
11605         selected from constraints on asms is valid for the operand mode.
11606         (curr_insn_transform): Remove incorrect comment.
11608 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
11610         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11611         TOC operand is a valid symbol ref in the constant pool.
11613 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11615         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11617 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
11619         PR target/54222
11620         * config/avr/stdfix.h: New file.
11621         * t-avr (stdfix-gcc.h): New rule to build it.
11622         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11624 2013-01-23  Kostya Serebryany  <kcc@google.com>
11626         * config/darwin.h: remove dependency on
11627         CoreFoundation (asan on Mac OS).
11629 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
11631         PR target/49069
11632         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11633         instead of cmpdi_operand for first comparison operand.
11634         Don't assert that comparison operands aren't both constants.
11636 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11638         * doc/install.texi (Downloading the Source): Update references to
11639         downloading separate components.
11641 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11643         * doc/extend.texi (__int128): Improve grammar.
11645 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
11647         PR target/56028
11648         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11649         alternative to (o,r).
11650         (*movdi_internal_rex64): Remove (!o,n) alternative.
11651         (DImode immediate->memory splitter): Remove.
11652         (DImode immediate->memory peephole2): Remove.
11653         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11654         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11655         alternative to (!o,*r).
11656         (*movtf_internal_sse): New pattern.
11657         (*movxf_internal_rex64): New pattern.
11658         (*movxf_internal): Disable for TARGET_64BIT.
11659         (*movdf_internal_rex64): Remove (!o,F) alternative.
11661 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
11663         PR middle-end/56074
11664         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11665         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11666         * tree-vect-loop-manip.c (find_loop_location): Also ignore
11667         stmt locations where LOCATION_LOCUS of the stmt location is
11668         UNKNOWN_LOCATION or BUILTINS_LOCATION.
11670         PR target/55686
11671         * config/i386/i386.md (UNSPEC_STOS): New.
11672         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11673         *strsetqi_1): Add UNSPEC_STOS.
11675 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
11677         PR c++/56067
11678         * doc/invoke.texi: Remove left over -Wsynth example.
11680 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11682         PR tree-optimization/56051
11683         * fold-const.c (fold_binary_loc): Don't fold
11684         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11685         a narrowing conversion, or widening conversion from signed
11686         to unsigned.
11688 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
11690         PR rtl-optimization/56023
11691         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11692         dependent on debug instruction.
11694 2013-01-21  Martin Jambor  <mjambor@suse.cz>
11696         PR middle-end/56022
11697         * function.c (allocate_struct_function): Call
11698         invoke_set_current_function_hook earlier.
11700 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11702         * reload1.c (init_reload): Only initialize reload_obstack
11703         during the first call.
11705 2013-01-21  Marek Polacek  <polacek@redhat.com>
11707         * cfgloop.c (verify_loop_structure): Fix up grammar.
11709 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
11711         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11712         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11714 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11716         PR target/56058
11717         * config/arm/marvell-pj4.md: Update copyright year.
11718         Fix up use of alu to alu_reg and simple_alu_imm.
11720 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
11722         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11724 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
11726         PR target/55433
11727         * lra-constraints.c (curr_insn_transform): Don't reuse original
11728         insn for secondary memory move when memory mode should be different.
11730 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11732         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11733         atomic_storedi_1): New patterns.
11735 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11737         btver2 pipeline descriptions.
11738         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11739         descriptions.
11740         * config/i386/i386.md (btver2_decode): New type attributes.
11741         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
11742         type attributes.
11743         * config/i386/btver2.md: New file describing btver2 pipelines.
11745 2013-01-19  Andrew Pinski  <apinski@cavium.com>
11747         PR tree-optimization/52631
11748         * tree-ssa-sccvn (visit_use): Before looking up the original
11749         statement, try looking up the simplified expression.
11751 2013-01-19  Anthony Green  <green@moxielogic.com>
11753         * config/moxie/moxie.c (moxie_expand_prologue): Set
11754         current_function_static_stack_size.
11756 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
11758         PR tree-optimization/56029
11759         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11760         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11762 2013-01-18  Sharad Singhai  <singhai@google.com>
11764         PR tree-optimization/55995
11765         * dumpfile.c (dump_loc): Print location only if available.
11766         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11768 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
11770         PR target/55433
11771         * lra-constraints.c (curr_insn_transform): Reuse original insn for
11772         secondary memory move.
11773         (inherit_reload_reg): Use rclass instead of cl for
11774         check_secondary_memory_needed_p.
11776 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
11778         PR middle-end/56015
11779         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
11780         the case where writing real complex part of target modifies op1.
11782 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
11784         * config/aarch64/aarch64-simd.md
11785         (aarch64_vcond_internal<mode>): Handle unordered cases.
11786         * config/aarch64/iterators.md (v_cmp_result): New.
11788 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
11789             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11791         * config/arm/marvell-pj4.md: New file.
11792         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11793         * config/arm/arm.md (generic_sched): Add marvell_pj4.
11794         (generic_vfp): Likewise.
11795         * config/arm/arm-cores.def: Add marvell-pj4.
11796         * config/arm/arm-tune.md: Regenerate.
11797         * config/arm/arm-tables.opt: Regenerate.
11798         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11799         * doc/invoke.texi: Document marvell-pj4.
11801 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
11803         * config/aarch64/arm_neon.h: Map scalar types to standard types.
11805 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
11807         PR debug/54114
11808         PR debug/54402
11809         PR debug/49888
11810         * var-tracking.c (negative_power_of_two_p): New.
11811         (global_get_addr_cache, local_get_addr_cache): New.
11812         (get_addr_from_global_cache, get_addr_from_local_cache): New.
11813         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
11814         heading comment.
11815         (vt_stack_offset_p): Remove.
11816         (vt_canon_true_dep): Always canonicalize loc's address.
11817         (clobber_overlapping_mems): Make sure we have a MEM.
11818         (local_get_addr_clear_given_value): New.
11819         (val_reset): Clear local cached entries.
11820         (compute_bb_dataflow): Create and release the local cache.
11821         Disable duplicate MEMs clobbering.
11822         (emit_notes_in_bb): Clobber MEMs likewise.
11823         (vt_emit_notes): Create and release the local cache.
11824         (vt_initialize, vt_finalize): Create and release the global
11825         cache, respectively.
11826         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
11828 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
11830         PR libmudflap/53359
11831         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11832         not found in the symtab.
11834 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
11836         PR debug/56006
11837         PR rtl-optimization/55547
11838         PR rtl-optimization/53827
11839         PR debug/53671
11840         PR debug/49888
11841         * alias.c (offset_overlap_p): New, factored out of...
11842         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
11843         the conservative special case for symbolic constants.  Don't
11844         adjust zero sizes on alignment.
11846 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
11848         PR rtl-optimization/52573
11849         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11850         REG_UNUSED for the same register.
11852 2013-01-17  Richard Biener  <rguenther@suse.de>
11853             Marek Polacek  <polacek@redhat.com>
11855         PR rtl-optimization/55833
11856         * loop-unswitch.c (unswitch_loops): Move loop verification...
11857         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
11858         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11859         Set it to true when we're removing a loop from hierarchy tree in
11860         an irreducible region.
11861         (fix_bb_placements): Adjust caller.
11862         (fix_loop_placements): Likewise.
11864 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
11866         * config/avr/builtins.def (DEF_BUILTIN): Factor out
11867         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11868         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11869         Remove ID.  Adjust comments.
11870         * config/avr/avr-c.c (avr_builtin_name): Remove.
11871         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11872         * config/avr/avr.c (avr_tolower): New static function.
11873         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
11874         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11875         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11876         default expansion.
11878 2013-01-17  Jan Hubicka  <jh@suse.cz>
11880         PR tree-optimization/55273
11881         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11883 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
11885         PR target/55981
11886         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11887         store through atomic_store<mode>_1.
11888         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11890 2013-01-17  Martin Jambor  <mjambor@suse.cz>
11892         PR tree-optimizations/55264
11893         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11894         for virtual methods.
11895         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11896         virtual methods before inlining is over.
11897         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11898         virtual functions.
11899         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11900         non-virtual.
11902 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
11904         PR rtl-optimization/56005
11905         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11906         pending reads for prefetch.
11908 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
11910         * config/aarch64/aarch64.md
11911         (*cstoresi_neg_uxtw): New pattern.
11912         (*cmovsi_insn_uxtw): New pattern.
11913         (*<optab>si3_uxtw): New pattern.
11914         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11915         (*<optab>si3_insn_uxtw): New pattern.
11916         (*bswapsi2_uxtw): New pattern.
11918 2013-01-16  Richard Biener  <rguenther@suse.de>
11920         * tree-inline.c (tree_function_versioning): Remove set but
11921         never used variable.
11923 2013-01-16  Richard Biener  <rguenther@suse.de>
11925         PR tree-optimization/55964
11926         * tree-flow.h (rename_variables_in_loop): Remove.
11927         (rename_variables_in_bb): Likewise.
11928         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11929         (copy_loop_before): Adjust and delete update-ssa status.
11930         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
11931         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
11932         (rename_variables_in_loop): Remove.
11933         (slpeel_update_phis_for_duplicate_loop): Likewise.
11934         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11935         use available cfg machinery instead of duplicating it.
11936         Update PHI nodes and perform poor-mans SSA update here.
11937         (slpeel_tree_peel_loop_to_edge): Adjust.
11939 2013-01-16  Richard Biener  <rguenther@suse.de>
11941         PR tree-optimization/54767
11942         PR tree-optimization/53465
11943         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11944         (vrp_visit_phi_node): For PHI arguments coming via backedges
11945         drop all symbolical range information.
11946         (execute_vrp): Compute backedges.
11948 2013-01-16  Richard Biener  <rguenther@suse.de>
11950         * doc/install.texi: Update CLooG and ISL requirements to
11951         0.18.0 and 0.11.1.
11953 2013-01-16  Christian Bruel  <christian.bruel@st.com>
11955         PR target/55301
11956         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11957         (broken_move): Handle UNSPECV_SP_SWITCH_B.
11958         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11960 2013-01-16  DJ Delorie  <dj@redhat.com>
11962         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11963         (UNSPECV_SP_SWITCH_E): New.
11964         (sp_switch_1): Change to an unspec.
11965         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
11966         replace $r15.
11968 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
11970         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11971         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11972         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11973         (expand_mem_thread_fence): Ditto.
11974         (expand_mem_signal_fence): Ditto.
11975         (expand_atomic_load): Ditto.
11976         (expand_atomic_store): Ditto.
11978 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
11980         PR rtl-optimization/55547
11981         PR rtl-optimization/53827
11982         PR debug/53671
11983         PR debug/49888
11984         * alias.c (memrefs_conflict_p): Set sizes to negative after
11985         AND adjustments.
11987 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
11989         PR target/55940
11990         * function.c (thread_prologue_and_epilogue_insns): Always
11991         add crtl->drap_reg to set_up_by_prologue.set, even if
11992         stack_realign_drap is false.
11994 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11996         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11997         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11998         *call): Fix indention.
12000 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12002         PR target/55876
12003         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12004         Update comment.
12006 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12008         PR rtl-optimization/55153
12009         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12011 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12013         PR tree-optimization/55920
12014         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12015         accesses as grp_to_be_debug_replaced.
12017 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12019         PR tree-optimization/55920
12020         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12021         there is non-useless type conversion needed from debug rhs to lhs,
12022         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12024 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12025             Mikael Pettersson  <mikpe@it.uu.se>
12027         PR target/43961
12028         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12029         Thumb.
12030         (ASM_OUTPUT_CASE_LABEL): Remove.
12031         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12032         * final.c (shorten_branches): Update alignment of labels before
12033         jump tables if CASE_VECTOR_SHORTEN_MODE.
12035 2013-01-15  Richard Biener  <rguenther@suse.de>
12037         PR bootstrap/55961
12038         * system.h: Do not include gmp.h for building host tools.
12040 2013-01-15  Richard Biener  <rguenther@suse.de>
12042         PR middle-end/55882
12043         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12044         account for bitpos when computing alignment.
12046 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12048         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12049         (ix86_target_macros_internal): Likewise.
12051         * config/i386/i386.c (m_CORE2I7): Removed.
12052         (m_CORE_HASWELL): New macro.
12053         (m_CORE_ALL): Likewise.
12054         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12055         (initial_ix86_arch_features): Likewise.
12056         (processor_target_table): Initializations for Core avx2.
12057         (cpu_names): New names "core-avx2".
12058         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12059         PROCESSOR_CORE_HASWELL.
12060         (ix86_issue_rate): New case.
12061         (ia32_multipass_dfa_lookahead): Likewise.
12062         (ix86_sched_init_global): Likewise.
12064         * config/i386/i386.h (TARGET_HASWELL): New macro.
12065         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12066         (processor_type): New PROCESSOR_HASWELL.
12068 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12070         PR tree-optimization/55955
12071         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12072         *SHIFT_EXPR and *ROTATE_EXPR codes.
12074         PR tree-optimization/48766
12075         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12076         -ftrapv disable -fwrapv.
12078 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12080         PR target/55974
12081         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12082         etc. to 1 and not to __flash.
12083         Use LL suffix for __INT24_MAX__ with -mint8.
12084         Use ULL suffix for __UINT24_MAX__ with -mint8.
12086 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12088         * config/avr/avr-arch.h
12089         (struct base_arch_s): Use typedef avr_arch_t instead.
12090         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12091         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12092         * config/avr/avr.c: Same.
12093         * config/avr/avr-devices.c: Same.
12094         * config/avr/driver-avr.c: Same.
12095         * config/avr/gen-avr-mmcu-texi.c: Same.
12096         * config/avr/avr-mcus.def: Adjust comment.
12098 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12100         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12101         * config/aarch64/iterators.md (VALLDI): New.
12103 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12104             Andi Kleen  <ak@linux.intel.com>
12106         PR target/55948
12107         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12108         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12109         memmodel flag.
12111 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12113         * config/avr/avr-stdint.h: Remove trailing blanks.
12114         * config/avr/avr-log.h: Same.
12115         * config/avr/avr-arch.h: Same.
12116         * config/avr/avr-devices.c: Same.
12117         * config/avr/avr-dimode.md: Same.
12118         * config/avr/predicates.md: Same.
12119         * config/avr/avr-c.c: Same.  And fix typo.
12121         * config/avr/avr-protos.h: Same.  And:
12122         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12123         (init_cumulative_args): Rename to avr_init_cumulative_args.
12124         (expand_prologue): Rename to avr_expand_prologue.
12125         (expand_epilogue): Rename to avr_expand_epilogue.
12126         (adjust_insn_length): Rename to avr_adjust_insn_length.
12127         (notice_update_cc): Rename to avr_notice_update_cc.
12128         (final_prescan_insn): Rename to avr_final_prescan_insn.
12129         * config/avr/avr.c: Same.
12130         * config/avr/avr.h: Same.
12131         * config/avr/avr.md: Remove trailing blanks.
12132         (prologue): Use avr_expand_prologue.
12133         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12135 2013-01-14  Richard Biener  <rguenther@suse.de>
12137         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12138         verify_location, collect_subblocks): New functions.
12139         (verify_gimple_in_cfg): Verify that locations only reference
12140         BLOCKs in the functions BLOCK tree.
12142 2013-01-14  Richard Biener  <rguenther@suse.de>
12144         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12145         PHI argument.
12146         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12147         unshare reference.
12148         (insert_out_of_ssa_copy_on_edge): Likewise.
12149         (rewrite_close_phi_out_of_ssa): Likewise.
12150         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12151         debug expressions.
12152         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12153         propagated constants.
12154         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12155         can not be shared.
12157 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12159         * config/avr/avr-modes.def: Add GPL copyright notice.
12161 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12163         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12164         MEMMODEL_MASK to determine memory model.
12165         (atomic_store<mode>): Ditto from operands[2].
12166         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12168 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12170         PR fortran/55935
12171         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12172         (fold_gimple_assign): Don't call unshare_expr here.
12173         (fold_ctor_reference): Call unshare_expr.
12175 2013-01-13  Terry Guo  <terry.guo@arm.com>
12177         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12178         * doc/fragments.texi: Document MULTILIB_REUSE.
12179         * gcc.c (multilib_reuse): New internal spec.
12180         (set_multilib_dir): Also search multilib from multilib_reuse.
12181         * genmultilib (tmpmultilib3): Refactor code.
12182         (tmpmultilib4): Ditto.
12183         (multilib_reuse): New multilib argument.
12185 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12187         * Makefile.in: Update copyright.
12189 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12191         PR middle-end/55890
12192         * calls.c (expand_call): Check if arg_nr is valid.
12194 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12196         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12197         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12198         documentation.  Add missing '__' in front of
12199         __builtin_ia32_packssdw256.
12201 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12203         PR target/55719
12204         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12205         NO_REGS for larl operands.
12206         (s390_reload_larl_operand): Use s390_load_address instead of
12207         emit_move_insn.
12209 2013-01-11  Richard Biener  <rguenther@suse.de>
12211         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12212         (verify_node_sharing): ... here.
12213         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12215 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12217         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12218         Substitute TREECHECKING.
12219         * configure: Regenerate.
12220         * Makefile.in (TREECHECKING): New.
12222 2013-01-11  Richard Guenther  <rguenther@suse.de>
12224         PR tree-optimization/44061
12225         * tree-vrp.c (extract_range_basic): Compute zero as
12226         value-range for __builtin_constant_p of function parameters.
12228 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12230         Update copyright years.
12232 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12234         PR rtl-optimization/55672
12235         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12236         const to be eliminable.
12238 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12240         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12241         * configure: Regenerate.
12243 2013-01-10  Richard Biener  <rguenther@suse.de>
12245         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12247 2013-01-10  Richard Biener  <rguenther@suse.de>
12249         PR bootstrap/55792
12250         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12251         locations for virtual PHI arguments.
12252         (rewrite_update_phi_arguments): Likewise.
12254 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12256         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12257         on to assembler.
12259 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12261         PR tree-optimization/55921
12262         * tree-complex.c (expand_complex_asm): New function.
12263         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12265 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12267         PR target/55718
12268         * config/s390/s390.c (s390_symref_operand_p)
12269         (s390_loadrelative_operand_p): Merge the two functions.
12270         (s390_check_qrst_address, print_operand_address): Add parameters
12271         to s390_loadrelative_operand_p invokation.
12272         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12273         (s390_reload_larl_operand, s390_secondary_reload): Use
12274         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12275         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12277 2013-01-09  Mike Stump  <mikestump@comcast.net>
12279         * dse.c (record_store): Remove unnecessary assert.
12281 2013-01-09  Jan Hubicka  <jh@suse.cz>
12283         PR tree-optimization/55569
12284         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12285         * cfgloop.h (scale_loop_profile): Likewise.
12287 2013-01-09  Jan Hubicka  <jh@suse.cz>
12289         PR lto/45375
12290         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12291         functions.
12292         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12294 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12296         PR middle-end/55114
12297         * expr.h (maybe_emit_group_store): Declare.
12298         * expr.c (maybe_emit_group_store): New function.
12299         * builtins.c (expand_builtin_int_roundingfn): Call it.
12300         (expand_builtin_int_roundingfn_2): Likewise.
12302 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12304         PR rtl-optimization/55829
12305         * lra-constraints.c (match_reload): Add code for absent output.
12306         (curr_insn_transform): Add code for reloads of matched inputs
12307         without output.
12309 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12311         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12312         attribute of movddup insn to DF.
12313         (*vec_interleave_lowv2df): Ditto.
12314         (vec_dupv2df): Ditto.
12316 2013-01-09  Jan Hubicka  <jh@suse.cz>
12318         PR tree-optimiation/55875
12319         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12320         EVERY_ITERATION parameter.
12321         (number_of_iterations_exit): Check if exit is executed every iteration.
12322         (idx_infer_loop_bounds): Similarly here.
12323         (n_of_executions_at_most): Simplify
12324         to only test for cases where statement is dominated by the
12325         particular bound; handle correctly the "postdominance" test.
12326         (scev_probably_wraps_p): Use max loop iterations info
12327         as a global bound first.
12329 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12330             Nick Clifton  <nickc@redhat.com>
12332         * config/v850/v850.md (cbranchsf4): New pattern.
12333         (cstoresf4): New pattern.
12334         (cbranchdf4): New pattern.
12335         (cstoredf4): New pattern.
12336         (movsicc): Disallow floating point comparisons.
12337         (cmpsf_le_insn): Fix order of operators.
12338         (cmpsf_lt_insn): Likewise.
12339         (cmpsf_eq_insn): Likewise.
12340         (cmpdf_le_insn): Likewise.
12341         (cmpdf_lt_insn): Likewise.
12342         (cmpdf_eq_insn): Likewise.
12343         (cmpsf_ge_insn): Use LE comparison.
12344         (cmpdf_ge_insn): Likewise.
12345         (cmpsf_gt_insn): Use LT comparison.
12346         (cmpdf_gt_insn): Likewise.
12347         (cmpsf_ne_insn): Delete pattern.
12348         (cmpdf_ne_insn): Delete pattern.
12349         * config/v850/v850.c (v850_gen_float_compare): Use
12350         gen_cmpdf_eq_insn for NE comparison.
12351         (v850_float_z_comparison_operator)
12352         (v850_float_nz_comparison_operator): Move from here ...
12353         * config/v850/predicates.md: ... to here.  Move GT and GE
12354         comparisons into v850_float_z_comparison_operator.
12355         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12356         Delete prototype.
12357         (v850_float_nz_comparison_operator): Likewise.
12359 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12361         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12362         with calls to gen_insvsi/gen_insvdi.
12364 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12366         * config/i386/i386.c (initial_ix86_tune_features): Set up
12367         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12369 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12370             Jakub Jelinek  <jakub@redhat.com>
12372         PR tree-optimization/48189
12373         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12374         If nitercst is 0, don't predict the exit edge.
12376 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12378         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12379         in asm_fprintf with reg_names.
12380         (aarch64_print_operand_address): Likewise.
12381         (aarch64_return_addr): Likewise.
12382         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12384 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12386         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12387         (INT_U6_BITS): Likewise.
12388         * config/pa/predicates.md (uint6_operand): New predicate.
12389         (shift5_operand, shift6_operand): Likewise.
12390         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12391         arith32_operand.
12392         (lshrdi3): Use shift6_operand.
12393         (shrpsi4, shrpdi4): New insn patterns.
12394         (extzv): Delete expander.
12395         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12396         predicates in unamed zero extract patterns.  Tighten common constraint.
12397         (extv): Delete expander.
12398         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12399         predicates in unamed sign extract patterns.  Tighten common constraint.
12400         (insv): Delete expander.
12401         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12402         predicates in unamed insert patterns.  Tighten common constraint.
12403         Change uint32_operand predicate to uint6_operand predicate in unamed
12404         DImode pattern to insert constant values of type 1...1xxxx.
12406 2013-01-04  Jan Hubicka  <jh@suse.cz>
12408         PR tree-optimization/55823
12409         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12410         issue.
12412 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12413             Uros Bizjak  <ubizjak@gmail.com>
12415         PR rtl-optimization/55845
12416         * df-problems.c (can_move_insns_across): Stop scanning at
12417         volatile_insn_p source instruction or give up if
12418         across_from .. across_to range contains any volatile_insn_p
12419         instructions.
12421 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12423         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12424         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12425         Declare.
12426         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12427         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12429 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12431         PR fortran/55341
12432         * asan.c (asan_clear_shadow): New function.
12433         (asan_emit_stack_protection): Use it.
12435 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12437         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12438         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12439         with tab instead of space.
12441 2013-01-08  Nick Clifton  <nickc@redhat.com>
12443         * config/rl78/rl78.c (rl78_expand_prologue): Always select
12444         register bank 0 at the start of an interrupt handler.
12445         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12446         MDBH registers.
12448 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12450         * config/aarch64/aarch64-simd.md
12451         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12452         (aarch64_simd_bsl): Likewise.
12453         (aarch64_vcond_internal<mode>): Likewise.
12454         (vcond<mode><mode>): Likewise.
12455         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12456         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12458 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12460         * config/aarch64/aarch64-builtins.c
12461         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12463 2013-01-08  Martin Jambor  <mjambor@suse.cz>
12465         PR debug/55579
12466         * tree-sra.c (analyze_access_subtree): Return true also after
12467         potentially creating a debug-only replacement.
12469 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12471         PR middle-end/55890
12472         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12474         PR tree-optimization/54120
12475         * tree-vrp.c (range_fits_type_p): Don't allow
12476         src_precision < precision from signed vr to unsigned_p
12477         if vr->min or vr->max is negative.
12478         (simplify_float_conversion_using_ranges): Test can_float_p
12479         against CODE_FOR_nothing.
12481 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12482             Richard Biener  <rguenther@suse.de>
12484         PR middle-end/55851
12485         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12486         types instead of just INTEGER_TYPE types.
12488 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
12490         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12491         TF_SIZE): Define.
12493 2013-01-07  Steve Ellcey  <sellcey@mips.com>
12495         PR target/42661
12496         * config/mips/mips.opt: Change mad to mmad to match documentation.
12498 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12500         PR target/55897
12501         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12502         .progmemx.data now.
12504 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12506         PR target/55897
12507         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12508         (avr_addrspace_t): Add .section_name field.
12509         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12510         array size.
12511         (avr_addrspace): Same.  Initialize .section_name.  Remove last
12512         NULL entry.  Put __memx into .progmemx.data.
12513         (progmem_section_prefix): Remove.
12514         (avr_asm_init_sections): No need to initialize progmem_section.
12515         (avr_asm_named_section): Use avr_addrspace[].section_name to get
12516         section name prefix.
12517         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
12518         retrieve the progmem section.
12519         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12520         boundary to run over avr_addrspace[].
12521         (avr_register_target_pragmas): Ditto.
12523 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
12525         * varasm.c (output_constant_def_contents): For asan_protect_global
12526         protected strings, adjust DECL_ALIGN if needed, before testing for
12527         anchored symbols.
12528         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12529         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
12530         normal decls.
12531         (output_object_block): For asan protected decls, emit asan padding
12532         after their contents.
12533         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12534         (asan_finish_file): Test it here instead.
12536 2013-01-07  Nick Clifton  <nickc@redhat.com>
12537             Matthias Klose  <doko@debian.org>
12538             Doug Kwan  <dougkwan@google.com>
12539             H.J. Lu  <hongjiu.lu@intel.com>
12541         PR driver/55470
12542         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12544         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12546         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12548         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12550         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12552 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12554         PR target/54461
12555         * doc/install.texi (Cross-Compiler-Specific Options): Document
12556         --with-avrlibc.
12558 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
12560         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12561         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12562         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12563         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12564         vqmovun_high_s64): Fix source operand number and update copyright.
12566 2013-01-07  Richard Biener  <rguenther@suse.de>
12568         PR middle-end/55890
12569         * gimple.h (gimple_call_builtin_p): New overload.
12570         * gimple.c (validate_call): New function.
12571         (gimple_call_builtin_p): Likewise.
12572         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12573         Use gimple_call_builtin_p.
12574         (find_func_clobbers): Likewise.
12575         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12576         (strlen_optimize_stmt): Likewise.
12578 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12580         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12581         (vld1q_dup_*): Likewise.
12582         (vld1_*): Likewise.
12583         (vld1q_*): Likewise.
12584         (vld1_lane_*): Likewise.
12585         (vld1q_lane_*): Likewise.
12587 2013-01-07  Richard Biener  <rguenther@suse.de>
12589         * lto-streamer.h (LTO_minor_version): Bump to 2.
12591 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12593         * config/aarch64/aarch64-protos.h
12594         (aarch64_const_double_zero_rtx_p): Rename to...
12595         (aarch64_float_const_zero_rtx_p): ...this.
12596         (aarch64_float_const_representable_p): New.
12597         (aarch64_output_simd_mov_immediate): Likewise.
12598         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12599         move immediate case.
12600         * config/aarch64/aarch64.c
12601         (aarch64_const_double_zero_rtx_p): Rename to...
12602         (aarch64_float_const_zero_rtx_p): ...this.
12603         (aarch64_print_operand): Allow printing of new constants.
12604         (aarch64_valid_floating_const): New.
12605         (aarch64_legitimate_constant_p): Check for valid floating-point
12606         constants.
12607         (aarch64_simd_valid_immediate): Likewise.
12608         (aarch64_vect_float_const_representable_p): New.
12609         (aarch64_float_const_representable_p): Likewise.
12610         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12611         (aarch64_output_simd_mov_immediate): New.
12612         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12613         (*movdf_aarch64): Likewise.
12614         * config/aarch64/constraints.md (Ufc): New.
12615         (Y): call aarch64_float_const_zero_rtx.
12616         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12618 2013-01-07  Richard Biener  <rguenther@suse.de>
12620         PR tree-optimization/55888
12621         PR tree-optimization/55862
12622         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12623         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12624         not if it is contained therein.
12626 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12628         * config/avr/t-avr: Typo.
12630 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12632         PR55243
12633         * config/avr/t-avr: Don't automatically rebuild
12634         $(srcdir)/config/avr/t-multilib
12635         $(srcdir)/config/avr/avr-tables.opt
12636         $(srcdir)/doc/avr-mmcu.texi
12637         (avr-mcus): New phony target to build them on request.
12638         (s-avr-mlib, s-avr-mmcu-texi): Remove.
12639         * avr/avr-mcus.def: Adjust comments.
12641 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
12643         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12645 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12647         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12649 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12651         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12653 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
12655         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12656         to generate profiling.
12657         * config/rs6000/aix64.h (LIB_SPEC): Same.
12659 2013-01-04  Andrew Pinski  <apinski@cavium.com>
12661         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12662         New function.
12663         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12665 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
12667         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12668         unconditionally.
12669         (ix86_expand_move): Ditto.
12670         (ix86_zero_extend_to_Pmode): Ditto.
12671         (ix86_expand_call): Ditto.
12672         (ix86_expand_special_args_builtin): Ditto.
12673         (ix86_expand_builtin): Ditto.
12675 2013-01-04  Richard Biener  <rguenther@suse.de>
12677         PR tree-optimization/55862
12678         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12679         translating them through PHI nodes.
12681 2013-01-04  Martin Jambor  <mjambor@suse.cz>
12683         PR tree-optimization/55755
12684         * tree-sra.c (sra_modify_assign): Do not check that an access has no
12685         children when trying to avoid producing a VIEW_CONVERT_EXPR.
12687 2013-01-04  Marek Polacek  <polacek@redhat.com>
12689         PR middle-end/55859
12690         * opts.c (default_options_optimization): Clarify error message.
12692 2013-01-04  Richard Biener  <rguenther@suse.de>
12694         PR middle-end/55863
12695         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12696         reassociation.
12698 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12700         PR target/53789
12701         * config/pa/pa.md (movsi): Revert previous change.
12702         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12703         references.
12705 2013-01-03  Richard Henderson  <rth@redhat.com>
12707         * config/i386/i386.c (ix86_expand_move): Always assign to op1
12708         after eliminating TLS symbols.
12710 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
12712         PR bootstrap/50167
12713         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12714         * graphite-poly.c (debug_gmp_value): Likewise.
12716 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
12718         PR target/55712
12719         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12720         selected code model, define __code_mode_small__, __code_model_medium__,
12721         __code_model_large__, __code_model_32__ or __code_model_kernel__.
12722         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12723         xchg temporary register with %k.  Declare temporary register as
12724         early clobbered.
12725         [__x86_64__]: For medium and large code models, preserve %rbx register.
12727 2013-01-03  Richard Biener  <rguenther@suse.de>
12729         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
12730         (dump_subscript): Adjust.
12731         (finalize_ddr_dependent): Do not dump redundant info.
12732         (analyze_siv_subscript): Adjust.
12733         (subscript_dependence_tester): Likewise.
12734         (compute_affine_dependence): Likewise.
12736 2013-01-03  Richard Biener  <rguenther@suse.de>
12738         Revert
12739         2013-01-03  Richard Biener  <rguenther@suse.de>
12741         PR tree-optimization/55857
12742         * tree-vect-stmts.c (vectorizable_load): Do not setup
12743         re-alignment for invariant loads.
12745         2013-01-02  Richard Biener  <rguenther@suse.de>
12747         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12748         invariant load do not generate a vector load from the scalar location.
12750 2013-01-03  Richard Biener  <rguenther@suse.de>
12752         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12753         for not vectorizing.
12754         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12755         not build INDIRECT_REFs, call get_name once only.
12756         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
12757         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
12759 2013-01-03  Richard Biener  <rguenther@suse.de>
12761         PR tree-optimization/55857
12762         * tree-vect-stmts.c (vectorizable_load): Do not setup
12763         re-alignment for invariant loads.
12765 2013-01-03  Richard Biener  <rguenther@suse.de>
12767         PR lto/55848
12768         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12769         prefer a built-in decl.
12771 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12773         * gcc.c (process_command): Update copyright notice dates.
12774         * gcov.c (print_version): Likewise.
12775         * gcov-dump.c (print_version): Likewise.
12777         PR rtl-optimization/55838
12778         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12779         iv0.step, iv1.step and step.
12781 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12782             Marc Glisse  <marc.glisse@inria.fr>
12784         PR tree-optimization/55832
12785         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12786         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12787         integer_{one,zero}_node.
12789 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12791         PR debug/54402
12792         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12793         * var-tracking.c (reverse_op): Don't add reverse ops to
12794         VALUEs that have already
12795         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
12797 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12799         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12801 2013-01-02  Teresa Johnson  <tejohnson@google.com>
12803         * dumpfile.c (dump_loc): Print filename with location.
12804         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
12805         new location_t parameter to emit complete unroll message with
12806         new dump framework.
12807         (canonicalize_loop_induction_variables): Compute loops location
12808         and pass to try_unroll_loop_completely.
12809         * loop-unroll.c (report_unroll_peel): New function.
12810         (peel_loops_completely): Use new dump format with location
12811         for main dumpfile message, and invoke report_unroll_peel on success.
12812         (decide_unrolling_and_peeling): Ditto.
12813         (decide_peel_once_rolling): Remove old dumpfile message subsumed
12814         by report_unroll_peel.
12815         (decide_peel_completely): Ditto.
12816         (decide_unroll_constant_iterations): Ditto.
12817         (decide_unroll_runtime_iterations): Ditto.
12818         (decide_peel_simple): Ditto.
12819         (decide_unroll_stupid): Ditto.
12820         * cfgloop.c (get_loop_location): New function.
12821         * cfgloop.h (get_loop_location): Declare.
12823 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
12825         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12826         NULL.
12828 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12830         PR middle-end/55198
12831         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12832         BLKmode objects when EXPAND_MEMORY is specified.
12834 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
12836         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12837         in loop predicate.
12838         (fold_builtin_cpu): Do not share cpu model decls across statements.
12840 2013-01-02  Jason Merrill  <jason@redhat.com>
12842         PR c++/55804
12843         * tree.c (build_array_type_1): Revert earlier change.
12845 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12847         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12848         "cortex-a57".
12849         * config/aarch64/aarch64-tune.md: Re-generate.
12851 2013-01-02  Richard Biener  <rguenther@suse.de>
12853         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12854         invariant load do not generate a vector load from the scalar location.
12856 2013-01-02  Richard Biener  <rguenther@suse.de>
12858         PR bootstrap/55784
12859         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12860         * configure: Regenerate.
12862 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12864         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12865         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12866         (expand_builtin_int_roundingfn_2): Keep the original target around
12867         for the fallback case.
12869 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12871         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12872         to be clear for sign changes.
12874 2013-01-01  Jan Hubicka  <jh@suse.cz>
12876         * ipa-inline-analysis.c: Fix formatting.
12878 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
12880         PR tree-optimization/55831
12881         * tree-vect-loop.c (get_initial_def_for_induction): Use
12882         gsi_after_labels instead of gsi_start_bb.
12884 Copyright (C) 2013 Free Software Foundation, Inc.
12886 Copying and distribution of this file, with or without modification,
12887 are permitted in any medium without royalty provided the copyright
12888 notice and this notice are preserved.