2013-06-13 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / gcc / ChangeLog
blob19e1b4cd8cb574ed3de70b00b20fea8d243b995e
1 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
3         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
4         Generalize to complex and vector.
5         * tree.c (build_all_ones_cst): New function.
6         * tree.h (build_all_ones_cst): Declare it.
8 2013-06-13  Alan Modra  <amodra@gmail.com>
10         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
11         * config/rs6000/rs6000.md (signbittf2): New insn.
12         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
13         (abstf2_internal, cmptf_internal2): Likewise.
14         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
16 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17             Pat Haugen <pthaugen@us.ibm.com>
18             Peter Bergner <bergner@vnet.ibm.com>
20         * config/rs6000/rs6000.c (emit_load_locked): Add support for
21         power8 byte, half-word, and quad-word atomic instructions.
22         (emit_store_conditional): Likewise.
23         (rs6000_expand_atomic_compare_and_swap): Likewise.
24         (rs6000_expand_atomic_op): Likewise.
26         * config/rs6000/sync.md (larx): Add new modes for power8.
27         (stcx): Likewise.
28         (AINT): New mode iterator to include TImode as well as normal
29         integer modes on power8.
30         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
31         that VSX registers are not considered.  Use AINT mode iterator
32         instead of INT1 to allow inclusion of quad word atomic operations
33         on power8.
34         (load_locked<mode>): Likewise.
35         (store_conditional<mode>): Likewise.
36         (atomic_compare_and_swap<mode>): Likewise.
37         (atomic_exchange<mode>): Likewise.
38         (atomic_nand<mode>): Likewise.
39         (atomic_fetch_<fetchop_name><mode>): Likewise.
40         (atomic_nand_fetch<mode>): Likewise.
41         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
42         each type.
43         (ATOMIC): On power8, add QImode, HImode modes.
44         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
45         modes that promote to SImode.
46         (load_lockedti): Convert TImode arguments to PTImode, so that we
47         get a guaranteed even/odd register pair.
48         (load_lockedpti): Likewise.
49         (store_conditionalti): Likewise.
50         (store_conditionalpti): Likewise.
52         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
53         atomic load/store instructions.
54         (HSI): Likewise.
56 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
58         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
59         loads.
60         (insn_count): New attribute, with most cases extracted from...
61         (length): ...here.  Redefine most cases in terms of insn_count.
62         (single_insn): Delete.
63         (can_delay): Use insn_count to check for single instructions.
64         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
65         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
66         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
67         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
68         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
69         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
70         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
71         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
72         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
73         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
74         rather than "length".
75         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
76         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
77         Use "insn_count" rather than "length".
78         * config/mips/mips-dsp.md
79         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
80         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
81         length attributes.
83 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
85         PR tree-optimization/57361
86         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
88 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
90         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): convert to split.
91         (aarch64_simd_combine<mode>): New instruction expansion.
92         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
93         function prototype.
94         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
95         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
97 2013-06-12  Jan Hubicka  <jh@suse.cz>
99         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
100         decl has when in streaming stage.
101         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
102         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
104 2013-06-12  Roland Stigge <stigge@antcom.de>
106         PR target/57578
107         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
109 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
111         PR tree-optimization/57537
112         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
113         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
115 2013-06-12  Richard Biener  <rguenther@suse.de>
117         * data-streamer.h (streamer_write_char_stream): CSE
118         obs->current_pointer.
119         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
120         streamer_write_char_stream manually and optimize the resulting loop.
121         (streamer_write_hwi_stream): Likewise.
123 2013-06-12  Jan Hubicka  <jh@suse.cz>
125         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
126         * cgraph.h (varpool_create_empty_node): Declare.
127         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
128         duplicated nodes.
129         * symtab.c (symtab_unregister_node): Be lax about missin entries
130         in node hash.
131         (symtab_get_node): Update comment.
132         * varpool.c (varpool_create_empty_node): Break out from ...
133         (varpool_node_for_decl): ... here.
134         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
136 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
138         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
139         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
140         part.  Use straight-line flow at the end.
141         <COMPONENT_REF>: Remove superfluous else.
142         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
144 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
146         PR target/56564
147         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
148         target hook even for !TREE_PUBLIC decls.  If no resolution info
149         is available, return false for common and external decls.
151 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
153         * config/rl78/constraints.md (U): New constraint.
154         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
155         valloc attribute.
157 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
159         PR target/57589
160         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
161         to allow returning address to AT_PLATFORM name.
163 2013-06-11  Jan Hubicka  <jh@suse.cz>
165         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
166         * cgraph.h (symtab_node_base): Add weakref flag.
167         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
168         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
169         (output_weakrefs): Use weakref flag.
170         * fold-const.c (simple_operand_p): Handle WEAK.
171         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
172         * ipa.c (varpool_externally_visible_p): Drop weakref.
173         (function_and_variable_visibility): Update comment; fix weakref
174         sanity checks; do not clear DECL_WEAK on them.
175         * lto-cgraph.c (lto_output_node): update.
176         (lto_output_varpool_node): Update.
177         (input_overwrite_node): Update.
178         (input_node): Update.
179         (input_varpool_node): Update.
180         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
181         (lto_symtab_merge_symbols): Add sanity check.
182         (lto_symtab_prevailing_decl): Do not special case weakrefs.
183         * passes.c (rest_of_decl_compilation): Set static flag, too.
184         * symtab.c (dump_symtab_base): Dump weakref.
185         (verify_symtab_base): Sanity check weakrefs.
186         (symtab_make_decl_local): Remove duplicated code.
187         (symtab_alias_ultimate_target): Simplify.
188         * varpool.c (varpool_create_variable_alias): Set weakref flag.
190 2013-06-11  DJ Delorie  <dj@redhat.com>
192         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
193         (rl78_unwind_word_mode): New.
195 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
197         * final.c (debug_prefix_maps): Make static.
199 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
201         * function.c (initial_trampoline): Remove stray copy.
203 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
205         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
207 2013-06-11  Martin Jambor  <mjambor@suse.cz>
209         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
210         within bounds at the beginning of the function.
212 2013-06-11  Alan Modra  <amodra@gmail.com>
214         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
215         reporting.
216         (get_named_section): Don't NULL !DECL_P decl.
218 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
220         * doc/invoke.texi (core-avx2): Document.
221         (slm): Likewise.
222         (atom): Updated with MOVBE.
224 2013-06-11  Richard Biener  <rguenther@suse.de>
226         * collect2.c (main): Do not redirect ld stdout/stderr when
227         debugging.
229 2013-06-11  Anton Blanchard  <anton@samba.org>
231         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
232         correct shift value in little-endian mode.
234 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
236         PR target/56564
237         * varasm.c (get_variable_align): Move #endif to the right place.
239 2013-06-10  Cary Coutant  <ccoutant@google.com>
241         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
242         for hash so that hash table traversal order is deterministic.
244 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
245             Pat Haugen <pthaugen@us.ibm.com>
246             Peter Bergner <bergner@vnet.ibm.com>
248         * config/rs6000/vector.md (GPR move splitter): Do not split moves
249         of vectors in GPRS if they are direct moves or quad word load or
250         store moves.
252         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
253         declaration.
254         (direct_move_p): Likewise.
255         (quad_load_store_p): Likewise.
257         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
258         classes into bins based on the physical register type.
259         (reg_class_to_reg_type): Likewise.
260         (IS_STD_REG_TYPE): Likewise.
261         (IS_FP_VECT_REG_TYPE): Likewise.
262         (reload_fpr_gpr): Arrays to determine what insn to use if we can
263         use direct move instructions.
264         (reload_gpr_vsx): Likewise.
265         (reload_vsx_gpr): Likewise.
266         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
267         information that is a simplification of register classes.  Also
268         precalculate direct move reload helpers.
269         (direct_move_p): New function to return true if the operation can
270         be done as a direct move instruciton.
271         (quad_load_store_p): New function to return true if the operation
272         is a quad memory operation.
273         (rs6000_legitimize_address): If quad memory, only allow register
274         indirect for TImode addresses.
275         (rs6000_legitimate_address_p): Likewise.
276         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
277         (rs6000_reload_register_type): Likewise.
278         (register_to_reg_type): Return register type.
279         (rs6000_secondary_reload_simple_move): New helper function for
280         secondary reload and secondary memory needed to identify anything
281         that is a simple move, and does not need reloading.
282         (rs6000_secondary_reload_direct_move): New helper function for
283         secondary reload to identify cases that can be done with several
284         instructions via the direct move instructions.
285         (rs6000_secondary_reload_move): New helper function for secondary
286         reload to identify moves between register types that can be done.
287         (rs6000_secondary_reload): Add support for quad memory operations
288         and for direct move.
289         (rs6000_secondary_memory_needed): Likewise.
290         (rs6000_debug_secondary_memory_needed): Change argument names.
291         (rs6000_output_move_128bit): New function to return the move to
292         use for 128-bit moves, including knowing about the various
293         limitations of quad memory operations.
295         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
296         memory operations.  call rs6000_output_move_128bit for the actual
297         instruciton(s) to generate.
298         (vsx_movti_64bit): Likewise.
300         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
301         (UNSPEC_P8V_MTVSRWZ): Likewise.
302         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
303         (UNSPEC_P8V_MTVSRD): Likewise.
304         (UNSPEC_P8V_XXPERMDI): Likewise.
305         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
306         (UNSPEC_FUSION_GPR): Likewise.
307         (FMOVE128_GPR): New iterator for direct move.
308         (f32_lv): New mode attribute for load/store of SFmode/SDmode
309         values.
310         (f32_sv): Likewise.
311         (f32_dm): Likewise.
312         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
313         loads and direct move instructions.
314         (zero_extendsidi2_lfiwzx): Likewise.
315         (extendsidi2_lfiwax): Likewise.
316         (extendsidi2_nocell): Likewise.
317         (floatsi<mode>2_lfiwax): Likewise.
318         (lfiwax): Likewise.
319         (floatunssi<mode>2_lfiwzx): Likewise.
320         (lfiwzx): Likewise.
321         (fix_trunc<mode>_stfiwx): Likewise.
322         (fixuns_trunc<mode>_stfiwx): Likewise.
323         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
324         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
325         (parity<mode>2_cmpb): Set length/type attr.
326         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
327         for 'mr.' to fast_compare.
328         (bpermd_<mode>): Change type attr to popcnt.
329         (p8_fmrgow_<mode>): New insns for power8 direct move support.
330         (p8_mtvsrwz_1): Likewise.
331         (p8_mtvsrwz_2): Likewise.
332         (reload_fpr_from_gpr<mode>): Likewise.
333         (p8_mtvsrd_1): Likewise.
334         (p8_mtvsrd_2): Likewise.
335         (p8_xxpermdi_<mode>): Likewise.
336         (reload_vsx_from_gpr<mode>): Likewise.
337         (reload_vsx_from_gprsf): Likewise.
338         (p8_mfvsrd_3_<mode>): LIkewise.
339         (reload_gpr_from_vsx<mode>): Likewise.
340         (reload_gpr_from_vsxsf): Likewise.
341         (p8_mfvsrd_4_disf): Likewise.
342         (multi-word GPR splits): Do not split direct moves or quad memory
343         operations.
345 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
347         * tree-into-ssa.c (interesting_blocks): Make static.
349 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
351         PR target/56564
352         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
353         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
354         Use DATA_ABI_ALIGNMENT for that case instead if defined.
355         (get_variable_align): New function.
356         (get_variable_section, emit_bss, emit_common,
357         assemble_variable_contents, place_block_symbol): Use
358         get_variable_align instead of DECL_ALIGN.
359         (assemble_noswitch_variable): Add align argument, use it
360         instead of DECL_ALIGN.
361         (assemble_variable): Adjust caller.  Use get_variable_align
362         instead of DECL_ALIGN.
363         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
364         caller.
365         (DATA_ABI_ALIGNMENT): Define.
366         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
367         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
368         opt is false, only return the psABI mandated alignment increase.
369         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
370         (DATA_ABI_ALIGNMENT): ... this.
371         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
372         (DATA_ABI_ALIGNMENT): ... this.
373         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
374         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
375         (DATA_ABI_ALIGNMENT): ... this.
376         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
377         * doc/tm.texi: Regenerated.
379 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
381         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
382         cmp_code to construct REG_EQUAL note.
384 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
386         PR target/57568
387         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
388         that operands[2] doesn't overlap with operands[0].
390 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
391             Jan Hubicka  <jh@suse.cz>
393         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
394         hack to mark symbols as used.
396 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
398         PR rtl-optimization/57559
399         * lra-constraints.c (process_alt_operands): Don't discourage
400         memory with known offset for offsetable memory constraint.
401         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
403 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
405         * varasm.c (struct oc_local_state): Reorder fields.
406         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
407         and adjust accordingly.
408         (output_constructor): Reorder initialization code and adjust call to
409         output_constructor_bitfield.
411 2013-06-07  Jan Hubicka  <jh@suse.cz>
413         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
415 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
417         * tree-object-size.c (unknown): Make const.
419 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
421         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
422         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
423         for last alternative in the cpu_facility attribute.
425 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
427         PR target/56315
428         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
429         (xordi3): Change operand 2 constraint to arm_xordi_operand.
430         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
431         * config/arm/constraints.md (Dg): New constraint.
432         * config/arm/neon.md (xordi3_neon): Remove.
433         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
434         * config/arm/predicates.md (arm_xordi_operand): New predicate.
436 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
438         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
439         Clean up alternatives.
441 2013-06-07  Alan Modra  <amodra@gmail.com>
443         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
444         va_list_gpr_size.
446 2013-06-07  Alan Modra  <amodra@gmail.com>
448         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
450 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
452         * config/arm/constraints.md (Df): New constraint.
453         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
454         Correct length attribute for last two alternatives.
456 2013-06-07  Alan Modra  <amodra@gmail.com>
458         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
459         override user -mfp-in-toc.
460         (offsettable_ok_by_alignment): Consider just the current access
461         rather than the whole object, unless BLKmode.  Handle
462         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
463         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
464         for -mcmodel=medium.
465         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
466         override user -mfp-in-toc or -msum-in-toc.  Default to
467         -mno-fp-in-toc for -mcmodel=medium.
469 2013-06-06  DJ Delorie  <dj@redhat.com>
471         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
472         TARGET_VALID_POINTER_MODE.
474 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
475             Pat Haugen <pthaugen@us.ibm.com>
476             Peter Bergner <bergner@vnet.ibm.com>
478         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
479         Document new power8 builtins.
481         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
482         condition code register, to allow 128-bit logical operations to be
483         done in the VSX or GPR registers.
484         (nor<mode>3): Use the canonical form for nor.
485         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
486         vclz*, and vpopcnt* vector instructions.
487         (nand<mode>3): Likewise.
488         (orc<mode>3): Likewise.
489         (clz<mode>2): LIkewise.
490         (popcount<mode>2): Likewise.
492         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
493         that only the GPRs are recognized.
495         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
496         support for new power8 builtins.
498         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
499         builtin functions.
500         (xscvdpspn): Likewise.
501         (vclz): Likewise.
502         (vclzb): Likewise.
503         (vclzh): Likewise.
504         (vclzw): Likewise.
505         (vclzd): Likewise.
506         (vpopcnt): Likewise.
507         (vpopcntb): Likewise.
508         (vpopcnth): Likewise.
509         (vpopcntw): Likewise.
510         (vpopcntd): Likewise.
511         (vgbbd): Likewise.
512         (vmrgew): Likewise.
513         (vmrgow): Likewise.
514         (eqv): Likewise.
515         (eqv_v16qi3): Likewise.
516         (eqv_v8hi3): Likewise.
517         (eqv_v4si3): Likewise.
518         (eqv_v2di3): Likewise.
519         (eqv_v4sf3): Likewise.
520         (eqv_v2df3): Likewise.
521         (nand): Likewise.
522         (nand_v16qi3): Likewise.
523         (nand_v8hi3): Likewise.
524         (nand_v4si3): Likewise.
525         (nand_v2di3): Likewise.
526         (nand_v4sf3): Likewise.
527         (nand_v2df3): Likewise.
528         (orc): Likewise.
529         (orc_v16qi3): Likewise.
530         (orc_v8hi3): Likewise.
531         (orc_v4si3): Likewise.
532         (orc_v2di3): Likewise.
533         (orc_v4sf3): Likewise.
534         (orc_v2df3): Likewise.
536         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
537         allow power8 quad mode in 64-bit.
538         (rs6000_builtin_vectorized_function): Add support to vectorize
539         ISA 2.07 count leading zeros, population count builtins.
540         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
541         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
542         (builtin_function_type): Add vgbbd builtin function which takes an
543         unsigned argument.
544         (altivec_expand_vec_perm_const): Add support for new power8 merge
545         instructions.
547         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
548         that does not include TImdoe for use with 32-bit.
549         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
550         instructions.
551         (UNSPEC_VSX_CVDPSPN): Likewise.
552         (vsx_xscvdpspn): Likewise.
553         (vsx_xscvspdpn): Likewise.
554         (vsx_xscvdpspn_scalar): Likewise.
555         (vsx_xscvspdpn_directmove): Likewise.
556         (vsx_and<mode>3): Split logical operations into 32-bit and
557         64-bit. Add support to do logical operations on TImode as well as
558         VSX vector types.  Allow logical operations to be done in either
559         VSX registers or in general purpose registers in 64-bit mode.  Add
560         splitters if GPRs were used. For AND, add clobber of CCmode to
561         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
562         encoding.
563         (vsx_and<mode>3_32bit): Likewise.
564         (vsx_and<mode>3_64bit): Likewise.
565         (vsx_ior<mode>3): Likewise.
566         (vsx_ior<mode>3_32bit): Likewise.
567         (vsx_ior<mode>3_64bit): Likewise.
568         (vsx_xor<mode>3): Likewise.
569         (vsx_xor<mode>3_32bit): Likewise.
570         (vsx_xor<mode>3_64bit): Likewise.
571         (vsx_one_cmpl<mode>2): Likewise.
572         (vsx_one_cmpl<mode>2_32bit): Likewise.
573         (vsx_one_cmpl<mode>2_64bit): Likewise.
574         (vsx_nor<mode>3): Likewise.
575         (vsx_nor<mode>3_32bit): Likewise.
576         (vsx_nor<mode>3_64bit): Likewise.
577         (vsx_andc<mode>3): Likewise.
578         (vsx_andc<mode>3_32bit): Likewise.
579         (vsx_andc<mode>3_64bit): Likewise.
580         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
581         and xxlorc instructions.
582         (vsx_eqv<mode>3_64bit): Likewise.
583         (vsx_nand<mode>3_32bit): Likewise.
584         (vsx_nand<mode>3_64bit): Likewise.
585         (vsx_orc<mode>3_32bit): Likewise.
586         (vsx_orc<mode>3_64bit): Likewise.
588         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
590         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
591         instruction.
592         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
593         (p8_vmrgow): Likewise.
594         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
595         GPRs to be split under VSX.
596         (p8v_clz<mode>2): Add power8 count leading zero support.
597         (p8v_popcount<mode>2): Add power8 population count support.
598         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
599         support.
601         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
602         instruction.
604         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
605         builtin functions.
606         (vec_nand): Likewise.
607         (vec_vclz): Likewise.
608         (vec_vclzb): Likewise.
609         (vec_vclzd): Likewise.
610         (vec_vclzh): Likewise.
611         (vec_vclzw): Likewise.
612         (vec_vgbbd): Likewise.
613         (vec_vmrgew): Likewise.
614         (vec_vmrgow): Likewise.
615         (vec_vpopcnt): Likewise.
616         (vec_vpopcntb): Likewise.
617         (vec_vpopcntd): Likewise.
618         (vec_vpopcnth): Likewise.
619         (vec_vpopcntw): Likewise.
621 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
623         PR rtl-optimization/57468
624         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
625         spilled pseudos.
627 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
629         PR rtl-optimization/57459
630         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
631         type when setting live regs.
633 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
635         * config/s390/s390.opt (mlra): New option.
636         * config/s390/s390.c (s390_decompose_address): Check displacement
637         for all registers for LRA.
638         (s390_secondary_reload): Don't used secondary reloads for LRA.
639         (s390_lra_p): New function.
640         (TARGET_LRA_P): Define.
641         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
642         of attribute cpu_facility to zarch for the last alternative.
643         (*cmpmem_short): Ditto.
645 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
647         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
648         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
649         (arm_expand_prologue): Likewise.
651 2013-06-06  Teresa Johnson  <tejohnson@google.com>
653         PR c++/53743
654         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
655         as this is now done by redirect_edge_and_branch_force.
656         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
657         barriers, and fix interaction with splitting.
658         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
659         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
660         reflect changes made in the routine.
661         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
662         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
663         since this is called in cfglayout mode, and replace partition fixup
664         with assert as that is now done by force_nonfallthru_and_redirect.
665         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
666         already be marked with region crossing note.
667         (insert_section_boundary_note): Make non-static, gate on flag
668         has_bb_partition, rewrite to also check for multiple partitions.
669         (rest_of_handle_reorder_blocks): Remove call to
670         insert_section_boundary_note, now done later during free_cfg.
671         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
672         * bb-reorder.h (insert_section_boundary_note): Declare.
673         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
674         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
675         invoke insert_section_boundary_note.
676         (try_redirect_by_replacing_jump): Remove unnecessary
677         check for region crossing note.
678         (fixup_partition_crossing): New function.
679         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
680         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
681         in non-cfglayout mode.
682         (force_nonfallthru_and_redirect): Fixup partition boundaries,
683         remove old code that tried to do this. Emit barrier correctly
684         when we are in cfglayout mode.
685         (last_bb_in_partition): New function.
686         (rtl_split_edge): Correctly fixup partition boundaries.
687         (commit_one_edge_insertion): Remove old code that tried to
688         fixup region crossing edge since this is now handled in
689         split_block, and set up insertion point correctly since
690         block may now end in a jump.
691         (verify_hot_cold_block_grouping): Guard against checking when not in
692         linearized RTL mode.
693         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
694         notes.
695         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
696         rtl_verify_flow_info, so not called in cfglayout mode.
697         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
698         (fixup_reorder_chain): Remove old code that attempted to fixup region
699         crossing note as this is now handled in force_nonfallthru_and_redirect.
700         (duplicate_insn_chain): Don't duplicate switch section notes.
701         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
702         note.
703         * basic-block.h (emit_barrier_after_bb): Declare.
705 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
707         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
708         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
709         arm_usatsihi): Adjust alternatives for arm_restrict_it.
711 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
713         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
714         where appropriate.
715         * config/arm/ldmstm.md: Regenerate.
717 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
719         * config/arm/sync.md (atomic_loaddi_1):
720         Disable predication for arm_restrict_it.
721         (arm_load_exclusive<mode>): Likewise.
722         (arm_load_exclusivesi): Likewise.
723         (arm_load_exclusivedi): Likewise.
724         (arm_load_acquire_exclusive<mode>): Likewise.
725         (arm_load_acquire_exclusivesi): Likewise.
726         (arm_load_acquire_exclusivedi): Likewise.
727         (arm_store_exclusive<mode>): Likewise.
728         (arm_store_exclusive<mode>): Likewise.
729         (arm_store_release_exclusivedi): Likewise.
730         (arm_store_release_exclusive<mode>): Likewise.
732 2013-06-06  Richard Biener  <rguenther@suse.de>
734         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
735         after LTO_null.
736         (lto_tag_is_tree_code_p): Adjust.
737         (lto_tag_is_gimple_code_p): Likewise.
738         (lto_gimple_code_to_tag): Likewise.
739         (lto_tag_to_gimple_code): Likewise.
740         (lto_tree_code_to_tag): Likewise.
741         (lto_tag_to_tree_code): Likewise.
742         * data-streamer.h (streamer_write_hwi_in_range): Use
743         uhwi streaming to stream the normalized range.
744         (streamer_read_hwi_in_range): Likewise.
746 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
748         * config/arm/arm.md (enabled_for_depr_it): New attribute.
749         (predicable_short_it): Likewise.
750         (predicated): Likewise.
751         (enabled): Handle above.
752         (define_cond_exec): Set predicated attribute to yes.
754 2013-06-05  Mike Stump  <mikestump@comcast.net>
756         * gdbinit.in (__FUNCTION__): Add.
758 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
760         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
761         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
763 2013-06-05  Jan Hubicka  <jh@suse.cz>
765         * varasm.c (mark_decl_referenced): Revert the removal until targets
766         are fixed.
768 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
770         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
771         instead of mark_decl_referenced.
773 2013-06-05  Jan Hubicka  <jh@suse.cz>
775         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
776         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
777         and symtab_used_from_object_file_p.
778         (cgraph_make_node_local_1): Clear forced_by_abi.
779         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
780         * cgraph.h (symtab_node_base): Add forced_by_abi.
781         (decide_is_variable_needed): Remove.
782         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
783         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
784         (decide_is_symbol_needed): ... this one; handle symbols in general;
785         always analyze virtuals; honnor forced_by_abi.
786         (cgraph_finalize_function): Update.
787         (varpool_finalize_decl): Update.
788         (symbol_defined_and_needed): Remove.
789         (analyze_functions): Update.
790         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
791         output_refs, input_overwrite_node): Handle forced_by_abi.
792         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
793         (address_taken_from_non_vtable_p): ... this one.
794         (comdat_can_be_unshared_p_1): New function.
795         (cgraph_comdat_can_be_unshared_p): Rename to ...
796         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
797         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
798         (function_and_variable_visibility): Clear forced_by_abi as needed.
799         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
800         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
801         * symtab.c (dump_symtab_base): Dump forced_by_abi.
802         * varpool.c (decide_is_variable_needed): Remove.
804 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
806         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
807         (arm_option_override): Override arm_restrict_it where appropriate.
808         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
809         * config/arm/arm.opt (mrestrict-it): New command-line option.
810         * doc/invoke.texi: Document -mrestrict-it.
812 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
814         * tsan.c (tsan_atomic_table): Make const.
816 2013-06-05  Richard Biener  <rguenther@suse.de>
818         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
819         index associated with the tree we are supposed to replace.
820         * tree-streamer-out.c (pack_ts_base_value_fields): Output
821         TREE_ASM_WRITTEN as zero for everything but SSA names.
823 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
825         * tree-ssa-structalias.c (call_stmt_vars): Make static.
827 2013-06-04  Jan Hubicka  <jh@suse.cz>
829         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
830         (input_node, input_varpool_node): Handle correctly external same
831         body aliases.
832         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
833         nodes at ltrans stage.
835 2013-06-04  Jan Hubicka  <jh@suse.cz>
837         * ipa-inline.c (update_caller_keys): Fix availability test.
838         (update_callee_keys): Likewise.
839         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
840         to follow ELF standard.
842 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
844         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
845         (mips64r5900el-*-elf*): New configurations.
846         * config/mips/mips-cpus.def (r5900): New processor.
847         * config/mips/mips-tables.opt: Regenerate.
848         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
849         (mips_issue_rate): Handle PROCESSOR_R5900.
850         (mips_reorg_process_insns): Force reorder mode for the R5900.
851         * config/mips/mips.h (TARGET_MIPS5900): Define.
852         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
853         TARGET_MIPS5900.
854         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
855         TARGET_MIPS5900.
856         * config/mips/mips.md (processor): Add r5900.
857         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
859 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
861         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
862         into function to generate MOVI instruction.
863         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
864         (aarch64_preferred_simd_mode): Turn into wrapper.
865         (aarch64_output_scalar_simd_mov_immediate): New function.
866         * config/aarch64/aarch64-protos.h: Add prototype for above.
868 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
870         * config/aarch64/aarch64.c (simd_immediate_info): Remove
871         element_char member.
872         (sizetochar): Return signed char.
873         (aarch64_simd_valid_immediate): Remove elchar and other
874         unnecessary variables.
875         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
876         Calculate element_char as required.
877         * config/aarch64/aarch64-protos.h: Update and move prototype
878         for aarch64_output_simd_mov_immediate.
879         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
880         Update arguments.
882 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
884         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
885         information completed by aarch64_simd_valid_immediate.
886         (aarch64_legitimate_constant_p): Update arguments.
887         (aarch64_simd_valid_immediate): Work with struct rather than many
888         pointers.
889         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
890         (aarch64_simd_make_constant): Update arguments.
891         (aarch64_output_simd_mov_immediate): Work with struct rather than
892         many pointers.  Output immediate directly rather than as operand.
893         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
894         Update prototype.
895         * config/aarch64/constraints.md (Dn): Update arguments.
897 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
899         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
900         longer static.
901         (aarch64_simd_immediate_valid_for_move): Remove.
902         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
903         (aarch64_simd_make_constant): Update call.
904         (aarch64_output_simd_mov_immediate): Update call.
905         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
906         Add prototype.
907         * config/aarch64/constraints.md (Dn): Update call.
909 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
911         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
912         return type to bool for prototype.
913         (aarch64_legitimate_constant_p): Check for true instead of not -1.
914         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
915         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
917 2013-06-04  Catherine Moore  <clm@codesourcery.com>
919         * config/mips/mips.opt (meva): New.
920         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
921         (ASM_SPEC): Handle -meva.
922         * doc/invoke.texi (meva):  Document.
924 2013-06-04  Alan Modra  <amodra@gmail.com>
926         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
927         constant output.
929 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
931         * rtl.def: Add extra fourth optional field to define_cond_exec.
932         * gensupport.c (process_one_cond_exec): Process attributes from
933         define_cond_exec.
934         * doc/md.texi: Document fourth field in define_cond_exec.
936 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
938         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
939         out the processing order as in store_bit_field_1.
941 2013-06-04  Jan Hubicka  <jh@suse.cz>
943         PR middle-end/57500
944         * cgraphunit.c (cgraph_process_same_body_aliases): Create
945         non-VAR_DECL node if it does not exist yet.
947 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
949         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
950         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
951         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
952         target_cpu_default setting.
954 2013-06-03  Teresa Johnson  <tejohnson@google.com>
956         * dumpfile.c (opt_info_switch_p): Change -fopt-info
957         default to -fopt-info=optimized instead of all.
958         * doc/invoke.texi: Ditto.
959         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
960         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
961         (execute_vect_slp): Emit BB vectorization success under
962         MSG_OPTIMIZED_LOCATIONS.
963         * tree-vect-slp.c (vect_slp_transform_bb): Change
964         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
965         * tree-vect-loop.c (vect_transform_loop): Ditto.
967 2013-06-03  Jason Merrill  <jason@redhat.com>
969         PR c++/57415
970         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
971         Use TARGET_EXPR for C++.
973 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
975         PR rtl-optimization/57268
976         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
977         if DEBUG_INSN_P (insn).
979         Reapply
980         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
982         PR rtl-optimization/57268
983         * sched-deps.c (sched_analyze_2): Flush dependence lists if
984         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
986 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
988         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
989         (ix86_avoid_lea_for_addr): Likewise.
990         (exact_dependency_1): Likewise.
991         (ix86_adjust_cost): Likewise.
992         (swap_top_of_ready_list): Fix formatting and !reload_completed check
993         removed.
994         (do_reorder_for_imul): Fix typo, formatting and
995         !reload_completed check removed.
996         (ix86_sched_reorder): Fix typo and formatting.
997         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
998         list.
1000 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1002         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1004 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1006         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1007         <STRING_CST>: Likewise.
1008         <VECTOR_CST>: Likewise.
1010 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1011             Mikael Morin  <mikael@gcc.gnu.org>
1013         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1014         * config.in: Regenerated.
1015         * configure: Regenerated.
1017 2013-06-01  Jan Hubicka  <jh@suse.cz>
1019         PR middle-end/57366
1020         * cgraphunit.c (compile): When weakref is not supported,
1021         set up transparent aliases before final output pass.
1022         * varasm.c (assemble_alias): Do not try to do it here.
1024 2013-06-01  Jan Hubicka  <jh@suse.cz>
1026         PR middle-end/57467
1027         * passes.c (for_per_function): Skip unanalyzed functions.
1029 2013-06-01  Jan Hubicka  <jh@suse.cz>
1031         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1032         (lto_symtab_merge_symbols_1): ... this one.
1033         (lto_symtab_merge_cgraph_nodes): Rename to ...
1034         (lto_symtab_merge_symbols): ... this one; simplify.
1035         * cgraph.c (same_body_aliases_done): Rename to ...
1036         (cpp_implicit_aliases_done): ... this one.
1037         (cgraph_create_function_alias): Update.
1038         (cgraph_same_body_alias): Update.
1039         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1040         (verify_edge_corresponds_to_fndecl): Simplify.
1041         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1042         (cgraph_node): Remove same_body_alias.
1043         (varpool_node): Remove alias_of and extra_name_alias.
1044         (same_body_aliases_done): Rename to ..
1045         (cpp_implicit_aliases_done): ... this one.
1046         (symtab_alias_ultimate_target): Add default parameter.
1047         (symtab_resolve_alias): New function.
1048         (fixup_same_cpp_alias_visibility): Declare.
1049         (cgraph_function_node): Add default parameter.
1050         (cgraph_node_asm_name): Likewise.
1051         (cgraph_function_or_thunk_node): Add default parameter; do
1052         not ICE when it is NULL.
1053         (varpool_variable_node): Likewise.
1054         * tree-emutls.c (create_emultls_var): Update.
1055         (ipa_lower_emutls): Update.
1056         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1057         (cgraph_reset_node): Reset alias info.
1058         (cgraph_finalize_function): Update.
1059         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1060         (analyze_function): Simplify.
1061         (cgraph_process_same_body_aliases): Simplify.
1062         (analyze_functions): Fixup same body aliases.
1063         (handle_alias_pairs): Simplify.
1064         (assemble_thunk): Update.
1065         (assemble_thunks_and_aliases): Update.
1066         (output_weakrefs): Rewrite.
1067         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1068         (lto_output_varpool_node): Likewise.
1069         (compute_ltrans_boundary): Remve assert.
1070         (get_alias_symbol): New functoin.
1071         (input_node): Rewrite alias handling.
1072         (input_varpool_node): Likewise.
1073         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1074         * ipa.c (process_references): Handle weakrefs correctly.
1075         (symtab_remove_unreachable_nodes): Likewise.
1076         * trans-mem.c (get_cg_data): Update.
1077         (ipa_tm_create_version_alias): Update.
1078         (ipa_tm_execute): Update.
1079         * symtab.c (dump_symtab_base): Dump aliases.
1080         (verify_symtab_base): Verify aliases.
1081         (symtab_node_availability): New function.
1082         (symtab_alias_ultimate_target): Simplify.
1083         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1084         handle all the fixup cases.
1085         (symtab_resolve_alias): New function.
1086         * passes.c (ipa_write_summaries): Handle weakrefs.
1087         * varpool.c (varpool_analyze_node): Simplify.
1088         (assemble_aliases): Update.
1089         (varpool_create_variable_alias): Simplify.
1090         (varpool_extra_name_alias): Simplify.
1091         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1092         (lto_symtab_merge_symbols): ... this one.
1094 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
1096         Revert
1097         PR rtl-optimization/57268
1098         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1099         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1101 2013-06-01  Tobias Burnus  <burnus@net-b.de>
1103         Partially reverted:
1104         2013-05-31  Tobias Burnus  <burnus@net-b.de>
1106         PR middle-end/57073
1107         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1108         further up.
1110 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1112         PR rtl-optimization/57268
1113         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1114         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1116 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1118         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1119         unordered comparison operators when -fno-trapping-math is in effect
1120         on the e500.
1121         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1122         and implement unordered comparison operators properly on the e500.
1124 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1126         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1127         for constant scalar integers.
1128         (simplify_relational_operation_1): Likewise.
1130 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
1132         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1133         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
1134         Fix comment.
1136 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1137             Igor Zamyatin  <igor.zamyatin@intel.com>
1139         Silvermont (SLM) architecture performance tuning.
1140         * config/i386/i386.h (enum ix86_tune_indices): Add
1141         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1142         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1144         * config/i386/i386.c (initial_ix86_tune_features)
1145         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1146         (ix86_lea_outperforms): Handle Silvermont tuning.
1147         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1148         call.
1149         (ix86_use_lea_for_mov): Likewise.
1150         (ix86_avoid_lea_for_addr): Likewise.
1151         (ix86_lea_for_add_ok): Likewise.
1152         (exact_dependency_1): New function.
1153         (exact_store_load_dependency): Likewise.
1154         (ix86_adjust_cost): Handle Silvermont tuning.
1155         (do_reoder_for_imul): Likewise.
1156         (swap_top_of_ready_list): New function.
1157         (ix86_sched_reorder): Changed to handle Silvermont tuning.
1159         * config/i386/i386.md (peepholes that split memory operand in fp
1160         converts): New.
1162 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1164         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1165         Remove un-necessary braces.
1167 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1169         * config/aarch64/aarch64.c (aarch64_classify_symbol):
1170         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1172 2013-05-31  Tobias Burnus  <burnus@net-b.de>
1174         PR middle-end/57073
1175         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1177 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1179         PR target/56315
1180         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1181         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1182         * config/arm/neon.md (iordi3_neon): Remove.
1183         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1184         * config/arm/predicates.md (imm_for_neon_logic_operand):
1185         Move to earlier in the file.
1186         (neon_logic_op2): Likewise.
1187         (arm_iordi_operand_neon): New predicate.
1189 2013-05-31  Richard Biener  <rguenther@suse.de>
1191         PR tree-optimization/57478
1192         PR tree-optimization/57453
1193         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1194         are life as well.
1196 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1198         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1199         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1201 2013-05-30  Tobias Burnus  <burnus@net-b.de>
1202             Thomas Koenig  <tkoenig@gcc.gnu.org>
1204         PR middle-end/57073
1205         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1206         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1208 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
1210         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1212 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
1214         * target.def (register_usage_leveling_p): New hook.
1215         * targhooks.c (default_register_usage_leveling_p): New.
1216         * targhooks.h (default_register_usage_leveling_p): New prototype.
1217         * lra-assigns.c (register_usage_leveling_p): Use the hook.
1218         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1219         * doc/tm.texi: Update.
1220         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1222 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
1224         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1225         (*insv_reg<mode>): New define_insn.
1227 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
1229         PR rtl-optimization/57439
1230         * postreload.c (move2add_valid_value_p): Check that we have
1231         a zero subreg_regno_offset when accessing the register in
1232         the requested mode.
1234 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1235             Igor Zamyatin  <igor.zamyatin@intel.com>
1237         Silvermont (SLM) architecture pipeline model, tuning and
1238         insn selection.
1239         * config.gcc: Add slm config options and target.
1241         * config/i386/slm.md: New.
1243         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1245         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
1246         PROCESSOR_SLM.
1247         (ix86_target_macros_internal): Likewise.
1249         * gcc/config/i386/i386.c (slm_cost): New cost.
1250         (m_SLM): New macro flag.
1251         (initial_ix86_tune_features): Set m_SLM.
1252         (x86_accumulate_outgoing_args): Likewise.
1253         (x86_arch_always_fancy_math_387): Likewise.
1254         (processor_target_table): Add slm cost.
1255         (cpu_names): Add slm cpu name.
1256         (x86_option_override_internal): Set SLM ISA.
1257         (ix86_issue_rate): New case PROCESSOR_SLM.
1258         (ia32_multipass_dfa_lookahead): Likewise.
1259         (fold_builtin_cpu): Add slm.
1261         * config/i386/i386.h (TARGET_SLM): New target macro.
1262         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1263         (processor_type): Add PROCESSOR_SLM.
1265         * config/i386/i386.md (cpu): Add new value "slm".
1266         (slm.md): Include slm.md.
1268 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
1269             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1271         * config/arm/arm-protos.h: Add and update function protos.
1272         * config/arm/arm.c (use_simple_return_p): New added.
1273         (thumb2_expand_return): Check simple_return flag.
1274         * config/arm/arm.md: Add simple_return and conditional simple_return.
1275         * config/arm/iterators.md: Add iterator for return and simple_return.
1277 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1279         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1280         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1281         (arm_emit_vfp_multi_reg_pop): Likewise.
1282         (thumb2_emit_ldrd_pop): Likewise.
1283         (arm_expand_epilogue): Add misc REG_CFA notes.
1284         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1286 2013-05-29  Lawrence Crowl  <crowl@google.com>
1288         * config/arm/t-arm: Update for below.
1290         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1291         Change type to hash_table.  Update dependent calls and types.
1293         * config/i386/t-cygming: Update for below.
1295         * config/i386/t-interix: Update for below.
1297         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1298         Change type to hash_table.  Update dependent calls and types.
1299         (i386_find_on_wrapper_list::wrappers): Likewise.
1301         * config/ia64/t-ia64: Update for below.
1303         * config/ia64/ia64.c (bundle_state_table):
1304         Change type to hash_table.  Update dependent calls and types.
1306         * config/mips/mips.c (mips_reorg_process_insns::htab):
1307         Change type to hash_table.  Update dependent calls and types.
1309         * config/sol2.c (solaris_comdat_htab):
1310         Change type to hash_table.  Update dependent calls and types.
1312         * config/t-sol2: Update for above.
1314 2013-05-29  Teresa Johnson  <tejohnson@google.com>
1316         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1317         functions are not yet marked as defined.
1319 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1320             Pat Haugen <pthaugen@us.ibm.com>
1321             Peter Bergner <bergner@vnet.ibm.com>
1323         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1324         instructions.
1325         (VEC_A): Likewise.
1326         (VEC_C): Likewise.
1327         (vrotl<mode>3): Likewise.
1328         (vashl<mode>3): Likewise.
1329         (vlshr<mode>3): Likewise.
1330         (vashr<mode>3): Likewise.
1332         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1333         support for power8 V2DI builtins.
1335         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1336         power8 V2DI builtins.
1337         (vupkhsw): Likewise.
1338         (vupklsw): Likewise.
1339         (vaddudm): Likewise.
1340         (vminsd): Likewise.
1341         (vmaxsd): Likewise.
1342         (vminud): Likewise.
1343         (vmaxud): Likewise.
1344         (vpkudum): Likewise.
1345         (vpksdss): Likewise.
1346         (vpkudus): Likewise.
1347         (vpksdus): Likewise.
1348         (vrld): Likewise.
1349         (vsld): Likewise.
1350         (vsrd): Likewise.
1351         (vsrad): Likewise.
1352         (vsubudm): Likewise.
1353         (vcmpequd): Likewise.
1354         (vcmpgtsd): Likewise.
1355         (vcmpgtud): Likewise.
1356         (vcmpequd_p): Likewise.
1357         (vcmpgtsd_p): Likewise.
1358         (vcmpgtud_p): Likewise.
1359         (vupkhsw): Likewise.
1360         (vupklsw): Likewise.
1361         (vaddudm): Likewise.
1362         (vmaxsd): Likewise.
1363         (vmaxud): Likewise.
1364         (vminsd): Likewise.
1365         (vminud): Likewise.
1366         (vpksdss): Likewise.
1367         (vpksdus): Likewise.
1368         (vpkudum): Likewise.
1369         (vpkudus): Likewise.
1370         (vrld): Likewise.
1371         (vsld): Likewise.
1372         (vsrad): Likewise.
1373         (vsrd): Likewise.
1374         (vsubudm): Likewise.
1376         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1377         support for power8 V2DI instructions.
1379         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1380         power8 V2DI instructions.  Combine pack and unpack insns to use an
1381         iterator for each mode.  Check whether a particular mode supports
1382         Altivec instructions instead of just checking TARGET_ALTIVEC.
1383         (UNSPEC_VPKUWUM): Likewise.
1384         (UNSPEC_VPKSHSS): Likewise.
1385         (UNSPEC_VPKSWSS): Likewise.
1386         (UNSPEC_VPKUHUS): Likewise.
1387         (UNSPEC_VPKSHUS): Likewise.
1388         (UNSPEC_VPKUWUS): Likewise.
1389         (UNSPEC_VPKSWUS): Likewise.
1390         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1391         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1392         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1393         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1394         (UNSPEC_VUPKHSB): Likewise.
1395         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1396         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1397         (UNSPEC_VUPKHSH): Likewise.
1398         (UNSPEC_VUPKLSB): Likewise.
1399         (UNSPEC_VUPKLSH): Likewise.
1400         (VI2): Likewise.
1401         (VI_char): Likewise.
1402         (VI_scalar): Likewise.
1403         (VI_unit): Likewise.
1404         (VP): Likewise.
1405         (VP_small): Likewise.
1406         (VP_small_lc): Likewise.
1407         (VU_char): Likewise.
1408         (add<mode>3): Likewise.
1409         (altivec_vaddcuw): Likewise.
1410         (altivec_vaddu<VI_char>s): Likewise.
1411         (altivec_vadds<VI_char>s): Likewise.
1412         (sub<mode>3): Likewise.
1413         (altivec_vsubcuw): Likewise.
1414         (altivec_vsubu<VI_char>s): Likewise.
1415         (altivec_vsubs<VI_char>s): Likewise.
1416         (altivec_vavgs<VI_char>): Likewise.
1417         (altivec_vcmpbfp): Likewise.
1418         (altivec_eq<mode>): Likewise.
1419         (altivec_gt<mode>): Likewise.
1420         (altivec_gtu<mode>): Likewise.
1421         (umax<mode>3): Likewise.
1422         (smax<mode>3): Likewise.
1423         (umin<mode>3): Likewise.
1424         (smin<mode>3): Likewise.
1425         (altivec_vpkuhum): Likewise.
1426         (altivec_vpkuwum): Likewise.
1427         (altivec_vpkshss): Likewise.
1428         (altivec_vpkswss): Likewise.
1429         (altivec_vpkuhus): Likewise.
1430         (altivec_vpkshus): Likewise.
1431         (altivec_vpkuwus): Likewise.
1432         (altivec_vpkswus): Likewise.
1433         (altivec_vpks<VI_char>ss): Likewise.
1434         (altivec_vpks<VI_char>us): Likewise.
1435         (altivec_vpku<VI_char>us): Likewise.
1436         (altivec_vpku<VI_char>um): Likewise.
1437         (altivec_vrl<VI_char>): Likewise.
1438         (altivec_vsl<VI_char>): Likewise.
1439         (altivec_vsr<VI_char>): Likewise.
1440         (altivec_vsra<VI_char>): Likewise.
1441         (altivec_vsldoi_<mode>): Likewise.
1442         (altivec_vupkhsb): Likewise.
1443         (altivec_vupkhs<VU_char>): Likewise.
1444         (altivec_vupkls<VU_char>): Likewise.
1445         (altivec_vupkhsh): Likewise.
1446         (altivec_vupklsb): Likewise.
1447         (altivec_vupklsh): Likewise.
1448         (altivec_vcmpequ<VI_char>_p): Likewise.
1449         (altivec_vcmpgts<VI_char>_p): Likewise.
1450         (altivec_vcmpgtu<VI_char>_p): Likewise.
1451         (abs<mode>2): Likewise.
1452         (vec_unpacks_hi_v16qi): Likewise.
1453         (vec_unpacks_hi_v8hi): Likewise.
1454         (vec_unpacks_lo_v16qi): Likewise.
1455         (vec_unpacks_hi_<VP_small_lc>): Likewise.
1456         (vec_unpacks_lo_v8hi): Likewise.
1457         (vec_unpacks_lo_<VP_small_lc>): Likewise.
1458         (vec_pack_trunc_v8h): Likewise.
1459         (vec_pack_trunc_v4si): Likewise.
1460         (vec_pack_trunc_<mode>): Likewise.
1462         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1463         V2DI builtins.
1464         (vec_vmaxsd): Likewise.
1465         (vec_vmaxud): Likewise.
1466         (vec_vminsd): Likewise.
1467         (vec_vminud): Likewise.
1468         (vec_vpksdss): Likewise.
1469         (vec_vpksdus): Likewise.
1470         (vec_vpkudum): Likewise.
1471         (vec_vpkudus): Likewise.
1472         (vec_vrld): Likewise.
1473         (vec_vsld): Likewise.
1474         (vec_vsrad): Likewise.
1475         (vec_vsrd): Likewise.
1476         (vec_vsubudm): Likewise.
1477         (vec_vupkhsw): Likewise.
1478         (vec_vupklsw): Likewise.
1480 2013-05-29  Jan Hubicka  <jh@suse.cz>
1482         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1483         flags; reorder rest of fields in more consistent way.
1484         (varpool_node): Remove analyzed, finalized and alias.
1485         (cgraph_ndoe): Likewise.
1486         (symtab_alias_ultimate_target): New function.
1487         (cgraph_function_node): Move offline.
1488         (cgraph_reset_node): Declare.
1489         (cgraph_comdat_can_be_unshared_p): Remove.
1490         (varpool_remove_initializer): Declare.
1491         (varpool_first_defined_variable, varpool_next_defined_variable
1492         cgraph_first_defined_function, cgraph_next_defined_function): Update.
1493         (cgraph_function_with_gimple_body_p): Update.
1494         (varpool_all_refs_explicit_p): Update.
1495         (symtab_alias_target): New function.
1496         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1497         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1498         (cgraph_function_or_thunk_node): Simplify using
1499         symtab_alias_ultimate_target.
1500         (varpool_variable_node): Likewise.
1501         * cgraph.c (cgraph_create_function_alias): Update.
1502         (cgraph_add_thunk): Update.
1503         (cgraph_remove_node): Update.
1504         (dump_cgraph_node): Do not dump removed flags.
1505         (cgraph_function_body_availability): Update.
1506         (cgraph_propagate_frequency): Update.
1507         (verify_cgraph_node): Check sanity of local flag.
1508         (cgraph_function_node): Move here from cgraph.h; revamp for
1509         cgraph_function_or_thunk_node.
1510         * lto-symtab.c (lto_varpool_replace_node): Update.
1511         (lto_symtab_resolve_can_prevail_p): Update.
1512         (lto_symtab_merge_cgraph_nodes): Update.
1513         * ipa-cp.c (determine_versionability, initialize_node_lattices,
1514         propagate_constants_accross_call, devirtualization_time_bonus,
1515         ipcp_propagate_stage): Update.
1516         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1517         * ipa-inline-transform.c (clone_inlined_nodes,
1518         preserve_function_body_p): Update.
1519         * ipa-reference.c (propagate): Update.
1520         (write_node_summary_p): Update.
1521         * toplev.c (wrapup_global_declaration_2): Update.
1522         * cgraphunit.c (cgraph_analyze_function): Rename to ...
1523         (analyze_function) ... this one.
1524         (cgraph_process_new_functions): Update.
1525         (cgraph_reset_node): Export.
1526         (cgraph_finalize_function): Update.
1527         (cgraph_add_new_function): Update.
1528         (process_function_and_variable_attributes): Update.
1529         (varpool_finalize_decl): Update.
1530         (symbol_finalized): Remove.
1531         (symbol_finalized_and_needed): Rename to ...
1532         (symbol_defined_and_needed): ... update.
1533         (cgraph_analyze_functions): Update.
1534         (handle_alias_pairs): Update.
1535         (mark_functions_to_output): Update.
1536         (assemble_thunk): Update.
1537         (output_in_order): Update.
1538         (output_weakrefs): Update.
1539         (finalize_compilation_unit): Update.
1540         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1541         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1542         input_node, input_varpool_node): Update.
1543         * dbxout.c (dbxout_expand_expr): Update.
1544         * cgraphclones.c (cgraph_clone_node): Update.
1545         (cgraph_copy_node_for_versioning): Update.
1546         (cgraph_materialize_clone): Update.
1547         (cgraph_materialize_all_clones): Update.
1548         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1549         propagate_pure_const, propagate_nothrow): Update.
1550         * lto-streamer-out.c (lto_output, write_symbol): Update.
1551         * ipa-utils.c (ipa_reverse_postorder): Update.
1552         * ipa-inline.c (can_inline_edge_p): Update.
1553         (update_caller_keys, ipa_inline): Update.
1554         * dwarf2out.c (reference_to_unused,
1555         premark_types_used_by_global_vars_helper): Update.
1556         * tree-eh.c (tree_could_trap_p): Update.
1557         * ipa-split.c (consider_split, execute_split_functions): Update.
1558         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
1559         has_addr_references_p): Update; move ahead in file for better
1560         readability.
1561         (process_references): Simplify.
1562         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1563         bodies are removed.
1564         (cgraph_comdat_can_be_unshared_p): Make static.
1565         (cgraph_externally_visible_p): Update.
1566         (varpool_externally_visible_p): Update.
1567         (function_and_variable_visibility): Update.
1568         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1569         ipa_tm_mark_force_output_node): Update.
1570         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1571         estimate_edge_devirt_benefit, inline_generate_summary,
1572         inline_write_summary): Update.
1573         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1574         * ipa-prop.c (ipa_compute_jump_functions): Update.
1575         (ipa_print_node_params, ipa_prop_read_section,
1576         ipa_update_after_lto_read, read_replacements_section): Update.
1577         * varasm.c (mark_decl_referenced): Update.
1578         (assemble_alias, dump_tm_clone_pairs): Update.
1579         * tree-inline.c (copy_bb): Update.
1580         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1581         Update.
1582         * symtab.c (dump_symtab_base): Print new flags.
1583         (verify_symtab_base): Verify new flags.
1584         (symtab_alias_ultimate_target): New function.
1585         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1586         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1587         Update.
1588         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1589         Update.
1590         * i386.c (ix86_get_function_versions_dispatcher,
1591         ix86_generate_version_dispatcher_body): Update.
1592         (fold_builtin_cpu): Use varpool_add_new_variable.
1593         * varpool.c (varpool_remove_initializer): Break out from ...
1594         (varpool_remove_node): ... this one.
1595         (dump_varpool_node, varpool_node_for_asm,
1596         cgraph_variable_initializer_availability, varpool_analyze_node,
1597         varpool_assemble_decl, varpool_remove_unreferenced_decls,
1598         varpool_finalize_named_section_flags, varpool_create_variable_alias):
1599         Update.
1601 2013-05-29  Jan Hubicka  <jh@suse.cz>
1603         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1605 2013-05-29  Easwaran Raman  <eraman@google.com>
1607         PR tree-optimization/57442
1608         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1609         when control exits the main loop.
1611 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
1613         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1614         and RX600.
1615         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
1616         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1617         * rx/t-rx: Add rx100 under multi library matches option for nofpu
1618         option.
1620 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1622         PR tree-optimization/57441
1623         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
1624         Don't limit size of incr_vec to number of candidates.
1626 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
1628         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
1629         and mips16 directories.
1630         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
1631         (MULTILIB_DIRNAMES): Ditto.
1632         (MULTILIB_EXCEPTIONS): Add new exceptions.
1633         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1634         (MULTILIB_DIRNAMES): Ditto.
1635         (MULTILIB_EXCEPTIONS): Add new exceptions.
1637 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1638             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1640         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1641         SYMBOL_TINY_ABSOLUTE.
1642         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1643         SYMBOL_TINY_ABSOLUTE.
1644         (aarch64_expand_mov_immediate): Likewise.
1645         (aarch64_classify_symbol): Likewise.
1646         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1647         Permit SYMBOL_TINY_ABSOLUTE.
1648         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1650 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1651             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1653         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1654         Refactor if/switch.  Replace gcc_assert with if.
1656 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
1658         * config/i386/i386.c (initial_ix86_tune_features): Enable
1659         FP Reassociation for AMD bdver1 and bdver2.
1661 2013-05-29  Martin Jambor  <mjambor@suse.cz>
1663         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1664         and IMAGPART_EXPR do not occur within other handled_components.
1666 2013-05-29  Richard Biener  <rguenther@suse.de>
1668         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1669         access on whether the use is in the BB we currently try to
1670         vectorize.
1671         (vect_bb_vectorization_profitable_p): Pass the BB we currently
1672         vectorize to vect_bb_slp_scalar_cost.
1674 2013-05-29  Richard Biener  <rguenther@suse.de>
1676         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1677         computing scalar cost offsetted by stmts that are kept live
1678         by scalar uses.
1679         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1680         for computation of scalar cost.
1682 2013-05-28  Steve Ellcey  <sellcey@mips.com>
1684         * config/mips/mips-cpus.def (mips32r2): Change processor type.
1686 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1688         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1689         array notation built-in reduction functions.
1690         * doc/passes.texi (Passes): Added documentation about changes done
1691         for Cilk Plus.
1692         * doc/invoke.texi (C Dialect Options): Added documentation about
1693         the -fcilkplus flag.
1694         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1695         (BUILTINS_DEF): Depend on cilkplus.def.
1696         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
1697         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1698         * cilkplus.def: New file.
1700 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
1702         PR rtl-optimization/57439
1703         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1705 2013-05-28  Easwaran Raman  <eraman@google.com>
1707         PR tree-optimization/57337
1708         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1709         (find_insert_point): Correctly identify the insertion point
1710         when two statements with the same UID is compared.
1712 2013-05-28  Richard Biener  <rguenther@suse.de>
1714         PR tree-optimization/56787
1715         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1716         from the list of data references.
1717         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1718         clobbers.
1719         (vect_analyze_loop_operations): Likewise.
1720         (vect_transform_loop): Remove clobbers.
1722 2013-05-28  Martin Jambor  <mjambor@suse.cz>
1724         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1725         and REALPART_EXPRs have scalar type.
1727 2013-05-28  Richard Biener  <rguenther@suse.de>
1729         PR tree-optimization/57411
1730         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1731         virtual operands.
1732         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1733         virtual operand propagation.
1735 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
1737         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1738         destination register for bmasksi_vis.
1739         (vector_init_bshuffle): Likewise.
1740         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1742 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
1744         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1745         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1746         mode if the instruction isn't available in the original mode.
1747         * config/sparc/sparc.opt (mfix-ut699): New option.
1748         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1749         (divdf3): Turn into expander.
1750         (divdf3_nofix): New insn.
1751         (divdf3_fix): Likewise.
1752         (divsf3): Disable if -mfix-ut699.
1753         (sqrtdf2): Turn into expander.
1754         (sqrtdf2_nofix): New insn.
1755         (sqrtdf2_fix): Likewise.
1756         (sqrtsf2): Disable if -mfix-ut699.
1758 2013-05-27  Richard Biener  <rguenther@suse.de>
1760         PR middle-end/57412
1761         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1762         block for the new loop.
1764 2013-05-27  Richard Biener  <rguenther@suse.de>
1766         PR tree-optimization/57343
1767         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1768         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1769         (number_of_iterations_cond): Do not build the folded tree.
1771 2013-05-27  Richard Biener  <rguenther@suse.de>
1773         Revert
1774         PR middle-end/57381
1775         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1776         OEP_CONSTANT_ADDRESS_OF retained.
1778         PR tree-optimization/57417
1779         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1780         for unchanged base.
1781         (set_ssa_val_to): Compare addresses using
1782         get_addr_base_and_unit_offset.
1784 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
1786         PR rtl-optimization/56833
1787         * postreload.c (move2add_record_mode): New function.
1788         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1789         (move2add_use_add2_insn): Use move2add_record_sym_value.
1790         (move2add_use_add3_insn): Likewise.
1791         (reload_cse_move2add): Use move2add_valid_value_p and
1792         move2add_record_mode.  Invalidate call-clobbered and REG_INC
1793         affected regs by setting reg_mode to VOIDmode.
1794         (move2add_note_store): Don't pretend the inside of a SUBREG is
1795         the actual destination.  Invalidate single/leading registers by
1796         setting reg_mode to VOIDmode.
1797         Use move2add_record_sym_value, move2add_valid_value_p and
1798         move2add_record_mode.
1800 2013-05-27  Richard Biener  <rguenther@suse.de>
1802         PR tree-optimization/57396
1803         * tree-affine.c (double_int_constant_multiple_p): Properly
1804         return false for val == 0 and div != 0.
1806 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
1808         * config/mips/mips.h: Use #elif in preprocessor conditions.
1810 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
1812         PR target/53916
1813         * config/mips/constraints.md (kl): New constraint.
1814         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1815         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
1816         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
1817         from LO for MIPS16.
1818         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1820 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
1822         PR target/55777
1823         * config/mips/mips.c (mips_can_inline_p): New function.
1824         (TARGET_CAN_INLINE_P): Define.
1826 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1828         * sched-int.h (ds_t, dw_t): Make unsigned int.
1829         Fix documentation that describes how all the ds_t bits are used.
1830         Reserve the last bit for delayed-branch scheduling.
1831         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1832         (BITS_PER_DEP_WEAK): Fix definition and documentation.
1833         (gen_dep_weak_1): Remove prototype.
1834         * sched-deps.c (get_dep_weak_1): Make static.
1835         * target.def (speculate_insn, needs_block_p, gen_spec_check,
1836         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1837         * doc/tm.texi: Regenerate.
1838         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1840 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
1842         PR debug/56950
1843         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1845 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
1846             Sandra Loosemore  <sandra@codesourcery.com>
1848         * config.gcc (powerpc-*): Allow native for with-cpu.
1850 2013-05-24  Jeff Law  <law@redhat.com>
1852         PR tree-optimization/57124
1853         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1854         conversion feeding a condition if the range has an overflow
1855         if -fstrict-overflow.  Add warnings for when we do make the
1856         transformation.
1858 2013-05-24  Dehao Chen  <dehao@google.com>
1860         * tree-cfg.c (locus_discrim_map): Fix the typo.
1861         (locus_discrim_hasher): Likewise.
1862         (locus_discrim_hasher::hash): Likewise.
1863         (locus_discrim_hasher::equal): Likewise.
1865 2013-05-24  Martin Jambor  <mjambor@suse.cz>
1867         PR tree-optimization/57294
1868         * cgraph.h (ipa_record_stmt_references): Declare.
1869         * cgraphbuild.c (ipa_record_stmt_references): New function.
1870         (build_cgraph_edges): Use ipa_record_stmt_references.
1871         (rebuild_cgraph_edges): Likewise.
1872         (cgraph_rebuild_references): Likewise.
1873         * ipa-prop.c (ipa_modify_call_arguments): Discard references
1874         associated with the old statement and build references from the
1875         newly built statements.
1876         * ipa-ref.c (ipa_remove_stmt_references): New function.
1877         * ipa-ref.h (ipa_remove_stmt_references): Declare.
1879 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1881         * lra-constraints.c (emit_spill_move): Use smaller mode for
1882         mem-mem moves.
1883         (check_and_process_move): Consider mem-reg moves for secondary
1884         too.
1885         (curr_insn_transform): Don't lose insns emitted before for
1886         secondary memory moves.
1887         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
1888         reg set up in the current insn.
1890 2013-05-24  Dehao Chen  <dehao@google.com>
1892         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1893         hash function.
1894         (locus_descrim_hasher::equal): Likewise.
1895         (build_gimple_cfg): New discriminator assignment algorithm.
1896         (make_edges): Likewise.
1897         (next_discriminator_for_locus): Likewise.
1898         (same_line_p): Likewise.
1899         (assign_discriminators): Likewise.
1900         (make_cond_expr_edges): Likewise.
1901         (make_gimple_switch_edges): Likewise.
1902         (make_goto_expr_edges): Likewise.
1903         (make_gimple_asm_edges): Likewise.
1905 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
1907         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1908         X format specifier to only display bottom 16 bits.
1909         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1910         immediate to match for operand 2, since it will be masked.
1912 2013-05-24  Richard Biener  <rguenther@suse.de>
1914         PR tree-optimization/57287
1915         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1916         all SSA names that occur in abnormal PHIs.
1918 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1920         PR tree-ssa/57385
1921         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1922         that index is not negative.
1924 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1926         PR rtl-optimization/55177
1927         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1928         (simplify_byte_swapping_operation): New.
1929         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1930         (simplify_relational_operation_1): Deal with BSWAP.
1932 2013-05-23  Richard Henderson  <rth@redhat.com>
1934         PR target/56742
1935         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1936         (ix86_reorg): Call it.
1938 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
1940         PR target/57379
1941         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1942         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1943         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1945 2013-05-23  Christian Bruel  <christian.bruel@st.com>
1947         PR debug/57351
1948         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1950 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1951             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1953         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1954         * config/aarch64/constraints.md (Usa): Remove.
1955         * doc/md.texi (AArch64 Usa): Remove.
1957 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1958             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1960         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1961         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1962         * config/aarch64/predicates.md (aarch64_const_address): Remove.
1963         (aarch64_mov_operand): Use aarch64_mov_operand_p.
1965 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
1967         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1968         instruction (AdvSIMD).
1969         * config/aarch64/aarch64-builtins.c
1970         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1971         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1973 2013-05-23  Martin Jambor  <mjambor@suse.cz>
1975         PR middle-end/57347
1976         * tree.h (contains_bitfld_component_ref_p): Declare.
1977         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1978         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
1979         caller.
1980         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1981         not access a bit-field.  Assert all final offsets are byte-aligned.
1983 2013-05-23  Richard Biener  <rguenther@suse.de>
1985         PR tree-optimization/57380
1986         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1987         least one invariant or re-used load.
1988         * passes.c (init_optimization_passes): Move pass_phiprop before
1989         pass_forwprop.
1991 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
1993         * config/aarch64/aarch64-simd.md
1994         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1996 2013-05-23  Richard Biener  <rguenther@suse.de>
1998         PR middle-end/57381
1999         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2000         OEP_CONSTANT_ADDRESS_OF retained.
2002 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2004         PR middle-end/57344
2005         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2006         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2008 2013-05-23  Richard Biener  <rguenther@suse.de>
2010         PR rtl-optimization/57341
2011         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2012         instead of true_dependence.
2014 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2016         * bb-reorder.c (branch_threshold): Make const.
2017         (exec_threshold): Ditto.
2019 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2020             Pat Haugen <pthaugen@us.ibm.com>
2021             Peter Bergner <bergner@vnet.ibm.com>
2023         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2024         documentation for the power8 crypto builtins.
2026         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2028         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2029         macros for defining power8 builtin functions.
2030         (BU_P8V_AV_2): Likewise.
2031         (BU_P8V_AV_P): Likewise.
2032         (BU_P8V_VSX_1): Likewise.
2033         (BU_P8V_OVERLOAD_1): Likewise.
2034         (BU_P8V_OVERLOAD_2): Likewise.
2035         (BU_CRYPTO_1): Likewise.
2036         (BU_CRYPTO_2): Likewise.
2037         (BU_CRYPTO_3): Likewise.
2038         (BU_CRYPTO_OVERLOAD_1): Likewise.
2039         (BU_CRYPTO_OVERLOAD_2): Likewise.
2040         (XSCVSPDP): Fix typo, point to the correct instruction.
2041         (VCIPHER): Add power8 crypto builtins.
2042         (VCIPHERLAST): Likewise.
2043         (VNCIPHER): Likewise.
2044         (VNCIPHERLAST): Likewise.
2045         (VPMSUMB): Likewise.
2046         (VPMSUMH): Likewise.
2047         (VPMSUMW): Likewise.
2048         (VPERMXOR_V2DI): Likewise.
2049         (VPERMXOR_V4SI: Likewise.
2050         (VPERMXOR_V8HI: Likewise.
2051         (VPERMXOR_V16QI: Likewise.
2052         (VSHASIGMAW): Likewise.
2053         (VSHASIGMAD): Likewise.
2054         (VPMSUM): Likewise.
2055         (VPERMXOR): Likewise.
2056         (VSHASIGMA): Likewise.
2058         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2059         __CRYPTO__ if the crypto instructions are available.
2060         (altivec_overloaded_builtins): Add support for overloaded power8
2061         builtins.
2063         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2064         support for power8 crypto builtins.
2065         (builtin_function_type): Likewise.
2066         (altivec_init_builtins): Add support for builtins that take vector
2067         long long (V2DI) arguments.
2069         * config/rs6000/crypto.md: New file, define power8 crypto
2070         instructions.
2072 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2073             Pat Haugen <pthaugen@us.ibm.com>
2074             Peter Bergner <bergner@vnet.ibm.com>
2076         * doc/invoke.texi (Option Summary): Add power8 options.
2077         (RS/6000 and PowerPC Options): Likewise.
2079         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2080         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2081         wm, wn, wr documentation.
2083         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2084         registers if direct move instructions are enabled.
2085         (wn): New constraint for no registers.
2086         (wq): New constraint for quad word even GPR registers.
2087         (wr): New constraint if 64-bit instructions are enabled.
2088         (wv): New constraint if power8 vector instructions are enabled.
2089         (wQ): New constraint for quad word memory locations.
2091         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2092         constraint for 0..15 for crypto instructions.
2093         (gpc_reg_operand): If VSX allow registers in VSX registers as well
2094         as GPR and floating point registers.
2095         (int_reg_operand): New predicate to match only GPR registers.
2096         (base_reg_operand): New predicate to match base registers.
2097         (quad_int_reg_operand): New predicate to match even GPR registers
2098         for quad memory operations.
2099         (vsx_reg_or_cint_operand): New predicate to allow vector logical
2100         operations in both GPR and VSX registers.
2101         (quad_memory_operand): New predicate for quad memory operations.
2102         (reg_or_indexed_operand): New predicate for direct move support.
2104         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2105         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2106         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2107         (POWERPC_MASKS): Add power8 options.
2108         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2109         various options.
2111         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2112         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2114         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2115         (-mpower8-fusion): New power8 options.
2116         (-mpower8-fusion-sign): Likewise.
2117         (-mpower8-vector): Likewise.
2118         (-mcrypto): Likewise.
2119         (-mdirect-move): Likewise.
2120         (-mquad-memory): Likewise.
2122         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2123         power8.
2124         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2125         registers.
2126         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2127         (rs6000_debug_vector_unit): Add p8_vector.
2128         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2129         definitions.  Also print fusion state.
2130         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2131         (rs6000_builtin_mask_calculate): Add power8 builtin support.
2132         (rs6000_option_override_internal): Add support for power8.
2133         (rs6000_common_init_builtins): Add debugging for skipped builtins
2134         if -mdebug=builtin.
2135         (rs6000_adjust_cost): Add power8 support.
2136         (rs6000_issue_rate): Likewise.
2137         (insn_must_be_first_in_group): Likewise.
2138         (insn_must_be_last_in_group): Likewise.
2139         (force_new_group): Likewise.
2140         (rs6000_register_move_cost): Likewise.
2141         (rs6000_opt_masks): Likewise.
2143         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2144         power8 capable assembler, default to power7 options.
2145         (TARGET_DIRECT_MOVE): Likewise.
2146         (TARGET_CRYPTO): Likewise.
2147         (TARGET_P8_VECTOR): Likewise.
2148         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2149         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2150         (VECTOR_MEM_P8_VECTOR_P): Likewise.
2151         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2152         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2153         (TARGET_XSCVDPSPN): Likewise.
2154         (TARGET_XSCVSPDPN): Likewsie.
2155         (TARGET_SYNC_HI_QI): Likewise.
2156         (TARGET_SYNC_TI): Likewise.
2157         (MASK_CRYPTO): Likewise.
2158         (MASK_DIRECT_MOVE): Likewise.
2159         (MASK_P8_FUSION): Likewise.
2160         (MASK_P8_VECTOR): Likewise.
2161         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2162         temporary used by some of the direct move instructions to get two FP
2163         temporary registers does not force creation of a stack frame.
2164         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2165         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2166         that any VSX registers are tieable, even if they are also an
2167         Altivec vector mode.
2168         (r6000_reg_class_enum): Add wm, wr, wv constraints.
2169         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2170         (RS6000_BTM_CRYPTO): Likewise.
2171         (RS6000_BTM_COMMON): Likewise.
2173         * config/rs6000/rs6000.md (cpu attribute): Add power8.
2174         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2175         (enum rs6000_vector): Add power8 vector support.
2177 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2179         PR target/19599
2180         PR target/57340
2181         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2182         (any_sibcall_could_use_r3): this and handle indirect calls.
2183         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2185 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2187         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2189 2013-05-22  Richard Biener  <rguenther@suse.de>
2191         PR middle-end/57349
2192         * profile.c (branch_prob): Do not split blocks that are
2193         abnormally receiving from ECF_RETURNS_TWICE functions.
2195 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2197         * recog.c (offsettable_address_addr_space_p): Fix calculation of
2198         address mode.  Move pointer mode initialization to the same place.
2200 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2202         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2203         while it has any effect.
2205 2013-05-21  Easwaran Raman  <eraman@google.com>
2207         PR tree-optimization/57322
2208         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2209         UID of the statement added to the BB to be 1.
2211 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
2213         PR tree-optimization/57331
2214         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2215         of conversion from pointer type to integral type with integer.
2217 2013-05-21  Martin Jambor  <mjambor@suse.cz>
2219         PR lto/57289
2220         * ipa-prop.c (ipa_read_node_info): Process param_used and
2221         controlled_uses in the same order as when writing.
2223 2013-05-21  Magnus Granberg  <baldrick@free.fr>
2225         PR plugins/56754
2226         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2228 2013-05-21  Richard Biener  <rguenther@suse.de>
2230         PR tree-optimization/57318
2231         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2232         estimate stmts with side-effects as likely eliminated.
2234 2013-05-21  Richard Biener  <rguenther@suse.de>
2236         PR tree-optimization/57330
2237         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2238         preserve the call stmts fntype.
2240 2013-05-21  Richard Biener  <rguenther@suse.de>
2242         PR tree-optimization/57303
2243         * tree-ssa-sink.c (statement_sink_location): Improve killing
2244         stmt detection and properly handle self-assignments.
2246 2013-05-21  Christian Bruel  <christian.bruel@st.com>
2248         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2249         spanning registers. LEAF_REG_REMAP is supported only for contiguous
2250         registers. Set register size out of the PARALLEL loop.
2252 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
2254         PR target/56547
2255         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2256         (*fmasf4, *fmasf4_media): New insns.
2258 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2260         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2261         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2262         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2263         (mips_idiv_insns): Update the comments to say that the returned
2264         instruction counts are in units of BASE_INSN_LENGTH.
2265         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2266         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
2267         using 2 rather than 4 as the length of indirect MIPS16 and
2268         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
2269         length of a NOP.  Don't divide MIPS16 lengths by 2.
2270         (mips16_split_long_branches): Assume a branch is long if the
2271         length is greater than 4 rather than 8.
2272         * config/mips/mips.md (length): Give MIPS16 lengths directly,
2273         rather than multiplying them by 2.  Multiply instruction counts
2274         by BASE_INSN_LENGTH rather than 4.
2275         (*jump_mips16, tls_get_tp_mips16_<mode>)
2276         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2278 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2280         * config/mips/mips.md (extended_mips16): Remove branch case.
2281         (length): Remove duplicated extended_mips16 test.
2283 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2285         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2287 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
2289         * recog.h (Recog_data): Rename to...
2290         (recog_data_d): ...this.
2291         (recog_data): Update accordingly.
2292         * recog.c (recog_data): Likewise.
2293         * reload.c (save_recog_data): Likewise.
2294         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2295         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2297 2013-05-17  Julian Brown  <julian@codesourcery.com>
2299         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2300         found in a REG_EQUAL note, invalidate it.
2302 2013-05-17   Easwaran Raman  <eraman@google.com>
2304         * tree-ssa-reassoc.c (find_insert_point): New function.
2305         (insert_stmt_after): Likewise.
2306         (get_def_stmt): Likewise.
2307         (ensure_ops_are_available): Likewise.
2308         (not_dominated_by): Likewise.
2309         (rewrite_expr_tree): Do not move statements beyond what is
2310         necessary. Remove call to swap_ops_for_binary_stmt...
2311         (reassociate_bb): ... and move it here.
2312         (build_and_add_sum): Assign UIDs for new statements.
2313         (linearize_expr): Likewise.
2314         (do_reassoc): Renumber gimple statement UIDs.
2316 2013-05-17  Jan Hubicka  <jh@suse.cz>
2318         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2319         weakrefs.
2320         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2321         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2322         weakrefs.
2323         (output_weakrefs): Update.
2325 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
2326             Martin Jambor  <mjambor@suse.cz>
2328         PR middle-end/57276
2329         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2330         value that corresponds to the given aggval is found in values vector.
2332 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
2334         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2335         sse, sse2, sse3, ssse3 and sse4a flags to options.
2337 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
2339         * gengtype-state.c: (s_expr_writer): New class, to handle
2340         prettifying of output layout of s-expressions.
2341         (state_writer): New class, to write out gtype.state.
2342         (state_written_type_count): Move this variable into member data of
2343         state_writer.
2344         (s_expr_writer::s_expr_writer): New code: constructor for new class
2345         (state_writer::state_writer(): ditto
2346         (s_expr_writer::write_new_line): New function
2347         (s_expr_writer::write_any_indent): ditto
2348         (s_expr_writer::begin_s_expr): ditto
2349         (s_expr_writer::end_s_expr): ditto
2350         (write_state_fileloc): convert to method of state_writer...
2351         (state_writer:: write_state_fileloc): ...and use methods of
2352         s_expr_writer to write indentation into the gtype.state output file
2353         to visually represent the hierarchical structure of the list
2354         structures
2355         (write_state_fields): ditto, renaming to...
2356         (state_writer::write_state_fields)
2357         (write_state_a_string): ditto, renaming to...
2358         (state_writer::write_state_a_string)
2359         (write_state_string_option): ditto, renaming to...
2360         (state_writer::write_state_string_option)
2361         (write_state_type_option): ditto, renaming to...
2362         (state_writer::write_state_type_option)
2363         (write_state_nested_option): ditto, renaming to...
2364         (state_writer::write_state_nested_option)
2365         (write_state_option): ditto, renaming to...
2366         (state_writer::write_state_option)
2367         (write_state_options): ditto, renaming to...
2368         (state_writer::write_state_options)
2369         (write_state_lang_bitmap): ditto, renaming to...
2370         (state_writer::write_state_lang_bitmap)
2371         (write_state_version): ditto, renaming to...
2372         (state_writer::write_state_version)
2373         (write_state_scalar_type): ditto, renaming to...
2374         (state_writer::write_state_scalar_type)
2375         (write_state_string_type): ditto, renaming to...
2376         (state_writer::write_state_string_type)
2377         (write_state_undefined_type): ditto, renaming to...
2378         (state_writer::write_state_undefined_type)
2379         (write_state_struct_union_type): ditto, renaming to...
2380         (state_writer::write_state_struct_union_type)
2381         (write_state_struct_type): ditto, renaming to...
2382         (state_writer::write_state_struct_type)
2383         (write_state_user_struct_type): ditto, renaming to...
2384         (state_writer::write_state_user_struct_type)
2385         (write_state_lang_struct_type): ditto, renaming to...
2386         (state_writer::write_state_lang_struct_type)
2387         (write_state_param_struct_type): ditto, renaming to...
2388         (state_writer::write_state_param_struct_type)
2389         (write_state_pointer_type): ditto, renaming to...
2390         (state_writer::write_state_pointer_type)
2391         (write_state_array_type): ditto, renaming to...
2392         (state_writer::write_state_array_type)
2393         (write_state_gc_used): ditto, renaming to...
2394         (state_writer::write_state_gc_used)
2395         (write_state_common_type_content): ditto, renaming to...
2396         (state_writer::write_state_common_type_content)
2397         (write_state_type): ditto, renaming to...
2398         (state_writer::write_state_type)
2399         (write_state_pair_list): ditto, renaming to...
2400         (state_writer::write_state_pair_list)
2401         (write_state_pair): ditto, renaming to...
2402         (state_writer::write_state_pair)
2403         (write_state_typedefs): ditto, renaming to...
2404         (state_writer::write_state_typedefs)
2405         (write_state_structures): ditto, renaming to...
2406         (state_writer::write_state_structures)
2407         (write_state_param_structs): ditto, renaming to...
2408         (state_writer::write_state_param_structs)
2409         (write_state_variables): ditto, renaming to...
2410         (state_writer::write_state_variables)
2411         (write_state_srcdir): ditto, renaming to...
2412         (state_writer::write_state_srcdir)
2413         (write_state_files_list): ditto, renaming to...
2414         (state_writer::write_state_files_list)
2415         (write_state_languages): ditto, renaming to...
2416         (state_writer::write_state_languages)
2417         (write_state): create a state_writer instance and use it when
2418         writing out the state file
2420 2013-05-17  Mike Stump  <mikestump@comcast.net>
2422         PR rtl-optimization/57304
2423         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2424         accessing DF_REF_REAL_LOC.
2426 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2428         PR rtl-optimization/57281
2429         PR rtl-optimization/57300
2430         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2431         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2432         what the other splitter did if the registers are dead.
2434 2013-05-17  Richard Biener  <rguenther@suse.de>
2436         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2437         MEM_REF offsets.
2439 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2441         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2442         linking.
2444 2013-05-17  Marek Polacek  <polacek@redhat.com>
2446         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2447         length when doing non-zero store of storing '\0' to '\0'.
2449 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
2451         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2452         vect_external_def oprnd1 with loop_vinfo, try to emit
2453         optional cast, negation and and stmts on the loop preheader
2454         edge instead of into the pattern def seq.
2456         PR tree-optimization/57051
2457         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2458         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2460 2013-05-16  Nick Clifton  <nickc@redhat.com>
2462         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2463         (rl78_is_naked_func): New function.
2464         (rl78_expand_prologue): Skip prologue generation for naked functions.
2465         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2466         * doc/extend.texi (naked): Add RL78 to the list of processors
2467         that supports this attribute.
2469 2013-05-16  Jeff Law  <law@redhat.com>
2471         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2473 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2475         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2476         cache parameters using detect_caches_amd also for CYRIX,
2477         NSC and TM2 signatures.
2479 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
2480             Dzianis Kahanovich  <mahatma@eu.by>
2482         PR target/45359
2483         PR target/46396
2484         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2485         VIA/Centaur processors and determine their cache parameters
2486         using detect_caches_amd.
2488 2013-05-16  Teresa Johnson  <tejohnson@google.com>
2490         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2491         (rtl_verify_edges): New function.
2492         (rtl_verify_bb_insns): Ditto.
2493         (rtl_verify_bb_pointers): Ditto.
2494         (rtl_verify_bb_insn_chain): Ditto.
2495         (rtl_verify_fallthru): Ditto.
2496         (rtl_verify_bb_layout): Ditto.
2497         (rtl_verify_flow_info_1): Outline checks into new functions.
2498         (rtl_verify_flow_info): Ditto.
2500 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
2502         * cfghooks.c (copy_bbs): Add update_dominance argument.
2503         * cfghooks.h (copy_bbs): Update prototype.
2504         * tree-cfg.c (gimple_duplicate_sese_region):
2505         Add update_dominance argument.
2506         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2507         * tree-ssa-loop-ch.c (copy_loop_headers): Update
2508         gimple_duplicate_sese_region call.
2509         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2510         Update copy_bbs call.
2511         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2512         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2514 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2516         * tree-vectorizer.h (NUM_PATTERNS): Increment.
2517         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2518         vect_recog_rotate_pattern.
2519         (vect_recog_rotate_pattern): New function.
2521 2013-05-16  Jason Merrill  <jason@redhat.com>
2523         * Makefile.in (LLINKER): New variable.
2524         (mostlyclean): Remove link mutex.
2525         * configure.ac: Handle --enable-link-mutex.
2526         * lock-and-run.sh: New script.
2528 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2530         PR target/19599
2531         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2532         for NULL decl.
2534 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2536         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2538 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
2540         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2541         * config/arm/arm.c (next_consecutive_mem): New function.
2542         (gen_movmem_ldrd_strd): Likewise.
2543         * config/arm/arm.md (movmemqi): Update condition and code.
2544         (unaligned_loaddi, unaligned_storedi): New patterns.
2546 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2548         * config.gcc: Obsolete *-*-solaris2.9*.
2549         * doc/install.texi (Specific, *-*-solaris2*): Document it.
2551 2013-05-16  Richard Biener  <rguenther@suse.de>
2553         * passes.c (init_optimization_passes): Move pass_parallelize_loops
2554         earlier, after GRAPHITE transforms and IV canonicalization.
2556 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2558         * omp-low.c (extract_omp_for_data): For collapsed loops,
2559         if at least one of the loops is known at compile time to
2560         iterate zero times, set count to 0.
2561         (expand_omp_regimplify_p): New function.
2562         (expand_omp_for_generic): For collapsed loops, if at least
2563         one of the loops isn't known to iterate at least once,
2564         add runtime check with setting count to 0.
2565         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2566         For unsigned types if it isn't known at compile time that
2567         the loop will iterate at least once, add runtime check to bypass
2568         the whole loop if initial condition isn't true.
2570 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
2572         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2574 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
2576         PR middle-end/57286
2577         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2578         transformations to avoid an infinite loop.
2580 2013-05-16  Marek Polacek  <polacek@redhat.com>
2582         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2584 2013-05-15  Leif Ekblad  <leif@rdos.net>
2586         * config/i386/i386.c (ix86_decompose_address): Use
2587         DEFAULT_TLS_SEG_REG to access TLS segment register.
2588         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2589         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2590         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2592 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
2594         PR target/57260
2595         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2596         sibling calls to functions that would normally be lazily bound,
2597         unless $gp is call-clobbered.
2599 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
2601         * config/i386/i386.c (ix86_option_override_internal): Update
2602         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
2603         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2604         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2605         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2606         of TARGET_3DNOW.
2607         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2609 2013-05-15  Andreas Schwab  <schwab@suse.de>
2611         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2612         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
2613         third operand.
2615 2013-05-15  Teresa Johnson  <tejohnson@google.com>
2617         * loop-unroll.c (report_unroll_peel): Check decision before
2618         emitting unroll/peel message.
2620 2013-05-15  Teresa Johnson  <tejohnson@google.com>
2622         * function.h (has_bb_partition): New rtl_data flag.
2623         (bb_reorder_complete): Ditto.
2624         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
2625         instead of flag_reorder_blocks_and_partition.
2626         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
2627         with some enhancements.
2628         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
2629         * bb-reorder.c (connect_traces): Check for has_bb_partition
2630         instead of flag_reorder_blocks_and_partition.
2631         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2632         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2633         verify_hot_cold_block_grouping.
2634         (partition_hot_cold_basic_blocks): Set has_bb_partition.
2636 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2638         PR target/19599
2639         * config/arm/predicates.md (call_insn_operand): New predicate.
2640         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
2641         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2642         if insn is not a tail call.
2643         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2644         registers.
2645         * config/arm/arm.h (enum reg_class): New caller save register class.
2646         (REG_CLASS_NAMES): Likewise.
2647         (REG_CLASS_CONTENTS): Likewise.
2648         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2649         without decls.
2651 2013-05-15  Richard Biener  <rguenther@suse.de>
2653         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2654         of MSG_OPTIMIZED_LOCATIONS.
2655         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2656         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2657         message.
2658         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2659         of MSG_OPTIMIZED_LOCATIONS.
2660         (execute_vect_slp): Likewise.
2661         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2662         (vect_create_cond_for_alias_checks): Likewise.
2663         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2664         (vect_recog_widen_mult_pattern): Likewise.
2665         (vect_recog_widen_sum_pattern): Likewise.
2666         (vect_recog_over_widening_pattern): Likewise.
2667         (vect_recog_widen_shift_pattern): Likewise.
2668         (vect_recog_vector_vector_shift_pattern): Likewise.
2669         (vect_recog_divmod_pattern): Likewise.
2670         (vect_recog_mixed_size_cond_pattern): Likewise.
2671         (vect_recog_bool_pattern): Likewise.
2672         (vect_pattern_recog_1): Likewise.
2674 2013-05-15  Martin Jambor  <mjambor@suse.cz>
2676         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2677         non-functions to builtin_unreachable.
2678         * ipa-inline-transform.c (inline_call): Do not assert estimates were
2679         correct when new direct edges were discovered.
2681 2013-05-15  Martin Jambor  <mjambor@suse.cz>
2683         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2684         header, print symbol order instead of node uid, print more information
2685         about indirect edge targets.
2686         (ipa_make_edge_direct_to_target): Print symbol order instead of node
2687         uids.
2688         (ipa_make_edge_direct_to_target): Likewise.
2689         (remove_described_reference): Likewise.
2690         (propagate_controlled_uses): Likewise.
2691         (ipa_print_node_params): Also print symbol order.
2692         (ipcp_transform_function): Print symbol order instead of node uids.
2693         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2694         (cgraph_get_create_real_symbol_node): Likewise.
2695         * ipa-cp.c (print_lattice): Likewise.
2696         (print_all_lattices): Likewise.
2697         (determine_versionability): Likewise.
2698         (initialize_node_lattices): Likewise.
2699         (estimate_local_effects): Likewise.
2700         (update_profiling_info): Likewise.
2701         (create_specialized_node): Likewise.
2702         (perhaps_add_new_callers): Likewise.
2703         (decide_about_value): Likewise.
2704         (decide_whether_version_node): Likewise.
2705         (identify_dead_nodes): Likewise.
2706         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2707         (dump_inline_summary): Likewise.
2708         (estimate_node_size_and_time): Likewise.
2709         (inline_analyze_function): Likewise.
2710         * ipa-inline.c (report_inline_failed_reason): Likewise.
2711         (want_early_inline_function_p): Likewise.
2712         (edge_badness): Likewise.
2713         (update_edge_key): Likewise.
2714         (inline_small_functions): Likewise.  Add dumping of order to two other
2715         dumps.
2716         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2717         instead of node uids.
2718         (propagate_pure_const): Likewise.
2719         (propagate_pure_const): Likewise.
2720         * ipa-utils.c (dump_cgraph_node_set): Likewise.
2721         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2722         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2723         of node uids.
2724         * tree-pretty-print.c (dump_function_header): Likewise.
2725         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2726         Print symbol order instead of node uids.
2728 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2730         * config/s390/s390.c (s390_register_move_cost): Don't impose the
2731         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2733 2013-05-15  Richard Biener  <rguenther@suse.de>
2735         PR tree-optimization/57275
2736         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2737         return value for fail to do runtime alias checks for gather loads.
2739 2013-05-15  Jan Hubicka  <jh@suse.cz>
2741         PR lto/57038
2742         PR lto/47375
2743         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2744         weakrefs are not external.
2745         (lto_symtab_merge_decls): Fix thinko when dealing with
2746         non-lto_symtab decls.
2747         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2748         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2749         * varpool.c (dump_varpool_node): Dump more flags.
2751 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2753         * config/i386/i386.c (processor_alias_table): Add instruction
2754         FSGSBASE for AMD bdver3 architecture.
2756 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2758         * tree.c (warn_deprecated_use): Print file:line using locus color.
2759         * diagnostic.c (diagnostic_report_current_module): Print file:line
2760         and file:line:column using locus color.
2762 2013-05-14  Mike Stump  <mikestump@comcast.net>
2764         * gdbinit.in: Add __null.
2766 2013-05-14  Mike Stump  <mikestump@comcast.net>
2768         * recog.h: Rename struct recog_data to Recog_data.
2769         * recog.c: Likewise.
2770         * reload.c (can_reload_into): Likewise.
2771         * config/picochip/picochip.c: Likewise.
2773 2013-05-14  Mike Stump  <mikestump@comcast.net>
2775         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2777 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
2779         * resource.h (struct resources): Remove unch_memory member.
2780         (CLEAR_RESOURCE): Don't clear unch_memory.
2781         * resource.c (mark_referenced_resources): Don't set it.
2782         (mark_set_resources): Likewise.
2783         (mark_target_live_regs): Don't clear it.
2784         (init_resource_info): Likewise.
2785         * reorg.c (resource_conflicts_p): Don't compare it.
2786         (redundant_insn): Don't set it.
2788         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2789         Remove prototypes.
2790         * emit-rtl.c (next_label): Remove unused function.
2791         (skip_consecutive_labels, link_cc0_insns): Move to ...
2792         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2793         only place where these functions are used, and make them static.
2795 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
2797         * fold-const.c (fold_negate_expr): Handle vectors.
2798         (fold_truth_not_expr): Make it static.
2799         (fold_invert_truthvalue): New static function.
2800         (invert_truthvalue_loc): Handle vectors. Do not call
2801         fold_truth_not_expr directly.
2802         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2803         <TRUTH_NOT_EXPR>: Do not cast to boolean.
2804         (fold_comparison): Handle vector constants.
2805         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2806         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2807         * tree.h (fold_truth_not_expr): Remove declaration.
2809 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
2811         * config/aarch64/aarch64-simd.md
2812         (aarch64_vcond_internal<mode>): Rename to...
2813         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2814         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2815         float modes. Clarify all iterator modes.
2816         (vcond<mode><mode>): Use new name for vcond expanders.
2817         (vcond<v_cmp_result><mode>): Likewise.
2818         (vcondu<mode><mode>: Likewise.
2819         * config/aarch64/iterators.md (VDQF_COND): New.
2821 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
2823         PR bootstrap/57266
2824         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2825         variable for the shift amount. Check that we shift by non-negative
2826         amounts.
2828 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
2830         PR target/42017
2831         * config/arm/arm.h (EPILOGUE_USES): Only return true
2832         for LR_REGNUM after epilogue_completed.
2834 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
2836         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2837         is error_mark_node.
2839 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2841         PR target/57261
2842         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2843         and Solaris 11+/x86 with gld.
2844         * configure: Regenerate.
2846 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2848         * expmed.c (expand_shift_1): Canonicalize rotates by
2849         constant bitsize / 2 to bitsize - 1.
2850         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2851         case ROTATERT>: Likewise.
2853         Revert:
2854         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
2856         * config/i386/i386.md (rotateinv): New code attr.
2857         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2858         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2859         roll $31, %eax, etc.
2861 2013-05-14  Richard Biener  <rguenther@suse.de>
2863         PR middle-end/57235
2864         * tree-eh.c (sink_clobbers): Give up for successors with
2865         multiple predecessors and no virtual uses.
2867 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2869         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2870         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2872 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2874         PR middle-end/57251
2875         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2876         the case when both op0 and op1 have VOIDmode.
2878 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2880         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2881         in multiply-accumulate mode.
2883 2013-05-13  Guozhi Wei  <carrot@google.com>
2885         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2887 2013-05-13  Kai Tietz  <ktietz@redhat.com>
2889         PR target/56975
2890         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2891         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2892         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2893         * config/i386/i386.c (ix86_option_override_internal): Likewise.
2894         (ix86_expand_prologue): Likewise.
2895         (ix86_expand_split_stack_prologue): Likewise.
2896         (legitimate_pic_address_disp_p): Likewise.
2897         (legitimize_pic_address): Likewise.
2898         (legitimize_tls_address): Likewise.
2899         (legitimize_pe_coff_symbol): Likewise.
2900         (output_pic_addr_const): Likewise.
2901         (construct_plt_address): Likewise.
2902         (ix86_expand_call): Likewise.
2903         (x86_output_mi_thunk): Likewise.
2904         (x86_function_profiler): Likewise.
2906 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
2908         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2909         similar switch cases.
2910         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2911         (aarch64_simd_mov_to_<mode>low): Delete.
2912         (aarch64_simd_mov_to_<mode>high): Delete.
2913         (move_lo_quad_<mode>): Add w<-r alternative.
2914         (aarch64_simd_move_hi_quad_<mode>): Likewise.
2915         (aarch64_simd_mov_from_*): Update type attribute.
2916         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2917         statement.
2919 2013-05-13  Jan Hubicka  <jh@suse.cz>
2921         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2922         * config/i386/i386.c (ix86_compute_frame_layout,
2923         ix86_expand_epilogue, emit_i387_cw_initialization,
2924         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2925         ix86_local_alignment): Fix use of size/speed predicates.
2927 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
2929         PR tree-optimization/45216
2930         PR tree-optimization/57157
2931         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2932         the (-Y) & (B - 1) variant if OP is |.
2933         * expmed.c (expand_shift_1): For rotations by const0_rtx just
2934         return shifted.  Use (-op1) & (prec - 1) as other_amount
2935         instead of prec - op1.
2937 2013-05-13  Martin Jambor  <mjambor@suse.cz>
2939         PR middle-end/42371
2940         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2941         (ipa_constant_data): New type.
2942         (ipa_jump_func): Use ipa_constant_data to hold information about
2943         constant jump functions.
2944         (ipa_get_jf_constant): Adjust to jump function type changes.
2945         (ipa_get_jf_constant_rdesc): New function.
2946         (ipa_param_descriptor): New field controlled_uses.
2947         (ipa_get_controlled_uses): New function.
2948         (ipa_set_controlled_uses): Likewise.
2949         * ipa-ref.h (ipa_find_reference): Declare.
2950         * ipa-prop.c (ipa_cst_ref_desc): New type.
2951         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2952         changes.
2953         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
2954         New parameter cs.  Adjust all callers.
2955         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2956         (remove_described_reference): New function.
2957         (jfunc_rdesc_usable): Likewise.
2958         (try_make_edge_direct_simple_call): Decrement controlled use count,
2959         attempt to remove reference if it hits zero.
2960         (combine_controlled_uses_counters): New function.
2961         (propagate_controlled_uses): Likewise.
2962         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2963         (ipa_edge_duplication_hook): Duplicate reference descriptions.
2964         (ipa_print_node_params): Print described use counter.
2965         (ipa_write_jump_function): Adjust to jump function type changes.
2966         (ipa_read_jump_function): New parameter CS, pass it to
2967         ipa_set_jf_constant.  Adjust caller.
2968         (ipa_write_node_info): Stream controlled use count
2969         (ipa_read_node_info): Likewise.
2970         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2971         asserting.
2972         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2973         count.  Remove cloning-added reference if it reaches zero.
2974         * ipa-ref.c (ipa_find_reference): New function.
2976 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2978         * config/i386/i386.c (processor_target_table): Modified default
2979         alignment values for AMD BD and BT architectures.
2981 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
2983         * tree-vect-generic.c (uniform_vector_p): Move ...
2984         * tree.c (uniform_vector_p): ... here.
2985         * tree.h (uniform_vector_p): Declare it.
2986         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2987         into a scalar.
2989 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
2991         PR tree-optimization/57230
2992         * tree-ssa-strlen.c (handle_char_store): Record length for
2993         array store from STRING_CST.
2995         PR tree-optimization/57230
2996         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2997         check.
2999 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3001         * config/epiphany/epiphany.c (epiphany_init): Check size of
3002         NUM_MODES_FOR_MODE_SWITCHING.
3003         (epiphany_expand_prologue):
3004         Remove CONFIG_REGNUM initial value handling code.
3005         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3006         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3007         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3008         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3009         Don't return 1 for FP_MODE_NONE.
3010         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3011         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3012         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3013         * config/epiphany/epiphany.md (save_config): New pattern.
3015 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3017         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3019 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3021         * config/i386/i386.md (memory): Handle sseishft1.
3022         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3023         (*vec_extractv2di_1): Ditto.
3025 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3027         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3028         saved registers.
3030 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3032         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3033         Add mthumb/march=armv7-a multilib.
3034         Add mthumb/march=armv7-r multilib.
3035         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3037 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3039         * config/v850/t-rtems: Add more multilibs.
3041 2013-05-10  Richard Biener  <rguenther@suse.de>
3043         PR tree-optimization/57214
3044         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3045         not propagate from SSA names that occur in abnormal PHI nodes.
3047 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3049         * stor-layout.c (element_precision): New function.
3050         * machmode.h (element_precision): Declare it.
3051         * tree.c (build_minus_one_cst): New function.
3052         (element_precision): Likewise.
3053         * tree.h (build_minus_one_cst): Declare new function.
3054         (element_precision): Likewise.
3055         * fold-const.c (operand_equal_p): Use element_precision.
3056         (fold_binary_loc): Handle vector types.
3057         * convert.c (convert_to_integer): Use element_precision.
3058         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3059         separately.
3061 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3063         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3064         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3065         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3066         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3067         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3068         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3069         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3070         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3071         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3072         (Uuw8): New constraints.
3073         (Usb4): Move into alphabetical order.
3074         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3075         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3076         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3077         previously unnamed patterns.
3078         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3079         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3080         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3081         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3082         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3083         of specific lengths.
3085 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3087         * config/i386/i386.md (rotateinv): New code attr.
3088         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3089         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3090         roll $31, %eax, etc.
3092         PR tree-optimization/45216
3093         PR tree-optimization/57157
3094         * tree-ssa-forwprop.c (simplify_rotate): New function.
3095         (ssa_forward_propagate_and_combine): Call it.
3097 2013-05-10  Richard Biener  <rguenther@suse.de>
3099         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3100         disable peeling when we version for aliasing.
3101         (vector_alignment_reachable_p): Honor explicit user alignment.
3102         (vect_supportable_dr_alignment): Likewise.
3103         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3104         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3105         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3106         then peeling to arrange for the cost-model check to come first.
3108 2013-05-10  Alan Modra  <amodra@gmail.com>
3110         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3111         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3112         * configure: Regenerate.
3114 2013-05-10  Alan Modra  <amodra@gmail.com>
3116         PR target/55033
3117         * varasm.c (default_elf_select_section): Move !DECL_P check..
3118         (get_named_section): ..to here before calling get_section_name.
3119         Adjust assertion.
3120         (default_section_type_flags): Add DECL_P check.
3121         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3122         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3124 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3126         * config/epiphany/epiphany.c (epiphany_expand_prologue):
3127         When using gen_stack_adjust_str with a register offset, add a
3128         REG_FRAME_RELATED_EXPR note.
3130 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
3132         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3133         (*vec_extractv4si_zext_mem): Ditto.
3134         (*vec_extractv2di): Add 0->x and x->x alternatives.
3135         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3136         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3138 2013-05-09  Jason Merrill  <jason@redhat.com>
3140         N3639 C++1y VLA support
3141         * gimplify.c (gimplify_vla_decl): Don't touch an existing
3142         DECL_VALUE_EXPR.
3144         * tree.c (build_constructor_va): New.
3145         * tree.h: Declare it.
3147 2013-05-09  Martin Jambor  <mjambor@suse.cz>
3149         PR lto/57084
3150         * gimple-fold.c (canonicalize_constructor_val): Call
3151         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3153 2013-05-09  Jan Hubicka  <jh@suse.cz>
3154             Richard Biener  <rguenther@suse.de>
3156         PR lto/54095
3157         * symtab.c (symtab_make_decl_local): Do not add private names.
3159 2013-05-09  Jan Hubicka  <jh@suse.cz>
3161         PR lto/54095
3162         * symtab.c (insert_to_assembler_name_hash): Handle clones.
3163         (unlink_from_assembler_name_hash): Likewise.
3164         (symtab_prevail_in_asm_name_hash, symtab_register_node,
3165         symtab_unregister_node, symtab_initialize_asm_name_hash,
3166         change_decl_assembler_name): Update.
3168 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
3170         * config/aarch64/aarch64.md: New movtf split.
3171         (*movtf_aarch64): Update.
3172         (aarch64_movdi_tilow): Handle TF modes and rename to
3173         aarch64_movdi_<mode>low.
3174         (aarch64_movdi_tihigh): Handle TF modes and rename to
3175         aarch64_movdi_<mode>high
3176         (aarch64_movtihigh_di): Handle TF modes and rename to
3177         aarch64_mov<mode>high_di
3178         (aarch64_movtilow_di): Handle TF modes and rename to
3179         aarch64_mov<mode>low_di
3180         (aarch64_movtilow_tilow): Remove spurious whitespace.
3181         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3182         splits.
3183         (aarch64_print_operand): Update.
3185 2013-05-09  Alan Modra  <amodra@gmail.com>
3187         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3188         powerpc64le.
3189         * configure: Regenerate.
3191 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3193         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3194         splitter preparation statements.
3195         * config/i386/sse.md (*vec_extract* splitters): Ditto.
3196         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3197         adjust_address_nv.
3199 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3201         * gimple-ssa-strength-reduction.c (count_candidates): Change
3202         return value to int.
3203         (analyze_candidates_and_replace): Change type of length to int.
3205 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
3207         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3208         (*vec_extract<mode>): Use VI12_128 mode iterator.
3209         (*vec_extract<mode>_mem): Ditto.
3210         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3211         attribute.
3213 2013-05-08  Diego Novillo  <dnovillo@google.com>
3215         PR bootstrap/54659
3217         Revert:
3218         2012-08-17  Diego Novillo  <dnovillo@google.com>
3220         PR bootstrap/54281
3221         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3222         * config.in: Regenerate.
3223         * configure: Regenerate.
3224         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3226 2013-05-08  Jan Hubicka  <jh@suse.cz>
3228         PR lto/54095
3229         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3230         * cgraph.h (symtab_node_base): Add unique_name.
3231         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3232         input_overwrite_node, input_varpool_node): Stream unique_name.
3233         * cgraphclones.c (cgraph_create_virtual_clone,
3234         cgraph_function_versioning): Set unique_name.
3235         * ipa.c (function_and_variable_visibility): Set unique_name.
3237 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3239         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3240         (alloc_cand_and_find_basis): Restrict conditional candidate
3241         processing to CAND_MULTs.
3243 2013-05-08  Jan Hubicka  <jh@suse.cz>
3245         PR lto/54095
3246         lto-symtab.c (lto_symtab_symbol_p): New function.
3247         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3248         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3249         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3250         Skip static symbols.
3252 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
3254         PR tree-optimization/57200
3255         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3256         Only call inform if the preceding warning_at returns true.
3258 2013-05-07  Han Shen  <shenhan@google.com>
3260         * cfgexpand.c (record_or_union_type_has_array_p): New function.
3261         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3262         * common.opt (fstack-protector-strong): New option.
3263         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3264         * doc/invoke.texi (Optimization Options): Document
3265         "-fstack-protector-strong".
3266         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3268 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3270         * config/mips/mips.c (mips_machine_reorg2): Return 0.
3272 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
3274         * ira.c (update_equiv_regs): Add insn having equiv memory even if
3275         it is not lhs of the insn.
3276         (setup_reg_equiv): Remove insn having equiv memory which it is not
3277         lhs of the insn.
3278         * lra-constraints.c (process_address): Try to improve generation
3279         code for address base + disp.
3280         (lra_constraints): Make correct the code for checking insn setting
3281         up backward equivalence.  Remove insn only if it is in the init
3282         insn list.
3283         * lra-eliminations.c (update_reg_eliminate): Change return value.
3284         (lra_eliminate): Use the result.
3286 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
3288         * config/i386/sse.md (ssescalarnummask): New mode attribute.
3289         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3290         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3291         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3292         register target operands.
3293         (*vec_extractv8hi_sse2): New pattern.
3294         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3295         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3296         (*vec_extract<mode>_mem): New insn and split pattern.
3298 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
3300         * config/arm/arm.c (arm_asan_shadow_offset): New function.
3301         (TARGET_ASAN_SHADOW_OFFSET): Define.
3302         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3303         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3305 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3307         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3308         (incr_vec_index): Return -1 if increment not found.
3309         (create_add_on_incoming_edge): Assert if increment not found.
3310         (record_increment): Limit number of increments recorded.
3311         (all_phi_incrs_profitable): Return false if an increment not found.
3312         (replace_profitable_candidates): Don't process increments that were
3313         not recorded.
3314         (analyze_candidates_and_replace): Limit size of incr_vec.
3316 2013-05-07  Richard Biener  <rguenther@suse.de>
3318         * calls.c (special_function_p): setjmp-like functions are leaf.
3319         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3320         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3322 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
3324         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3325         (aarch64_simd_mov<mode>): New expander.
3326         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3327         (aarch64_simd_mov_to_<mode>high): Likewise.
3328         (aarch64_simd_mov_from_<mode>low): Likewise.
3329         (aarch64_simd_mov_from_<mode>high): Likewise.
3330         (aarch64_dup_lane<mode>): Update.
3331         (aarch64_dup_lanedi): New instruction pattern.
3332         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3333         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3335 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3337         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3338         (replace_mult_candidate): Remove unnecessary argument; remove
3339         unnecessary parameter from call to introduce_cast_before_cand.
3340         (replace_unconditional_candidate): Remove unnecessary parameter
3341         from call to replace_mult_candidate.
3342         (replace_conditional_candidate): Likewise.
3343         (insert_initializers): Use make_temp_ssa_name.
3344         (introduce_cast_before_cand): Remove unnecessary argument; use
3345         make_temp_ssa_name.
3346         (replace_one_candidate): Remove unnecessary argument; remove
3347         unnecessary parameter from calls to introduce_cast_before_cand.
3348         (replace_profitable_candidates): Remove unnecessary parameters
3349         from calls to replace_one_candidate.
3351 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3353         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3354         phi def as possibly hiding a basis for a CAND_ADD whose operands
3355         have been commuted in the analysis.
3356         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3358 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3360         * config/aarch64/aarch64.md
3361         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3362         shift value between 0-4.
3364 2013-05-07  Richard Biener  <rguenther@suse.de>
3366         * double-int.h (rshift): New overload.
3367         * double-int.c (rshift): New function.
3368         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3369         (create_reference_ops_from_ref): Remove.
3370         (vn_reference_insert): Use shared ops for constructing the
3371         reference and copy it.
3373 2013-05-07  Richard Biener  <rguenther@suse.de>
3375         PR middle-end/57190
3376         * tree-eh.c (sink_clobbers): Properly propagate
3377         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3379 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
3381         PR tree-optimization/57149
3382         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3383         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3384         collect_phi_def_edges, execute_late_warn_uninitialized): Use
3385         uninit_undefined_value_p instead of ssa_undefined_value_p.
3387         PR debug/57184
3388         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3389         for modifier == EXPAND_INITIALIZER.
3391 2013-05-07  Anton Blanchard  <anton@samba.org>
3393         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3394         for powerpc64 little endian.
3395         * configure: Regenerate.
3397 2013-05-06  Graham Stott  <grahams@btinternet.com>
3399         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3400         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3401         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3402         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3404 2013-05-06  Graham Stott  <grahams@btinternet.com>
3406         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3407         codes which allow non-lvalues.
3409 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
3411         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3412         components are all 1s.
3413         (integer_minus_onep): New function.
3414         * tree.h (integer_minus_onep): Declare it.
3415         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3416         integer_minus_onep instead of integer_all_onesp.
3418 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3420         PR target/52933
3421         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3422         variations of these patterns.
3424 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3426         * config/i386/i386.md (isa): Add x64_sse4 member.
3427         (enabled): Handle x64_sse4.
3428         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3429         instruction for 64bit SSE4_1 targets.  Update insn attributes.
3430         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3431         instruction for SSE4_1 targets.  Update insn attributes.
3432         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3433         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3434         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3435         const_1 selector.
3436         (*vec_extractv4si): Rename from *sse4_1_pextrd.
3437         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3438         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3440 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3442         PR target/57108
3443         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3445 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
3447         * final.c (do_assembler_dialects): Don't handle curly braces and
3448         vertical bar escaped by % as dialect delimiters.
3449         (output_asm_insn): Print curly braces and vertical bar if escaped
3450         by % and ASSEMBLER_DIALECT defined.
3451         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3452         * doc/tm.texi: Regenerated.
3454 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
3456         * config/mips/mips.c: Include tree-pass.h.
3457         (mips_reorg): Split in pre- and post-dbr_schedule parts.
3458         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3459         (pass_mips_machine_reorg2): New machine specific pass.
3460         (insert_pass_mips_machine_reorg2): New pass plugin definition.
3461         (mips_option_override): Register the new pass.
3462         * rtl.h (cleanup_barriers): Remove prototype.
3463         (dbr_schedule): Likewise.
3464         * jump.c (cleanup_barriers): Make static.
3465         * reorg.c (dbr_schedule): Likewise.
3467 2013-05-06  Richard Biener  <rguenther@suse.de>
3469         PR tree-optimization/57185
3470         * tree-parloops.c (add_field_for_reduction): Handle anonymous
3471         SSA names properly.
3473 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
3475         PR target/57106
3476         * config/i386/i386.c (add_parameter_dependencies): Add dependence
3477         between "first_arg" and "insn", not "last" and "insn".
3479 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3481         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3482         (find_candidates_in_block): Re-enable slsr_process_phi.
3483         (create_phi_basis): Fix double counting of candidate adjustment.
3485 2013-05-06  Richard Biener  <rguenther@suse.de>
3487         PR middle-end/57147
3488         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3489         the edge is also fallthru, preserve it and just clear the
3490         abnormal flag.
3491         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3492         also complex, preserve that and just clear the fallthru flag.
3493         * tree-inline.c (update_ssa_across_abnormal_edges): Also
3494         update virtual operands.
3496 2013-05-06  Alan Modra  <amodra@gmail.com>
3498         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3499         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3500         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3501         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3502         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3503         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3505 2013-05-06  Alan Modra  <amodra@gmail.com>
3507         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3508         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
3509         (DEFAULT_ASM_ENDIAN): Define.
3510         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3511         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3512         Update -K PIC clause from sysv4.h.
3513         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3514         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3516 2013-05-06  Alan Modra  <amodra@gmail.com>
3518         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3519         twice for little-endian.
3520         (ashrdi3_no_power, ashrdi3): Support little-endian.
3522 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3524         PR target/55303
3525         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3526         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3527         related expanders.
3528         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3529         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3530         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3531         New predicates.
3533 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3534             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3536         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3537         * config/pa/pa.opt: Make mbig-switch a no-op.
3538         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3539         (CASE_VECTOR_MODE): Always return SImode.
3540         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3541         for the !TARGET_BIG_SWITCH case.
3542         * config/pa/pa-linux.h: Likewise.
3543         * config/pa/pa-openbsd.h: Likewise.
3544         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3545         * config/pa/pa.md (short_jump): Remove define_insn.
3546         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3547         (casesi0): Remove define_insn.
3548         (type): Remove btable_branch.
3549         (pa_combine_type): Likewise.
3550         (in_nullified_branch_delay): Likewise.
3551         (in_call_delay): Likewise.
3552         (define_delay): Likewise.
3553         (define_insn_reservation "Z3"): Likewise.
3554         (define_insn_reservation "Z4"): Likewise.
3555         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3556         (pa_adjust_insn_length): Remove adjustment for btable branches.
3557         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3558         and mno-big-switch
3560 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
3562         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3563         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3564         Add m->r,x alternatives.
3565         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3566         splitters using SWI48x mode iterator.
3567         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
3568         TARGET_64BIT.  Add m->x alternative.
3569         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3570         Add o->x alternative.  Enable for TARGET_SSE.
3571         (sse_storeq): Remove expander.
3572         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3573         with memory input operand.
3574         (*vec_extractv2di_1 splitter): New.
3575         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3576         * config/i386/i386.md (ssevecmodelower): New mode attribute.
3578 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3580         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
3581         (INT_LOWPART): Delete.
3582         (extract_MB): Adjust.
3583         (extract_ME): Adjust.
3584         (print_operand): Adjust.
3586 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3588         * config/rs6000/predicates.md (reg_or_add_cint_operand,
3589         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3590         (reg_or_logical_cint_operand, easy_fp_constant,
3591         logical_const_operand): Delete "CONST_DOUBLE" case.
3592         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3593         "HOST_BITS_PER_WIDE_INT == 64" test.
3594         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
3595         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3596         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3597         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3598         test.
3599         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3600         CONST_DOUBLE DImode/VOIDmode case.
3601         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3602         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
3603         CONST_DOUBLE VOIDmode case.
3604         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3605         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3606         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3607         Delete CONST_DOUBLE case.
3608         (splitters for mov FMOVE64 const_double): Delete
3609         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
3610         "HOST_BITS_PER_WIDE_INT >= 64" test.
3611         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3612         case.
3613         (mov DI const_double): Delete.
3615 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
3617         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3618         on op shows all bits zero in mode of a lowpart subreg, return zero.
3620 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3622         PR target/57150
3623         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3624         to save TFmode registers and DImode to save TImode registers for
3625         caller save operations.
3626         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3627         mark being partially clobbered since they only use the first
3628         double word.
3630         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3631         and TDmode only use the upper 64-bits of each VSX register.
3633 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3635         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3636         (find_candidates_in_block): Disable slsr_process_phi.
3638 2013-05-03  Guozhi Wei  <carrot@google.com>
3640         * coverage.c (coverage_obj_init): Move the construction of gcov
3641         constructor to ...
3642         (build_init_ctor): ... here.
3644 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3646         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3647         (slsr_cand_d): Redefine def_phi.
3648         (stride_status, phi_adjust_status, count_phis_status): New enums.
3649         (find_phi_def): New.
3650         (find_basis_for_base_expr): New.
3651         (find_basis_for_candidate): Handle hidden bases.
3652         (alloc_cand_and_find_basis): Handle phi candidates.
3653         (slsr_process_phi): New.
3654         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3655         (create_mul_imm_cand): Likewise.
3656         (create_add_ssa_cand): Exclude phi base candidates.
3657         (create_add_imm_cand): Likewise.
3658         (slsr_process_cast): Likewise.
3659         (slsr_process_copy): Likewise.
3660         (find_candidates_in_block): Handle phi candidates.
3661         (dump_candidate): Likewise.
3662         (unconditional_cands): Delete.
3663         (unconditional_cands_with_known_stride_p): Delete.
3664         (phi_dependent_cand_p): New.
3665         (cand_increment): Handle phi-dependent candidates.
3666         (replace_dependent): Delete.
3667         (replace_mult_candidate): New.
3668         (replace_unconditional_candidate): New.
3669         (incr_vec_index): Move to avoid forward reference.
3670         (create_add_on_incoming_edge): New.
3671         (create_phi_basis): New.
3672         (replace_dependents): Delete.
3673         (replace_conditional_candidate): New.
3674         (phi_add_costs): New.
3675         (replace_uncond_cands_and_profitable_phis): New.
3676         (record_increment): Handle phi adjustments.
3677         (record_phi_increments): New.
3678         (record_increments): Handle phi adjustments.
3679         (phi_incr_cost): New.
3680         (lowest_cost_path): Handle phis.
3681         (total_savings): Likewise.
3682         (analyze_increments): Likewise.
3683         (ncd_with_phi): New.
3684         (ncd_of_cand_and_phis): New.
3685         (nearest_common_dominator_for_cands): Handle phi increments.
3686         (all_phi_incrs_profitable): New.
3687         (replace_profitable_candidates): Handle phi-dependent candidates.
3688         (analyze_candidates_and_replace): Likewise.
3690 2013-05-03  Teresa Johnson  <tejohnson@google.com>
3692         PR bootstrap/57154
3693         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3694         do not exceed REG_BR_PROB_BASE.
3696 2013-05-03  Jeff Law  <law@redhat.com>
3698         PR tree-optimization/57144
3699         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3700         operand of the condition will bit into the new type when eliminating
3701         a cast feeding a condition.
3703 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
3705         PR rtl-optimization/57130
3706         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3707         of COMPARE as in_code to the recursive call if needed.
3709 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
3711         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3712         (enabled): Handle new members.
3713         * config/i386/sse.md (*vec_concatv2si): Merge from
3714         *vec_concatv2si_sse2 and vec_concatv2si_sse.
3715         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3717 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
3719         PR tree-optimization/57027
3720         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3721         for fnms opportunity, check we got the prerequisite kind
3722         of tree / gimple before using accessor functions.
3724 2013-05-03  Richard Biener  <rguenther@suse.de>
3726         * double-int.h (lshift): New overload without precision
3727         and arith argument.
3728         (operator *=, operator +=, operator -=): Move ...
3729         * double-int.c (operator *=, operator +=, operator -=): ... here
3730         and implement more efficiently.
3731         (mul_double_with_sign): Remove.
3732         (lshift_double): Adjust to take unsinged shift argument, push
3733         dispatching code to callers.
3734         (mul_double_wide_with_sign): Add early out for callers that
3735         are not interested in high parts or overflow.
3736         (lshift): New function.
3737         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3738         dispatch code here.
3739         (lrotate, rrotate): Use logical shifts.
3740         * expr.c (get_inner_reference): Use lshift.
3741         * fixed-value.c (do_fixed_divide): Likewise.
3742         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3743         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3744         (indirect_refs_may_alias_p): Likewise.
3745         (stmt_kills_ref_p_1): Likewise.
3747 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
3749         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3751 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
3753         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3754         scalar form of FABD instruction.
3756 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
3758         * lra-constraints.c (process_alt_operands): Add checking alt
3759         number to choose the best alternative.
3761 2013-05-02  Richard Biener  <rguenther@suse.de>
3763         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3764         bitmap and its handling.
3765         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3767 2013-05-02  Richard Biener  <rguenther@suse.de>
3769         PR middle-end/57140
3770         * tree-inline.c (copy_loops): Properly handle removed loops.
3771         (copy_cfg_body): Mark destination loops for fixup if source
3772         loops needed fixup.
3774 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
3776         PR target/56732
3777         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3778         generating simple_return for naked functions.
3780 2013-05-02  Martin Jambor  <mjambor@suse.cz>
3782         PR middle-end/56988
3783         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3784         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3785         flags match.
3786         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3787         ipa_agg_replacement_value structures.
3788         (known_aggs_to_agg_replacement_list): Likewise.
3789         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3790         (read_agg_replacement_chain): Likewise.
3791         (ipcp_transform_function): Also check that by_ref flags match.
3793 2013-05-02  Richard Biener  <rguenther@suse.de>
3795         * graphds.h (struct graph): Add obstack member.
3796         * graphds.c (new_graph): Initialize obstack and allocate
3797         vertices from it.
3798         (add_edge): Allocate edge from the obstack.
3799         (free_graph): Free the obstack instead of all edges and vertices.
3801 2013-05-02  Teresa Johnson  <tejohnson@google.com>
3803         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3804         divides.
3805         * cfg.c (update_bb_profile_for_threading): Ditto.
3806         * tree-inline.c (copy_bb): Ditto.
3807         (copy_edges_for_bb): Ditto.
3808         (initialize_cfun): Ditto.
3809         (copy_cfg_body): Ditto.
3810         (expand_call_inline): Ditto.
3811         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3812         (estimate_node_size_and_time): Ditto.
3813         (inline_merge_summary): Ditto.
3814         * cgraphclones.c (cgraph_clone_edge): Ditto.
3815         (cgraph_clone_node): Ditto.
3816         * sched-rgn.c (compute_dom_prob_ps): Ditto.
3817         (compute_trg_info): Ditto.
3819 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
3821         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3822         S reg when fp attribute set.
3823         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3825 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
3827         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3828         New pattern.
3829         (*and_one_cmplsi3_compare0_uxtw): Likewise.
3830         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3831         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3833 2013-05-02  Richard Biener  <rguenther@suse.de>
3835         * tree-scalar-evolution.c (scev_info_hasher): Remove.
3836         (struct instantiate_cache_entry): New type.
3837         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3838         (struct instantiate_cache_type): New type.
3839         (set_instantiated_value, get_instantiated_value): Remove.
3840         (get_instantiated_value_entry): New function.
3841         (instantiate_scev_name): Use the new cache and adjust.
3842         (instantiate_scev_poly): Adjust.
3843         (instantiate_scev_binary): Likewise.
3844         (instantiate_array_ref): Likewise.
3845         (instantiate_scev_convert): Likewise.
3846         (instantiate_scev_not): Likewise.
3847         (instantiate_scev_3): Likewise.
3848         (instantiate_scev_2): Likewise.
3849         (instantiate_scev_r): Likewise.
3850         (instantiate_scev): Likewise.
3851         (resolve_mixers): Likewise.
3853 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
3855         PR target/57091
3856         * lra-constraints.c (best_small_class_operands_num): Remove.
3857         (process_alt_operands): Remove small_class_operands_num.  Take
3858         small classes operands into losers and only if the operand is not
3859         matched.  Modify debugging output.
3860         (curr_insn_transform): Remove best_small_class_operands_num.
3861         Print insn name.
3863 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3865         * config/aarch64/aarch64-builtins.c
3866         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3867         * config/aarch64/aarch64-simd-builtins.def
3868         (reduc_splus_): Add new modes.
3869         (reduc_uplus_): New.
3870         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3871         (reduc_uplus_v4sf): Likewise.
3872         (reduc_splus_v4sf): Likewise.
3873         (aarch64_addv<mode>): Likewise.
3874         (reduc_uplus_<mode>): Likewise.
3875         (reduc_splus_<mode>): Likewise.
3876         (aarch64_addvv2di): Likewise.
3877         (reduc_uplus_v2di): Likewise.
3878         (reduc_splus_v2di): Likewise.
3879         (aarch64_addvv2si): Likewise.
3880         (reduc_uplus_v2si): Likewise.
3881         (reduc_splus_v2si): Likewise.
3882         (reduc_<sur>plus_<mode>): New.
3883         (reduc_<sur>plus_v2di): Likewise.
3884         (reduc_<sur>plus_v2si): Likewise.
3885         (reduc_<sur>plus_v4sf): Likewise.
3886         (aarch64_addpv4sf): Likewise.
3887         * config/aarch64/arm_neon.h
3888         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3889         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3890         add UNSPEC_SADDV, UNSPEC_UADDV.
3891         (SUADDV): New.
3892         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3894 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3896         * config/aarch64/arm_neon.h
3897         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3899 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3901         * config/aarch64/aarch64-builtins
3902         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3904 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3906         * config/aarch64/aarch64-simd-builtins.def
3907         (reduc_smax_): New.
3908         (reduc_smin_): Likewise.
3909         (reduc_umax_): Likewise.
3910         (reduc_umin_): Likewise.
3911         (reduc_smax_nan_): Likewise.
3912         (reduc_smin_nan_): Likewise.
3913         (fmax): Remove.
3914         (fmin): Likewise.
3915         (smax): Update for V2SF, V4SF and V2DF modes.
3916         (smin): Likewise.
3917         (smax_nan): New.
3918         (smin_nan): Likewise.
3919         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3920         (<su><maxmin><mode>3): ...This, refactor.
3921         (s<maxmin><mode>3): New.
3922         (<maxmin_uns><mode>3): Likewise.
3923         (reduc_<maxmin_uns>_<mode>): Refactor.
3924         (reduc_<maxmin_uns>_v4sf): Likewise.
3925         (reduc_<maxmin_uns>_v2si): Likewise.
3926         (aarch64_<fmaxmin><mode>: Remove.
3927         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3928         new builtin names.
3929         (vmin<q>_f<32,64>): Likewise.
3930         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3931         (FMAXMIN): New.
3932         (su): Add mappings for smax, smin, umax, umin.
3933         (maxmin): New.
3934         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3935         (FMAXMIN): Rename as...
3936         (FMAXMIN_UNS): ...This.
3937         (maxminv): Remove.
3938         (fmaxminv): Likewise.
3939         (fmaxmin): Likewise.
3940         (maxmin_uns): New.
3941         (maxmin_uns_op): Likewise.
3943 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3945         * config/aarch64/arm_neon.h
3946         (vac<ge, gt><sd>_f<32, 64>): Rename to...
3947         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3948         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3950 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3952         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3953         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3955 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3957         * config/aarch64/aarch64-simd.md
3958         (vcond<mode>_internal): Handle special cases for constant masks.
3959         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3960         (vcondu<mode><mode>): Likewise.
3961         (vcond<v_cmp_result><mode>): New.
3963 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3965         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3966         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3967         * config/aarch64/aarch64-simd-builtins.def
3968         (cmeq): Update to BUILTIN_VALLDI.
3969         (cmgt): Likewise.
3970         (cmge): Likewise.
3971         (cmle): Likewise.
3972         (cmlt): Likewise.
3973         * config/aarch64/arm_neon.h
3974         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3975         to builtins or C as appropriate.
3977 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
3979         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3980         (cmgeu): ...This.
3981         (cmhi): Rename to...
3982         (cmgtu): ...This.
3983         * config/aarch64/aarch64-simd.md
3984         (simd_mode): Add SF.
3985         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3986         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3987         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3988         (cstore<mode>_neg): ...This.
3989         * config/aarch64/iterators.md
3990         (VALLF): new.
3991         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3992         (COMPARISONS): New.
3993         (UCOMPARISONS): Likewise.
3994         (optab): Add missing comparisons.
3995         (n_optab): New.
3996         (cmp_1): Likewise.
3997         (cmp_2): Likewise.
3998         (CMP): Likewise.
3999         (cmp): Remove.
4000         (VCMP_S): Likewise.
4001         (VCMP_U): Likewise.
4002         (V_cmp_result): Add DF, SF modes.
4003         (v_cmp_result): Likewise.
4004         (v): Likewise.
4005         (vmtype): Likewise.
4006         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4008 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4010         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4011         define_insn to define_insn_and_split.
4012         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4013         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4014         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4015         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4016         (thumb2_negscc): Likewise.
4018 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4020         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4022 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4024         * config/arm/thumb2.md: Remove trailing whitespaces.
4026 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4028         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4029         Use gen_int_mode rather than GEN_INT.
4031 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4033         * value-prof.c (stream_in_histogram_value): Remove the strayed
4034         debug_gimple_stmt.
4036 2013-04-30  Richard Biener  <rguenther@suse.de>
4038         PR middle-end/57122
4039         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4041 2013-04-30  Richard Biener  <rguenther@suse.de>
4043         PR middle-end/57107
4044         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4046 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4048         PR rtl-optimization/56957
4049         PR rtl-optimization/57105
4050         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4051         variable.  Use just INSN_UID for determining whether an insn
4052         should be only disconnected from the insn stream.
4053         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4055 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4057         PR tree-optimization/57104
4058         * tsan.c (instrument_expr): Don't instrument accesses to
4059         DECL_HARD_REGISTER VAR_DECLs.
4061 2013-04-30  Richard Biener  <rguenther@suse.de>
4063         * function.h (loops_for_fn): New inline function.
4064         (set_loops_for_fn): Likewise.
4065         * cfgloop.h (place_new_loop): Add struct function parameter.
4066         (get_loop): Likewise.
4067         (get_loops): Likewise.
4068         (number_of_loops): Likewise.
4069         (fel_next): Adjust.
4070         (fel_init): Likewise.
4071         * cfg.c (get_loop_copy): Adjust.
4072         * cfgloop.c (flow_loops_dump): Likewise.
4073         (record_loop_exits): Likewise.
4074         (verify_loop_structure): Likewise.
4075         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4076         (estimate_reg_pressure_cost): Likewise.
4077         (mark_loop_exit_edges): Likewise.
4078         * cfgloopmanip.c (place_new_loop): Likewise.
4079         (add_loop): Likewise.
4080         (duplicate_loop): Likewise.
4081         * graph.c (draw_cfg_nodes): Likewise.
4082         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4083         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4084         (extract_affine_chrec): Likewise.
4085         (build_scop_iteration_domain): Likewise.
4086         * graphite.c (graphite_initialize): Likewise.
4087         * ira-build.c (create_loop_tree_nodes): Likewise.
4088         (more_one_region_p): Likewise.
4089         (rebuild_regno_allocno_maps): Likewise.
4090         (mark_loops_for_removal): Likewise.
4091         (mark_all_loops_for_removal): Likewise.
4092         (remove_unnecessary_regions): Likewise.
4093         (ira_build): Likewise.
4094         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4095         * loop-init.c (fix_loop_structure): Likewise.
4096         (gate_rtl_move_loop_invariants): Likewise.
4097         (gate_rtl_unswitch): Likewise.
4098         (gate_rtl_unroll_and_peel_loops): Likewise.
4099         (rtl_doloop): Likewise.
4100         * lto-streamer-in.c (input_cfg): Likewise.
4101         * lto-streamer-out.c (output_cfg): Likewise.
4102         * modulo-sched.c (sms_schedule): Likewise.
4103         * predict.c (tree_estimate_probability): Likewise.
4104         (tree_estimate_probability_driver): Likewise.
4105         (estimate_loops): Likewise.
4106         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4107         (move_sese_region_to_fn): Likewise.
4108         (debug_loop_num): Likewise.
4109         * tree-chrec.c (chrec_evaluate): Likewise.
4110         (hide_evolution_in_other_loops_than_loop): Likewise.
4111         (chrec_component_in_loop_num): Likewise.
4112         (reset_evolution_in_loop): Likewise.
4113         (evolution_function_is_invariant_rec_p): Likewise.
4114         * tree-if-conv.c (main_tree_if_conversion): Likewise.
4115         * tree-inline.c (copy_loops): Likewise.
4116         (copy_cfg_body): Likewise.
4117         (tree_function_versioning): Likewise.
4118         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4119         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4120         Likewise.
4121         (add_to_evolution_1): Likewise.
4122         (scev_const_prop): Likewise.
4123         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4124         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4125         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4126         (tree_ssa_lim_initialize): Likewise.
4127         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4128         (verify_loop_closed_ssa): Likewise.
4129         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
4130         (tree_ssa_loop_im): Likewise.
4131         (tree_ssa_loop_unswitch): Likewise.
4132         (tree_vectorize): Likewise.
4133         (check_data_deps): Likewise.
4134         (tree_ssa_loop_ivcanon): Likewise.
4135         (tree_ssa_loop_bounds): Likewise.
4136         (tree_complete_unroll): Likewise.
4137         (tree_complete_unroll_inner): Likewise.
4138         (tree_parallelize_loops): Likewise.
4139         (tree_ssa_loop_prefetch): Likewise.
4140         (tree_ssa_loop_ivopts): Likewise.
4141         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4142         * tree-vectorizer.c (vectorize_loops): Likewise.
4144 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
4146         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4147         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4148         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4149         with EABI_LINK_SPEC.
4151 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4153         PR target/44578
4154         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4155         alternative.
4157 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4159         PR target/57097
4160         * lra-constraints.c (process_alt_operands): Discourage a bit more
4161         using memory for pseudos.  Print cost dump for alternatives.
4162         Modify cost values for conflicts with early clobbers.
4163         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4165 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4167         PR target/57098
4168         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4170 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4172         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4173         from/to S register.
4174         (movdi_aarch64): Support LDR/STR from/to D register.
4176 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
4178         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4179         or higher by default.
4181 2013-04-29  Richard Biener  <rguenther@suse.de>
4183         PR middle-end/57075
4184         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4185         even if not adding abnormal edges for calls that can make
4186         abnormal gotos.
4188 2013-04-29  Richard Biener  <rguenther@suse.de>
4190         PR middle-end/57103
4191         * tree-cfg.c (move_stmt_op): Fix condition under which to update
4192         TREE_BLOCK.
4193         (move_stmt_r): Remove redundant checking.
4195 2013-04-29  Teresa Johnson  <tejohnson@google.com>
4197         PR bootstrap/57077
4198         * basic-block.h (apply_scale): New function.
4199         (apply_probability): Use apply_scale.
4200         * gimple-streamer-in.c (input_bb): Ditto.
4201         * lto-streamer-in.c (input_cfg): Ditto.
4202         * lto-cgraph.c (merge_profile_summaries): Ditto.
4203         * tree-optimize.c (execute_fixup_cfg): Ditto.
4204         * tree-inline.c (copy_bb): Update comment to use apply_scale.
4205         (copy_edges_for_bb): Ditto.
4206         (copy_cfg_body): Ditto.
4208 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4210         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4211         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4212         (tail_merge_optimize): Handle current_loops == NULL.
4214 2013-04-26  Jeff Law  <law@redhat.com>
4216         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4217         (simplify_cond_using_ranges): Generalize code to simplify
4218         COND_EXPRs where one argument is a constant and the other
4219         is an SSA_NAME created by an integral type conversion.
4221 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4223         * config/arm/arm.md (store_minmaxsi): Use only when
4224         optimize_insn_for_size_p.
4226 2013-04-29  Christian Bruel  <christian.bruel@st.com>
4228         PR target/57108
4229         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4231 2013-04-29  Richard Biener  <rguenther@suse.de>
4233         PR middle-end/57089
4234         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4235         loop tree make sure to schedule a fixup for the child as well.
4236         (expand_omp_for_generic): Properly add loops.
4237         (expand_omp_for_static_nochunk): Likewise.
4238         (expand_omp_for_static_chunk): Likewise.
4239         (expand_omp_for): For the degenerate case fixup loops.
4240         (expand_omp_sections): Fix default bb placement in loops.
4241         (expand_omp_atomic_pipeline): Properly add loops.
4243 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4245         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4247 2013-04-29  Tom de Vries  <tom@codesourcery.com>
4249         * tree-ssa-tail-merge.c: Update header comment.
4251 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4253         * config/aarch64/arm_neon.h
4254         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4255         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4256         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4257         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4258         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4259         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4260         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4261         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4263 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4265         * config/aarch64/aarch64-simd.md
4266         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4267         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4268         fix_trunc, fixuns_trunc.
4269         (ftrunc<VDQF:mode>2): New.
4270         * config/aarch64/iterators.md (optab): Add fix, fixuns.
4271         (fix_trunc_optab): New.
4273 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4275         * config/aarch64/aarch64-builtins.c
4276         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4277         iceilf, lround, iroundf.
4279 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
4281         PR target/54349
4282         * config/i386/i386.h (enum ix86_tune_indices)
4283         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4284         New, split from X86_TUNE_INTER_UNIT_MOVES.
4285         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4286         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4287         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4288         (TARGET_INTER_UNIT_MOVES): Remove.
4289         * config/i386/i386.c (initial_ix86_tune_features): Update.
4290         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4291         (ix86_expand_convert_uns_didf_sse): Use
4292         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4293         (ix86_expand_vector_init_one_nonzero): Ditto.
4294         (ix86_expand_vector_init_interleave): Ditto.
4295         (inline_secondary_memory_needed): Return true for moves from SSE class
4296         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4297         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4298         * config/i386/constraints.md (Yi, Ym): Depend on
4299         TARGET_INTER_UNIT_MOVES_TO_VEC.
4300         (Yj, Yn): New constraints.
4301         * config/i386/i386.md (*movdi_internal): Change constraints of
4302         operand 1 from Yi to Yj and from Ym to Yn.
4303         (*movsi_internal): Ditto.
4304         (*movdf_internal): Ditto.
4305         (*movsf_internal): Ditto.
4306         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4307         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4308         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4309         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4310         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4311         * config/i386/sse.md (movdi_to_sse): Ditto.
4312         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4313         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4314         TARGET_INTER_UNIT_MOVES.
4315         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4316         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4317         instead of TARGET_INTER_UNIT_MOVES.
4318         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4319         operand 1 from Yi to Yj and from Ym to Yn.
4321 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4323         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4324         (float_truncate_hi_): Likewise.
4325         (float_extend_lo_): Likewise.
4326         (float_truncate_lo_): Likewise.
4327         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4328         (aarch64_float_extend_lo_v2df): Likewise.
4329         (vec_unpacks_hi_v4sf): Likewise.
4330         (aarch64_float_truncate_lo_v2sf): Likewise.
4331         (aarch64_float_truncate_hi_v4sf): Likewise.
4332         (vec_pack_trunc_v2df): Likewise.
4333         (vec_pack_trunc_df): Likewise.
4335 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4337         * config/aarch64/aarch64-builtins.c
4338         (aarch64_fold_builtin): Fold float conversions.
4339         * config/aarch64/aarch64-simd-builtins.def
4340         (floatv2si, floatv4si, floatv2di): New.
4341         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4342         * config/aarch64/aarch64-simd.md
4343         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4344         * config/aarch64/iterators.md (FLOATUORS): New.
4345         (optab): Add float, floatuns.
4346         (su_optab): Likewise.
4348 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4350         * config/aarch64/aarch64-builtins.c
4351         (aarch64_builtin_vectorized_function): Use new names for
4352         fcvt builtins.
4353         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4354         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4355         (fcvtzu): Split as...
4356         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4357         (fcvtas): Split as...
4358         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4359         (fcvtau): Split as...
4360         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4361         (fcvtps): Split as...
4362         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4363         (fcvtpu): Split as...
4364         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4365         (fcvtms): Split as...
4366         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4367         (fcvtmu): Split as...
4368         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4369         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4370         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4371         (lfrintnusf, lfrintnudf): Likewise.
4372         * config/aarch64/aarch64-simd.md
4373         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4374         define_insn.
4375         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4376         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4377         (fcvt_pattern): Likewise.
4379 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4381         * config/aarch64/aarch64-simd.md
4382         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4383         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4385 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4387         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4388         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4389         (vrnd<a,m,n,p>_f32): Implement using builtins.
4390         (vrnd<i,x><q>_f<32, 64>): New.
4392 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
4394         * config/aarch64/aarch64-builtins.c
4395         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4396         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4397         (frintz): Rename to...
4398         (btrunc): ...this.
4399         (frintp): Rename to...
4400         (ceil): ...this.
4401         (frintm): Rename to...
4402         (floor): ...this.
4403         (frinti): Rename to...
4404         (nearbyint): ...this.
4405         (frintx): Rename to...
4406         (rint): ...this.
4407         (frinta): Rename to...
4408         (round): ...this.
4409         * config/aarch64/aarch64-simd.md
4410         (aarch64_frint<frint_suffix><mode>): Delete.
4411         (<frint_pattern><mode>2): Convert to insn.
4412         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4413         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4414         (frint_pattern): Likewise.
4415         (frint_suffix): Likewise.
4417 2013-04-29  Richard Biener  <rguenther@suse.de>
4419         PR tree-optimization/57081
4420         * loop-init.c: Include tree-flow.h.
4421         (loop_optimizer_finalize): Free number of iteration estimates.
4422         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4424 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
4426         PR tree-optimization/57083
4427         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4428         non-singleton shift count range, zero extend low_bound for uns case.
4430         * config/i386/predicates.md (general_vector_operand): New predicate.
4431         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4432         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4433         if they aren't nonimmediate operands.  If their original values
4434         satisfy const_vector_equal_evenodd_p, don't shift them.
4435         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4436         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
4437         if not nonimmediate_operand.
4438         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4439         instead of register_operand.
4440         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4442 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4444         * stor-layout.c (finalize_size_functions): Allocate a structure and
4445         reset cfun before dumping the functions.
4447 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
4449         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4451         PR target/56866
4452         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4453         use xop_pmacsdqh if uns_p.
4454         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4455         the immediate rotate count.
4457 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
4459         * rtl.h (struct rtx_def): Add comment for field jump.
4460         (LRA_SUBREG_P): New macro.
4461         * recog.c (register_operand): Check LRA_SUBREG_P.
4462         * lra.c (lra): Add note at the end of RTL code. Align non-empty
4463         stack frame.
4464         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4465         (lra_final_code_change): Skip subreg change for operators.
4466         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4467         if there are no operand changes.
4468         * lra-constraints.c (curr_insn_set): New.
4469         (match_reload): Set LRA_SUBREG_P.
4470         (emit_spill_move): Ditto.
4471         (check_and_process_move): Use curr_insn_set. Process only single
4472         set insns.  Don't initialize sec_mem_p and change_p.
4473         (simplify_operand_subreg): Use LRA_SUBREG_P.
4474         (reg_in_class_p): New function.
4475         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
4476         of #ifdef.  Add code to remove cycling.
4477         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4478         non-null disp.  Reload inner instead of disp when base and index
4479         are null.  Try to put lo_sum into register.
4480         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4481         (check_and_process_move): Move code for move cost check to
4482         simple_move_p.  Remove equiv_substitution.
4483         (simple_move_p): New function.
4484         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
4485         curr_insn_set.  Call check_and_process_move only for single set
4486         insns.  Use the new function.  Move call of check_and_process_move
4487         after operand equiv substitution and address process.
4489 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4491         PR go/57045
4492         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4493         with nonlocal goto receivers or returns twice calls, ignore
4494         unininitialized values from abnormal edges to nl goto receiver
4495         or returns twice call.
4497 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4499         PR tree-optimization/57051
4500         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4501         and VEC_RSHIFT_EXPR if shift count is a multiple of element
4502         bitsize.
4504 2013-04-26  Richard Biener  <rguenther@suse.de>
4506         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4507         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
4508         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4509         (fixup_loop_arrays_after_move): New function.
4510         (move_sese_region_to_fn): Properly outline the loop tree parts
4511         of the SESE region.
4513 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
4515         * config/i386/i386.md (type, unit): Fix long lines.
4517 2013-04-26  Richard Biener  <rguenther@suse.de>
4519         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4520         (lto-streamer-out.o): Likewise.
4521         * cfgloop.c (init_loops_structure): Export, add struct function
4522         argument and adjust.
4523         (flow_loops_find): Adjust.
4524         * cfgloop.h (enum loop_estimation): Add EST_LAST.
4525         (init_loops_structure): Declare.
4526         * lto-streamer-in.c: Include cfgloop.h.
4527         (input_cfg): Input the loop tree.
4528         * lto-streamer-out.c: Include cfgloop.h.
4529         (output_cfg): Output the loop tree.
4530         (output_struct_function_base): Do not drop PROP_loops.
4532 2013-03-26  Richard Biener  <rguenther@suse.de>
4534         * tree-cfg.c (execute_build_cfg): Build the loop tree.
4535         (pass_build_cfg): Provide PROP_loops.
4536         (move_sese_region_to_fn): Remove loops that are outlined into fn
4537         for now.
4538         * tree-inline.c: Include cfgloop.h.
4539         (initialize_cfun): Do not drop PROP_loops.
4540         (copy_loops): New function.
4541         (copy_cfg_body): Copy loop structure.
4542         (tree_function_versioning): Initialize destination loop tree.
4543         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4544         (pass_parallelize_loops): Do IL verification.
4545         * loop-init.c (loop_optimizer_init): Fixup loops if required.
4546         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4547         the CFG make sure we fixup loops as well.
4548         * tree-ssa-tail-merge.c: Include cfgloop.h.
4549         (replace_block_by): When merging loop latches mark loops for fixup.
4550         * lto-streamer-out.c (output_struct_function_base): Drop
4551         PROP_loops for now.
4552         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4553         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4554         * ipa-split.c: Include cfgloop.h.
4555         (split_function): Add the new return block to the loop tree root.
4556         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4557         whether we have removed the forwarder block.
4558         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4559         * cfgloop.h (place_new_loop): Declare.
4560         * cfgloopmanip.c (place_new_loop): Export.
4561         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4562         (tree-switch-conversion.o): Likewise.
4563         (tree-complex.o): Likewise.
4564         (tree-inline.o): Likewise.
4565         (tree-ssa-tailmerge.o): Likewise.
4566         (ipa-split.o): Likewise.
4567         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4568         (tree-ssa-copy.o): Likewise.
4569         * tree-switch-conversion.c: Include cfgloop.h
4570         (process_switch): If we emit a bit-test cascade, schedule loops
4571         for fixup.
4572         * tree-complex.c: Include cfgloop.h.
4573         (expand_complex_div_wide): Properly add new basic-blocks to loops.
4574         * asan.c: Include cfgloop.h.
4575         (create_cond_insert_point): Properly add new basic-blocks to
4576         loops, schedule loop fixup.
4577         * cfgloop.c (verify_loop_structure): Check that looks are not
4578         marked for fixup.
4579         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4580         to loops.
4581         (expand_omp_for_generic): Likewise.
4582         (expand_omp_sections): Likewise.
4583         (expand_omp_atomic_pipeline): Schedule loops for fixup.
4584         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4585         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4586         is initialized, not when loops are present.
4587         * tree-parloops.c (parallelize_loops): Remove checking here.
4588         * passes.c (init_optimization_passes): Schedule a copy-propagation
4589         pass before complete unrolling of inner loops.
4591 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
4593         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4594         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4595         (colorize_init): Add argument to _WIN32 version.
4596         * toplev.c: Include diagnostic-color.h.
4597         (process_options): Default to -fdiagnostics-color=auto if
4598         GCC_COLORS env var is in the environment.
4599         * common.opt (fdiagnostics-color=): Add Var and Init.
4600         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4601         env var is in the environment, the default is auto rather than never.
4603         * diagnostic.h (file_name_as_prefix): Add context argument.
4604         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
4605         the string as locus.
4606         * langhooks.c (lhd_print_error_function): Adjust caller.
4608 2013-04-25  Lawrence Crowl  <crowl@google.com>
4610         * var-tracking.c (shared_hash_def::htab):
4611         Change type to hash_table.  Update dependent calls and types.
4613 2013-04-25  Lawrence Crowl  <crowl@google.com>
4615         * Makefile.in: Update as needed below.
4617         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4618         Move declaration to after the type's method definitons.
4620         * attribs.c (htab_t scoped_attributes::attribute_hash):
4621         Change type to hash_table.  Update dependent calls and types.
4623         * bitmap.c (htab_t bitmap_desc_hash):
4624         Change type to hash_table.  Update dependent calls and types.
4626         * cselib.c (htab_t cselib_hash_table):
4627         Change type to hash_table.  Update dependent calls and types.
4629         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4630         (hash_string_slot_node): Move implementation into lto-streamer.h
4631         struct string_slot_hasher.
4632         (eq_string_slot_node): Likewise.
4634         * data-streamer-out.c: Update output_block::string_hash_table
4635         dependent calls and types.
4637         * dwarf2cfi.c (htab_t trace_index):
4638         Change type to hash_table.  Update dependent calls and types.
4640         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4641         Change type to hash_table.  Update dependent calls and types.
4642         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4643         (htab_t optimize_external_refs::map): Likewise.
4644         (htab_t output_comp_unit::extern_map): Likewise.
4645         (htab_t output_comdat_type_unit::extern_map): Likewise.
4646         (htab_t output_macinfo::macinfo_htab): Likewise.
4647         (htab_t optimize_location_lists::htab): Likewise.
4648         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4650         * except.c (htab_t ehspec_hash_type):
4651         Change type to hash_table.  Update dependent calls and types.
4652         (assign_filter_values::ttypes): Likewise.
4653         (assign_filter_values::ehspec): Likewise.
4654         (sjlj_assign_call_site_values::ar_hash): Likewise.
4655         (convert_to_eh_region_ranges::ar_hash): Likewise.
4657         * gcse.c (htab_t pre_ldst_table):
4658         Change type to hash_table.  Update dependent calls and types.
4660         * ggc-common.c (htab_t saving_htab):
4661         Change type to hash_table.  Update dependent calls and types.
4662         (htab_t loc_hash): Likewise.
4663         (htab_t ptr_hash): Likewise.
4664         (call_count): Rename ggc_call_count.
4665         (call_alloc): Rename ggc_call_alloc.
4666         (loc_descriptor): Rename make_loc_descriptor.
4667         (add_statistics): Rename ggc_add_statistics.
4669         * ggc-common.c (saving_htab):
4670         Change type to hash_table.  Update dependent calls and types.
4672         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4673         (push_gimplify_context): Likewise.
4674         (pop_gimplify_context): Likewise.
4675         (struct gimple_temp_hash_elt): Added.
4676         (struct gimplify_hasher): Likewise.
4677         (struct gimplify_ctx.temp_htab):
4678         Change type to hash_table.  Update dependent calls and types.
4680         * gimple-fold.c: Include gimplify-ctx.h.
4682         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4683         Change type to hash_table.  Update dependent calls and types.
4684         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4685         avoid potential global name collision.
4687         * gimplify.c: Include gimplify-ctx.h.
4688         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4689         (htab_t gimplify_ctx::temp_htab):
4690         Update dependent calls and types for new type hash_table.
4691         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4692         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4694         * gimplify-ctx.h: New.
4695         (struct gimple_temp_hash_elt): Move from gimplify.c.
4696         (class gimplify_hasher): New.
4697         (struct gimplify_ctx): Move from gimple.h.
4698         (htab_t gimplify_ctx::temp_htab):
4699         Change type to hash_table.  Update dependent calls and types.
4701         * graphite-clast-to-gimple.c: Include graphite-htab.h.
4702         (htab_t ivs_params::newivs_index):
4703         Change type to hash_table.  Update dependent calls and types.
4704         (htab_t ivs_params::params_index): Likewise.
4705         (htab_t print_generated_program::params_index): Likewise.
4706         (htab_t gloog::newivs_index): Likewise.
4707         (htab_t gloog::params_index): Likewise.
4709         * graphite.c: Include graphite-htab.h.
4710         4htab_t graphite_transform_loops::bb_pbb_mapping):
4711         Change type to hash_table.  Update dependent calls and types.
4713         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4714         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4715         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4717         * graphite-dependences.c: Include graphite-htab.h.
4718         (loop_is_parallel_p): Change hash table type of parameter.
4720         * graphite-htab.h: New.
4721         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4722         (extern find_pbb_via_hash): Move from graphite-poly.h.
4723         (extern loop_is_parallel_p): Move from graphite-poly.h.
4724         (extern get_loop_body_pbbs): Move from graphite-poly.h.
4726         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4727         (extern loop_is_parallel_p): Move to graphite-htab.h.
4728         (extern get_loop_body_pbbs): Move to graphite-htab.h.
4730         * haifa-sched.c (htab_t delay_htab):
4731         Change type to hash_table.  Update dependent calls and types.
4732         (htab_t delay_htab_i2): Likewise.
4734         * ira-color.c (htab_t allocno_hard_regs_htab):
4735         Change type to hash_table.  Update dependent calls and types.
4737         * ira-costs.c (htab_t cost_classes_htab):
4738         Change type to hash_table.  Update dependent calls and types.
4740         * loop-invariant.c (htab_t merge_identical_invariants::eq):
4741         Change type to hash_table.  Update dependent calls and types.
4743         * loop-iv.c (htab_t bivs):
4744         Change type to hash_table.  Update dependent calls and types.
4746         * loop-unroll.c (htab_t opt_info::insns_to_split):
4747         Change type to hash_table.  Update dependent calls and types.
4748         (htab_t opt_info::insns_with_var_to_expand): Likewise.
4750         * lto-streamer.h (struct string_slot): Move from data-streamer.h
4751         (struct string_slot_hasher): New.
4752         (htab_t output_block::string_hash_table):
4753         Change type to hash_table.  Update dependent calls and types.
4755         * lto-streamer-in.c (freeing_string_slot_hasher): New.
4756         (htab_t file_name_hash_table):
4757         Change type to hash_table.  Update dependent calls and types.
4759         * lto-streamer-out.c: Update output_block::string_hash_table dependent
4760         calls and types.
4762         * lto-streamer.c (htab_t tree_htab):
4763         Change type to hash_table.  Update dependent calls and types.
4765         * omp-low.c: Include gimplify-ctx.h.
4767         * passes.c (htab_t name_to_pass_map):
4768         Change type to hash_table.  Update dependent calls and types.
4769         (pass_traverse): Rename to passes_pass_traverse.
4771         * plugin.c (htab_t event_tab):
4772         Change type to hash_table.  Update dependent calls and types.
4774         * postreload-gcse.c (htab_t expr_table):
4775         Change type to hash_table.  Update dependent calls and types.
4776         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4778         * sese.c (debug_rename_map_1): Make extern.
4779         (htab_t copy_bb_and_scalar_dependences::rename_map):
4780         Change type to hash_table.  Update dependent calls and types.
4782         * sese.h (extern debug_rename_map): Move to .c file.
4784         * store-motion.c (htab_t store_motion_mems_table):
4785         Change type to hash_table.  Update dependent calls and types.
4787         * trans-mem.c (htab_t tm_new_mem_hash):
4788         Change type to hash_table.  Update dependent calls and types.
4790         * tree-browser.c (htab_t TB_up_ht):
4791         Change type to hash_table.  Update dependent calls and types.
4793         * tree-cfg.c (htab_t discriminator_per_locus):
4794         Change type to hash_table.  Update dependent calls and types.
4796         * tree-complex.c: Include tree-hasher.h
4797         (htab_t complex_variable_components):
4798         Change type to hash_table.  Update dependent calls and types.
4800         * tree-eh.c (htab_t finally_tree):
4801         Change type to hash_table.  Update dependent calls and types.
4803         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4804         struct int_tree_hasher.
4805         (extern int_tree_map_eq): Likewise.
4806         (uid_decl_map_hash): Removed.
4807         (extern decl_tree_map_eq): Likewise.
4809         * tree-hasher.h: New.
4810         (struct int_tree_hasher): New.
4811         (typedef int_tree_htab_type): New.
4813         * tree-inline.c: Include gimplify-ctx.h.
4815         * tree-mudflap.c: Include gimplify-ctx.h.
4817         * tree-parloops.c: Include tree-hasher.h.
4818         (htab_t eliminate_local_variables_stmt::decl_address):
4819         Change type to hash_table.  Update dependent calls and types.
4820         (htab_t separate_decls_in_region::decl_copies): Likewise.
4822         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4823         Change type to hash_table.  Update dependent calls and types.
4825         * tree-sra.c (candidates):
4826         Change type to hash_table.  Update dependent calls and types.
4828         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4829         in tree-flow.h.
4830         (int_tree_map_hash): Likewise.
4832         * tree-ssa-dom.c (htab_t avail_exprs):
4833         Change type to hash_table.  Update dependent calls and types.
4835         * tree-ssa-live.c (var_map_base_init::tree_to_index):
4836         Change type to hash_table.  Update dependent calls and types.
4838         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4839         Change type to hash_table.  Update dependent calls and types.
4841         * tree-ssa-phiopt.c (seen_ssa_names):
4842         Change type to hash_table.  Update dependent calls and types.
4844         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4845         Change type to hash_table.  Update dependent calls and types.
4847         * tree-ssa-uncprop.c (equiv):
4848         Change type to hash_table.  Update dependent calls and types.
4850 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
4852         PR rtl-optimization/57003
4853         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4854         call note_stores with kill_clobbered_value callback again after
4855         killing regs_invalidated_by_call.
4857 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
4859         * config/aarch64/aarch64-simd.md
4860         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4861         (aarch64_simd_bsl<mode>): Likewise.
4862         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4864 2013-04-25  Marek Polacek  <polacek@redhat.com>
4866         PR tree-optimization/57066
4867         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4869 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
4871         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4873 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
4875         * config/aarch64/aarch64-builtins.c
4876         (aarch64_fold_builtin): New.
4877         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4878         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4879         * config/aarch64/aarch64-simd-builtins.def (abs): New.
4880         * config/aarch64/arm_neon.h
4881         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4883 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
4884             Tejas Belagod  <tejas.belagod@arm.com>
4886         * config/aarch64/aarch64-builtins.c
4887         (aarch64_gimple_fold_builtin): New.
4888         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4889         * config/aarch64/aarch64-simd-builtins.def (addv): New.
4890         * config/aarch64/aarch64-simd.md (addpv4sf): New.
4891         (addvv4sf): Update.
4892         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4894 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4896         * config/aarch64/aarch64.md
4897         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4899 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4901         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4902         (*ngcsi_uxtw): New pattern.
4904 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4905             Julian Brown  <julian@codesourcery.com>
4907         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4908         (TB_DREG): Add T_V4HF.
4909         (v4hf_UP): New macro.
4910         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4911         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4912         Handle initialisation of V4HF. Adjust initialisation of reinterpret
4913         built-ins.
4914         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4915         (arm_vector_mode_supported_p): Handle V4HF.
4916         (arm_mangle_map): Handle V4HFmode.
4917         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4918         * config/arm/arm_neon_builtins.def: Add entries for
4919         vcvtv4hfv4sf, vcvtv4sfv4hf.
4920         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4921         (neon_vcvtv4hfv4sf): Likewise.
4922         * config/arm/neon-gen.ml: Handle half-precision floating point
4923         features.
4924         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4925         * config/arm/arm_neon.h: Regenerate.
4926         * config/arm/neon.ml (type elts): Add F16.
4927         (type vectype): Add T_float16x4, T_floatHF.
4928         (type vecmode): Add V4HF.
4929         (type features): Add Requires_FP_bit feature.
4930         (elt_width): Handle F16.
4931         (elt_class): Likewise.
4932         (elt_of_class_width): Likewise.
4933         (mode_of_elt): Refactor.
4934         (type_for_elt): Handle F16, fix error messages.
4935         (vectype_size): Handle T_float16x4.
4936         (vcvt_sh): New function.
4937         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4938         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4939         (string_of_mode): Handle V4HF.
4940         * doc/arm-neon-intrinsics.texi: Regenerate.
4942 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
4944         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4945         format specifier in 'X' case.
4947 2013-04-25  Alan Modra  <amodra@gmail.com>
4949         PR target/57052
4950         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4951         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4952         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4953         Repeat for many other rotate/shift and mask patterns using subregs.
4954         Name lshiftrt insns.
4955         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4956         on WORDS_BIG_ENDIAN.
4958 2013-04-25  Alan Modra  <amodra@gmail.com>
4960         * config.gcc: Support little-endian powerpc-linux targets.
4961         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4962         (LINK_OS_LINUX_SPEC): Define.
4963         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4964         Preserve MASK_LITTLE_ENDIAN.
4965         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4966         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4967         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4968         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4969         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4970         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4971         Correct fp word order for little-endian.  Don't shift toc entries
4972         smaller than a word for little-endian.
4973         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4974         (bswapdi2 splits): Correct low-part subreg for little-endian.
4975         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4976         low/high where such is correct only for be.
4977         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4978         little-endian for -mcall-aixdesc.
4980 2013-04-25  Alan Modra  <amodra@gmail.com>
4982         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4983         replace_equiv_address_nv.
4985 2013-04-25  Alan Modra  <amodra@gmail.com>
4987         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4989 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4991         Revert:
4992         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4993         * rtl.h (struct rtx_def): ...
4995 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4997         PR rtl-optimizations/57046
4998         * lra-constraints (split_reg): Set up lra_risky_transformations_p
4999         for multi-reg splits.
5001 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5003         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5005 2013-04-24  Sterling Augustine  <saugustine@google.com>
5007         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5008         (comp_dir_string, debug_str_dwo_section): New.
5009         (DEBUG_STR_DWO_SECTION): Rename to ...
5010         (DEBUG_DWO_STR_SECTION): ... this.
5011         (DEBUG_NORM_STR_SECTION): Delete.
5012         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5013         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5014         (find_AT_string): Move most logic to ...
5015         (find_AT_string_in_table): ... here.  New.
5016         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5017         add_skeleton_AT_string.  Delete logic.
5018         (output_skeleton_debug_sections): Remove call to
5019         add_top_level_skeleton_die_attrs.
5020         (add_comp_dir_attribute): Move logic to comp_dir_string.
5021         (dwarf2out_init): Initialize debug_str_dwo_section.
5022         (output_indirect_string): Call find_string_form.
5023         (output_indirect_strings): Rewrite.
5024         (prune_unused_types): Empty skeleton_debug_str_hash.
5025         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5026         (dwarf2out_finish):  Call output_indirect_strings.
5028 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5030         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5032 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5034         * rtl.h (struct rtx_def): Add comment for field jump.
5035         (LRA_SUBREG_P): New macro.
5036         * recog.c (register_operand): Check LRA_SUBREG_P.
5037         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5038         stack frame.
5039         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5040         (lra_final_code_change): Skip subreg change for operators.
5041         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5042         if there are no operand changes.
5043         * lra-constraints.c (curr_insn_set): New.
5044         (match_reload): Set LRA_SUBREG_P.
5045         (emit_spill_move): Ditto.
5046         (check_and_process_move): Use curr_insn_set. Process only single
5047         set insns.  Don't initialize sec_mem_p and change_p.
5048         (simplify_operand_subreg): Use LRA_SUBREG_P.
5049         (reg_in_class_p): New function.
5050         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5051         of #ifdef.  Add code to remove cycling.
5052         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5053         non-null disp.  Reload inner instead of disp when base and index
5054         are null.  Try to put lo_sum into register.
5055         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5056         (check_and_process_move): Move code for move cost check to
5057         simple_move_p.  Remove equiv_substitution.
5058         (simple_move_p): New function.
5059         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5060         curr_insn_set.  Call check_and_process_move only for single set
5061         insns.  Use the new function.  Move call of check_and_process_move
5062         after operand equiv substitution and address process.
5064 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5066         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5067         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5068         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5070 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5072         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5074 2013-04-24  Marek Polacek  <polacek@redhat.com>
5076         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5077         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5078         (select_loops_exit_conditions): Likewise.
5079         (number_of_iterations_for_all_loops): Likewise.
5080         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5081         (scev_analysis): Likewise.
5083 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5084             Chao-ying Fu <fu@mips.com>
5086         * config/mips/micromips.md (jraddiusp): New pattern.
5087         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5088         instruction if possible.
5090 2013-04-24  Alan Modra  <amodra@gmail.com>
5092         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5094 2013-04-24  Julian Brown  <julian@codesourcery.com>
5095             Chung-Lin Tang  <cltang@codesourcery.com>
5097         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5098         dependency behavior in enumeration type DIE generation. Add TODO note
5099         to comments about future DW_FORM_sdata/udata re-work of related code.
5101 2013-04-23  Lawrence Crowl  <crowl@google.com>
5103         * Makefile.in: Update as needed below.
5105         * hash-table.h (class hash_table):
5106         Correct many methods with parameter types compare_type to the correct
5107         value_type.  (Correct code was unlikely to notice the change.)
5108         (hash_table::elements_with_deleted) New.
5109         (class hashtable::iterator): New.
5110         (hashtable::begin()): New.
5111         (hashtable::end()): New.
5112         (FOR_EACH_HASH_TABLE_ELEMENT): New.
5114         * statistics.c (statistics_hashes):
5115         Change type to hash_table.  Update dependent calls and types.
5117         * tree-into-ssa.c (var_infos):
5118         Change type to hash_table.  Update dependent calls and types.
5120         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5121         Change type to hash_table.  Update dependent calls and types.
5123         * tree-ssa-loop-im.c (struct mem_ref.refs):
5124         Change type to hash_table.  Update dependent calls and types.
5126         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5127         Change type to hash_table.  Update dependent calls and types.
5129         * tree-ssa-sccvn.c (vn_tables_s::nary):
5130         Change type to hash_table.  Update dependent calls and types.
5131         (vn_tables_s::phis): Likewise.
5132         (vn_tables_s::references): Likewise.
5134         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5135         (vn_reference_eq): Update parameter and return types.
5137         * tree-ssa-structalias.c (pointer_equiv_class_table):
5138         Change type to hash_table.  Update dependent calls and types.
5139         (location_equiv_class_table): Likewise.
5141         * tree-vect-data-refs.c: Consequential changes for making
5142         peeling a hash_table.
5144         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5145         (destroy_loop_vec_info): Dependent hash_table update.
5147         * tree-vectorizer.h (peeling_htab):
5148         Change type to hash_table.  Update dependent calls and types.
5150 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
5152         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5153         to check the register content is equal or not.
5154         * lra-constraints.c (match_reload): Use lra_assign_reg_val
5155         to assign register content record.
5156         * lra-eliminations.c (update_reg_eliminate): Use
5157         lra_update_reg_val_offset to update register content offset.
5158         * lra-int.h (struct lra_reg): Add offset member.
5159         (lra_reg_val_equal_p): New static inline function.
5160         (lra_update_reg_val_offset): New static inline function.
5161         (lra_assign_reg_val): New static inline function.
5162         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5163         to assign register content record.
5164         (initialize_lra_reg_info_element): Initial offset to zero.
5166 2013-04-23  Catherine Moore  <clm@codesourcery.com>
5168         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5169         operands.  Record compression.
5171 2013-04-23  Xinliang David Li  <davidxl@google.com>
5173         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5175 2013-04-23  Richard Biener  <rguenther@suse.de>
5177         PR middle-end/57036
5178         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5179         parameter, only add abnormal goto edges from the copied body
5180         if the call could perform abnormal gotos.
5181         (copy_cfg_body): Adjust.
5183 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
5185         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5187 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5189         * coretypes.h (gimple_stmt_iterator): Add struct to make
5190         compatible with C.
5192 2013-04-23  Richard Biener  <rguenther@suse.de>
5194         PR tree-optimization/57026
5195         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5196         from SSA names occuring in abnormal PHI nodes.
5198 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5200         * lto/lto.c (print_lto_report_1): Fix LTO report names.
5202 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5204         * lto/lto.c (print_lto_report_1): Declare early.
5205         (read_cgraph_and_symbols): Call print_lto_report_1 early.
5207 2013-04-22  Andi Kleen  <ak@linux.intel.com>
5209         * common.opt (-flto-report-wpa): Add.
5210         * doc/invoke.texi (-flto-report-wpa): Add.
5211         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5212         (lto_main): dito.
5214 2013-04-22  Xinliang David Li  <davidxl@google.com>
5216         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5217         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5218         * Makefile.in: New dependency
5220             David Daney <ddaney.cavm@gmail.com>
5222         * configure.ac (gcc_cv_as_micromips_support):  Use the
5223         --fatal-warnings option.
5224         * configure: Regenerate.
5226 2013-04-22  Marek Polacek  <polacek@redhat.com>
5228         PR sanitizer/56990
5229         * tsan.c (instrument_expr): Don't instrument expression
5230         in case its size is zero.
5232 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
5234         PR target/57032
5235         Revert:
5236         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5238         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5240 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5242         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5243         (gimple_stmt_iterator): New typedef.
5244         * gimple.h (gimple_stmt_iterator): Rename to...
5245         (gimple_stmt_iterator_d): ... This.
5246         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5247         trees be valid for GIMPLE and GENERIC.
5248         (TARGET_GIMPLE_FOLD_BUILTIN): New.
5249         * gimple-fold.c (gimple_fold_call): Call target hook
5250         gimple_fold_builtin.
5251         * hooks.c (hook_bool_gsiptr_false): New.
5252         * hooks.h (hook_bool_gsiptr_false): New.
5253         * target.def (fold_stmt): New.
5254         * doc/tm.texi: Regenerate.
5256 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
5258         PR target/57018
5259         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5260         a set sp if no stack realignment.
5262 2013-04-22  Nick Clifton  <nickc@redhat.com>
5264         * config.gcc (tilegx-linux): Extend extra_objs rather than
5265         overwriting it.
5266         (tilepro-linux): Likewise.
5268 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5270         * config/aarch64/aarch64-builtins.c
5271         (CF): Remove.
5272         (CF0, CF1, CF2, CF3, CF4, CF10): New.
5273         (VAR<1-12>): Add MAP parameter.
5274         (BUILTIN_*): Likewise.
5275         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5276         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5277         (aarch64_ushl_n<mode>): Likewise.
5278         (aarch64_sshr_n<mode>): Likewise.
5279         (aarch64_ushr_n<mode>): Likewise.
5280         (aarch64_<maxmin><mode>): Likewise.
5281         (aarch64_sqrt<mode>): Likewise.
5282         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5283         (vshr<q>_n_*): Likewise.
5285 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
5287         * config/aarch64/aarch64-builtins.c
5288         (aarch64_simd_builtin_type_mode): Handle SF types.
5289         (sf_UP): Define.
5290         (BUILTIN_GPF): Define.
5291         (aarch64_init_simd_builtins): Handle SF types.
5292         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5293         (frecps): Likewise.
5294         (frecpx): Likewise.
5295         * config/aarch64/aarch64-simd.md
5296         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5297         (aarch64_frecpe<mode>): New.
5298         (aarch64_frecps<mode>): Likewise.
5299         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5300         (v8type): Add frecp<esx>.
5301         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5302         (aarch64_frecps<mode>): Likewise.
5303         * config/aarch64/iterators.md (FRECP): New.
5304         (frecp_suffix): Likewise.
5305         * config/aarch64/arm_neon.h
5306         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5308 2013-04-22  Christian Bruel  <christian.bruel@st.com>
5310         PR target/56995
5311         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5312         (REG_CLASS_NAMES): Idem.
5313         (REG_CLASS_CONTENTS): Idem.
5314         (REGCLASS_HAS_FP_REG): Idem.
5315         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5316         (sh_conditional_register_usage): Idem.
5318 2013-04-21  Jeff Law  <law@redhat.com>
5320         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5321         (ssa_forward_propagate_and_combine): Use it.
5323 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5325         * lra.c: Update the flow chart diagram.
5327 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5329         PR rtl-optimization/56847
5330         * lra-constraints.c (process_alt_operands): Discourage alternative
5331         with non-matche doffsettable memory constraint fro memory with
5332         known offset.
5334 2013-04-19  Richard Biener  <rguenther@suse.de>
5336         PR tree-optimization/56982
5337         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5338         function.
5339         * gimplify.c (gimplify_call_expr): Notice special calls.
5340         (gimplify_modify_expr): Likewise.
5341         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5342         abnormal control flow receivers.
5343         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5344         in the same way as cfun->has_nonlocal_labels.
5345         (gimple_purge_dead_abnormal_call_edges): Likewise.
5346         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5347         receivers start a basic-block.
5349 2013-04-19  Richard Biener  <rguenther@suse.de>
5351         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5352         member ...
5353         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
5354         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5355         (SLP_TREE_LOAD_PERMUTATION): Add.
5356         (vect_transform_slp_perm_load): Adjust prototype.
5357         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5358         (vect_free_slp_instance): Likewise.
5359         (vect_create_new_slp_node): Likewise.
5360         (vect_supported_slp_permutation_p): Remove.
5361         (vect_slp_rearrange_stmts): Adjust.
5362         (vect_supported_load_permutation_p): Likewise.  Inline
5363         vect_supported_slp_permutation_p here.
5364         (vect_analyze_slp_instance): Compute load permutations per
5365         slp node instead of per instance.
5366         (vect_get_slp_defs): Adjust.
5367         (vect_transform_slp_perm_load): Likewise.
5368         (vect_schedule_slp_instance): Remove redundant code.
5369         (vect_schedule_slp): Remove hack for PR56270, add it ...
5370         * tree-vect-stmts.c (vectorizable_load): ... here, do not
5371         CSE loads for SLP.  Adjust.
5373 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5375         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5376         spelling in two comments.
5378 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
5380         PR target/56797
5381         * config/arm/arm.c (load_multiple_sequence): Require SP
5382         as base register for loads if SP is in the register list.
5384 2013-04-19  Martin Jambor  <mjambor@suse.cz>
5386         PR tree-optimization/56718
5387         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5388         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5389         and made public.  Adjusted all callers.
5390         (ipa_intraprocedural_devirtualization): New function.
5391         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5392         (ipa_intraprocedural_devirtualization): Likewise.
5393         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5395 2013-04-19  Richard Biener  <rguenther@suse.de>
5397         PR tree-optimization/57000
5398         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5400 2013-04-19  Terry Guo  <terry.guo@arm.com>
5402         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5403         Replace with ...
5404         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
5405         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5406         (cortex_m4_fmacs): Use new reservations.
5407         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5409 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5411         PR rtl-optimization/56999
5412         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5413         related code.
5414         (lra_coalesce): Remove split_origin_bitmap and related code.
5415         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
5416         ranges if necessary.
5418 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
5420         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5421         New array.
5422         (ix86_expand_call): Remove clobbered_registers array and use
5423         x86_64_ms_sysv_extra_clobbered_registers instead.
5424         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5425         Declare here.
5426         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5427         predicate.
5428         * config/i386/i386.md (*call_rex64_ms_sysv): Use
5429         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
5430         (*call_value_rex64_ms_sysv): Ditto.
5432 2013-04-18  Cary Coutant  <ccoutant@google.com>
5434         * dwarf2out.c (output_pubnames): Check die_perennial_p of
5435         parent instead of die_mark.
5437 2013-04-18  Diego Novillo  <dnovillo@google.com>
5439         * gimple.c (create_gimple_tmp): New.
5440         (get_expr_type): New.
5441         (build_assign): New.
5442         (build_type_cast): New.
5443         * gimple.h (enum ssa_mode): Define.
5444         (gimple_seq_set_location): New.
5445         * asan.c (build_check_stmt): Change some gimple_build_* calls
5446         to use build_assign and build_type_cast.
5448 2013-04-18  Richard Biener  <rguenther@suse.de>
5450         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5451         handle negative step.  Remove redundant checks.
5452         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5453         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5454         for negative step and grouped loads fail to vectorize.
5456 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5458         * emit-rtl.c (reset_insn_used_flags): New function.
5459         (reset_all_used_flags): Use it.
5460         (verify_insn_sharing): New function.
5461         (verify_rtl_sharing): Fix verification for SEQUENCEs.
5463 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
5465         PR tree-optimization/56984
5466         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5467         and (x >> M) >= N don't register any assertion if N << M is the
5468         minimum value.
5470 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
5472         * lower-subreg.c (resolve_simple_move): If called self-recursive,
5473         do not delete_insn insns that have not yet been emitted, only
5474         unlink them with remove_insn.
5475         * df-scan.c (df_insn_delete): Revert r197492.
5477 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
5479         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5480         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5482 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5484         * config/arm/arm.md (movsicc_insn): Convert define_insn into
5485         define_insn_and_split.
5486         (and_scc,ior_scc,negscc): Likewise.
5487         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5489 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
5491         * config/arm/arm.c (use_return_insn): Return 0 for targets that
5492         can benefit from using a sequence of LDRD instructions in epilogue
5493         instead of a single LDM instruction.
5495 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5497         PR 45688
5498         * doc/extend.texi: Fix typo.
5500 2013-04-17  Richard Biener  <rguenther@suse.de>
5502         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5503         (vect_build_slp_tree): ... here.
5504         (vect_build_slp_tree_1): Compute which stmts of the SLP group
5505         match.  Remove special-casing of mismatched complex loads.
5506         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5507         re-try the match with swapped commutative operands.
5508         (vect_supported_load_permutation_p): Remove special-casing of
5509         mismatched complex loads.
5510         (vect_analyze_slp_instance): Adjust.
5512 2013-04-17  Richard Biener  <rguenther@suse.de>
5514         PR rtl-optimization/56921
5515         * cfgloop.h (struct loop): Add simple_loop_desc member.
5516         (struct niter_desc): Mark with GTY(()).
5517         (simple_loop_desc): Do not use aux field but simple_loop_desc.
5518         * loop-iv.c (get_simple_loop_desc): Likewise.
5519         (free_simple_loop_desc): Likewise.
5521         Revert
5522         2013-04-16  Richard Biener  <rguenther@suse.de>
5524         PR rtl-optimization/56921
5525         * loop-init.c (pass_rtl_move_loop_invariants): Add
5526         TODO_do_not_ggc_collect to todo_flags_finish.
5527         (pass_rtl_unswitch): Same.
5528         (pass_rtl_unroll_and_peel_loops): Same.
5529         (pass_rtl_doloop): Same.
5531 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5533         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5534         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5535         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5536         references.
5537         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5538         * tree-streamer.c (record_common_node): Adjust reference in comment.
5540 2013-04-17  Terry Guo  <terry.guo@arm.com>
5542         * config/arm/cortex-m4.md: Add a new bypass.
5544 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5546         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5547         New pattern.
5548         (*subs_<optab><mode>_multp2): New pattern.
5549         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5550         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5552 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5554         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5555         (*subs_mul_imm_<mode>): New pattern.
5557 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
5559         PR target/56948
5560         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5561         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
5562         (vsx_movti_32bit): Change j->wa to O->wa.
5564 2013-04-16  Richard Biener  <rguenther@suse.de>
5566         PR rtl-optimization/56921
5567         * loop-init.c (pass_rtl_move_loop_invariants): Add
5568         TODO_do_not_ggc_collect to todo_flags_finish.
5569         (pass_rtl_unswitch): Same.
5570         (pass_rtl_unroll_and_peel_loops): Same.
5571         (pass_rtl_doloop): Same.
5573 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
5575         * config/arm/arm.c (emit_multi_reg_push): New declaration
5576         for an existing function.
5577         (arm_emit_strd_push): New function.
5578         (arm_expand_prologue): Used here.
5579         (arm_emit_ldrd_pop): New function.
5580         (arm_expand_epilogue): Used here.
5581         (arm_get_frame_offsets): Update condition.
5582         (arm_emit_multi_reg_pop): Add a special case for load of a single
5583         register with writeback.
5585 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
5587         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5588         description.
5590 2013-04-16  Richard Biener  <rguenther@suse.de>
5592         PR tree-optimization/56756
5593         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5594         (first_mem_ref_loc): New.
5595         (execute_sm): Place the load temporarily before a previous
5596         access instead of in the latch edge to ensure its SSA dependencies
5597         are defined at points dominating the load.
5599 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
5601         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5602         correct fix by moving header and footer insn to the footer of
5603         the merged basic block.  Clear BB_END of the merged-away block.
5605         PR middle-end/43631
5606         * emit-rtl.c (make_note_raw): New function.
5607         (link_insn_into_chain): New static inline function.
5608         (add_insn): Use it.
5609         (add_insn_before, add_insn_after): Factor insn chain linking code...
5610         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5611         using link_insn_into_chain.
5612         (note_outside_basic_block_p): New helper function for emit_note_after
5613         and emit_note_before.
5614         (emit_note_after): Use nobb variant of add_insn_after if the note
5615         should not be contained in a basic block.
5616         (emit_note_before): Use nobb variant of add_insn_before if the note
5617         should not be contained in a basic block.
5618         (emit_note_copy): Use make_note_raw.
5619         (emit_note): Likewise.
5620         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
5621         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
5622         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
5623         the moved barrier the tail of the basic block it follows.
5624         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
5626 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
5628         PR tree-optimization/56962
5629         * gimple-ssa-strength-reduction.c (record_increment): Only set
5630         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5631         either rhs1 or rhs2 is equal to c->base_expr.
5633 2013-04-15  Richard Biener  <rguenther@suse.de>
5635         PR tree-optimization/56933
5636         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5637         member.
5638         (GROUP_READ_WRITE_DEPENDENCE): Remove.
5639         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5640         * tree-vect-data-refs.c (vect_analyze_group_access): Move
5641         dependence check ...
5642         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5643         ... here.
5644         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5645         GROUP_READ_WRITE_DEPENDENCE.
5647 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5649         * emit-rtl.c (reset_all_used_flags): New function.
5650         (verify_rtl_sharing): Call reset_all_used_flags before and after
5651         performing the checks.
5653 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5655         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5656         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5657         * config/arm/constraints.md (De): New constraint.
5658         * config/arm/neon.md (anddi3_neon): Delete.
5659         (neon_vand<mode>): Expand to standard anddi3 pattern.
5660         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5661         Move earlier in the file.
5662         (neon_inv_logic_op2): Likewise.
5663         (arm_anddi_operand_neon): New predicate.
5665 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5667         * configure.ac (gcc_cv_ld_as_needed): Set
5668         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5669         Use -z ignore, -z record on *-*-solaris2*.
5670         (HAVE_LD_AS_NEEDED): Update comment.
5671         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5672         * configure: Regenerate.
5673         * config.in: Regenerate.
5674         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5675         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5676         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5677         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5678         equivalents.  Fix markup.
5679         * doc/tm.texi: Regenerate.
5681 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
5683         * config/i386/i386.opt: New option mstack-protector-guard=.
5684         * config/i386/i386-opts.h: Add enum stack_protector_guard.
5685         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5686         TARGET_SSP_TLS_GUARD.
5687         * config/i386/i386.c (ix86_option_override_internal): Set
5688         ix86_stack_protector_guard.
5689         * config/i386/i386.md (stack_protect_set): Enable for
5690         TARGET_SSP_TLS_GUARD only.
5691         (stack_protect_set_<mode>): Ditto.
5692         (stack_protect_test): Ditto.
5693         (stack_protect_test_<mode>): Ditto.
5694         * doc/invoke.texi (i386 Option): Document.
5696 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5698         PR target/56890
5699         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5700         (S_MODES): Set H_MODE bit.
5701         (SF_MODES): Set only S_MODE and SF_MODE bits.
5702         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5703         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5704         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5705         <MODE_FLOAT>: Likewise.
5707 2013-04-15  Joey Ye  <joey.ye@arm.com>
5709         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5711 2013-04-15  Joey Ye  <joey.ye@arm.com>
5713         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5714         for real far jump.
5715         (thumb_far_jump_used_p): Count instruction size and set
5716         far_jump_used.
5718 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
5720         * reorg.c (fill_simple_delay_slots): Reindent block of code.
5721         * resource.c (mark_target_live_regs): Reformat conditional block.
5723 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
5725         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5726         notes, they are emitted only just before final.
5727         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5729 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
5731         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5732         * cfgrtl.c (delete_insn): Call it here instead.
5733         * lra-spills.c (lra_final_code_change): Use delete_insn.
5734         * haifa-sched.c (sched_remove_insn): Likewise.
5735         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5736         returning to the nop pool.
5737         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5738         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
5740 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
5742         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5743         * doc/tm.texi: Regenerated.
5745 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
5747         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5748         QImode checks.
5750 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
5752         * df-core.c (df_find_def): Compare register numbers.
5753         (df_find_use): Likewise.
5755 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
5757         PR target/56903
5758         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5759         lra_in_progress for return.
5761 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
5763         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5764         define_insn into define_insn_and_split and emit movsicc patterns.
5766 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
5768         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5770 2013-04-12  Richard Biener  <rguenther@suse.de>
5772         * tree-pass.h (TODO_do_not_ggc_collect): New.
5773         * passes.c (execute_one_ipa_transform_pass): Honor
5774         TODO_do_not_ggc_collect.
5775         (execute_one_pass): Likewise.
5777         Revert
5778         2013-04-10  Richard Biener  <rguenther@suse.de>
5780         * passes.c (init_optimization_passes): Remove reload pass.
5781         * ira.c (do_reload): Merge into ...
5782         (ira): ... this.
5783         (rest_of_handle_reload): Remove.
5784         (pass_reload): Likewise.
5785         * config/i386/i386.c (ix86_option_override): Refer to ira instead
5786         of reload for vzeroupper pass placement.
5788 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
5790         PR tree-optimization/56918
5791         PR tree-optimization/56920
5792         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5793         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
5794         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
5795         use wide_mul_with_sign method.
5797 2013-04-12  Richard Biener  <rguenther@suse.de>
5799         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5800         not be considered a gimple constant.
5802 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
5804         * fold-const.c (const_binop): Handle vector shifts by a scalar.
5805         (fold_binary_loc): Call const_binop also for mixed vector-scalar
5806         operations.
5808 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5809             Jakub Jelinek  <jakub@redhat.com>
5811         * opts.c: Include diagnostic-color.h.
5812         (common_handle_option): Handle OPT_fdiagnostics_color_.
5813         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5814         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5815         (diagnostic-color.o): New.
5816         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5817         (diagnostic_color_rule): New enum.
5818         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5819         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5820         the location string.
5821         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5822         either NULL, or color kind.
5823         * diagnostic-color.c: New file.
5824         * diagnostic-color.h: New file.
5825         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5826         arguments.
5827         * doc/invoke.texi (-fdiagnostics-color): Document.
5828         * pretty-print.h (pp_show_color): Define.
5829         (struct pretty_print_info): Add show_color field.
5830         * diagnostic.c: Include diagnostic-color.h.
5831         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5832         macros.  Colorize error:, warning: etc. strings and also the location
5833         string.
5834         (diagnostic_show_locus): Colorize the caret line.
5835         * pretty-print.c: Include diagnostic-color.h.
5836         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
5837         inside of %< %> quotes or quoted through q format modifier.
5839 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5841         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5843 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5845         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5846         code in CC_NZ mode.
5847         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5848         pattern.
5850 2013-04-11  Marek Polacek  <polacek@redhat.com>
5852         PR tree-optimization/48184
5853         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5855 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5857         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5858         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5859         (skip_simple_arithmetic): Tidy up.
5860         * tree.h (skip_simple_constant_arithmetic): Declare.
5862 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5864         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5866 2013-04-11  Richard Biener  <rguenther@suse.de>
5868         * tree-vect-loop.c (get_initial_def_for_induction): Properly
5869         generate vector constants.
5871 2013-04-11  Richard Biener  <rguenther@suse.de>
5873         PR tree-optimization/56878
5874         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5875         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5876         New function.
5877         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5878         Prefer to align the DR with the most invariant base address.
5880 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5882         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5883         comment.
5885 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
5887         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5888         floating-point vector comparisons against 0.
5890 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
5892         PR tree-optimization/56899
5893         * fold-const.c (extract_muldiv_1): Apply distributive law
5894         only if TYPE_OVERFLOW_WRAPS (ctype).
5896 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
5898         PR target/56124
5899         * ira-costs.c (scan_one_insn): Check whether the source rtx of
5900         loading has side effect.
5902 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
5904         * config/sparc/sparc.c: Include tree-pass.h.
5905         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5906         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
5907         head of file.  Change return type.  Split off gate function.
5908         (sparc_gate_work_around_errata): New function.
5909         (pass_work_around_errata): New pass definition.
5910         (insert_pass_work_around_errata) New pass insert definition to
5911         insert pass_work_around_errata just after delayed-branch scheduling.
5912         (sparc_option_override): Insert the pass.
5913         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5915 2013-04-10  David S. Miller  <davem@davemloft.net>
5917         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5918         or -mcpu=hypersparc.
5920         * target.def (cstore_mode): New hook.
5921         * target.h: Include insn-codes.h
5922         * targhooks.c: Likewise.
5923         (default_cstore_mode): New function.
5924         * targhooks.h: Declare it.
5925         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5926         * doc/tm.texi: Rebuild.
5927         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5928         target hook, rather than inspecting the insn_data.
5929         * config/sparc/sparc.c (sparc_cstore_mode): New function.
5930         (TARGET_CSTORE_MODE): Redefine.
5931         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5932         result patterns.
5933         * config/sparc/predicates.md (cstore_result_operand): New special
5934         predicate.
5935         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5936         Use it for operand 0.
5937         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5938         (*snesi_special): Likewise.
5939         (*snesi_zero): Likewise.
5940         (*seqsi_zero): Likewise.
5941         (*sltu_insn): Likewise.
5942         (*sgeu_insn): Likewise.
5943         (*seqdi_special): Make operand 0 and comparison operation be of
5944         DImode.
5945         (*snedi_special): Likewise.
5946         (*snedi_special_vis3): Likewise.
5947         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5948         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5949         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5950         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5951         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5952         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5953         (*sltu_extend_sp64): Likewise.
5954         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5955         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5956         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5957         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5958         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5960 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
5962         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5963         (aarch64_start_file): Use the new function.
5965 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5966             Jason Merrill  <jason@redhat.com>
5968         * common.opt: Add -gdwarf.
5969         * opts.c (common_handle_option): Handle it.
5970         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5972 2013-04-10  Richard Biener  <rguenther@suse.de>
5974         * passes.c (execute_todo): Do not call ggc_collect conditional here.
5975         (execute_one_ipa_transform_pass): But unconditionally here.
5976         (execute_one_pass): And here.
5977         (init_optimization_passes): Remove reload pass.
5978         * tree-pass.h (TODO_ggc_collect): Remove.
5979         (pass_reload): Likewise.
5980         * ira.c (do_reload): Merge into ...
5981         (ira): ... this.
5982         (rest_of_handle_reload): Remove.
5983         (pass_reload): Likewise.
5984         * config/i386/i386.c (ix86_option_override): Refer to ira instead
5985         of reload for vzeroupper pass placement.
5986         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5987         and todo_flags_finish of all passes.
5989 2013-04-10  Richard Biener  <rguenther@suse.de>
5991         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5992         first_const_oprnd field, rename first_def_type to first_op_type.
5993         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5994         (vect_get_and_check_slp_defs): Always use the type of the
5995         operand.  Allow mixed vect_external_def, vect_constant_def types.
5996         (vect_get_constant_vectors): Handle mixed vect_external_def,
5997         vect_constant_def types.
5999 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6001         PR tree-optimization/55524
6002         * tree-ssa-math-opts.c
6003         (convert_mult_to_fma): Don't use an fms construct
6004         when we don't have an fms operation, but fnma, and it looks
6005         likely that we'll be able to use the latter.
6007 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6009         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6010         function.
6011         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6012         inline fail caused by overwritable functions.
6014 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6016         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6017         unnecessary bits in the constant power of two case.
6019 2013-04-10  Richard Biener  <rguenther@suse.de>
6021         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6022         broken code swapping operands.
6023         (vect_build_slp_tree): Do not compute load permutations here.
6024         (vect_analyze_slp_instance): Compute load permutations here,
6025         after building the SLP tree.
6027 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6029         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6030         of next/prev_real_insn.
6032 2013-04-09  Jan Hubicka  <jh@suse.cz>
6034         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6035         Drop aliased parameter.
6036         (function_and_variable_visibility): Do not handle alias pairs.
6037         * cgraph.c (varpool_externally_visible_p): Update prototype.
6038         * varpool.c (varpool_add_new_variable): Update.
6040 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6042         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6044 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6046         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6048         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6050 2013-04-09  Marek Polacek  <polacek@redhat.com>
6052         PR tree-optimization/48762
6053         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6055 2013-04-09  Richard Biener  <rguenther@suse.de>
6057         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6058         dealing with cost.
6059         (vect_build_slp_tree): Likewise.
6060         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6061         calculating the cost of a SLP instance.
6062         (vect_analyze_slp_instance): Use it from here, after building
6063         the SLP tree.
6065 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6067         PR middle-end/56883
6068         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6069         expand_omp_for_static_chunk): Use simple_p = true in
6070         force_gimple_operand_gsi calls when assigning to addressable decls.
6072 2013-04-09  Jeff Law  <law@redhat.com>
6074         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6075         when the boolean was created by converting a wider object which
6076         had a boolean range.
6078 2013-04-09  Richard Biener  <rguenther@suse.de>
6080         * tree-vectorizer.h (slp_void_p): Remove.
6081         (slp_tree): Typedef before _slp_tree declaration.
6082         (struct _slp_tree): Use a vector of slp_tree as children.
6083         (vect_get_place_in_interleaving_chain): Remove.
6084         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6085         Move ...
6086         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6087         and make static.
6088         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6089         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6090         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6091         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6092         Use slp_node instead of slp_void_p and adjust.
6094 2013-04-09  Richard Biener  <rguenther@suse.de>
6096         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6097         work that is not necessary.
6099 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6101         PR tree-optimization/56854
6102         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6103         forward into clobber stmts if it would change MEM_REF lhs into
6104         non-MEM_REF.
6106 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
6108         * tree.c (type_hash_lookup, type_hash_add): Make static.
6109         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6111 2013-04-09  Richard Biener  <rguenther@suse.de>
6113         * tree.h (unsave_expr_now): Remove.
6114         * tree-inline.c (mark_local_for_remap_r): Remove.
6115         (unsave_expr_1): Likewise.
6116         (unsave_r): Likewise.
6117         (unsave_expr_now): Likewise.
6118         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6119         (propagate_tree_value): Likewise.
6121 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6123         * doc/rtl.texi (sequence): Rewrite documentation to match the
6124         current use of SEQUENCE rtl objects.
6125         * rtl.def (SEQUENCE): Likewise.
6127         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6128         Update documentation.
6129         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6130         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6132         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6134 2013-04-08  Teresa Johnson  <tejohnson@google.com>
6136         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6137         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6138         methods.
6139         (estimate_edge_size_and_time): Add comment to suggest using rounding
6140         methods.
6141         (estimate_node_size_and_time): Ditto.
6142         (remap_edge_change_prob): Use helper rounding divide methods.
6143         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6144         (gimple_mod_pow2_value_transform): Ditto.
6145         (gimple_mod_subtract_transform): Ditto.
6146         (gimple_ic_transform): Ditto.
6147         (gimple_stringops_transform): Ditto.
6148         * stmt.c (conditional_probability): Ditto.
6149         (emit_case_dispatch_table): Ditto.
6150         * lto-cgraph.c (merge_profile_summaries): Ditto.
6151         * tree-optimize.c (execute_fixup_cfg): Ditto.
6152         * cfgcleanup.c (try_forward_edges): Ditto.
6153         * cfgloopmanip.c (scale_loop_profile): Ditto.
6154         (loopify): Ditto.
6155         (duplicate_loop_to_header_edge): Ditto.
6156         (lv_adjust_loop_entry_edge): Ditto.
6157         * tree-vect-loop.c (vect_transform_loop): Ditto.
6158         * profile.c (compute_branch_probabilities): Ditto.
6159         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6160         * lto-streamer-in.c (input_cfg): Ditto.
6161         * gimple-streamer-in.c (input_bb): Ditto.
6162         * ipa-cp.c (update_profiling_info): Ditto.
6163         (update_specialized_profile): Ditto.
6164         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6165         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6166         rounding methods.
6167         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6168         (compute_trg_info): Ditto.
6169         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6170         (purge_dead_edges): Ditto.
6171         * loop-unswitch.c (unswitch_loop): Ditto.
6172         * cgraphclones.c (cgraph_clone_edge): Ditto.
6173         (cgraph_clone_node): Ditto.
6174         * tree-inline.c (copy_bb): Ditto.
6175         (copy_edges_for_bb): Ditto.
6176         (initialize_cfun): Ditto.
6177         (copy_cfg_body): Ditto.
6178         (expand_call_inline): Ditto.
6180 2013-04-08  Kai Tietz  <ktietz@redhat.com>
6182         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6183         TARGET_CYGWIN64 by TARGET_64BIT.
6185 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6187         * config/epiphany/epiphany.md (GPR_1): New constant.
6188         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6189         * config/epiphany/epiphany.c (gen_compare_reg):
6190         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6191         is already in place.
6192         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6193         Don't require being called during rtl expansion; If y operlaps r0,
6194         return 0.
6195         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6196         (epiphany_expand_epilogue): Likewise.
6198         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6199         Don't use CC_FPmode for ORDERED / UNORDERED.
6200         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6202         * config/epiphany/constraints.md (CnL): New constraint.
6203         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6204         * config/epiphany/predicates.md (add_operand): Allow 1024.
6206         * config/epiphany/epiphany.md (logical_op): New code iterator.
6207         (op_mnc): New code attribute.
6208         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6209         (mov_f+1, mov_f+2): New peephole2 patterns.
6211         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6212         (cstoresi4): Also allow re-use of zero result when doing a NE
6213         comparison to a non-zero operand.
6214         Use (clobber (scratch)) for first insn if the gpr output is not needed.
6216         * config/epiphany/epiphany.md (<insn_opname>v2si3):
6217         Use gen_addsi3_i / gen_subsi3_i.
6219 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6221         PR c++/34949
6222         PR c++/50243
6223         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6224         contain anything but clobbers, at most one __builtin_stack_restore,
6225         optionally debug stmts and final resx, and if it has at least one
6226         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
6227         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6228         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6229         which isn't defaut definition, remove them.
6230         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6231         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6232         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6233         with MEM_REF LHS with SSA_NAME address.
6235 2013-04-08  Jeff Law  <law@redhat.com>
6237         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6239 2013-04-08  Richard Biener  <rguenther@suse.de>
6241         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6242         extra newline.
6243         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6244         determined vector type.
6245         (vect_analyze_data_refs): Likewise.
6246         (vect_get_new_vect_var): Adjust.
6247         (vect_create_destination_var): Preserve SSA name versions.
6248         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6249         not dump anything here.
6251 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6253         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6254         Add member lr_slot_known.
6255         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6256         if necessary.
6257         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6258         Remove code that sets lr_slot_offset according to what a previous
6259         version of epiphany_emit_save_restore used to do.
6260         (epiphany_emit_save_restore): When doing an lr save or restore,
6261         set/verify lr_slot_known and lr_slot_offset.
6263 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
6265         PR target/54338
6266         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6267         in ALL_REGS.
6269 2013-04-08  Richard Biener  <rguenther@suse.de>
6271         * alias.c (find_base_term): Fix thinko in previous change.
6273 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
6275         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6276         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6277         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
6278         if possible to compute val.
6279         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6280         For QImode integers don't require anything about precision.  Use
6281         const_with_all_bytes_same to find out if the constant doesn't have
6282         repeated bytes in it.
6284 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6286         * config/s390/s390.c (s390_expand_insv): Only accept insertions
6287         within mode size.
6289 2013-04-08  Marek Polacek  <polacek@redhat.com>
6291         PR rtl-optimization/48182
6292         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6293         value to 1.
6295 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6297         PR target/55487
6298         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6299         nuses, make sure we have a label.
6301 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6303         PR target/56843
6304         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6305         (rs6000_emit_swdiv_low_precision): Remove.
6306         (rs6000_emit_swdiv): Rewrite to handle between one and four
6307         iterations of Newton-Raphson generally; modify required number of
6308         iterations for some cases.
6309         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6311 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6313         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6314         set-but-unused variable.
6316         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6317         basic blocks of released function bodies garbage-collectable.
6319         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6320         (struct rtl_opt_pass): Add TODO_df_finish.
6322         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6324 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6326         * config/arm/constraints.md (q): New constraint.
6327         * config/arm/ldrdstrd.md: New file.
6328         * config/arm/arm.md (ldrdstrd.md) New include.
6329         (arm_movdi): Use "q" instead of "r" constraint
6330         for double-word memory access.
6331         (movdf_soft_insn): Likewise.
6332         * config/arm/vfp.md (movdi_vfp): Likewise.
6333         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6334         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6335         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6336         (mem_ok_for_ldrd_strd): Likewise.
6337         (output_move_double): Update assertion.
6339 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6341         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6343 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6345         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6346         define_insn_and_split.
6347         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6349 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6351         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6352         define_insn_and_split.
6353         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6354         (shiftsi3_compare): New pattern.
6355         (rrx): New pattern.
6356         * config/arm/unspecs.md (UNSPEC_RRX): New.
6358 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6360         * config/arm/arm.md (negdi_extendsidi): New pattern.
6361         (negdi_zero_extendsidi): Likewise.
6363 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6365         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6366         define_insn_and_split.
6367         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6368         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6370 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6372         * config/arm/arm.md (arm_subdi3): Convert define_insn into
6373         define_insn_and_split.
6374         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6375         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6377 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6379         * config/arm/arm.md (subsi3_carryin): New pattern.
6380         (subsi3_carryin_const): Likewise.
6381         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6382         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6384 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6386         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6388 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6390         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6391         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6393 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6395         * config/arm/arm.c (arm_expand_builtin): Change fcode
6396         type to unsigned int.
6398 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6400         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6402 2013-04-04  Ian Lance Taylor  <iant@google.com>
6404         * doc/standards.texi (Standards): The Go frontend supports the Go 1
6405         language standard.
6407 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6409         PR middle-end/56729
6410         * df-scan.c (df_insn_delete): Disable failing assert.
6412 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6414         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6415         New function prototype.
6416         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6417         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6418         (arm_builtin_vectorized_function): New function.
6420 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6422         * config/arm/arm_neon_builtins.def: New file.
6423         * config/arm/arm.c (neon_builtin_data): Move contents to
6424         arm_neon_builtins.def.
6425         (enum arm_builtins): Include neon builtin definitions.
6426         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6427         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6429 2013-04-04  Marek Polacek  <polacek@redhat.com>
6431         PR tree-optimization/48186
6432         * predict.c (maybe_hot_frequency_p): Return false if
6433         HOT_BB_FREQUENCY_FRACTION is 0.
6434         (cgraph_maybe_hot_edge_p): Likewise.
6436 2013-04-04  Richard Biener  <rguenther@suse.de>
6438         PR tree-optimization/56826
6439         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6440         more accurately.
6442 2013-04-04  Richard Biener  <rguenther@suse.de>
6444         PR tree-optimization/56213
6445         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6446         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6448 2013-04-04  Richard Biener  <rguenther@suse.de>
6450         PR tree-optimization/56837
6451         * tree-loop-distribution.c (classify_partition): For non-zero
6452         values require that the value has the same precision as its
6453         mode to be useful as memset value.
6455 2013-04-03  Nick Clifton  <nickc@redhat.com>
6457         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6458         (fmssf4): Use fmsf.s on E3V5 architectures.
6459         (fnmasf4): Use fnmaf.s on E3V5 architectures.
6460         (fnmssf4): Use fnmsf.s on E3V5 architectures.
6462 2013-04-03  Jeff Law  <law@redhat.com>
6464         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6465         (lra-eliminations.o): Likewise.
6467 2013-04-03  Teresa Johnson  <tejohnson@google.com>
6469         * gcov-io.c (compute_working_sets): Moved most of body of old
6470         compute_working_sets here from profile.c.
6471         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6472         (gcov_working_set_t): Moved typedef here from basic-block.h
6473         (compute_working_set): Declare.
6474         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6475         (get_working_sets): Renamed from compute_working_set,
6476         replace most of body with call to new compute_working_sets.
6477         (get_exec_counts): Replace call to compute_working_sets
6478         to get_working_sets.
6479         * profile.h (get_working_sets): Renamed from compute_working_set.
6480         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6481         to get_working_sets.
6482         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6483         * gcov-dump.c (dump_working_sets): New function.
6485 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
6487         * hwint.c (sext_hwi, zext_hwi): New functions.
6488         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6489         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6490         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6491         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6492         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6493         (sext_hwi, zext_hwi): New functions.
6495 2013-04-03  Jeff Law  <law@redhat.com>
6497         PR tree-optimization/56799
6498         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6499         back test for widening conversion erroneously dropped in prior change.
6501 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6503         PR target/56809
6504         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6505         instead of next_real_insn.
6507 2013-04-03  Marek Polacek  <polacek@redhat.com>
6509         PR sanitizer/55702
6510         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6512 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6514         PR target/56809
6515         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6516         next_real_insn.
6517         (thumb1_output_casesi): Likewise.
6518         (thumb2_output_casesi): Likewise.
6520 2013-04-03  Richard Biener  <rguenther@suse.de>
6522         PR tree-optimization/56817
6523         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6524         Split out ...
6525         (tree_unroll_loops_completely_1): ... new function to manually
6526         walk the loop tree, properly defering outer loops of unrolled
6527         loops to later iterations.
6529 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6531         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6532         (vectorizable_load): Likewise.
6533         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6534         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6536 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6538         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6539         BIT_FIELD_REF.
6541 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6543         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6545 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
6547         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6549 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6551         PR tree-optimization/56790
6552         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6553         folding.
6555 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
6557         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6558         Handle VEC_MERGE.
6559         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6560         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6561         equal arguments.
6563 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
6565         PR c/19449
6566         * tree.h (force_folding_builtin_constant_p): New decl.
6567         * builtins.c (force_folding_builtin_constant_p): New variable.
6568         (fold_builtin_constant_p): Fold immediately also if
6569         force_folding_builtin_constant_p.
6571 2013-04-03  Richard Biener  <rguenther@suse.de>
6573         PR tree-optimization/56812
6574         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6575         DRs of the same interleaving chain are independent.
6577 2013-04-02  Jason Merrill  <jason@redhat.com>
6579         * gdbinit.in (pbb): Use debug fn.
6581 2013-04-02  Lawrence Crowl  <crowl@google.com>
6583         * sese.h (struct ivtype_map_elt_s): Remove unused.
6584         (extern debug_ivtype_map): Remove unused.
6585         (extern eq_ivtype_map_elts): Remove unused.
6586         * sese.c (debug_ivtype_map): Removed unused.
6587         (debug_ivtype_map_1): Removed unused.
6588         (debug_ivtype_elt): Remove unused.
6589         (eq_ivtype_map_elts): Remove unused.
6592 2013-04-02  Kai Tietz  <ktietz@redhat.com>
6594         PR target/52790
6595         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6596         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
6597         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6598         function.
6599         (legitimize_pe_coff_symbol): Likewise.
6600         (is_imported_p): New helper-function.
6601         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6602         for Windows x64 targets.
6603         (ix86_expand_prologue): Optimize for pe-coff targets.
6604         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6605         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6606         medium/large code-model.
6607         (legitimize_pic_address): Likewise.
6608         (legitimize_tls_address): Likewise.
6609         (ix86_expand_call): Likewise.
6610         (x86_output_mi_thunk): Likewise.
6611         (get_dllimport_decl): Add new beimport argument.
6612         (construct_plt_address): Don't assert for x64 pe-coff targets.
6613         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6614         targets.
6615         (SYMBOL_FLAG_STUBVAR): New macro.
6616         (SYMBOL_REF_STUBVAR_P): Likewise.
6617         * config/i386/winnt.c (stub_list): New structure.
6618         (stub_head): New local variable.
6619         (i386_pe_record_stub): New function.
6620         (i386_pe_file_end): Emit refptr-stubs.
6622 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
6624         PR rtl-optimization/56745
6625         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
6626         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
6628         PR c++/34949
6629         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6630         and both of them are MEM_REFs, just compare first argument for
6631         equality and attempt to deal even with differing offsets.
6633         PR c++/34949
6634         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6635         of gimple_clobber_p to be MEM_REF.
6636         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6637         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
6638         after gimplification.
6639         * asan.c (get_mem_ref_of_assignment): Don't instrument
6640         gimple_clobber_p stmts.
6641         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6642         gimple_clobber_p stmt if they have MEM_REF lhs and
6643         are dead because of another gimple_clobber_p stmt.
6644         * tree-ssa-live.c (clear_unused_block_pointer): Treat
6645         gimple_clobber_p stmts like debug stmts.
6646         (remove_unused_locals): Remove clobbers with MEM_REF lhs
6647         that refer to unused VAR_DECLs or uninitialized values.
6648         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6649         gimple_clobber_p stmts if they refer to removed parameters.
6650         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6651         formatting.
6653 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
6655         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6656         using SWI48 mode attribute.
6658 2013-04-02  Wei Mi  <wmi@google.com>
6660         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6661         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6662         *<rotate_insn><mode>3_mask in i386.md.
6664 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6666         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6668 2013-04-02  Richard Biener  <rguenther@suse.de>
6670         PR tree-optimization/56778
6671         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6672         Runtime alias tests are not supported for gather loads.
6673         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6674         stmts referenced from SSA operands before updating SSA form.
6676 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
6677             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6679         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
6680         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6681         * config/arm/cortex-a53.md: New file.
6682         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6683         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6684         * config/arm/arm.c (arm_issue_rate): Likewise.
6685         * config/arm/arm-tune.md: Regenerate
6686         * config/arm/arm-tables.opt: Regenerate.
6687         * config/arm/arm-cores.def: Add cortex-a53.
6689 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6691         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6692         non-static link.
6694 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
6696         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6697         scalar load/store operations using B/H registers.
6698         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6700 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
6702         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6703         scalar move.
6704         * config/aarch64/aarch64.c
6705         (aarch64_simd_scalar_immediate_valid_for_move): New.
6706         * config/aarch64/aarch64-protos.h
6707         (aarch64_simd_scalar_immediate_valid_for_move): New.
6708         * config/aarch64/constraints.md (Dh, Dq): New.
6709         * config/aarch64/iterators.md (hq): New.
6711 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6713         * reorg.c (get_branch_condition): Deal with conditional returns.
6714         (fill_simple_delay_slots): Remove dead code dealing with jumps.
6716 2013-04-01  Wei Mi  <wmi@google.com>
6718         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6719         Truncate operand 2 using %b asm operand modifier.
6720         (*<shift_insn><mode>3_mask): Ditto.
6721         (*<rotate_insn><mode>3_mask): Ditto.
6723 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
6725         PR middle-end/56798
6726         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6728 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6730         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6731         of next_real_insn.
6732         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6734 2013-03-30  Lawrence Crowl  <crowl@google.com>
6736         * dse.c (clear_alias_sets): Remove never set.
6737         (disqualified_clear_alias_sets): Remove never set.
6738         (clear_alias_mode_pool): Remove never set.
6739         (dse_step0): Remove condition that is never true.
6740         (canon_address): Remove condition that is never true.
6741         (dse_step7): Remove condition that is never true.
6742         (rest_of_handle_dse): Remove condition that is never true.
6743         (rest_of_handle_dse::did_global): Remove never read from above.
6744         (dse_step2_spill): Remove never called from above.
6745         (dse_step5_spill): Remove never called from above.
6747 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
6749         * doc/md.texi (Standard Names) <casesi>: Update documentation for
6750         JUMP_TABLE_DATA changes.
6751         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6752         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6753         (Insns) <jump_table_data>: New entry.
6754         * doc/tm.texi: Regenerate.
6756         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6758         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6759         for table jump at the end of a basic block using tablejump_p.
6760         * targhooks.c (default_invalid_within_doloop): Likewise.
6761         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6762         target hook implementation that is identical to the default hook.
6763         (rs6000_invalid_within_doloop): Remove.
6765         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6766         unused variable from tablejump_p call.
6768         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6769         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6770         (INSN_DELETED_P): Likewise.
6771         (emit_jump_table_data): New prototype.
6772         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6773         after 4th as unused.
6774         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6775         * sched-vis.c (print_insn): Likewise.
6776         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6777         insn for compatibility with back ends that use next_active_insn to
6778         identify jump table data.
6779         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6780         (remove_insn): Likewise.
6781         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6782         to be emitted.
6783         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6784         (emit_jump_table_data): New function.
6786         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6787         basic block, a JUMP_TABLE_DATA never is.
6788         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6789         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6790         off from code handling real insns.
6791         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6792         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6793         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6794         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6795         is not a NONDEBUG_INSN_P.
6796         * ira-costs.c (scan_one_insn): Likewise.
6797         * jump.c (mark_all_labels): Likewise.
6798         (mark_jump_label_1): Likewise.
6799         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6800         * lra.c (get_insn_freq): Expect all insns reaching here to be in
6801         a basic block.
6802         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6803         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6804         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6805         JUMP_TABLE_DATA_P insns.
6806         (calculate_elim_costs_all_insns): Likewise.
6807         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6808         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6809         (delete_output_reload): Code style fixups.
6810         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6811         insn flags on this non-insn.
6812         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6813         as scheduling barriers, for pre-change compatibility.
6814         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6815         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6817         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6818         redundant JUMP_TABLE_DATA_P test.
6819         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6820         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6821         (frv_for_each_packet): Likewise.
6822         * config/i386/i386.c (min_insn_size): Likewise.
6823         (ix86_avoid_jump_mispredicts): Likewise.
6824         * config/m32r/m32r.c (m32r_is_insn): Likewise.
6825         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6826         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6827         (mips16_insn_length): Robustify.
6828         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6829         (mips16_split_long_branches): Likewise.
6830         * config/pa/pa.c (pa_combine_instructions): Likewise.
6831         * config/rs6000/rs6000.c (get_next_active_insn): Treat
6832         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6833         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6834         as contributing to pool range lengths.
6835         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6836         Remove redundant JUMP_TABLE_DATA_P test.
6837         (sh_loop_align): Likewise.
6838         (split_branches): Likewise.
6839         (sh_insn_length_adjustment): Likewise.
6840         * config/spu/spu.c (get_branch_target): Likewise.
6842 2013-03-29  Jan Hubicka  <jh@suse.cz>
6844         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6845         gcov streaming; stream hot bb threshold to ltrans.
6846         * predict.c (get_hot_bb_threshold): Break out from ....
6847         (maybe_hot_count_p): ... here.
6848         (set_hot_bb_threshold): New function.
6849         * lto-section-in.c (lto_section_name): Add profile.
6850         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6851         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6852         and data-streamer.h
6853         (histogram_entry): New structure.
6854         (histogram, histogram_pool): New global vars.
6855         (histogram_hash): New structure.
6856         (histogram_hash::hash): New method.
6857         (histogram_hash::equal): Likewise.
6858         (account_time_size): New function.
6859         (cmp_counts): New function.
6860         (dump_histogram): New function.
6861         (ipa_profile_generate_summary): New function.
6862         (ipa_profile_write_summary): New function.
6863         (ipa_profile_read_summary): New function.
6864         (ipa_profile): Decide on threshold.
6865         (pass_ipa_profile): Add ipa_profile_write_summary and
6866         ipa_profile_read_summary.
6867         * Makefile.in (ipa.o): Update dependencies.
6868         * lto-streamer.h (LTO_section_ipa_profile): New section.
6870 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6872         * tree.h (VAR_P): New.
6874 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
6876         PR lto/56777
6877         * doc/invoke.texi ([-fwhole-program]): Fix typo.
6879 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
6881         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6882         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6883         (control_flow_insn_p): Likewise.
6884         * cfgrtl.c (duplicate_insn_chain): Likewise.
6885         * final.c (get_attr_length_1): Likewise.
6886         (shorten_branches): Likewise.
6887         (final_scan_insn): Likewise.
6888         * function.c (instantiate_virtual_regs): Likewise.
6889         * gcse.c (insert_insn_end_basic_block): Likewise.
6890         * ira-costs.c (scan_one_insn): Likewise.
6891         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6892         * lra.c (check_rtl): Likewise.
6893         * reload1.c (elimination_costs_in_insn): Likewise.
6894         * reorg.c (follow_jumps): Likewise.
6896         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6897         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6898         (thumb_far_jump_used_p): Likewise.
6899         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6900         (workaround_speculation): Likewise.
6901         (add_sched_insns_for_speculation): Likewise.
6902         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6903         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6904         (frv_for_each_packet): Likewise.
6905         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6906         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6907         (final_emit_insn_group_barriers): Likewise.
6908         * config/m32r/m32r.c (m32r_is_insn): Likewise.
6909         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6910         (mips16_insn_length): Likewise.
6911         * config/pa/pa.c (pa_reorg): Likewise.
6912         (pa_combine_instructions): Likewise.
6913         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6914         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6915         (sh_reorg): Likewise.
6916         (split_branches): Likewise.
6917         * config/spu/spu.c (get_branch_target): Likewise.
6919         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6920         JUMP_TABLE_DATA_P.
6922 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
6924         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6925         Fix declaration name.
6927 2013-03-28  Lawrence Crowl  <crowl@google.com>
6929         * graphds.h (struct graph.indicies): Remove unused.
6930         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6931         (SCOP_ORIGINAL_PDDRS): Remove unused.
6932         * sese.h (extern insert_loop_close_phis): Removed unused.
6933         (extern insert_guard_phis): Removed unused.
6934         (extern ivtype_map_elt_info): Removed unused.
6935         (new_ivtype_map_elt): Removed unused.
6936         * sese.c (ivtype_map_elt_info): Removed unused.
6938 2013-03-28  Lawrence Crowl  <crowl@google.com>
6940         * Makefile.in: Add several missing include dependences.
6941         (DUMPFILE_H): New.
6942         (test-dump.o): New.  This object is not added to any executable,
6943         but is present for ad-hoc testing.
6944         * bitmap.c
6945         (debug (const bitmap_head_def &)): New.
6946         (debug (const bitmap_head_def *)): New.
6947         * bitmap.h
6948         (extern debug (const bitmap_head_def &)): New.
6949         (extern debug (const bitmap_head_def *)): New.
6950         * cfg.c
6951         (debug (edge_def &)): New.
6952         (debug (edge_def *)): New.
6953         * cfghooks.c
6954         (debug (basic_block_def &)): New.
6955         (debug (basic_block_def *)): New.
6956         * dumpfile.h
6957         (dump_node (const_tree, int, FILE *)): Correct source file.
6958         * dwarf2out.c
6959         (debug (die_struct &)): New.
6960         (debug (die_struct *)): New.
6961         * dwarf2out.h
6962         (extern debug (die_struct &)): New.
6963         (extern debug (die_struct *)): New.
6964         * gimple-pretty-print.c
6965         (debug (gimple_statement_d &)): New.
6966         (debug (gimple_statement_d *)): New.
6967         * gimple-pretty-print.h
6968         (extern debug (gimple_statement_d &)): New.
6969         (extern debug (gimple_statement_d *)): New.
6970         * ira-build.c
6971         (debug (ira_allocno_copy &)): New.
6972         (debug (ira_allocno_copy *)): New.
6973         (debug (ira_allocno &)): New.
6974         (debug (ira_allocno *)): New.
6975         * ira-int.h
6976         (extern debug (ira_allocno_copy &)): New.
6977         (extern debug (ira_allocno_copy *)): New.
6978         (extern debug (ira_allocno &)): New.
6979         (extern debug (ira_allocno *)): New.
6980         * ira-lives.c
6981         (debug (live_range &)): New.
6982         (debug (live_range *)): New.
6983         * lra-int.h
6984         (debug (lra_live_range &)): New.
6985         (debug (lra_live_range *)): New.
6986         * lra-lives.c
6987         (debug (lra_live_range &)): New.
6988         (debug (lra_live_range *)): New.
6989         * omega.c
6990         (debug (omega_pb_d &)): New.
6991         (debug (omega_pb_d *)): New.
6992         * omega.h
6993         (extern debug (omega_pb_d &)): New.
6994         (extern debug (omega_pb_d *)): New.
6995         * print-rtl.c
6996         (debug (const rtx_def &)): New.
6997         (debug (const rtx_def *)): New.
6998         * print-tree.c
6999         (debug_tree (tree): Move within file.
7000         (debug_raw (const tree_node &)): New.
7001         (debug_raw (const tree_node *)): New.
7002         (dump_tree_via_hooks (const tree_node *, int)): New.
7003         (debug (const tree_node &)): New.
7004         (debug (const tree_node *)): New.
7005         (debug_verbose (const tree_node &)): New.
7006         (debug_verbose (const tree_node *)): New.
7007         (debug_head (const tree_node &)): New.
7008         (debug_head (const tree_node *)): New.
7009         (debug_body (const tree_node &)): New.
7010         (debug_body (const tree_node *)): New.
7011         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7012         (debug (vec<tree, va_gc> &)): New.
7013         (debug (vec<tree, va_gc> *)): New.
7014         * rtl.h
7015         (extern debug (const rtx_def &)): New.
7016         (extern debug (const rtx_def *)): New.
7017         * sbitmap.c
7018         (debug_raw (simple_bitmap_def &)): New.
7019         (debug_raw (simple_bitmap_def *)): New.
7020         (debug (simple_bitmap_def &)): New.
7021         (debug (simple_bitmap_def *)): New.
7022         * sbitmap.h
7023         (extern debug (simple_bitmap_def &)): New.
7024         (extern debug (simple_bitmap_def *)): New.
7025         (extern debug_raw (simple_bitmap_def &)): New.
7026         (extern debug_raw (simple_bitmap_def *)): New.
7027         * sel-sched-dump.c
7028         (debug (vinsn_def &)): New.
7029         (debug (vinsn_def *)): New.
7030         (debug_verbose (vinsn_def &)): New.
7031         (debug_verbose (vinsn_def *)): New.
7032         (debug (expr_def &)): New.
7033         (debug (expr_def *)): New.
7034         (debug_verbose (expr_def &)): New.
7035         (debug_verbose (expr_def *)): New.
7036         (debug (vec<rtx> &)): New.
7037         (debug (vec<rtx> *)): New.
7038         * sel-sched-dump.h
7039         (extern debug (vinsn_def &)): New.
7040         (extern debug (vinsn_def *)): New.
7041         (extern debug_verbose (vinsn_def &)): New.
7042         (extern debug_verbose (vinsn_def *)): New.
7043         (extern debug (expr_def &)): New.
7044         (extern debug (expr_def *)): New.
7045         (extern debug_verbose (expr_def &)): New.
7046         (extern debug_verbose (expr_def *)): New.
7047         (extern debug (vec<rtx> &)): New.
7048         (extern debug (vec<rtx> *)): New.
7049         * sel-sched-ir.h
7050         (_list_iter_cond_expr): Make inline instead of static.
7051         * sreal.c
7052         (debug (sreal &)): New.
7053         (debug (sreal *)): New.
7054         * sreal.h
7055         (extern debug (sreal &)): New.
7056         (extern debug (sreal *)): New.
7057         * tree.h
7058         (extern debug_raw (const tree_node &)): New.
7059         (extern debug_raw (const tree_node *)): New.
7060         (extern debug (const tree_node &)): New.
7061         (extern debug (const tree_node *)): New.
7062         (extern debug_verbose (const tree_node &)): New.
7063         (extern debug_verbose (const tree_node *)): New.
7064         (extern debug_head (const tree_node &)): New.
7065         (extern debug_head (const tree_node *)): New.
7066         (extern debug_body (const tree_node &)): New.
7067         (extern debug_body (const tree_node *)): New.
7068         (extern debug (vec<tree, va_gc> &)): New.
7069         (extern debug (vec<tree, va_gc> *)): New.
7070         * tree-cfg.c
7071         (debug (struct loop &)): New.
7072         (debug (struct loop *)): New.
7073         (debug_verbose (struct loop &)): New.
7074         (debug_verbose (struct loop *)): New.
7075         * tree-dump.c: Add header dependence.
7076         * tree-flow.h
7077         (extern debug (struct loop &)): New.
7078         (extern debug (struct loop *)): New.
7079         (extern debug_verbose (struct loop &)): New.
7080         (extern debug_verbose (struct loop *)): New.
7081         * tree-data-ref.c
7082         (debug (data_reference &)): New.
7083         (debug (data_reference *)): New.
7084         (debug (vec<data_reference_p> &)): New.
7085         (debug (vec<data_reference_p> *)): New.
7086         (debug (vec<ddr_p> &)): New.
7087         (debug (vec<ddr_p> *)): New.
7088         * tree-data-ref.h
7089         (extern debug (data_reference &)): New.
7090         (extern debug (data_reference *)): New.
7091         (extern debug (vec<data_reference_p> &)): New.
7092         (extern debug (vec<data_reference_p> *)): New.
7093         (extern debug (vec<ddr_p> &)): New.
7094         (extern debug (vec<ddr_p> *)): New.
7095         * tree-ssa-alias.c
7096         (debug (pt_solution &)): New.
7097         (debug (pt_solution *)): New.
7098         * tree-ssa-alias.h
7099         (extern debug (pt_solution &)): New.
7100         (extern debug (pt_solution *)): New.
7101         * tree-ssa-alias.c
7102         (debug (_var_map &)): New.
7103         (debug (_var_map *)): New.
7104         (debug (tree_live_info_d &)): New.
7105         (debug (tree_live_info_d *)): New.
7106         * tree-ssa-alias.h
7107         (extern debug (_var_map &)): New.
7108         (extern debug (_var_map *)): New.
7109         (extern debug (tree_live_info_d &)): New.
7110         (extern debug (tree_live_info_d *)): New.
7112 2013-03-28  Jan Hubicka  <jh@suse.cz>
7114         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7116 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
7118         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7119         record only when desired or required.
7121 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
7123         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7124         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
7126 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7128         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7129         (*andsi3_compare0_uxtw): New pattern.
7130         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7131         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7133 2013-03-28  Jan Hubicka  <jh@suse.cz>
7135         * data-streamer-in.c (streamer_read_gcov_count): New function.
7136         * gimple-streamer-out.c: Include value-prof.h.
7137         (output_gimple_stmt): Output histogram.
7138         (output_bb): Use streamer_write_gcov_count.
7139         * value-prof.c: Include data-streamer.h
7140         (dump_histogram_value): Add HIST_TYPE_MAX.
7141         (stream_out_histogram_value): New function.
7142         (stream_in_histogram_value): New function.
7143         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7144         (stream_out_histogram_value, stream_in_histogram_value): Declare.
7145         * data-streamer-out.c (streamer_write_gcov_count): New function.
7146         (streamer_write_gcov_count_stream): New function.
7147         * lto-cgraph.c (lto_output_edge): Update counter streaming.
7148         (lto_output_node): Likewise.
7149         (input_node, input_edge): Likewise.
7150         * lto-streamer-out.c (output_cfg): Update streaming.
7151         * lto-streamer-in.c (input_cfg): Likewise.
7152         * data-streamer.h (streamer_write_gcov_count,
7153         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7154         * gimple-streamer-in.c: Include value-prof.h
7155         (input_gimple_stmt): Input histograms.
7156         (input_bb): Update profile streaming.
7158 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7160         * genmodes.c (emit_max_int): New function.
7161         (emit_insn_modes_h): Added call to emit_max_function.
7162         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7163         Added doc.
7164         * machmode.def: Fixed comment.
7166 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
7168         * combine.c (try_combine): Removed useless assert.
7169         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7171 2013-03-28  Marek Polacek  <polacek@redhat.com>
7172             Richard Biener  <rguenther@suse.de>
7174         PR tree-optimization/56695
7175         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7176         build signed result of a vector comparison.
7177         * tree-cfg.c (verify_gimple_comparison): Check that a result
7178         of a vector comparison has signed type.
7180 2013-03-28  Richard Biener  <rguenther@suse.de>
7182         PR tree-optimization/37021
7183         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7184         do not restrict gaps between groups.
7185         * tree-vect-stmts.c (vectorizable_load): Properly account for
7186         a gap between groups.
7188 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7190         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7191         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7192         is not enabled.
7194 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
7196         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7197         * doc/extend.texi (Named Address Spaces): Ditto.
7198         (Variable Attributes): Ditto.
7200 2013-03-27  Kai Tietz  <ktietz@redhat.com>
7202         * config.build: Add support for cygwin x64 target.
7203         * config.gcc: Likewise.
7204         * config.host: Likewise.
7205         * configure.ac: Likewise
7206         * configure: Regenerated.
7208 2013-03-27 Kai Tietz  <ktietz@redhat.com>
7210         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7211         * config/i386/t-cygwin-w64: New file.
7212         * config/i386/cygwin-w64.h: New file.
7213         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7214         and add support for x64-cygwin target.
7215         (CPP_SPEC): Likewise.
7216         (CXX_WRAP_SPEC_LIST): Undefine before define.
7217         (LIBGCJ_SONAME): Use 15 as version.
7219 2013-03-27  Richard Biener  <rguenther@suse.de>
7221         PR tree-optimization/56716
7222         * tree-ssa-structalias.c (perform_var_substitution): Adjust
7223         dumping for ref nodes.
7225 2013-03-27  Martin Jambor  <mjambor@suse.cz>
7227         PR tree-optimization/55334
7228         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7229         restricted pointers to arrays.
7231 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7233         * Makefile.in (.SUFFIXES): Add .cc.
7234         (.c.o): Apply same recipe for implicit rule .cc.o.
7236 2013-03-27  Richard Biener  <rguenther@suse.de>
7238         PR tree-optimization/37021
7239         * tree-vect-data-refs.c (vect_check_strided_load): Allow
7240         REALPART/IMAGPART_EXPRs around the supported refs.
7241         * tree-ssa-structalias.c (find_func_aliases): Assume that
7242         floating-point values are not used to transfer pointers.
7244 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7246         * target.def (TARGET_HAS_IFUNC_P): New target hook.
7247         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7248         * doc/tm.texi: Regenerate.
7249         * targhooks.h (default_has_ifunc_p): New.
7250         * targhooks.c (default_has_ifunc_p): Ditto.
7251         * config/linux-protos.h: New file.
7252         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7253         this hook for linux which disables support of indirect functions in
7254         android.
7255         * config/linux-android.c: New file.
7256         * config/t-linux-android.c: Ditto.
7257         * config.gcc: Added new object file linux-android.o.
7258         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7259         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7260         * varasm.c (do_assemble_alias): Likewise.
7261         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7262         doesn't support indirect functions.
7263         * configure: Regenerate.
7265 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
7267         PR target/56102
7268         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7269         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7270         mult-word mode.
7272 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7274         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7276 2013-03-27  Terry Guo  <terry.guo@arm.com>
7278         * config/arm/arm-cores.def: Added core cortex-r7.
7279         * config/arm/arm-tune.md: Regenerated.
7280         * config/arm/arm-tables.opt: Regenerated.
7281         * doc/invoke.texi: Added entry for core cortex-r7.
7283 2013-03-27  Walter Lee  <walt@tilera.com>
7285         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7286         double-decrement of next_scratch_regno.
7288 2013-03-27  Walter Lee  <walt@tilera.com>
7290         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7291         input operands.
7292         (insn_v1mulus): Ditto.
7293         (insn_v2muls): Ditto.
7295 2013-03-27  Walter Lee  <walt@tilera.com>
7297         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7298         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7300 2013-03-27  Walter Lee  <walt@tilera.com>
7302         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7303         (*sibcall_value): Ditto.
7305 2013-03-27  Walter Lee  <walt@tilera.com>
7307         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7308         (insn_mnz_v8qi): ... this ...
7309         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
7310         vector equivalent.
7311         (insn_v<n>mnz): Replaced by ...
7312         (insn_v1mnz): ... this ...
7313         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
7314         equivalent.
7315         (insn_mz_<mode>): Replaced by ...
7316         (insn_mz_v8qi): ... this ...
7317         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
7318         vector equivalent.
7319         (insn_v<n>mz): Replaced by ...
7320         (insn_v1mz): ... this ...
7321         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
7322         equivalent.
7324 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7326         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7328 2013-03-26  Roland McGrath  <mcgrathr@google.com>
7330         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7331         than fprintf with a non-constant, non-format string.
7333 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7335         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7336         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
7337         operand 0 predicate.
7338         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7339         attribute.  Use general_x64nomem_operand as operand 1 predicate.
7340         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7341         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7342         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7343         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
7344         (mov<mode>_insv_1): Remove expander.  Merge insn with
7345         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7346         Use general_x64nomem_operand as operand 1 predicate.
7347         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7348         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7349         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7350         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7351         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
7352         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7353         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
7354         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7355         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
7356         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7357         (general_x64nomem_operand): Ditto.
7359 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7361         * config/rtems.opt: Add -pthread option.
7363 2013-03-26  Richard Biener  <rguenther@suse.de>
7365         * alias.c (find_base_term): Avoid redundant and not used recursion.
7366         (base_alias_check): Get the initial base term from the caller.
7367         (true_dependence_1): Compute and pass base terms to base_alias_check.
7368         (write_dependence_p): Likewise.
7369         (may_alias_p): Likewise.
7371 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
7373         * config/aarch64/aarch64.c (aarch64_classify_address): Support
7374         PC-relative load in SI modes and above only.
7376 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
7378         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7379         * config/arm/iwmmxt.md (WCGR0): Update.
7380         (WCGR1, WCGR2, WCGR3): Likewise.
7382 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
7384         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7385         Use x64 and nox64 isa attributes.
7387 2013-03-26  Richard Biener  <rguenther@suse.de>
7389         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7390         alignment computations and rely on get_object_alignment_1
7391         for the !TYPE_P case.
7392         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7394 2013-03-26  Walter Lee  <walt@tilera.com>
7396         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7397         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7399 2013-03-25  Jeff Law  <law@redhat.com>
7401         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7402         check for INTEGRAL_TYPE_P that was missing due to checking in
7403         wrong version of prior patch.
7405 2013-03-25  Walter Lee  <walt@tilera.com>
7407         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7408         TILEGX_INSN_SHUFFLEBYTES1.
7409         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7410         shufflebytes1.
7411         (tilegx_builtins): Ditto.
7412         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7414 2013-03-25  Walter Lee  <walt@tilera.com>
7416         * config/tilegx/tilegx.md (floatsisf2): New pattern.
7417         (floatunssisf2): New pattern.
7418         (floatsidf2): New pattern.
7419         (floatunssidf2): New pattern.
7421 2013-03-25  Walter Lee  <walt@tilera.com>
7423         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7424         tests for constraint J, K, N, P.
7426 2013-03-25  Walter Lee  <walt@tilera.com>
7428         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7429         Use indirect/pcrel encoding.
7430         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7431         Ditto.
7433 2013-03-25  Steve Ellcey  <sellcey@mips.com>
7435         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7436         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7437         * config/mips/mips.c (mips_option_override): Set IMADD default.
7438         * config/mips/mips.h (PTF_AVOID_IMADD): New.
7439         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7440         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7441         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7442         * doc/invoke.texi (-mimadd/-mno-imadd): New.
7444 2013-03-25  Jeff Law  <law@redhat.com>
7446         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7447         slightly to avoid creating and folding useless trees.  Simplify
7448         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7450 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
7452         * config/i386/i386.md (*zero_extendsidi2): Merge with
7453         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
7454         * config/i386/predicates.md (x86_64_zext_operand): Rename from
7455         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
7456         targets.  Clarify comment.
7458 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7460         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7461         pass-through jump functions differently.
7462         (ipa_read_jump_function): Likewise.  Also use setter functions to set
7463         up jump functions.
7465 2013-03-25  Martin Jambor  <mjambor@suse.cz>
7467         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7468         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7469         process it.
7470         (ipa_get_indirect_edge_target): New function.
7471         (devirtualization_time_bonus): New parameter known_aggs, pass it to
7472         ipa_get_indirect_edge_target.  Update all callers.
7473         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
7474         ipa_get_indirect_edge_target_1 instead of calling
7475         ipa_get_indirect_edge_target.
7476         (create_specialized_node): Pass aggvlas to
7477         ipcp_discover_new_direct_edges.
7479 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7481         * config/arm/arm.md (f_sels, f_seld): New types.
7482         (*cmov<mode>): New pattern.
7483         * config/arm/predicates.md (arm_vsel_comparison_operator): New
7484         predicate.
7486 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7488         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7489         POSIX-printf for mingw-hosted  builds.
7491 2013-03-25  Richard Biener  <rguenther@suse.de>
7493         PR middle-end/56694
7494         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7495         must-not-throw stmt location.
7497 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7499         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7500         Emit load-acquire versions when acq is true.
7501         (arm_emit_store_exclusive): Add rel parameter.
7502         Emit store-release versions when rel is true.
7503         (arm_split_compare_and_swap): Use acquire-release instructions
7504         instead.
7505         of barriers when appropriate.
7506         (arm_split_atomic_op): Likewise.
7507         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7508         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7509         (VUNSPEC_SLX): Likewise.
7510         (VUNSPEC_LDA): Likewise.
7511         (VUNSPEC_STL): Likewise.
7512         * config/arm/sync.md (atomic_load<mode>): New pattern.
7513         (atomic_store<mode>): Likewise.
7514         (arm_load_acquire_exclusive<mode>): Likewise.
7515         (arm_load_acquire_exclusivesi): Likewise.
7516         (arm_load_acquire_exclusivedi): Likewise.
7517         (arm_store_release_exclusive<mode>): Likewise.
7519 2013-03-25  Catherine Moore  <clm@codesourcery.com>
7521         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7522         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7523         * config/mip/predicates.md (lwsp_swsp_operand,
7524         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7525         sb16_operand, db4_operand, db7_operand, ib3_operand,
7526         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7527         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7528         andi16_operand): New predicates.
7529         * config/mips/mips.md (compression): New attribute.
7530         (enabled): New attribute.
7531         (length): Consider compression in computing length.
7532         (shift_compression): New code attribute.
7533         (*add<mode>3): New operands. Record compression.
7534         (sub<mode>3): Likewise.
7535         (one_cmpl<mode>2): Likewise.
7536         (*and<mode>3): Likewise.
7537         (*ior<mode>3): Likewise.
7538         (unnamed pattern for xor): Likewise.
7539         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7540         (*<optab><mode>3): Likewise.
7541         (*mov<mode>_internal: Likewise.
7542         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7543         (mips_unsigned_immediate_p): New.
7544         (umips_lwsp_swsp_address_p): New.
7545         (m16_based_address_p): New.
7546         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7547         (mips_unsigned_immediate_p): New prototype.
7548         (lwsp_swsp_address_p): New prototype.
7549         (m16_based_address_p): New prototype.
7550         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7551         (mips_signed_immediate_p): New function.
7552         (m16_based_address_p): New function.
7553         (lwsp_swsp_address_p): New function.
7554         (mips_print_operand_punctuation): Recognize short delay slot insns
7555         for microMIPS.add<mode>3"
7557 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7559         PR target/56720
7560         * config/arm/iterators.md (v_cmp_result): New mode attribute.
7561         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7563 2013-03-25  Richard Biener  <rguenther@suse.de>
7565         PR tree-optimization/56689
7566         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7567         any edge.
7569 2013-03-25  Richard Biener  <rguenther@suse.de>
7571         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7572         of bitmap.
7573         (memory_references): Likewise.
7574         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7575         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7576         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7577         (gather_mem_refs_in_loops): Fold into ...
7578         (analyze_memory_references): ... this.  Move initialization
7579         to tree_ssa_lim_initialize.
7580         (fill_always_executed_in): Rename to ...
7581         (fill_always_executed_in_1): ... this.
7582         (fill_always_executed_in): Move contains_call computation to
7583         this new function from ...
7584         (tree_ssa_lim_initialize): ... here.
7585         (tree_ssa_lim): Call fill_always_executed_in.
7587 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7589         * postreload.c (reload_combine): Fix code detecting returns.
7591 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
7593         * function.c (emit_use_return_register_into_block): On cc0 targets,
7594         do not emit the sequence between cc0 setter and user.
7596 2013-03-25  Kai Tietz  <ktietz@redhat.com>
7598         * config/i386/predicates.md (local_symbolic_operand): Interpret
7599         dll-imported symbols as none-local.
7601 2013-03-25  Richard Biener  <rguenther@suse.de>
7603         * tree-ssa-loop-im.c (struct depend): Remove.
7604         (struct lim_aux_data): Make depends a vec of gimples.
7605         (free_lim_aux_data): Adjust.
7606         (add_dependency): Likewise.
7607         (set_level): Likewise.
7609 2013-03-25  Richard Biener  <rguenther@suse.de>
7611         PR middle-end/56434
7612         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7613         the pointer returned by calls with ECF_MALLOC set.
7615 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
7617         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7619 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
7621         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
7622         using MMXMODE mode iterator.
7623         (*move<mode>_internal): Merge with *movv2sf_internal and
7624         *movv2sf_internal_rex64 using MMXMODE mode iterator.
7626 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
7628         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
7629         (record_last_mem_set_info): Likewise.
7631         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7632         of XNEWVEC followed by memset.
7633         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7635 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
7637         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7638         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7639         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7640         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7641         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7642         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7643         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7644         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7645         BARRIER_P instead of GET_CODE.
7647 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
7649         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7650         inaccuracy in the probing code.
7652         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7653         (ctrapdi4): Likewise.
7655 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
7657         * calls.c (expand_call): Add missing guard to code handling return
7658         of non-BLKmode structures in MSB.
7659         * function.c (expand_function_end): Likewise.
7661 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
7663         * combine.c (try_combine): Adjust comment.  Do not add the set of
7664         insn #0 if the destination indirectly is set or dies in insn #2.
7665         Tidy up code to distribute a new note.
7667 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
7669         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7670         also for alternatives 16 and 17.
7672 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
7674         * config/i386/sse.md (*mov<mode>_internal): Merge with
7675         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
7676         Emit insn template depending on type attribute.  Use
7677         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7678         movd instead of movq mnemonic for interunit moves.  Rewrite mode
7679         attribute calculation.  Remove unit attribute calculation.
7680         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7681         Set prefix_data16 attribute for DImode ssemov types.
7682         Use Ym instead of y for SSE-MMX conversion alternatives.
7683         Reorder operand constraints.
7685 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
7687         * df.h (df_insn_delete): Adjust prototype.
7688         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7689         and let it decide whether mark the basic block dirty.
7690         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7691         * df-scan.c (df_insn_info_delete): New helper function, split
7692         off from df_insn_delete.
7693         (df_scan_free_bb_info): Use it.
7694         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7695         Likewise.
7696         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
7697         that the insn is actually an insn and it has a non-NULL basic block.
7698         Do not mark basic block dirty if only deleting a DEBUG_INSN.
7700 2013-03-22  Richard Biener  <rguenther@suse.de>
7702         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7703         dep_ref members.
7704         (mem_ref_alloc): Do not allocate them.
7705         (refs_independent_p): Do not query or maintain a cache.
7707 2013-03-22  Richard Biener  <rguenther@suse.de>
7709         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7710         (gather_mem_refs_in_loops): Do not compute it.
7711         (analyze_memory_references): Do not allocate it.
7712         (tree_ssa_lim_finalize): Do not free it.
7713         (for_all_locs_in_loop): Do not query all_refs_in_loop.
7715 2013-03-22  Richard Biener  <rguenther@suse.de>
7717         * is-a.h (as_a): Use gcc_checking_assert.
7719 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
7721         * config/aarch64/aarch64.c (aarch64_print_operand): New
7722         format specifier for printing a constant in hex.
7723         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7724         format specifier for printing second operand.
7726 2013-03-22  Richard Biener  <rguenther@suse.de>
7728         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7729         bitmaps.
7730         (gather_mem_refs_in_loops): Perform store accumulation here.
7731         (create_vop_ref_mapping_loop): Remove.
7732         (create_vop_ref_mapping): Likewise.
7733         (analyze_memory_references): Initialize refs_stored_in_loop.
7734         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
7735         (record_indep_loop): Remove.
7736         (record_dep_loop): New function.
7737         (ref_indep_loop_p_1): Adjust to only walk over references
7738         in the loop, not its subloops.
7739         (ref_indep_loop_p): Rename to ...
7740         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7741         maintaining a more fine-grained cache.
7742         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7743         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7745 2013-03-22  Richard Biener  <rguenther@suse.de>
7747         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7748         (struct mem_ref): Make accesses_in_loop a vec of a vec of
7749         aggregate mem_ref_loc.
7750         (free_mem_ref_locs): Inline into ...
7751         (memref_free): ... this and adjust.
7752         (mem_ref_alloc): Adjust.
7753         (mem_ref_locs_alloc): Remove.
7754         (record_mem_ref_loc): Adjust.
7755         (get_all_locs_in_loop): Rewrite into ...
7756         (for_all_locs_in_loop): ... this iterator.
7757         (rewrite_mem_ref_loc): New functor.
7758         (rewrite_mem_refs): Use for_all_locs_in_loop.
7759         (sm_set_flag_if_changed): New functor.
7760         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7761         (ref_always_accessed): New functor.
7762         (ref_always_accessed_p): Use for_all_locs_in_loop.
7764 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
7766         * tree-pass.h (PROP_gimple_lvec): New.
7767         * passes.c (dump_properties): Handle PROP_gimple_lvec.
7768         (init_optimization_passes): Move pass_lower_vector.
7769         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7770         PROP_gimple_lvec.
7771         (pass_lower_vector): Provide PROP_gimple_lvec.
7772         (pass_lower_vector_ssa): Likewise.
7773         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7775 2013-03-21  Mark Wielaard  <mjw@redhat.com>
7777         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7779 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
7781         * config/i386/i386.md (*movdi_internal): Disparage slightly
7782         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
7783         conversion alternatives.
7785 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
7787         PR middle-end/48087
7788         * diagnostic.def (DK_WERROR): New kind.
7789         * diagnostic.h (werrorcount): Define.
7790         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7791         promoted to DK_ERROR, increment DK_WERROR counter instead of
7792         DK_ERROR counter.
7793         * toplev.c (toplev_main): Call print_ignored_options even if
7794         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
7795         even if just werrorcount is non-zero.
7797         PR debug/55608
7798         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7799         on failure.
7800         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7801         (string_cst_pool_decl): New function.
7802         (optimize_one_addr_into_implicit_ptr): New function.
7803         (resolve_addr_in_expr): Optimize DWARF location expression
7804         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7805         which doesn't live in memory, but has DW_AT_location or
7806         DW_AT_const_value, or refers to a string literal, into
7807         DW_OP_GNU_implicit_pointer.
7808         (optimize_location_into_implicit_ptr): New function.
7809         (resolve_addr): If removing DW_AT_location of a variable because
7810         it was DW_OP_addr of address of the variable, but the variable doesn't
7811         live in memory, try to emit const value attribute for the initializer.
7813 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
7815         * tree.h (VECTOR_TYPE_P): New macro.
7816         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7817         TYPE_MODE): Use it.
7818         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7819         VEC_COND_EXPR cannot be lvalues.
7820         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7822 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
7824         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7825         Restrict the transformation to equal modes.
7827 2013-03-21  Richard Biener  <rguenther@suse.de>
7829         PR tree-optimization/39326
7830         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7831         (MEM_ANALYZABLE): Adjust.
7832         (record_mem_ref_loc): Move bitmap ops ...
7833         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
7834         unanalyzable refs, do not record locations for it.
7835         (analyze_memory_references): Allocate ref zero as shared
7836         unanalyzable ref.
7837         (refs_independent_p): Do not test for unanalyzed mems here.
7838         (ref_indep_loop_p_1): Special-case disambiguation against
7839         the unanalyzed ref.
7840         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7842 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
7844         * config/arm/arm-protos.h (tune_params): Add
7845         prefer_neon_for_64bits field.
7846         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7847         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7848         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7849         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7850         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7851         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7852         (arm_option_override): Handle -mneon-for-64bits new option.
7853         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7854         (prefer_neon_for_64bits): Declare new variable.
7855         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7856         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7857         (arch_enabled): Handle new arch types. Remove support for onlya8
7858         and nota8.
7859         (one_cmpldi2): Use new arch names.
7860         (zero_extend<mode>di2, extend<mode>di2): Ditto.
7861         * config/arm/arm.opt (mneon-for-64bits): Add option.
7862         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7863         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7864         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7865         of onlya8.
7866         * doc/invoke.texi (-mneon-for-64bits): Document.
7868 2013-03-21  Richard Biener  <rguenther@suse.de>
7870         PR tree-optimization/39326
7871         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7872         (sort_bbs_in_loop_postorder_cmp): New function.
7873         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7875 2013-03-21  Richard Biener  <rguenther@suse.de>
7877         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7878         (vect_insert_into_interleaving_chain): Likewise.
7879         (vect_drs_dependent_in_basic_block): Inline ...
7880         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
7881         split out from ...
7882         (vect_analyze_data_ref_dependence): ... here.  Simplify.
7883         (vect_check_interleaving): Simplify.
7884         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
7885         (vect_slp_analyze_data_ref_dependences): ... this new function.
7886         (dr_group_sort_cmp): New function.
7887         (vect_analyze_data_ref_accesses): Compute data-reference groups
7888         here instead of in vect_analyze_data_ref_dependence.  Use
7889         a more efficient algorithm.
7890         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7891         vect_slp_analyze_data_ref_dependences.  Call
7892         vect_analyze_data_ref_accesses earlier.
7893         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7894         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7895         (vect_slp_analyze_data_ref_dependences): New prototype.
7897 2013-03-21  Richard Biener  <rguenther@suse.de>
7899         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7900         ref is stored in the loop.
7901         (find_refs_for_sm): Walk only over all stores.
7902         (store_motion_loop): Allocate from lim_bitmap_obstack.
7903         (store_motion): Likewise.
7905 2013-03-21  Richard Biener  <rguenther@suse.de>
7907         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7908         Update virtual SSA form.
7910 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7912         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7913         * configure: Regenerate.
7914         * config.in: Regenerate.
7915         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7916         if !HAVE_LD_EH_FRAME_CIEV3.
7918 2013-03-21  Richard Biener  <rguenther@suse.de>
7920         * tree-cfg.c (verify_expr_no_block): New function.
7921         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7922         nor DECL_VALUE_EXPR have locations with associated blocks.
7923         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7924         (clear_unused_block_pointer): Remove code dealing with
7925         blocks in DECL_DEBUG_EXPR locations.
7927 2013-03-21  Richard Biener  <rguenther@suse.de>
7929         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7930         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
7931         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7932         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7933         instead of DECL_DEBUG_EXPR_IS_FROM.
7934         * gimplify.c (gimplify_modify_expr): Likewise.
7935         * tree-cfg.c (verify_expr_location_1): Likewise.
7936         * tree-complex.c (create_one_component_var): Likewise.
7937         * tree-sra.c (create_access_replacement): Likewise.
7938         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7939         (clear_unused_block_pointer): Likewise.
7940         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7941         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7942         * var-tracking.c (var_debug_decl): Likewise.
7943         (track_expr_p): Likewise.
7944         * tree-inline.c (add_local_variables): Likewise.  Set
7945         DECL_HAS_DEBUG_EXPR_P after copying it.
7946         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7947         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
7949 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
7951         PR bootstrap/56656
7952         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7953         * configure: Regenerate.
7954         * config.in: Regenerate.
7955         * config/i386/i386.md (*movdf_internal): Use
7956         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7957         movd instead of movq mnemonic for interunit moves.
7958         (*movdi_internal): Ditto.
7960 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7962         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7963         (abd<mode>_3): New pattern.
7964         (aba<mode>_3): New pattern.
7965         (fabd<mode>_3): New pattern.
7967 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7969         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7970         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7971         occurrence of REGISTER_PREFIX as its empty string.
7973 2013-03-20  Jeff Law  <law@redhat.com>
7975         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7976         addititional equivalences for equality comparisons between an SSA_NAME
7977         and a constant where the SSA_NAME was set from a widening conversion.
7979 2013-03-20  Walter Lee  <walt@tilera.com>
7981         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7983 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
7985         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7986         depending on type attribute.
7987         (*movti_internal): Ditto.
7988         (*movtf_internal): Ditto.
7989         (*movxf_internal): Ditto.
7990         (*movdf_internal): Ditto.
7991         (*movsf_internal): Ditto.
7993 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
7995         * config/i386/i386.md (*movti_internal): Set prefix attribute to
7996         maybe_vex for sselog1 and ssemov types.
7997         (*movdi_internal): Reorder operand constraints.
7998         (*movsi_internal): Ditto.  Set prefix attribute to
7999         maybe_vex for sselog1 and ssemov types.
8000         (*movtf_internal): Set prefix attribute to maybe_vex
8001         for sselog1 and ssemov types.
8002         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8003         DImode ssemov types.  Reorder operand constraints.
8004         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8005         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8006         attribute for SImode ssemov types.  Reorder operand constraints.
8008 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8010         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8011         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8013 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8015         * config/rs6000/predicates.md (indexed_address, update_address_mem
8016         update_indexed_address_mem): New predicates.
8017         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8018         attribute for load/store instructions.
8019         * config/rs6000/dfp.md (movsd_store): Likewise.
8020         (movsd_load): Likewise.
8021         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8022         (unnamed HI->DI extend define_insn): Likewise.
8023         (unnamed SI->DI extend define_insn): Likewise.
8024         (unnamed QI->SI extend define_insn): Likewise.
8025         (unnamed QI->HI extend define_insn): Likewise.
8026         (unnamed HI->SI extend define_insn): Likewise.
8027         (unnamed HI->SI extend define_insn): Likewise.
8028         (extendsfdf2_fpr): Likewise.
8029         (movsi_internal1): Likewise.
8030         (movsi_internal1_single): Likewise.
8031         (movhi_internal): Likewise.
8032         (movqi_internal): Likewise.
8033         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8034         attribute for load/store instructions.
8035         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8036         instructions.
8037         (mov<mode>_softfloat): Likewise.
8038         (mov<mode>_hardfloat32): Likewise.
8039         (mov<mode>_hardfloat64): Likewise.
8040         (mov<mode>_softfloat64): Likewise.
8041         (movdi_internal32): Likewise.
8042         (movdi_internal64): Likewise.
8043         (probe_stack_<mode>): Likewise.
8045 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8047         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8048         floating point, and decimal floating point to reload iterator.
8050         * config/rs6000/constraints.md (wl constraint): New constraints to
8051         return FLOAT_REGS if certain options are used to reduce the number
8052         of separate patterns that exist in the file.
8053         (wx constraint): Likewise.
8054         (wz constraint): Likewise.
8056         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8057         -mdebug=reg, print wg, wl, wx, and wz constraints.
8058         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8059         Initialize the reload functions for 64-bit binary/decimal floating
8060         point types.
8061         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8062         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8063         create the buffer on the stack to overcome not having a 32-bit
8064         load and store.
8065         (rs6000_emit_move): Likewise.
8066         (rs6000_secondary_memory_needed_rtx): Likewise.
8067         (rs6000_alloc_sdmode_stack_slot): Likewise.
8068         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8069         via xxlxor, just like DFmode 0.0.
8071         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8072         define as 1 if we are running on a power7 or newer.
8073         (enum r6000_reg_class_enum): Add new constraints.
8075         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8076         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8077         with other moves by using conditional constraits (wg).  Use LFIWZX
8078         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8079         (movsd splitter): Likewise.
8080         (movsd_hardfloat): Likewise.
8081         (movsd_softfloat): Likewise.
8083         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8084         binary and decimal floating point moves.
8085         (fmove_ok): New attributes to combine binary and decimal floating
8086         point moves, and to combine power6x (mfpgpr) moves along normal
8087         floating moves.
8088         (real_value_to_target): Likewise.
8089         (f32_lr): Likewise.
8090         (f32_lm): Likewise.
8091         (f32_li): Likewise.
8092         (f32_sr): Likewise.
8093         (f32_sm): Likewise.
8094         (f32_si): Likewise.
8095         (movsf): Combine binary and decimal floating point moves.  Combine
8096         power6x (mfpgpr) moves with other moves by using conditional
8097         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
8098         (mov<mode> for SFmode/SDmode); Likewise.
8099         (SFmode/SDmode splitters): Likewise.
8100         (movsf_hardfloat): Likewise.
8101         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8102         (movsf_softfloat): Likewise.
8103         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8105         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8106         wx and wz constraints.
8108         * config/rs6000/constraints.md (wg constraint): New constraint to
8109         return FLOAT_REGS if -mmfpgpr (power6x) was used.
8111         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8112         constraint.
8114         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8115         -mdebug=reg, print wg, wl, wx, and wz constraints.
8116         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8117         Initialize the reload functions for 64-bit binary/decimal floating
8118         point types.
8119         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8120         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8121         create the buffer on the stack to overcome not having a 32-bit
8122         load and store.
8123         (rs6000_emit_move): Likewise.
8124         (rs6000_secondary_memory_needed_rtx): Likewise.
8125         (rs6000_alloc_sdmode_stack_slot): Likewise.
8126         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8127         via xxlxor, just like DFmode 0.0.
8129         * config/rs6000/dfp.md (movdd): Delete, combine with binary
8130         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8131         with other moves by using conditional constraits (wg).  Use LFIWZX
8132         and STFIWX for loading SDmode on power7.
8133         (movdd splitters): Likewise.
8134         (movdd_hardfloat32): Likewise.
8135         (movdd_softfloat32): Likewise.
8136         (movdd_hardfloat64_mfpgpr): Likewise.
8137         (movdd_hardfloat64): Likewise.
8138         (movdd_softfloat64): Likewise.
8140         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8141         64-bit binary and decimal floating point moves.
8142         (FMOVE64X): Likewise.
8143         (movdf): Combine 64-bit binary and decimal floating point moves.
8144         Combine power6x (mfpgpr) moves with other moves by using
8145         conditional constraits (wg).
8146         (mov<mode> for DFmode/DDmode): Likewise.
8147         (DFmode/DDmode splitters): Likewise.
8148         (movdf_hardfloat32): Likewise.
8149         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8150         (movdf_softfloat32): Likewise.
8151         (movdf_hardfloat64_mfpgpr): Likewise.
8152         (movdf_hardfloat64): Likewise.
8153         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8154         (movdf_softfloat64): Likewise.
8155         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8156         (reload_<mode>_load): Move to later in the file so they aren't in
8157         the middle of the floating point move insns.
8158         (reload_<mode>_store): Likewise.
8160         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8161         constraint.
8163         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8164         constraint if -mdebug=reg.
8165         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8166         Enable using dd reload support if needed.
8168         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8169         binary and decimal floating point moves in rs6000.md.
8170         (movtd_internal): Likewise.
8172         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8173         decimal floating point moves.
8174         (movtf): Likewise.
8175         (movtf_internal): Likewise.
8176         (mov<mode>_internal, TDmode/TFmode): Likewise.
8177         (movtf_softfloat): Likewise.
8178         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8180         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8181         movdi_internal64, using wg constraint for move direct operations.
8182         (movdi_internal64): Likewise.
8184         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8185         MODES_TIEABLE_P for selected modes.  Print the numerical value of
8186         the various virtual registers. Use GPR/FPR first/last values,
8187         instead of hard coding the register numbers.  Print which modes
8188         have reload functions registered.
8189         (rs6000_option_override_internal): If -mdebug=reg, trace the options
8190         settings before/after setting cpu, target and subtarget settings.
8191         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8192         and for secondary reload failures in rs6000_secondary_reload_inner.
8193         (rs6000_secondary_reload_fail): Likewise.
8194         (rs6000_secondary_reload_inner): Likewise.
8196         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8197         macros for first/last GPR and FPR registers.
8198         (LAST_GPR_REGNO): Likewise.
8199         (FIRST_FPR_REGNO): Likewise.
8200         (LAST_FPR_REGNO): Likewise.
8202         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8203         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8204         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8205         (vcond<mode><mode>): Likewise.
8206         (vcondu<mode><mode>): Likewise.
8207         (vector_gtu<mode>): Likewise.
8208         (vector_gte<mode>): Likewise.
8209         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8210         to prevent the compiler from converting DImode operations to TImode.
8211         (ior<mode>3): Likewise.
8212         (and<mode>3): Likewise.
8213         (one_cmpl<mode>2): Likewise.
8214         (nor<mode>3): Likewise.
8215         (andc<mode>3): Likewise.
8217         * config/rs6000/constraints.md (wt constraint): New constraint
8218         that returns VSX_REGS if TImode is allowed in VSX registers.
8220         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8221         constant under VSX.
8223         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8224         similar to TImode, but it is restricted to being in the GPRs.
8226         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8227         TImode to occupy a single VSX register.
8229         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8230         -mvsx-timode for power7/power8.
8231         (power7 cpu): Likewise.
8232         (power8 cpu): Likewise.
8234         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8235         sure that TFmode/TDmode take up two registers if they are ever
8236         allowed in the upper VSX registers.
8237         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8238         registers.
8239         (rs6000_init_hard_regno_mode_ok): Likewise.
8240         (rs6000_debug_reg_global): Add debugging for PTImode and wt
8241         constraint.  Print if LRA is turned on.
8242         (rs6000_option_override_internal): Give an error if -mvsx-timode
8243         and VSX is not enabled.
8244         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
8245         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8246         to reg+offset addressing.  Use PTImode when checking offset
8247         addresses for validity.
8248         (reg_offset_addressing_ok_p): Likewise.
8249         (rs6000_legitimate_offset_address_p): Likewise.
8250         (rs6000_legitimize_address): Likewise.
8251         (rs6000_legitimize_reload_address): Likewise.
8252         (rs6000_legitimate_address_p): Likewise.
8253         (rs6000_eliminate_indexed_memrefs): Likewise.
8254         (rs6000_emit_move): Likewise.
8255         (rs6000_secondary_reload): Likewise.
8256         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
8257         reloads to fpr registers to continue to use reg+offset addressing,
8258         but 64-bit reloads to altivec registers need reg+reg addressing.
8259         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8260         it.  Treat LO_SUM like a PLUS operation.
8261         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8262         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8263         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8264         registers to share a register with a smaller sized type, since VSX
8265         puts scalars in the upper 64-bits.
8266         (print_operand): Add support for PTImode.
8267         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8268         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8269         registers, but don't have arithmetic support.
8270         (rs6000_memory_move_cost): Add test for VSX.
8271         (rs6000_opt_masks): Add -mvsx-timode.
8273         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8274         for TImode.
8275         (VSs): Likewise.
8276         (VSr): Use wt constraint for TImode.
8277         (VSv): Drop TImode support.
8278         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8279         (vsx_movti_64bit): Likewise.
8280         (vsx_movti_32bit): Likewise.
8281         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8282         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8283         one '?' on the appropriate output constraint.  Do not allow TImode
8284         logical operations on 32-bit systems.
8285         (vsx_ior<mode>3): Likewise.
8286         (vsx_xor<mode>3): Likewise.
8287         (vsx_one_cmpl<mode>2): Likewise.
8288         (vsx_nor<mode>3): Likewise.
8289         (vsx_andc<mode>3): Likewise.
8290         (vsx_concat_<mode>): Likewise.
8291         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8293         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8294         OPTION_MASK_VSX_TIMODE.
8295         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8296         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8298         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8299         (TI2 iterator): New iterator for TImode, PTImode.
8300         (wd mode attribute): Add values for vector types.
8301         (movti_string): Replace TI move operations with operations for TImode
8302         and PTImode.  Add support for TImode being allowed in VSX registers.
8303         (mov<mode>_string, TImode/PTImode): Likewise.
8304         (movti_ppc64): Likewise.
8305         (mov<mode>_ppc64, TImode/PTImode): Likewise.
8306         (TI mode splitters): Likewise.
8308         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8309         constraint.
8311 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
8313         PR tree-optimization/56355
8314         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8315         Also handle integers with undefined overflow.
8317 2013-03-20  Catherine Moore  <clm@codesourcery.com>
8318             Maciej W. Rozycki  <macro@codesourcery.com>
8319             Tom de Vries  <tom@codesourcery.com>
8320             Nathan Sidwell <nathan@codesourcery.com>
8321             Iain Sandoe  <iain@codesourcery.com>
8322             Nathan Froyd  <froydnj@codesourcery.com>
8323             Chao-ying Fu <fu@mips.com>
8325         * doc/extend.texi: (micromips, nomicromips, nocompression):
8326         Document new function attributes.
8327         * doc/invoke.texi (minterlink-compressed, mmicromips,
8328         m14k, m14ke, m14kec): Document new options.
8329         (minterlink-mips16): Update documentation.
8330         * doc/md.texi (ZC, ZD): Document new constraints.
8331         * configure.ac (gcc_cv_as_micromips): Check if linker
8332         supports the .set micromips directive.
8333         * configure: Regenerate.
8334         * config.in: Regenerate.
8335         * config/mips/mips-tables.opt: Regenerate.
8336         * config/mips/micromips.md: New file.
8337         * constraints.md (ZC, ZD): New constraints.
8338         * config/mips/predicates.md (movep_src_register): New predicate.
8339         (movep_src_operand): New predicate.
8340         (non_volatile_mem_operand): New predicate.
8341         * config/mips/mips.md (multimem): New type.
8342         (length): Differentiate between 17-bit and 18-bit branch offsets.
8343         (MOVEP1, MOVEP2): New mode iterator.
8344         (mov_<load>l): Use ZC constraint.
8345         (mov_<load>r): Likewise.
8346         (mov_<store>l): Likewise.
8347         (mov_<store>r): Likewise.
8348         (*branch_equality<mode>_inverted): Add microMIPS support.
8349         (*branch_equality<mode>): Likewise.
8350         (*jump_absolute): Likewise.
8351         (indirect_jump_<mode>): Likewise.
8352         (tablejump_<mode>): Likewise.
8353         (<optab>_internal): Likewise.
8354         (sibcall_internal): Likewise.
8355         (sibcall_value_internal): Likewise.
8356         (prefetch): Use constraint ZD.
8357         * config/mips/mips.opt (minterlink-compressed): New option.
8358         (minterlink-mips16): Now an alias for minterlink-compressed.
8359         (mmicromips): New option.
8360         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8361         (compare_and_swap_12): Likewise.
8362         (sync_add<mode>): Likewise.
8363         (sync_<optab>_12): Likewise.
8364         (sync_old_<optab>_12): Likewise.
8365         (sync_new_<optab>_12): Likewise.
8366         (sync_nand_12): Likewise.
8367         (sync_old_nand_12): Likewise.
8368         (sync_new_nand_12): Likewise.
8369         (sync_sub<mode>): Likewise.
8370         (sync_old_add<mode>): Likewise.
8371         (sync_old_sub<mode>): Likewise.
8372         (sync_new_add<mode>): Likewise.
8373         (sync_new_sub<mode>): Likewise.
8374         (sync_<optab><mode>): Likewise.
8375         (sync_old_<optab><mode>): Likewise.
8376         (sync_new_<optab><mode>): Likewise.
8377         (sync_nand<mode>): Likewise.
8378         (sync_old_nand<mode>): Likewise.
8379         (sync_new_nand<mode>): Likewise.
8380         (sync_lock_test_and_set<mode>): Likewise.
8381         (test_and_set_12): Likewise.
8382         (atomic_compare_and_swap<mode>): Likewise.
8383         (atomic_exchange<mode>_llsc): Likewise.
8384         (atomic_fetch_add<mode>_llsc): Likewise.
8385         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8386         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8387         (umips_save_restore_pattern_p): Likewise.
8388         (umips_load_store_pair_p): Likewise.
8389         (umips_output_load_store_pair): Likewise.
8390         (umips_movep_target_p): Likewise.
8391         (umips_12bit_offset_address_p): Likewise.
8392         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8393         (mips_base_mips16): Rename this...
8394         (mips_base_compression_flags): ...to this. Update all uses.
8395         (mips_attribute_table): Add micromips, nomicromips and nocompression.
8396         (mips_mips16_decl_p): Delete.
8397         (mips_nomips16_decl_p): Delete.
8398         (mips_get_compress_on_flags): New function.
8399         (mips_get_compress_off_flags): New function.
8400         (mips_get_compress_mode): New function.
8401         (mips_get_compress_on_name): New function.
8402         (mips_get_compress_off_name): New function.
8403         (mips_insert_attributes): Support multiple compression types.
8404         (mips_merge_decl_attributes): Likewise.
8405         (umips_12bit_offset_address_p): New function.
8406         (mips_start_function_definition): Emit .set micromips directive.
8407         (mips_call_may_need_jalx_p): New function.
8408         (mips_function_ok_for_sibcall): Add microMIPS support.
8409         (mips_print_operand_punctuation): Support short delay slots and
8410         compact jumps.
8411         (umips_swm_mask, umips_swm_encoding): New.
8412         (umips_build_save_restore): New function.
8413         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8414         (was_mips16_p): Remove.
8415         (old_compression_mode): New.
8416         (mips_set_compression_mode): New function.
8417         (mips_set_current_function): Add microMIPS support.
8418         (mips_option_override): Likewise.
8419         (umips_save_restore_pattern_p): New function.
8420         (umips_output_save_restore): New function.
8421         (umips_load_store_pair_p_1): New function.
8422         (umips_load_store_pair_p): New function.
8423         (umips_output_load_store_pair_1): New function.
8424         (umips_output_load_store_pair): New function.
8425         (umips_movep_target_p) New function.
8426         (mips_prepare_pch_save): Add microMIPS support.
8427         * config/mips/mips.h (TARGET_COMPRESSION): New.
8428         (TARGET_CPU_CPP_BUILTINS): Update macro
8429         to use new compression flags and to support microMIPS.
8430         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8431         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8432         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8433         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8434         (ASM_SPEC): Support mmicromips and mno-micromips.
8435         (M16STORE_REG_P): New macro.
8436         (MIPS_CALL): Support TARGET_MICROMIPS.
8437         (MICROMIPS_J): New macro.
8438         (mips_base_mips16): Rename this...
8439         (mips_base_compression_flags): ...to this.
8440         (UMIPS_12BIT_OFFSET_P): New macro.
8441         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8442         (MULTILIB_DIRNAMES): Likewise.
8443 2013-03-20  Richard Biener  <rguenther@suse.de>
8445         PR tree-optimization/56661
8446         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8447         the result does not have to be distinct.
8449 2013-03-20  Richard Biener  <rguenther@suse.de>
8451         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8452         remap_gimple_op_r.
8454 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8455             Steven Bosscher <steven@gcc.gnu.org>
8457         PR rtl-optimization/56605
8458         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8460 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8462         PR bootstrap/56656
8463         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8464         that require movd instead of movq.
8466 2013-03-20  Richard Biener  <rguenther@suse.de>
8468         * tree-ssa-structalias.c (struct variable_info): Add pointer
8469         to the first field of an aggregate with sub-vars.  Make
8470         this and the pointer to the next subfield its ID.
8471         (vi_next): New function.
8472         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8473         storedanything_id, integer_id): Increment by one.
8474         (new_var_info, get_call_vi, lookup_call_clobber_vi,
8475         get_call_clobber_vi): Adjust.
8476         (solution_set_expand): Simplify and speedup.
8477         (solution_set_add): Inline into ...
8478         (set_union_with_increment): ... this.  Adjust accordingly.
8479         (do_sd_constraint): Likewise.
8480         (do_ds_constraint): Likewise.
8481         (do_complex_constraint): Simplify.
8482         (build_pred_graph): Adjust.
8483         (solve_graph): Likewise.  Simplify and speedup.
8484         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8485         get_constraint_for_component_ref, get_constraint_for_1,
8486         first_vi_for_offset, first_or_preceding_vi_for_offset,
8487         create_function_info_for, create_variable_info_for_1,
8488         create_variable_info_for, intra_create_variable_infos): Adjust.
8489         (init_base_vars): Push NULL for ID zero.
8490         (compute_points_to_sets): Adjust.
8492 2013-03-20  Richard Biener  <rguenther@suse.de>
8494         * cfgloop.c (verify_loop_structure): Streamline and avoid
8495         ICEing on corrupt loop tree.
8496         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8497         loop tree.
8499 2013-03-20  Richard Biener  <rguenther@suse.de>
8501         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8502         check whether an SSA update is needed.
8504 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
8506         * config/mips/constraints.md (T): Rename to...
8507         (Yf): ...this.
8508         (U): Rename to...
8509         (Yd): ...this.
8510         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8511         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8513 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8515         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8516         (*subsi3_carryin_uxtw): Likewise.
8518 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8520         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8521         (*rorsi3_insn_uxtw): Likewise.
8523 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
8525         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8526         (*extrsi5_insn_uxtw): Likewise.
8528 2013-03-19  Richard Biener  <rguenther@suse.de>
8530         PR tree-optimization/56273
8531         * passes.c (init_optimization_passes): Move second VRP after DOM.
8533 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
8535         * config/i386/i386.md (*movti_internal): Merge from
8536         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
8537         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
8538         nox64 isa attributes.
8540 2013-03-18  Richard Biener  <rguenther@suse.de>
8542         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8543         (unite): Likewise.
8544         (merge_node_constraints): Likewise.
8545         (build_succ_graph): Likewise.
8546         (valid_graph_edge): Inline into single caller.
8547         (unify_nodes): Likewise.  Use bitmap_set_bit return value
8548         and cache varinfo.
8549         (scc_visit): Fix formatting and variable use.
8550         (do_sd_constraint): Use gcc_checking_assert.
8551         (do_ds_constraint): Likewise.
8552         (do_complex_constraint): Likewise.
8553         (condense_visit): Likewise.  Cleanup.
8554         (dump_pred_graph): New function.
8555         (perform_var_substitution): Dump the pred-graph before
8556         variable substitution.
8557         (find_equivalent_node): Use gcc_checking_assert.
8558         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8560 2013-03-18  Richard Biener  <rguenther@suse.de>
8562         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8563         Remove cond_expr_stmt_list argument and do not gimplify the
8564         built expression.
8565         (vect_loop_versioning): Adjust.
8566         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8567         Cleanup to use less temporaries.
8568         (vect_create_data_ref_ptr): Cleanup.
8570 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
8572         PR tree-optimization/56635
8573         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8574         require types_compatible_p types.
8576 2013-03-18  Nick Clifton  <nickc@redhat.com>
8578         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8579         spurious backslash.
8581         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8582         Add missing line to comment describing function.
8584 2013-03-18  Richard Biener  <rguenther@suse.de>
8586         PR tree-optimization/56210
8587         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8588         Handle string / character search functions.
8589         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8591 2013-03-18  Richard Biener  <rguenther@suse.de>
8593         PR middle-end/56483
8594         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8595         and implement properly.
8596         * gimple.h (gimple_cond_single_var_p): Remove.
8598 2013-03-18  Richard Biener  <rguenther@suse.de>
8600         * tree-data-ref.h (find_data_references_in_loop): Declare.
8601         * tree-data-ref.c (get_references_in_stmt): Use a stack
8602         vector pre-allocated in the callers.
8603         (find_data_references_in_stmt): Adjust.
8604         (graphite_find_data_references_in_stmt): Likewise.
8605         (create_rdg_vertices): Likewise.
8606         (find_data_references_in_loop): Export.
8607         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8608         Compute dependences here...
8609         (vect_analyze_data_refs): ...not here.  When we encounter
8610         a non-vectorizable data reference in basic-block vectorization
8611         truncate the data reference vector.  Do not bother to
8612         fixup data-dependence information for gather loads.
8613         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8614         of data references, as reported.
8616 2013-03-18  Richard Biener  <rguenther@suse.de>
8618         PR tree-optimization/3713
8619         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
8620         has_constants and expr.
8621         (stmt_has_constants): Properly valueize SSA names when deciding
8622         whether the stmt has constants.
8624 2013-03-18  Richard Biener  <rguenther@suse.de>
8626         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
8627         whole function when there is nothing to do.
8628         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
8629         * tree-vectorizer.c (vectorize_loops): Update virtual and
8630         loop-closed SSA once.
8631         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8633 2013-03-18  Richard Biener  <rguenther@suse.de>
8635         PR middle-end/56113
8636         * domwalk.c (bb_postorder): New global static.
8637         (cmp_bb_postorder): New function.
8638         (walk_dominator_tree): Replace scheme imposing an order for
8639         visiting dominator sons by one sorting them at the time they
8640         are pushed on the stack.
8642 2013-03-18  Richard Biener  <rguenther@suse.de>
8644         PR tree-optimization/39326
8645         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8646         (struct mem_ref): Replace mem member with ao_ref typed member.
8647         (MEM_ANALYZABLE): Adjust.
8648         (memref_eq): Likewise.
8649         (mem_ref_alloc): Likewise.
8650         (gather_mem_refs_stmt): Likewise.
8651         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8652         (execute_sm_if_changed_flag_set): Adjust.
8653         (execute_sm): Likewise.
8654         (ref_always_accessed_p): Likewise.
8655         (refs_independent_p): Likewise.
8656         (can_sm_ref_p): Likewise.
8658 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
8660         PR c/56566
8661         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8662         return 1 even for !unsignedp.
8664 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
8666         * config/i386/i386.md (isa): Add x64 and nox64.
8667         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8668         (*pushtf): Enable *roF alternative for x64 isa only.
8669         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
8670         mode attribute of integer alternatives to DImode for TARGET_64BIT.
8671         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
8672         (*movtf_internal): Merge from *movtf_internal_rex64 and
8673         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
8674         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
8675         nox64 isa attributes.
8676         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
8677         nox64 isa attributes.
8678         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8680 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
8682         * config/alpha/alpha.c (TARGET_LRA_P): New define.
8684 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
8686         PR target/56640
8687         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8688         class names.  Remove trailing comma after "ALL_REGS".
8690 2013-03-16  Jan Hubicka  <jh@suse.cz>
8692         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8693         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8694         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8695         of cgraph_get_create_node.
8696         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8698 2013-03-16  Jason Merrill  <jason@redhat.com>
8700         PR debug/49090
8701         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8702         with DW_AT_default_value.
8704 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
8706         * BASE-VER: Set to 4.9.0.
8708 2013-03-14  Andi Kleen  <ak@linux.intel.com>
8710         PR target/56619
8711         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8712         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8713         Document _x* TSX intrinsics.
8715 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
8716             David Holsgrove  <david.holsgrove@xilinx.com>
8718         * configure.ac: Add MicroBlaze TLS support detection.
8719         * configure: Regenerate.
8720         * config/microblaze/microblaze-protos.h
8721         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8722         symbol_mentioned_p, label_mentioned_p): Add prototypes.
8723         * config/microblaze/microblaze.c (microblaze_address_type): Add
8724         ADDRESS_TLS and tls_reloc address types.
8725         (microblaze_address_info): Add tls_reloc.
8726         (TARGET_HAVE_TLS): Define.
8727         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8728          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
8729          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8730         load_tls_operand,  microblaze_call_tls_get_addr,
8731         microblaze_legitimize_tls_address): New functions.
8732         (microblaze_classify_unspec): Handle UNSPEC_TLS.
8733         (get_base_reg): Use microblaze_tls_symbol_p.
8734         (microblaze_classify_address): Handle TLS.
8735         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8736         label_mentioned_p and microblaze_tls_referenced_p.
8737         (microblaze_legitimize_address): Handle TLS.
8738         (microblaze_address_insns): Handle ADDRESS_TLS.
8739         (pic_address_needs_scratch): Handle TLS.
8740         (print_operand_address): Handle TLS.
8741         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8742         (microblaze_expand_move): Handle TLS.
8743         (microblaze_legitimate_constant_p): Check
8744         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8745         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8746         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8747         (PIC_OFFSET_TABLE_REGNUM): Set.
8748         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8749         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8750         (addsi3, movsi_internal2, movdf_internal): Update constraints
8751         * config/microblaze/predicates.md (arith_plus_operand): Define
8752         (move_operand): Redefine as move_src_operand,
8753         check microblaze_tls_referenced_p.
8755 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
8757         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8758         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8760 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
8762         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8763         CC mode for AND.
8765 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
8767         PR tree-optimization/53265
8768         * common.opt (Waggressive-loop-optimizations): New option.
8769         * tree-ssa-loop-niter.c: Include tree-pass.h.
8770         (do_warn_aggressive_loop_optimizations): New function.
8771         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
8772         if number_of_latch_executions returned constant.
8773         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8774         early.  If number_of_latch_executions returned constant, set
8775         nb_iterations_upper_bound back to it.
8776         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8777         field.
8778         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8779         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8781         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8782         (MULTILIB_OSDIRNAMES): Set.
8783         * genmultilib: If defaultosdirname doesn't start with :: , set
8784         defaultosdirname2 instead, clear it and emit two . multilib_raw
8785         entries instead of just one.
8787 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
8789         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8790         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8791         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8792         (SUBTARGET_OVERRIDE_OPTIONS): New.
8794 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
8796         PR target/49880
8797         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8798         (musermode): Convert to Var(TARGET_USERMODE).
8799         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8800         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8801         * config/sh/sh.c (sh_option_override): Use
8802         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8803         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8804         condition.
8805         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8806         TARGET_SH4.
8807         (udivsi3_i4_single, divsi3_i4_single): Use
8808         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8810 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
8812         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8813         default setting.
8815 2013-03-13  Richard Biener  <rguenther@suse.de>
8817         PR tree-optimization/56608
8818         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8819         calls when vectorizing basic-blocks.
8821 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
8823         PR plugins/45078
8824         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8825         tm_file.
8827 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
8829         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8831 2013-03-11  Jan Hubicka  <jh@suse.cz>
8833         PR lto/56557
8834         * lto-streamer-out.c (output_symbol_p): Skip references from
8835         constructors of external variables.
8837 2013-03-11  Jan Hubicka  <jh@suse.cz>
8839         PR middle-end/56571
8840         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8841         from pseudos.
8842         * emit-rtl.c (verify_rtx_sharing): Likewise.
8843         (copy_insn_1): Likewise.
8844         * rtl.c (copy_rtx): Likewise.
8846 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
8848         PR target/56591
8849         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8850         output_operand_lossage message.
8852 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
8854         PR target/56470
8855         * arm.c (shift_op): Validate RTL pattern on the fly.
8856         (arm_print_operand, case 'S'): Don't use shift_operator to validate
8857         the RTL.
8859 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8861         PR target/56347
8862         * config/pa/pa.md (call_value): Check for calls to powf and direct to
8863         new call patterns that clobber %fr12.
8864         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8865         split and postreload patterns.
8866         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8867         registers %fr12 and %fr12R as call used.
8869 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
8871         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8872         (canon_address, record_store, replace_read, check_mem_read_rtx,
8873         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8874         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8875         rest_of_handle_dse): Likewise.
8877 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
8879         PR middle-end/56524
8880         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8881         Add base_optabs.
8882         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8883         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8884         (save_optabs_if_changed): Replace with...
8885         (init_tree_optimization_optabs): ...this.
8886         * optabs.c (save_optabs_if_changed): Rename to...
8887         (init_tree_optimization_optabs): ...this.  Take the optimization node
8888         as argument.  Do nothing if the base optabs are already correct.
8889         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8890         to recompute optabs.
8891         * function.h (function): Remove optabs field.
8892         * function.c (invoke_set_current_function_hook): Call
8893         init_tree_optimization_optabs.  Use the result to initialize
8894         this_fn_optabs.
8896 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
8898         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8899         if GTMA_HAS_NO_INSTRUMENTATION.
8900         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8901         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8902         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8903         * gimple-pretty-print.c (dump_gimple_transaction): Handle
8904         GTMA_HAS_NO_INSTRUMENTATION.
8906 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
8908         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8909         libasan_preinit.o.
8911 2013-03-08  Marek Polacek  <polacek@redhat.com>
8912             Jakub Jelinek  <jakub@redhat.com>
8914         PR tree-optimization/56478
8915         * predict.c (is_comparison_with_loop_invariant_p): Change the
8916         type of loop_step to tree.
8917         (predict_loops): Adjust.
8918         (predict_iv_comparison): Perform the computations on double_ints.
8920 2013-03-08  Richard Biener  <rguenther@suse.de>
8922         PR tree-optimization/56570
8923         * tree-cfg.c (verify_expr_location_1): Verify locations for
8924         DECL_DEBUG_EXPR.
8925         * tree-sra.c (create_access_replacement): Strip locations
8926         from DECL_DEBUG_EXPRs.
8928 2013-03-08  Richard Biener  <rguenther@suse.de>
8930         * tree-inline.c (expand_call_inline): Do not associate
8931         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8932         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8934 2013-03-08  Richard Biener  <rguenther@suse.de>
8936         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8937         or block changes with -Og.  Fix for location / block encoding
8938         changes and PHI arguments with locations.
8940 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
8942         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8943         for all counters.
8944         (struct output_info): Likewise.
8945         (register_overhead): Remove bad gcc_assert.
8946         (bitmap_find_bit): If there is only a single bitmap element, do not
8947         count a miss as a search.
8948         (print_statistics): Update for counter type changes.
8949         (dump_bitmap_statistics): Likewise.  Print headers such that they
8950         are properly lined up with the printed counters.
8952 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
8954         PR tree-optimization/56559
8955         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8956         check that it has only a single use.
8958 2013-03-07  Richard Biener  <rguenther@suse.de>
8960         * doc/invoke.texi (fwhole-program): Discourage use in combination
8961         with -flto.
8963 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
8965         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8967         PR tree-optimization/56539
8968         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8969         instead of GSI_CONTINUE_LINKING as last argument to
8970         force_gimple_operand_gsi.  Adjust function comment.
8972         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8973         aarch64-cores.def.
8975         PR middle-end/56548
8976         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8977         promoted mode, convert the result back to the original mode.
8979 2013-03-06  Richard Biener  <rguenther@suse.de>
8981         PR middle-end/56294
8982         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8983         (insert_updated_phi_nodes_compare_uids): New function.
8984         (update_ssa): Sort symbols_to_rename after UID before
8985         traversing it to insert PHI nodes.
8987 2013-03-06  Richard Biener  <rguenther@suse.de>
8989         PR middle-end/50494
8990         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8991         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8993         Revert
8994         2013-02-13  Richard Biener  <rguenther@suse.de>
8996         PR lto/50494
8997         * varasm.c (output_constant_def_1): Get the decl representing
8998         the constant as argument.
8999         (output_constant_def): Wrap output_constant_def_1.
9000         (make_decl_rtl): Use output_constant_def_1 with the decl
9001         representing the constant.
9002         (build_constant_desc): Optionally re-use a decl already
9003         representing the constant.
9004         (tree_output_constant_def): Adjust.
9006 2013-03-06  Joey Ye  <joey.ye@arm.com>
9008         PR lto/50293
9009         * gcc.c (convert_white_space): New function.
9010         (main): Handles white space in function name.
9012 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9014         PR target/56529
9015         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9016         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9017         to SH_DIV_CALL_TABLE for TARGET_SH2.
9018         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9019         list.
9020         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9021         call-table options.
9023 2013-03-05  Sterling Augustine  <saugustine@google.com>
9024             Cary Coutant  <ccoutant@google.com>
9026         PR debug/55364
9027         * dwarf2out.c (resolve_addr): Don't call
9028         remove_loc_list_addr_table_entries a second time for the same
9029         expression.
9031 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9033         PR debug/56510
9034         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9035         (avoid_complex_debug_insns): New function.
9036         (expand_debug_locations): Call it.
9038         PR rtl-optimization/56484
9039         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9040         lifetimes of hard registers on small register class machines.
9042 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9044         * config/microblaze/microblaze-protos.h: Rename
9045         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9046         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9047         fast_interrupt.
9048         (microblaze_fast_interrupt_function_p): New function.
9049         (microblaze_is_interrupt_handler): Rename to
9050         microblaze_is_interrupt_variant and add fast_interrupt check.
9051         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9052         (save_restore_insns): Likewise.
9053         (compute_frame_size): Likewise.
9054         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9055         (microblaze_globalize_label): Likewise.
9056         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9057         * config/microblaze/microblaze.md: Use wrapper
9058         microblaze_is_interrupt_variant.
9060 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9062         * sdbout.c (sdbout_one_type): Switch to current function's section
9063         supporting cold/hot.
9065 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9067         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9068         -mxl-reorder.
9070 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9072         PR middle-end/56461
9073         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9074         if VALGRIND_GET_VBITS is defined, temporarily make object
9075         memory all defined, and restore previous valgrind addressability
9076         and definability afterwards.  Free this_object at the end.
9078         PR middle-end/56461
9079         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9080         right before calling lra_create_live_ranges, also call it
9081         when clearing live_p.  Only call lra_clear_live_ranges
9082         at the end if live_p.
9084         PR middle-end/56461
9085         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9087 2013-03-05  Richard Biener  <rguenther@suse.de>
9089         PR tree-optimization/56521
9090         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9091         value-id.
9093 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
9095         PR c++/55135
9096         * except.h (remove_unreachable_eh_regions): New prototype.
9097         * except.c (remove_eh_handler_splicer): New function, split out
9098         of remove_eh_handler.
9099         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
9100         warning about running it on many EH regions one at a time.
9101         (remove_unreachable_eh_regions_worker): New function, walk the
9102         EH tree in depth-first order and remove non-marked regions.
9103         (remove_unreachable_eh_regions): New function.
9104         * tree-eh.c (mark_reachable_handlers): New function, split out
9105         from remove_unreachable_handlers.
9106         (remove_unreachable_handlers): Use mark_reachable_handlers and
9107         remove_unreachable_eh_regions.
9108         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9109         and remove_unreachable_eh_regions.
9111 2013-03-05  Richard Biener  <rguenther@suse.de>
9113         PR middle-end/56525
9114         * loop-init.c (fix_loop_structure): Remove loops in two stages,
9115         not freeing them until the end.
9117 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9119         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9121 2013-03-05  Richard Biener  <rguenther@suse.de>
9123         PR tree-optimization/56270
9124         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9125         of loads after scheduling an SLP instance.
9127 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9129         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9130         tic6x.exp.
9131         (check_gcc_parallelize): Run guality.exp as a separate job from
9132         vect.exp with unsorted.exp and $(dg_target_exps) separately from
9133         struct-layout-1.exp with stackalign.exp.
9135         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9137         PR middle-end/56461
9138         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9139         load_index sbitmap even if some bit in it isn't set.
9141         PR middle-end/56461
9142         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9143         (discover_iteration_bound_by_body_walk): Change queues to
9144         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
9145         spelling in comment.  Call safe_push on queues[bound_index] directly.
9146         Release queues[queue_index] in every iteration unconditionally.
9147         Release bounds vector.
9149         PR middle-end/56461
9150         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9151         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9152         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9153         inner_phis vector.
9155 2013-03-05  Richard Biener  <rguenther@suse.de>
9157         PR lto/56515
9158         * tree-inline.c (remap_blocks_to_null): New function.
9159         (expand_call_inline): When expanding a call stmt without
9160         an associated block inline remap all callee blocks to NULL.
9162 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9164         PR rtl-optimization/56494
9165         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9166         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9167         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9169         PR middle-end/56461
9170         * sel-sched-ir.c (free_sched_pools): Release
9171         succs_info_pool.stack[succs_info_pool.max_top] vectors too
9172         if succs_info_pool.max_top isn't -1.
9174         PR bootstrap/56509
9175         * opts.c (opts_obstack, opts_concat): Moved to...
9176         * opts-common.c (opts_obstack, opts_concat): ... here.
9178 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9180         PR middle-end/56461
9181         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9183 2013-03-04  Martin Jambor  <mjambor@suse.cz>
9185         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9186         all appropriate places.
9188 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9190         PR tree-optimization/56424
9191         * ipa-split.c (split_function): Do not set the RSO flag if result is
9192         not by reference and its type is a register type.
9194 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
9196         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9197         (microblaze_legitimate_pic_operand): Likewise
9198         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9199         new function microblaze_legitimate_pic_operand
9200         * config/microblaze/microblaze-protos.h
9201         (microblaze_legitimate_pic_operand): Declare.
9203 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9205         * config/microblaze/predicates.md (call_insn_simple_operand):
9206         New predicate for supported rtx code types.
9207         * config/microblaze/microblaze.md (call_internal1): Use
9208         call_insn_simple_operand predicate.
9210 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
9212         PR middle-end/56461
9213         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9214         partitions.ordered_remove.
9216         PR middle-end/56461
9217         * tree-vect-stmts.c (vectorizable_conversion): Don't call
9218         vec_oprnds0.create (1) for modifier == NONE.
9220         PR middle-end/56461
9221         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9222         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9223         vec_oprnds1 right before pushing anything to it for
9224         scalar_shift_arg.
9226         PR middle-end/56461
9227         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9228         set nbbs to 0 instead of having separate code path.
9229         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9230         instead of false as last argument if returning NULL.
9232 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
9234         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9235         the attribute is now called "target" instead of "option".
9236         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9237         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
9238         attribute/pragma name for TARGET_OPTION_VALID_P and
9239         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9240         * doc/tm.texi: Regenerated.
9242 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
9244         * config/microblaze/microblaze.c:
9245         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9246         * config/microblaze/microblaze.h: Add -mxl-reorder to
9247         DRIVER_SELF_SPECS.
9248         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9249         instructions emitted if TARGET_REORDER.
9250         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9251         or 0 for -m/-mno case, but initialises as 2 to detect default use case
9252         separately.
9254 2013-03-01  Xinliang David Li  <davidxl@google.com>
9256         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9257         walk length.
9259 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
9261         PR middle-end/56461
9262         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9263         vector even when returning true.  Fix up function comment formatting.
9265         PR middle-end/56461
9266         * ira-build.c (ira_loop_nodes_count): New variable.
9267         (create_loop_tree_nodes): Initialize it.
9268         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9270         PR middle-end/56461
9271         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9272         method on dr_chain and result_chain.
9273         * tree-vect-stmts.c (vectorizable_store): Only call
9274         result_chain.create if j == 0.
9276         PR middle-end/56461
9277         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9278         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9279         before overwriting it.
9281 2013-03-01  Tobias Burnus  <burnus@net-b.de>
9283         * doc/extended.texi (C Extensions): Change order in @menu
9284         to match @node.
9285         (Other MIPS Built-in Functions): Move last MIPS entry before
9286         "picoChip Built-in Functions".
9287         (SH Built-in Functions): Move after RX Built-in Functions.
9288         * doc/gcc.texi (Introduction): Change order in @menu
9289         to match @node.
9290         * doc/md.texi (Constraints): Ditto.
9291         * gty.texi (Type Information): Ditto.
9292         (User-provided marking routines for template types): Make
9293         subsection.
9294         * doc/invoke.texi (AArch64 Options): Move before
9295         "Adapteva Epiphany Options".
9297 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
9298             Jakub Jelinek  <jakub@redhat.com>
9300         PR sanitizer/56454
9301         * asan.c (gate_asan): Lookup no_sanitize_address instead of
9302         no_address_safety_analysis attribute.
9303         * doc/extend.texi (no_address_safety_attribute): Rename to
9304         no_sanitize_address attribute, mention no_address_safety_analysis
9305         attribute as deprecated alias.
9307 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
9309         PR middle-end/56461
9310         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9311         type to vec<vec<tree> > *.
9312         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
9313         to be vec<tree> instead of vec<tree> *, set vec_defs
9314         to vNULL and call vec_defs.create (number_of_vects), adjust other
9315         uses of vec_defs.
9316         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9317         vectorizable_condition): Adjust vect_get_slp_defs callers.
9319 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9321         * config/aarch64/aarch64.c
9322         (aarch64_float_const_representable): Remove unused variable.
9324 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9326         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9328 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9330         * config/aarch64/aarch64-builtins.c
9331         (aarch64_init_simd_builtins): Make static.
9333 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
9335         * config/aarch64/aarch64.c
9336         (aarch64_simd_make_constant): Make static.
9338 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9340         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9341         with no initialization to the RHS of debug statements.
9343 2013-02-28  Martin Jambor  <mjambor@suse.cz>
9345         PR tree-optimization/56294
9346         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9347         Adjust dumping.
9348         (get_access_replacement): Do not call create_access_replacement.
9349         Assert a replacement exists.
9350         (get_repl_default_def_ssa_name): Create the replacement declaration
9351         itself.
9353 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9355         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9356         final_end_function.
9358 2013-02-28  Marek Polacek  <polacek@redhat.com>
9360         PR rtl-optimization/56466
9361         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9362         if we're changing a loop.
9363         (peel_loops_completely): Likewise.
9365 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
9367         PR c++/55813
9368         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9370 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9372         PR target/56445
9373         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9374         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9375         INTX_FTYPE_FX, FX_FTYPE_INTX.
9376         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9378 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9380         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9381         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9382         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9383         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9384         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9385         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9386         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9387         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9388         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9389         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9390         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9391         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9392         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9393         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9394         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9395         (avrxmega6): Increase max flash segments from 5 to 6.
9396         * config/avr/t-multilib: Regenerate.
9397         * config/avr/avr-tables.opt: Regenerate.
9398         * doc/avr-mmcu.texi: Regenerate.
9400 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
9402         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9403         (avr_device_to_arch): Rename to avr_device_to_ld.
9404         (avr_device_to_as): New prototype.
9405         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9406         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9407         * config/avr/driver-avr.c (avr_device_to_as): New.
9408         (avr_device_to_arch): Rename to avr_device_to_ld.
9410 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9412         PR middle-end/56461
9413         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9414         method on dr_chain and result_chain.
9416         PR middle-end/56461
9417         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9418         pointer_set_destroy on not_executed_last_iteration.
9420         PR middle-end/56461
9421         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9423         PR middle-end/56461
9424         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9425         FOR_EACH_DEFINED_FUNCTION when freeing state.
9427         PR middle-end/56461
9428         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9429         pool_free.
9430         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9431         overwriting it.
9433         PR middle-end/56461
9434         * ipa-cp.c (decide_whether_version_node): Call vec_free on
9435         known_aggs[i].items and release known_aggs vector.
9437         PR middle-end/56461
9438         * ipa-reference.c (propagate): Free node_info even for alias nodes.
9440 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9442         * config/microblaze/microblaze.c (microblaze_emit_compare):
9443         Use xor for EQ/NE comparisions.
9444         * config/microblaze/microblaze.md (cstoresf4): Add constraints
9445         (cbranchsf4): Adjust operator to comparison_operator.
9447 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9449         PR middle-end/56461
9450         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9451         vector.
9452         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9453         vec_safe_push, always update *slot.
9454         (redirect_edge_var_map_clear): Use vec_free.
9455         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9456         (free_var_map_entry): Use vec_free.
9457         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9458         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9460 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
9462         PR middle-end/45472
9463         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9464         when the may_trap_p bit of the exprs being merged differs.
9465         Reorder tests for speculativeness in the logical and operator.
9467 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
9469         * incpath.c (add_standard_paths): Use reconcat instead of concat
9470         where appropriate and avoid leaking memory.
9472         * opts.h: Include obstack.h.
9473         (opts_concat): New prototype.
9474         (opts_obstack): New declaration.
9475         * opts.c (opts_concat): New function.
9476         (opts_obstack): New variable.
9477         (init_options_struct): Call gcc_init_obstack on opts_obstack.
9478         (finish_options): Use opts_concat instead of concat
9479         and XOBNEWVEC instead of XNEWVEC.
9480         * opts-common.c (generate_canonical_option, decode_cmdline_option,
9481         generate_option): Likewise.
9482         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9483         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9485         PR target/56455
9486         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9487         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9489 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9491         PR middle-end/56461
9492         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9494 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9496         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9497         (arm_block_move_unaligned_straight): Likewise.
9498         (arm_adjust_block_mem): Likewise.
9500 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
9502         PR target/48901
9503         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9504         temp, cond and label.
9505         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9507         PR target/52500
9508         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9509         * config/c6x/c6x.h (dbx_register_map): Update declaration.
9511         PR target/52501
9512         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9513         of prologue/epilogue functions.
9515         PR target/52550
9516         * config/tilegx/tilegx.c (tilegx_expand_prologue):
9517         Remove unused variable cfa_offset.
9518         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9520         PR target/54639
9521         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9522         type promotion to unsigned.
9524         PR target/54640
9525         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9526         for HOST_WIDE_INT of 32 bit / same size as int.
9527         (arm_block_move_unaligned_straight): Likewise.
9528         (arm_adjust_block_mem): Likewise.
9530         PR target/54662
9531         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9532         ALL_CFLAGS.
9534 2013-02-26  Marek Polacek  <polacek@redhat.com>
9536         PR tree-optimization/56426
9537         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9539 2013-02-26  Richard Biener  <rguenther@suse.de>
9541         PR target/56444
9542         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9543         unused variable loops.
9545 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
9547         PR tree-optimization/56448
9548         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9549         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9550         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9551         later operands of the references, or even first operand for
9552         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9554         PR tree-optimization/56443
9555         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9556         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9557         to type_for_mode langhook.
9559 2013-02-25  Matt Turner  <mattst88@gmail.com>
9561         * doc/invoke.texi: Document r4700.
9563 2013-02-25  Richard Biener  <rguenther@suse.de>
9565         PR tree-optimization/56175
9566         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9567         split out from ...
9568         (simplify_bitwise_binary): ... here.  Also guard the conversion
9569         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9571 2013-02-25  Catherine Moore  <clm@codesourcery.com>
9573         Revert:
9574         2013-02-24  Catherine Moore  <clm@codesourcery.com>
9575             Maciej W. Rozycki  <macro@codesourcery.com>
9576             Tom de Vries  <tom@codesourcery.com>
9577             Nathan Sidwell  <nathan@codesourcery.com>
9578             Iain Sandoe  <iain@codesourcery.com>
9579             Nathan Froyd  <froydnj@codesourcery.com>
9580             Chao-ying Fu  <fu@mips.com>
9582         * doc/extend.texi: (micromips, nomicromips, nocompression):
9583         Document new function attributes.
9584         * doc/invoke.texi (minterlink-compressed, mmicromips,
9585         m14k, m14ke, m14kec): Document new options.
9586         (minterlink-mips16): Update documentation.
9587         * doc/md.texi (ZC, ZD): Document new constraints.
9588         * configure.ac (gcc_cv_as_micromips): Check if linker
9589         supports the .set micromips directive.
9590         * configure: Regenerate.
9591         * config.in: Regenerate.
9592         * config/mips/mips-tables.opt: Regenerate.
9593         * config/mips/micromips.md: New file.
9594         * constraints.md (ZC, AD): New constraints.
9595         * config/mips/predicates.md (movep_src_register): New predicate.
9596         (movep_src_operand): New predicate.
9597         (non_volatile_mem_operand): New predicate.
9598         * config/mips/mips.md (multimem): New type.
9599         (length): Differentiate between 17-bit and 18-bit branch offsets.
9600         (MOVEP1, MOVEP2): New mode iterator.
9601         (mov_<load>l): Use ZC constraint.
9602         (mov_<load>r): Likewise.
9603         (mov_<store>l): Likewise.
9604         (mov_<store>r): Likewise.
9605         (*branch_equality<mode>_inverted): Add microMIPS support.
9606         (*branch_equality<mode>): Likewise.
9607         (*jump_absolute): Likewise.
9608         (indirect_jump_<mode>): Likewise.
9609         (tablejump_<mode>): Likewise.
9610         (<optab>_internal): Likewise.
9611         (sibcall_internal): Likewise.
9612         (sibcall_value_internal): Likewise.
9613         (prefetch): Use constraint ZD.
9614         * config/mips/mips.opt (minterlink-compressed): New option.
9615         (minterlink-mips16): Now an alias for minterlink-compressed.
9616         (mmicromips): New option.
9617         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9618         (compare_and_swap_12): Likewise.
9619         (sync_add<mode>): Likewise.
9620         (sync_<optab>_12): Likewise.
9621         (sync_old_<optab>_12): Likewise.
9622         (sync_new_<optab>_12): Likewise.
9623         (sync_nand_12): Likewise.
9624         (sync_old_nand_12): Likewise.
9625         (sync_new_nand_12): Likewise.
9626         (sync_sub<mode>): Likewise.
9627         (sync_old_add<mode>): Likewise.
9628         (sync_old_sub<mode>): Likewise.
9629         (sync_new_add<mode>): Likewise.
9630         (sync_new_sub<mode>): Likewise.
9631         (sync_<optab><mode>): Likewise.
9632         (sync_old_<optab><mode>): Likewise.
9633         (sync_new_<optab><mode>): Likewise.
9634         (sync_nand<mode>): Likewise.
9635         (sync_old_nand<mode>): Likewise.
9636         (sync_new_nand<mode>): Likewise.
9637         (sync_lock_test_and_set<mode>): Likewise.
9638         (test_and_set_12): Likewise.
9639         (atomic_compare_and_swap<mode>): Likewise.
9640         (atomic_exchange<mode>_llsc): Likewise.
9641         (atomic_fetch_add<mode>_llsc): Likewise.
9642         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9643         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9644         (umips_save_restore_pattern_p): Likewise.
9645         (umips_load_store_pair_p): Likewise.
9646         (umips_output_load_store_pair): Likewise.
9647         (umips_movep_target_p): Likewise.
9648         (umips_12bit_offset_address_p): Likewise.
9649         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9650         (mips_base_mips16): Rename this...
9651         (mips_base_compression_flags): ...to this. Update all uses.
9652         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9653         (mips_mips16_decl_p): Delete.
9654         (mips_nomips16_decl_p): Delete.
9655         (mips_get_compress_on_flags): New function.
9656         (mips_get_compress_off_flags): New function.
9657         (mips_get_compress_mode): New function.
9658         (mips_get_compress_on_name): New function.
9659         (mips_get_compress_off_name): New function.
9660         (mips_insert_attributes): Support multiple compression types.
9661         (mips_merge_decl_attributes): Likewise.
9662         (umips_12bit_offset_address_p): New function.
9663         (mips_start_function_definition): Emit .set micromips directive.
9664         (mips_call_may_need_jalx_p): New function.
9665         (mips_function_ok_for_sibcall): Add microMIPS support.
9666         (mips_print_operand_punctuation): Support short delay slots and
9667         compact jumps.
9668         (umips_swm_mask, umips_swm_encoding): New.
9669         (umips_build_save_restore): New function.
9670         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9671         (was_mips16_p): Remove.
9672         (old_compression_mode): New.
9673         (mips_set_compression_mode): New function.
9674         (mips_set_current_function): Add microMIPS support.
9675         (mips_option_override): Likewise.
9676         (umips_save_restore_pattern_p): New function.
9677         (umips_output_save_restore): New function.
9678         (umips_load_store_pair_p_1): New function.
9679         (umips_load_store_pair_p): New function.
9680         (umips_output_load_store_pair_1): New function.
9681         (umips_output_load_store_pair): New function.
9682         (umips_movep_target_p) New function.
9683         (mips_prepare_pch_save): Add microMIPS support.
9684         * config/mips/mips.h (TARGET_COMPRESSION): New.
9685         (TARGET_CPU_CPP_BUILTINS): Update macro
9686         to use new compression flags and to support microMIPS.
9687         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9688         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9689         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9690         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9691         (ASM_SPEC): Support mmicromips and mno-micromips.
9692         (M16STORE_REG_P): New macro.
9693         (MIPS_CALL): Support TARGET_MICROMIPS.
9694         (MICROMIPS_J): New macro.
9695         (mips_base_mips16): Rename this...
9696         (mips_base_compression_flags): ...to this.
9697         (UMIPS_12BIT_OFFSET_P): New macro.
9698         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9699         (MULTILIB_DIRNAMES): Likewise.
9701 2013-02-25  Tom de Vries  <tom@codesourcery.com>
9703         PR rtl-optimization/56131
9704         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9705         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9706         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9708 2013-02-25  Tobias Burnus  <burnus@net-b.de>
9710         * doc/invoke.texi (-fsanitize=): Move from optimization
9711         to debugging options.
9713 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
9715         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9717 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
9718             Alexander Monakov  <amonakov@ispras.ru>
9720         PR middle-end/56077
9721         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9722         flush pending lists also on non-jumps.  Adjust comment.
9724 2013-02-24  Catherine Moore  <clm@codesourcery.com>
9725             Maciej W. Rozycki  <macro@codesourcery.com>
9726             Tom de Vries  <tom@codesourcery.com>
9727             Nathan Sidwell  <nathan@codesourcery.com>
9728             Iain Sandoe  <iain@codesourcery.com>
9729             Nathan Froyd  <froydnj@codesourcery.com>
9730             Chao-ying Fu  <fu@mips.com>
9732         * doc/extend.texi: (micromips, nomicromips, nocompression):
9733         Document new function attributes.
9734         * doc/invoke.texi (minterlink-compressed, mmicromips,
9735         m14k, m14ke, m14kec): Document new options.
9736         (minterlink-mips16): Update documentation.
9737         * doc/md.texi (ZC, ZD): Document new constraints.
9738         * configure.ac (gcc_cv_as_micromips): Check if linker
9739         supports the .set micromips directive.
9740         * configure: Regenerate.
9741         * config.in: Regenerate.
9742         * config/mips/mips-tables.opt: Regenerate.
9743         * config/mips/micromips.md: New file.
9744         * constraints.md (ZC, AD): New constraints.
9745         * config/mips/predicates.md (movep_src_register): New predicate.
9746         (movep_src_operand): New predicate.
9747         (non_volatile_mem_operand): New predicate.
9748         * config/mips/mips.md (multimem): New type.
9749         (length): Differentiate between 17-bit and 18-bit branch offsets.
9750         (MOVEP1, MOVEP2): New mode iterator.
9751         (mov_<load>l): Use ZC constraint.
9752         (mov_<load>r): Likewise.
9753         (mov_<store>l): Likewise.
9754         (mov_<store>r): Likewise.
9755         (*branch_equality<mode>_inverted): Add microMIPS support.
9756         (*branch_equality<mode>): Likewise.
9757         (*jump_absolute): Likewise.
9758         (indirect_jump_<mode>): Likewise.
9759         (tablejump_<mode>): Likewise.
9760         (<optab>_internal): Likewise.
9761         (sibcall_internal): Likewise.
9762         (sibcall_value_internal): Likewise.
9763         (prefetch): Use constraint ZD.
9764         * config/mips/mips.opt (minterlink-compressed): New option.
9765         (minterlink-mips16): Now an alias for minterlink-compressed.
9766         (mmicromips): New option.
9767         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9768         (compare_and_swap_12): Likewise.
9769         (sync_add<mode>): Likewise.
9770         (sync_<optab>_12): Likewise.
9771         (sync_old_<optab>_12): Likewise.
9772         (sync_new_<optab>_12): Likewise.
9773         (sync_nand_12): Likewise.
9774         (sync_old_nand_12): Likewise.
9775         (sync_new_nand_12): Likewise.
9776         (sync_sub<mode>): Likewise.
9777         (sync_old_add<mode>): Likewise.
9778         (sync_old_sub<mode>): Likewise.
9779         (sync_new_add<mode>): Likewise.
9780         (sync_new_sub<mode>): Likewise.
9781         (sync_<optab><mode>): Likewise.
9782         (sync_old_<optab><mode>): Likewise.
9783         (sync_new_<optab><mode>): Likewise.
9784         (sync_nand<mode>): Likewise.
9785         (sync_old_nand<mode>): Likewise.
9786         (sync_new_nand<mode>): Likewise.
9787         (sync_lock_test_and_set<mode>): Likewise.
9788         (test_and_set_12): Likewise.
9789         (atomic_compare_and_swap<mode>): Likewise.
9790         (atomic_exchange<mode>_llsc): Likewise.
9791         (atomic_fetch_add<mode>_llsc): Likewise.
9792         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9793         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9794         (umips_save_restore_pattern_p): Likewise.
9795         (umips_load_store_pair_p): Likewise.
9796         (umips_output_load_store_pair): Likewise.
9797         (umips_movep_target_p): Likewise.
9798         (umips_12bit_offset_address_p): Likewise.
9799         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9800         (mips_base_mips16): Rename this...
9801         (mips_base_compression_flags): ...to this. Update all uses.
9802         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9803         (mips_mips16_decl_p): Delete.
9804         (mips_nomips16_decl_p): Delete.
9805         (mips_get_compress_on_flags): New function.
9806         (mips_get_compress_off_flags): New function.
9807         (mips_get_compress_mode): New function.
9808         (mips_get_compress_on_name): New function.
9809         (mips_get_compress_off_name): New function.
9810         (mips_insert_attributes): Support multiple compression types.
9811         (mips_merge_decl_attributes): Likewise.
9812         (umips_12bit_offset_address_p): New function.
9813         (mips_start_function_definition): Emit .set micromips directive.
9814         (mips_call_may_need_jalx_p): New function.
9815         (mips_function_ok_for_sibcall): Add microMIPS support.
9816         (mips_print_operand_punctuation): Support short delay slots and
9817         compact jumps.
9818         (umips_swm_mask, umips_swm_encoding): New.
9819         (umips_build_save_restore): New function.
9820         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9821         (was_mips16_p): Remove.
9822         (old_compression_mode): New.
9823         (mips_set_compression_mode): New function.
9824         (mips_set_current_function): Add microMIPS support.
9825         (mips_option_override): Likewise.
9826         (umips_save_restore_pattern_p): New function.
9827         (umips_output_save_restore): New function.
9828         (umips_load_store_pair_p_1): New function.
9829         (umips_load_store_pair_p): New function.
9830         (umips_output_load_store_pair_1): New function.
9831         (umips_output_load_store_pair): New function.
9832         (umips_movep_target_p) New function.
9833         (mips_prepare_pch_save): Add microMIPS support.
9834         * config/mips/mips.h (TARGET_COMPRESSION): New.
9835         (TARGET_CPU_CPP_BUILTINS): Update macro
9836         to use new compression flags and to support microMIPS.
9837         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9838         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9839         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9840         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9841         (ASM_SPEC): Support mmicromips and mno-micromips.
9842         (M16STORE_REG_P): New macro.
9843         (MIPS_CALL): Support TARGET_MICROMIPS.
9844         (MICROMIPS_J): New macro.
9845         (mips_base_mips16): Rename this...
9846         (mips_base_compression_flags): ...to this.
9847         (UMIPS_12BIT_OFFSET_P): New macro.
9848         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9849         (MULTILIB_DIRNAMES): Likewise.
9851 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
9853         PR target/52555
9854         * target-globals.c (save_target_globals): For init_reg_sets and
9855         target_reinit remporarily set this_fn_optabs to this_target_optabs.
9857 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
9859         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9860         * config/aarch64/t-aarch64
9861         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9863 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
9865         PR inline-asm/56148
9866         * lra-constraints.c (process_alt_operands): Reload operand
9867         conflicting with earlier clobber only if no more other conflicting
9868         operands.
9870 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
9872         PR sanitizer/56393
9873         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9874         if not linking a shared library.
9876 2013-02-22  Seth LaForge  <sethml@google.com>
9878         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9880 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
9882         * config/arm/arm.md (split for extendsidi): Update condition.
9883         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9884         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9885         (qhs_zextenddi_cstr): Likewise.
9887 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
9889         PR middle-end/56420
9890         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9891         avoid signed wrapping.
9892         (expand_mult): Handle properly multiplication by
9893         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
9894         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
9895         in the compiler if coeff is HOST_WIDE_INT_MIN.
9896         (expand_divmod): Don't make ext_op1 static, change it's type to
9897         uhwi.  Avoid undefined behavior in -INTVAL (op1).
9899         PR rtl-optimization/50339
9900         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9901         field.
9902         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9903         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9904         into splitting_ashiftrt field.
9905         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9906         ASHIFTRT.
9907         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9908         choices.
9910 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
9912         PR middle-end/56108
9913         * trans-mem.c (execute_tm_mark): Do not expand transactions that
9914         are sure to go irrevocable.
9916 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
9918         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9919         scalars are valid operands.
9921 2013-02-21  Martin Jambor  <mjambor@suse.cz>
9923         PR tree-optimization/56310
9924         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9925         only matching indices and non-negative final offsets.
9926         (intersect_aggregates_with_edge): Pass src_idx to
9927         agg_replacements_to_vector.  Pass src_idx insstead of index to
9928         intersect_with_agg_replacements.
9930 2013-02-21  Martin Jambor  <mjambor@suse.cz>
9932         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9933         instead of hard-wired defaults.
9935 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
9937         * doc/invoke.texi (MIPS Options): Update documentation of the
9938         floating-point multiply-accumulate instruction restrictions.
9940 2013-02-21  Kostya Serebryany  <kcc@google.com>
9942         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9943         asan_shadow_offset on x86_64 linux.
9945 2013-02-21  Richard Biener  <rguenther@suse.de>
9947         PR tree-optimization/56415
9948         Revert
9949         2013-02-11  Richard Biener  <rguenther@suse.de>
9951         PR tree-optimization/56273
9952         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9953         first VRP run.
9955 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
9957         PR bootstrap/56258
9958         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9959         instead of @itemx.
9961         PR inline-asm/56405
9962         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9963         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9965 2013-02-20  Jan Hubicka  <jh@suse.cz>
9967         PR tree-optimization/56265
9968         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9969         when target is referenced for first time.
9971 2013-02-20  Richard Biener  <rguenther@suse.de>
9973         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9974         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9975         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9976         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9977         not return anything.
9978         (rename_ssa_copies): Do not remove unused locals.
9979         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9980         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9981         * passes.c (execute_function_todo): Do not schedule unused locals
9982         removal if cleanup_tree_cfg did something.
9983         * tree-ssa-live.c (remove_unused_locals): Dump statistics
9984         about the number of removed locals.
9986 2013-02-20  Richard Biener  <rguenther@suse.de>
9988         PR tree-optimization/56398
9989         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9991 2013-02-20  Martin Jambor  <mjambor@suse.cz>
9993         PR tree-optimization/55334
9994         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9995         restricted pointers to arrays.
9997 2013-02-20  Richard Biener  <rguenther@suse.de>
9998             Jakub Jelinek  <jakub@redhat.com>
10000         PR tree-optimization/56396
10001         * tree-ssa-ccp.c (n_const_val): New static variable.
10002         (get_value): Return NULL for SSA names we don't have a lattice
10003         entry for.
10004         (ccp_initialize): Initialize n_const_val.
10005         * tree-ssa-copy.c (n_copy_of): New static variable.
10006         (init_copy_prop): Initialize n_copy_of.
10007         (get_value): Return NULL_TREE for SSA names we don't have a
10008         lattice entry for.
10010 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10012         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10014 2013-02-20  Richard Biener  <rguenther@suse.de>
10016         * genpreds.c (write_lookup_constraint): Do not compare first
10017         letter of the constraint again.
10019 2013-02-20  Richard Biener  <rguenther@suse.de>
10021         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10022         and ceil_log2.
10023         (get_use_iv_cost): Terminate hashtable walk when coming across
10024         an empty entry.
10026 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10028         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10029         reassociation for avx2 targets.
10031 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10033         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10034         Add version check for v8.10.a to enable microblaze_has_clz
10035         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10036         version and TARGET_PATTERN_COMPARE check
10037         * config/microblaze/microblaze.md: New clzsi2 instruction
10039 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10041         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10042         function before branching.
10044 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10046         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10047         DUMP_INSN_RTX_UID.
10048         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10050 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10052         PR middle-end/55889
10053         * sel-sched.c: Include ira.h.
10054         (implicit_clobber_conflict_p): New function.
10055         (moveup_expr): Use it.
10056         * Makefile.in (sel-sched.o): Depend on ira.h.
10058 2013-02-19  Richard Biener  <rguenther@suse.de>
10060         PR tree-optimization/56384
10061         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10062         (vn_hash_type): Split out from ...
10063         (vn_hash_constant_with_type): ... here.
10064         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10065         (vn_phi_eq): Compare types from vn_phi_s structure.
10066         (vn_phi_lookup): Populate vn_phi_s type.
10067         (vn_phi_insert): Likewise.
10069 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10071         PR tree-optimization/56350
10072         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10073         if haven't found reduction or nested cycle operand, rather than
10074         asserting we must find it.
10076         PR tree-optimization/56381
10077         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10078         to fold_build3.
10080 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10081             Jakub Jelinek  <jakub@redhat.com>
10083         PR target/52555
10084         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10085         (swap_optab_enable): Same.
10086         (init_all_optabs): Use argument instead of global.
10087         * tree.h (struct tree_optimization_option): New field target_optabs.
10088         * expr.h (init_all_optabs): Add argument to prototype.
10089         (TREE_OPTIMIZATION_OPTABS): New.
10090         (save_optabs_if_changed): Protoize.
10091         * optabs.h: Declare this_fn_optabs.
10092         * optabs.c (save_optabs_if_changed): New.
10093         Declare this_fn_optabs.
10094         (init_optabs): Add argument to init_all_optabs() call.
10095         * function.c (invoke_set_current_function_hook): Handle per
10096         function optabs.
10097         * function.h (struct function): New field optabs.
10098         * config/mips/mips.c (mips_set_mips16_mode): Handle when
10099         optimization_current_node has changed.
10100         * target-globals.h (save_target_globals_default_opts): Protoize.
10101         * target-globals.c (save_target_globals_default_opts): New.
10103 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10105         PR target/56347
10106         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10107         registers %fr12 and %fr12R as call used.
10109         PR target/56214
10110         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10111         and HImode, require all displacements to be an integer multiple of
10112         their mode size.
10113         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10114         only allow QImode and HImode when reload is in progress and strict is
10115         true.  Likewise for symbolic addresses.  Use base14_operand to check
10116         displacements in REG+BASE addresses.
10118 2013-02-18  Richard Biener  <rguenther@suse.de>
10120         PR tree-optimization/56366
10121         * tree-vect-loop.c (get_initial_def_for_induction): Properly
10122         handle sign-conversion of outer-loop initial induction value.
10124 2013-02-18  Richard Biener  <rguenther@suse.de>
10126         PR middle-end/56349
10127         * cfghooks.c (merge_blocks): If we merge a latch into another
10128         block adjust references to it.
10129         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10130         (verify_loop_structure): Verify that a recorded latch is in fact
10131         a latch.
10133 2013-02-18  Richard Biener  <rguenther@suse.de>
10135         PR tree-optimization/56321
10136         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10137         order SSA name release and virtual operand unlinking.
10139 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10141         * config/microblaze/microblaze.md (save_stack_block): Define.
10142         (restore_stack_block): Likewise.
10144 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10146         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10147         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10148         * config/microblaze/microblaze.c (microblaze_option_override):
10149         Bail out early for PIC modes when target does not support PIC.
10151 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10153         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10154         Replace with a microblaze version.
10155         (microblaze_trampoline_init): Adapt for microblaze.
10156         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10157         microblaze.
10159 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
10160             Dodji Seketeli  <dodji@redhat.com>
10162         PR asan/56330
10163         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10164         (instrument_mem_region_access): Do not forget to always put
10165         instrumentation of the of 'base' and 'base + len' in a "if (len !=
10166         0) statement, even for cases where either 'base' or 'base + len'
10167         are not instrumented -- because they have been previously
10168         instrumented.  Simplify the logic by putting all the statements
10169         instrument 'base + len' inside a sequence, and then insert that
10170         sequence right before the current insertion point.  Then, to
10171         instrument 'base + len', just get an iterator on that statement.
10172         And do not forget to update the pointer to iterator the function
10173         received as argument.
10175 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
10177         PR rtl-optimization/56348
10178         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10180 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
10182         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10183         (clean_graph_dump_file): Pass base to start_graph_dump.
10185 2013-02-14  Richard Henderson  <rth@redhat.com>
10187         PR target/55941
10188         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10190 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10192         * collect2-aix.h: Define F_LOADONLY.
10194 2013-02-14  Richard Biener  <rguenther@suse.de>
10196         PR lto/50494
10197         * varasm.c (output_constant_def_1): Get the decl representing
10198         the constant as argument.
10199         (output_constant_def): Wrap output_constant_def_1.
10200         (make_decl_rtl): Use output_constant_def_1 with the decl
10201         representing the constant.
10202         (build_constant_desc): Optionally re-use a decl already
10203         representing the constant.
10204         (tree_output_constant_def): Adjust.
10206 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
10208         Fix an asan crash
10209         * asan.c (instrument_builtin_call):  Really put the length of the
10210         second source argument into src1_len.
10212 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10214         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10215         argument.  If it is false, don't create edge from then_bb to
10216         fallthru_bb.
10217         (insert_if_then_before_iter): Pass true to it.
10218         (build_check_stmt): Pass false to it.
10219         (transform_statements): Flush hash table only on extended basic
10220         block boundaries, rather than at the beginning of every bb.
10221         Don't flush hash table on nonfreeing_call_p calls.
10222         * tree-flow.h (nonfreeing_call_p): New prototype.
10223         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10225 2013-02-13  David S. Miller  <davem@davemloft.net>
10227         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10229 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
10231         PR target/56184
10232         * ira.c (max_regno_before_ira): Move from ...
10233         (ira): ... here.
10234         (fix_reg_equiv_init): Use max_regno_before_ira instead of
10235         vec_safe_length.
10237 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
10239         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10241 2013-02-13  Richard Biener  <rguenther@suse.de>
10243         PR lto/56295
10244         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10245         globals in MEM_REFs.
10247 2013-02-13  Richard Biener  <rguenther@suse.de>
10249         * loop-init.c (loop_optimizer_init): Clear loop state when
10250         re-initializing preserved loops.
10251         * loop-unswitch.c (unswitch_single_loop): Return whether
10252         we unswitched the loop.  Do not verify loop state here.
10253         (unswitch_loops): When we unswitched a loop discover new loops.
10255 2013-02-13  Kostya Serebryany  <kcc@google.com>
10257         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10258         on x86_64 linux.
10259         * sanitizer.def: Rename __asan_init to __asan_init_v1.
10261 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
10263         Avoid instrumenting duplicated memory access in the same basic block
10264         * Makefile.in (asan.o): Add new dependency on hash-table.h
10265         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10266         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10267         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10268         (free_mem_ref_resources, has_mem_ref_been_instrumented)
10269         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10270         (get_mem_ref_of_assignment): New functions.
10271         (get_mem_refs_of_builtin_call): Extract from
10272         instrument_builtin_call and tweak a little bit to make it fit with
10273         the new signature.
10274         (instrument_builtin_call): Use the new
10275         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
10276         of is_gimple_builtin_call.
10277         (instrument_derefs, instrument_mem_region_access): Insert the
10278         instrumented memory reference into the hash table.
10279         (maybe_instrument_assignment): Renamed instrument_assignment into
10280         this, and change it to advance the iterator when instrumentation
10281         actually happened and return true in that case.  This makes it
10282         homogeneous with maybe_instrument_assignment, and thus give a
10283         chance to callers to be more 'regular'.
10284         (transform_statements): Clear the memory reference hash table
10285         whenever we enter a new BB, when we cross a function call, or when
10286         we are done transforming statements.  Use
10287         maybe_instrument_assignment instead of instrumentation.  No more
10288         need to special case maybe_instrument_assignment and advance the
10289         iterator after calling it; it's now handled just like
10290         maybe_instrument_call.  Update comment.
10292 2013-02-13  Richard Biener  <rguenther@suse.de>
10294         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10295         Fix loop discovery code.
10297 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
10299         PR inline-asm/56148
10300         * lra-constraints.c (process_alt_operands): Match early clobber
10301         operand with itself.  Check conflicts with earlyclobber only if
10302         the operand is not reloaded.  Prefer to reload conflicting operand
10303         if earlyclobber and matching operands are the same.
10305 2013-02-12  Richard Biener  <rguenther@suse.de>
10307         PR lto/56297
10308         * lto-streamer-out.c (write_symbol): Do not output symbols
10309         for hard register variables.
10311 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
10313         PR target/54222
10314         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10315         (umulsidi3_insn, mulsidi3_insn): New insns.
10317 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
10319         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10320         (struct tune_params): Add vec_costs field.
10321         * config/arm/arm.c (arm_builtin_vectorization_cost)
10322         (arm_add_stmt_cost): New functions.
10323         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10324         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10325         (arm_default_vec_cost): New struct of type cpu_vec_costs.
10326         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10327         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10328         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10329         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10331 2013-02-12  Richard Biener  <rguenther@suse.de>
10333         PR lto/56295
10334         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10335         decls again if possible.
10337 2013-02-12  Richard Biener  <rguenther@suse.de>
10339         PR middle-end/56288
10340         * tree-ssa.c (verify_ssa_name): Fix check, move
10341         SSA_NAME_IN_FREE_LIST check up.
10343 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
10344             Steven Bosscher   <steven@gcc.gnu.org>
10346         PR rtl-optimization/56151
10347         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10348         equal to op0 or op1, and last_insn pattern is CODE operation
10349         with MEM dest and one of the operands matches that MEM.
10351 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
10353         * doc/extend.texi: Document Function Multiversioning and "default"
10354         parameter string to target attribute.
10355         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10356         target attribute parameter is "default".
10357         (ix86_compare_version_priority): Remove checks for target attribute.
10358         (ix86_mangle_function_version_assembler_name): Change error to sorry.
10359         Remove check for target attribute equal to NULL. Add assert.
10360         (ix86_generate_version_dispatcher_body): Change error to sorry.
10362 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
10363             Jack Howarth  <howarth@bromo.med.uc.edu>
10364             Patrick Marlier  <patrick.marlier@gmail.com>
10366         PR libitm/55693
10367         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10368         define ENDFILE_SPEC as TM_DESTRUCTOR.
10369         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10371 2013-02-11  Alexander Potapenko  <glider@google.com>
10372             Jack Howarth  <howarth@bromo.med.uc.edu>
10373             Jakub Jelinek  <jakub@redhat.com>
10375         PR sanitizer/55617
10376         * config/darwin.c (cdtor_record): Rename ctor_record.
10377         (sort_cdtor_records): Rename sort_ctor_records.
10378         (finalize_dtors): New routine to sort destructors by
10379         priority before use in assemble_integer.
10380         (machopic_asm_out_destructor): Use finalize_dtors if needed.
10382 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
10384         PR rtl-optimization/56275
10385         * simplify-rtx.c (avoid_constant_pool_reference): Check that
10386         offset is non-negative and less than cmode size before
10387         calling simplify_subreg.
10389 2013-02-11  Richard Biener  <rguenther@suse.de>
10391         PR tree-optimization/56264
10392         * cfgloop.h (fix_loop_structure): Adjust prototype.
10393         * loop-init.c (fix_loop_structure): Return the number of
10394         newly discovered loops.
10395         * tree-cfgcleanup.c (repair_loop_structures): When new loops
10396         are discovered, do a full loop-closed SSA rewrite.
10398 2013-02-11  Richard Biener  <rguenther@suse.de>
10400         PR tree-optimization/56273
10401         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10402         first VRP run.
10403         (check_array_ref): Fix missing newline in dumps.
10404         (search_for_addr_array): Likewise.
10406 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
10408         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10410 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
10412         PR target/56256
10413         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10415 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
10417         PR rtl-optimization/56246
10418         * lra-constraints.c (simplify_operand_subreg): Try to reuse
10419         reload pseudo.
10420         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10421         constraints are satisfied.
10423 2013-02-08  Jeff Law  <law@redhat.com>
10425         PR debug/53948
10426         * emit-rtl.c (reg_is_parm_p): New function.
10427         * regs.h (reg_is_parm_p): New prototype.
10428         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10429         callee-clobbered registers.
10431 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10433         PR target/56043
10434         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10435         If there is no implicit builtin declaration, just return NULL.
10437 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10439         * config/i386/sse.md (FMAMODEM): New mode iterator.
10440         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10441         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10443 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10445         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10446         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10447         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10449 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10451         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10452         (microblaze*-*-elf): Likewise.
10453         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10454         LINK_SPEC.
10455         * config/microblaze/microblaze-c.c: Add builtin defines for
10456         _LITTLE_ENDIAN and _BIG_ENDIAN.
10457         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10458         add to TARGET_DEFAULT flags.
10459         Expand ASM_SPEC and LINK_SPEC.
10460         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10461         * config/microblaze/microblaze.md: Update extendsidi2 and
10462         movdi_internal instructions to use low-order / high-order reg
10463         print_operands.
10464         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10465         options and inversemask / mask of LITTLE_ENDIAN.
10466         * config/microblaze/t-microblaze: Expand multilib options to
10467         include mlittle-endian (le) and update exceptions patterns.
10469 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
10471         PR rtl-optimization/56195
10472         * lra-constraints.c (get_reload_reg): Don't reuse regs
10473         if they have smaller mode than requested, if they have
10474         wider mode than requested, try to return a SUBREG.
10476         PR tree-optimization/56250
10477         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10478         if type is unsigned and code isn't MULT_EXPR.
10480 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10482         PR tree-optimization/56064
10483         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10484         bits according to mode.
10485         * fixed-value.h (fixed_from_double_int)
10486         (const_fixed_from_double_int): Adjust comments.
10488 2013-02-08  Richard Biener  <rguenther@suse.de>
10490         PR lto/56231
10491         * lto-streamer.h (struct data_in): Remove current_file, current_line
10492         and current_col members.
10493         * lto-streamer-out.c (lto_output_location): Stream changed bits
10494         en-block for efficiency.
10495         * lto-streamer-in.c (clear_line_info): Remove.
10496         (lto_input_location): Cache current file, line and column
10497         globally via local statics.  Read changed bits en-block.
10498         (input_function): Do not call clear_line_info.
10499         (lto_read_body): Likewise.
10500         (lto_input_toplevel_asms): Likewise.
10502 2013-02-08  Michael Matz  <matz@suse.de>
10504         PR tree-optimization/52448
10505         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10506         (nt_call_phase): New static.
10507         (add_or_mark_expr): Only mark accesses with newer phase than any
10508         call seen.
10509         (nonfreeing_call_p): New.
10510         (nt_init_block): Update nt_call_phase, mark blocks as visited.
10511         (nt_fini_block): Keep blocks marked as visited.
10512         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10514 2013-02-08  Richard Biener  <rguenther@suse.de>
10516         * ira.c (ira): Free broken dominator information.
10518 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
10520         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10522 2013-02-08  Marek Polacek  <polacek@redhat.com>
10524         * cfgloop.c (verify_loop_structure): Add more checking of headers.
10526 2013-02-08  Richard Biener  <rguenther@suse.de>
10528         PR middle-end/56181
10529         * cfgloop.h (flow_loops_find): Adjust.
10530         (bb_loop_header_p): Declare.
10531         * cfgloop.c (bb_loop_header_p): New function split out from ...
10532         (flow_loops_find): ... here.  Adjust function signature,
10533         support incremental loop structure update.
10534         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
10535         * cfgloopmanip.c (fix_loop_structure): Move ...
10536         * loop-init.c (fix_loop_structure): ... here.
10537         (apply_loop_flags): Split out from ...
10538         (loop_optimizer_init): ... here.
10539         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
10540         in incremental mode, only remove dead loops here.
10542 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
10544         PR target/54222
10545         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10546         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10547         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10548         (*round<mode>3.libgcc): New insns for fixed-modes.
10549         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10550         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10551         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10552         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10553         implementations.  Define to __builtin_avr_absFX,
10554         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10555         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10556         __builtin_avr_countlsFX, respectively.
10557         * config/avr/avr-c.c (target.h): Include it.
10558         (enum avr_builtin_id): New enum.
10559         (avr_resolve_overloaded_builtin): New static function.
10560         (avr_register_target_pragmas): Use it to set
10561         targetm.resolve_overloaded_builtin.
10562         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10563         tree nodes used by DEF_BUILTIN.
10564         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10565         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10566         <AVR_BUILTIN_xxBITS>: Same.
10568 2013-02-08  Richard Biener  <rguenther@suse.de>
10570         * cfgloop.c (verify_loop_structure): Properly handle
10571         a loop exiting to another loop header.
10572         * ira-int.h (ira_loops): Remove.
10573         * ira.c (ira_loops): Remove.
10574         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10575         (do_reload): Use loop_optimizer_finalize.
10576         * ira-build.c (create_loop_tree_nodes): Use get_loops and
10577         number_of_loops to access the loop tree.
10578         (more_one_region_p): Likewise.
10579         (finish_loop_tree_nodes): Likewise.
10580         (rebuild_regno_allocno_maps): Likewise.
10581         (mark_loops_for_removal): Likewise.
10582         (mark_all_loops_for_removal): Likewise.
10583         (remove_unnecessary_regions): Likewise.
10584         (ira_build): Likewise.
10585         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10587 2013-02-08  Richard Biener  <rguenther@suse.de>
10589         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10590         * ipa-pure-const.c (analyze_function): Avoid calling
10591         mark_irreducible_loops twice.
10592         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
10594 2013-02-07  David S. Miller  <davem@davemloft.net>
10596         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10597         on 'reg'.
10598         * var-tracking.c (vt_add_function_parameter): Test the presence of
10599         HAVE_window_save properly and do not remap argument registers when
10600         we have a leaf function.
10602 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
10604         PR bootstrap/56227
10605         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10606         instead of "ll".
10607         * config/i386/i386.c (ix86_print_operand): Ditto.
10609 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
10611         * lra-constraints.c (process_alt_operands): Fix recently added comment.
10613 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
10615         PR rtl-optimization/56225
10616         * lra-constraints.c (process_alt_operands): Check that reload hard
10617         reg can hold value for strict_low_part.
10619 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
10621         PR debug/56154
10622         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
10623         dwarf2out_end_function.
10624         (in_first_function_p, maybe_at_text_label_p,
10625         first_loclabel_num_not_at_text_label): New variables.
10626         (dwarf2out_var_location): In the first function find out
10627         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
10628         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10629         functions.
10631 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
10633         PR rtl-optimization/56178
10634         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10635         SUBREG of a register.  Tidy up related block of code.
10636         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10637         note if the source is a register or a SUBREG of a register.
10639 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
10641         PR target/56228
10642         * config/rs6000/rs6000.md (ptrm): New mode attr.
10643         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10644         call_value_indirect_aix<pttrsize>,
10645         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10646         m in constraints.
10648 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10650         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10651         if -bnortl. Convert to strcmp and strncmp.
10653 2013-02-07  Alan Modra  <amodra@gmail.com>
10655         PR target/54009
10656         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10657         addresses won't wrap when offsetting.
10658         (rs6000_secondary_reload): Provide secondary reloads needed for
10659         wrapping LO_SUM addresses.
10661 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
10663         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10664         MACH, just __MACH__.
10666 2013-02-06  Richard Biener  <rguenther@suse.de>
10668         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10669         instead of calling fix_loop_structure.
10671 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
10673         PR middle-end/56217
10674         * omp-low.c (use_pointer_for_field): Return false if
10675         lower_send_shared_vars doesn't generate any copy-out code.
10677 2013-02-06  Tom de Vries  <tom@codesourcery.com>
10679         PR rtl-optimization/56131
10680         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10681         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
10682         of the label is NULL.  Add comment.
10684 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
10686         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10688         PR sanitizer/55374
10689         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10690         (STATIC_LIBTSAN_LIBS): Likewise.
10691         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10692         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10693         is defined, don't add anything else beyond that.
10694         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10695         (LINK_COMMAND_SPEC): Use them.
10697         PR tree-optimization/56205
10698         * tree-stdarg.c (check_all_va_list_escapes): Return true if
10699         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10700         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10702 2013-02-05  Richard Biener  <rguenther@suse.de>
10704         PR tree-optimization/53342
10705         PR tree-optimization/53185
10706         * tree-vectorizer.h (vect_check_strided_load): Remove.
10707         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10708         not disallow peeling for vectorized strided loads.
10709         (vect_check_strided_load): Make static and simplify.
10710         (vect_analyze_data_refs): Adjust.
10711         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10712         correctly when vectorizing strided loads.
10714 2013-02-05  Richard Biener  <rguenther@suse.de>
10716         * doc/install.texi: Refer to ISL, not PPL.
10718 2013-02-05  Jan Hubicka  <jh@suse.cz>
10720         PR tree-optimization/55789
10721         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10723 2013-02-05  Jan Hubicka  <jh@suse.cz>
10725         PR tree-optimization/55789
10726         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10727         the dead call anyway.
10729 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
10731         PR sanitizer/55374
10732         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10734 2013-02-04  Alexander Potapenko  <glider@google.com>
10735             Jack Howarth  <howarth@bromo.med.uc.edu>
10736             Jakub Jelinek  <jakub@redhat.com>
10738         PR sanitizer/55617
10739         * config/darwin.c (sort_ctor_records): Stabilized qsort
10740         on constructor priority by using original position.
10741         (finalize_ctors): New routine to sort constructors by
10742         priority before use in assemble_integer.
10743         (machopic_asm_out_constructor): Use finalize_ctors if needed.
10745 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
10747         PR libstdc++/54314
10748         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10749         about visibility on artificial decls.
10750         * config/sol2.c (solaris_assemble_visibility): Likewise.
10752 2013-02-04  Kai Tietz  <ktietz@redhat.com>
10754         PR target/56186
10755         * config/i386/i386.c (function_value_ms_64): Add additional valtype
10756         argument and improve checking of return-argument types for 16-byte
10757         modes.
10758         (ix86_function_value_1): Add additional valtype argument on call
10759         of function_value_64.
10760         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10761         handling infunction_value_64 function.
10763 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
10765         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
10767 2013-02-04  Richard Biener  <rguenther@suse.de>
10769         PR tree-optimization/56188
10770         * tree-ssa-structalias.c (label_visit): Consider case with
10771         initially non-empty points-to set.
10772         (perform_var_substitution): Dump node mapping and clean up.
10774 2013-02-04  Richard Guenther  <rguenther@suse.de>
10776         PR lto/56168
10777         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10778         node prevail as last resort.
10779         (lto_symtab_merge_decls): Remove guard on LTRANS here.
10780         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
10782 2013-02-04  Richard Biener  <rguenther@suse.de>
10784         PR tree-optimization/56113
10785         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10786         Merge into ...
10787         (equiv_class_lookup_or_add): ... this.
10788         (label_visit): Adjust and fix error in previous patch.
10789         (perform_var_substitution): Adjust.
10791 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
10793         * config/sh/divtab.c: Fix formatting and comments throughout the file.
10794         * config/sh/sh4-300.md: Likewise.
10795         * config/sh/sh4a.md: Likewise.
10796         * config/sh/constraints.md: Likewise.
10797         * config/sh/sh.md: Likewise.
10798         * config/sh/netbsd-elf.h: Likewise.
10799         * config/sh/predicates.md: Likewise.
10800         * config/sh/sh-protos.h: Likewise.
10801         * config/sh/ushmedia.h: Likewise.
10802         * config/sh/linux.h: Likewise.
10803         * config/sh/sh.c: Likewise.
10804         * config/sh/superh.h: Likewise.
10805         * config/sh/elf.h: Likewise.
10806         * config/sh/sh4.md: Likewise.
10807         * config/sh/sh.h: Likewise.
10809 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10811         * config/pa/constraints.md: Adjust unused letters.  Change "T"
10812         constraint to match_test floating_point_store_memory_operand().
10813         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10814         (base14_operand): New.
10815         (floating_point_store_memory_operand): New.
10816         (integer_store_memory_operand): Revise to use base14_operand and
10817         reg_plus_base_memory_operand.
10818         (move_dest_operand): Allow symbolic_memory_operands.
10819         (symbolic_memory_operand): Check for LO_SOM.
10820         (symbolic_operand): Change default case to break.
10821         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10822         CONST_DOUBLE values to be reloaded by putting them into memory when
10823         the destination is a floating point register.
10824         (movdf): Remove code to handle CONST_DOUBLE.
10825         (movsf): Likewise.
10826         (reload_indf_r1): New.
10827         (reload_insf_r1): New.
10828         Consistently use "Q" and "T" constraints with integer and floating
10829         point move instructions, respectively.
10830         (movdi): Remove FAIL.
10831         Change predicate for source operand unamed DImode move from
10832         general_operand to move_src_operand.
10833         (umulsidi3): Change predicate for destination operand to
10834         register_operand.
10835         Likewise for similar unamed patterns.
10836         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10837         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10838         (hppa_legitimize_address): Simplify mask calculation.
10839         (pa_emit_move_sequence): Revised handling of secondary reloads from
10840         REG+D addresses for floating point loads and stores.  Directly handle
10841         loading CONST0_RTX (mode) to a floating point register.
10842         (pa_secondary_reload): Handle reloading DF and SFmode constant values
10843         to floating point registers.  Don't restrict secondary reloads to
10844         floating point registers to integer modes.  Revise some comments and
10845         cleanup some code.
10846         (TARGET_LEGITIMATE_ADDRESS_P): Define.
10847         (pa_legitimate_address_p): New.
10848         (pa_legitimize_reload_address): New.
10849         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10850         (STRICT_REG_OK_FOR_BASE_P): New.
10851         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
10852         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10854 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
10855             Andrew Dixie  <andrewd@gentrack.com>
10857         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10858         flag set.
10860 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
10862         * expmed.c (extract_bit_field_1): Pass the full width of the
10863         structure to get_best_reg_extraction_insn.
10865 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
10867         PR target/54601
10868         * configure.ac (use_cxa_atexit): Add AIX.
10869         * configure: Regenerate.
10871         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10873 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
10875         PR debug/54793
10876         * final.c (need_profile_function): New variable.
10877         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10878         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10879         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10880         notes, targetm.asm_out.function_prologue doesn't emit anything,
10881         HAVE_prologue and profiler should be emitted before prologue,
10882         set need_profile_function instead of emitting it.
10883         (final_scan_insn): If need_profile_function, emit
10884         profile_function on the first NOTE_INSN_BASIC_BLOCK or
10885         NOTE_INSN_FUNCTION_BEG note.
10887 2013-02-01  Richard Henderson  <rth@redhat.com>
10889         * config/rs6000/rs6000.md (smulditi3): New.
10890         (umulditi3): New.
10892         * config/alpha/alpha.md (umulditi3): New.
10894 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
10896         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10897         (ASM_OUTPUT_ALIGNED_LOCAL): New.
10899 2013-02-01  Richard Biener  <rguenther@suse.de>
10901         PR tree-optimization/56113
10902         * tree-ssa-structalias.c (label_visit): Reduce work for
10903         single-predecessor nodes.
10905 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
10907         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10908         range isn't testing for zero.
10910 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
10912         PR middle-end/56113
10913         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10915 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
10916             Nick Clifton  <nickc@redhat.com>
10918         * config/v850/constraints.md (Q): Define as a memory constraint.
10919         * config/v850/predicates.md (label_ref_operand): New predicate.
10920         (e3v5_shift_operand): New predicate.
10921         (ior_operator): New predicate.
10922         * config/v850/t-v850: Add e3v5 multilib.
10923         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10924         (v850_gen_movdi): Prototype.
10925         * config/v850/v850.c: Add support for e3v5 architecture.
10926         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10927         TARGET_V850E_UP.
10928         (construct_save_jarl): Add e3v5 long JARL support.
10929         (v850_adjust_insn_length): New function.  Adjust length of call
10930         insns when using e3v5 instructions.
10931         (v850_gen_movdi): New function: Generate instructions to move a
10932         DImode value.
10933         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10934         (CPP_SPEC): Define __v850e3v5__ as appropriate.
10935         (TARGET_USE_FPU): Enable for e3v5.
10936         (CONST_OK_FOR_W): New macro.
10937         (ADJUST_INSN_LENGTH): Define.
10938         * config/v850/v850.md (UNSPEC_LOOP): Define.
10939         (attr cpu): Add v850e3v5.
10940         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10941         (movdi): New pattern.
10942         (movdi_internal): New pattern.
10943         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10944         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10945         (cstoresf4): Likewise.
10946         (cstoredf4): Likewise.
10947         (insv): New pattern.
10948         (rotlso3_a): New pattern.
10949         (rotlsi3_b): New pattern
10950         (rotlsi3_v850e3v5): New pattern.
10951         (doloop_begin): New pattern.
10952         (fix_loop_counter): New pattern.
10953         (doloop_end): New pattern.
10954         (branch_normal): Add e3v5 long branch support.
10955         (branch_invert): Likewise.
10956         (branch_z_normal): Likewise.
10957         (branch_z_invert): Likewise.
10958         (branch_nz_normal): Likewise.
10959         (branch_nz_invert): Likewise.
10960         (call_internal_short): Add e3v5 register-indirect JARL support.
10961         (call_internal_long): Likewise.
10962         (call_value_internal_short): Likewise.
10963         (call_value_internal_long): Likewise.
10964         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10965         (mloop): New option.
10966         * config.gcc: Add support for configuring v840e3v5 target.
10967         * doc/invoke.texi: Document new v850 specific command line options.
10969 2013-01-31  Paul Koning  <ni1d@arrl.net>
10971         PR debug/55059
10972         PR debug/54508
10973         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10974         children if parent is a class.
10975         (prune_unused_types_prune): Don't add DW_AT_declaration.
10977 2013-01-31  Richard Biener  <rguenther@suse.de>
10979         PR tree-optimization/56157
10980         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10981         match up operand with SLP child.
10983 2013-01-31  Jason Merrill  <jason@redhat.com>
10985         PR debug/54410
10986         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10987         parameters the first time.
10988         (gen_scheduled_generic_parms_dies): Check completeness here.
10990 2013-01-31  Richard Biener  <rguenther@suse.de>
10992         PR middle-end/53073
10993         * common.opt (faggressive-loop-optimizations): New flag,
10994         enabled by default.
10995         * doc/invoke.texi (faggressive-loop-optimizations): Document.
10996         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10997         infer_loop_bounds_from_undefined by it.
10999 2013-01-31  Richard Biener  <rguenther@suse.de>
11001         PR tree-optimization/56150
11002         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11003         visit virtual operands.
11004         (find_uses_to_rename_bb): Likewise.
11006 2013-01-31  Richard Biener  <rguenther@suse.de>
11008         PR tree-optimization/56150
11009         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11010         mixed store non-store stmts.
11012 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11014         PR sanitizer/55374
11015         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11016         LIBASAN_EARLY_SPEC is defined.
11017         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11018         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11019         before %o.
11020         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11022         PR c++/55742
11023         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11024         invalid args instead of ICEing on it.
11025         (ix86_valid_target_attribute_tree): Return error_mark_node if
11026         ix86_valid_target_attribute_inner_p failed.
11027         (ix86_valid_target_attribute_p): Return false only if
11028         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11029         target("default") attribute.
11030         (sorted_attr_string): Change argument from const char * to tree,
11031         merge in all target attribute arguments rather than just one.
11032         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11033         instead of free.  Avoid using strcat.
11034         (ix86_mangle_function_version_assembler_name): Mangle
11035         target("default") as if no target attribute is present.  Adjust
11036         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11037         instead of xmalloc and XDELETEVEC instead of free.
11038         (ix86_function_versions): Don't return true if one of the decls
11039         doesn't have target attribute.  If they don't and one of the decls
11040         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11041         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11042         (ix86_supports_function_versions): Remove.
11043         (make_name): Fix up formatting.
11044         (make_dispatcher_decl): Remove resolver_name and its initialization.
11045         Avoid leaking memory.
11046         (is_function_default_version): Return true if there is
11047         target("default") attribute rather than no target attribute at all.
11048         (make_resolver_func): Avoid leaking memory.
11049         (ix86_generate_version_dispatcher_body): Likewise.
11050         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11051         * target.def (supports_function_versions): Remove.
11052         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11053         * doc/tm.texi: Regenerated.
11055 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11057         PR rtl-optimization/56144
11058         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11059         for values with side effects.
11061 2013-01-30  Richard Biener  <rguenther@suse.de>
11063         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11064         (sparseset_pop): Likewise.
11065         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11066         to be able to use quick_push in the worker loop.
11068 2013-01-30  Marek Polacek  <polacek@redhat.com>
11070         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11072 2013-01-30  Richard Biener  <rguenther@suse.de>
11074         PR lto/56147
11075         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11077 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11079         PR tree-optimization/56064
11080         * fixed-value.c (fixed_from_double_int): New function.
11081         * fixed-value.h (fixed_from_double_int): New prototype.
11082         (const_fixed_from_double_int): New static inline function.
11083         * fold-const.c (native_interpret_fixed): New static function.
11084         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11085         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11086         (native_encode_fixed): New static function.
11087         (native_encode_expr) <FIXED_CST>: Use it.
11088         (native_interpret_int): Move double_int worker code to...
11089         * double-int.c (double_int::from_buffer): ...this new static method.
11090         * double-int.h (double_int::from_buffer): Prototype it.
11092 2013-01-30  Richard Biener  <rguenther@suse.de>
11094         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11095         New pointer-map and obstack.
11096         (init_alias_vars): Allocate pointer-map and obstack.
11097         (delete_points_to_sets): Free them.
11098         (find_what_var_points_to): Cache result.
11099         (find_what_p_points_to): Adjust for changed interface of
11100         find_what_var_points_to.
11101         (compute_points_to_sets): Likewise.
11102         (ipa_pta_execute): Likewise.
11104 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11106         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11107         * configure: Regenerate.
11108         * config.in: Regenerate.
11109         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11110         #nobits/#progbits if supported.
11112 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
11114         PR target/56121
11115         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11116         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11117         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11119 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11121         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11122         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11124 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11126         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11127         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11129 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11131         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11132         declaration.
11133         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11134         * config/arm/cortex-a7.md: New bypasses using
11135         arm_mac_accumulator_is_result.
11137 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11139         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
11140         (cortex_a7_neon_mla): Likewise.
11141         (cortex_a7_fpfmad): New reservation.
11142         (cortex_a7_fpmacs): Use ffmas and update required units.
11143         (cortex_a7_fpmuld): Update required units and latency.
11144         (cortex_a7_fpmacd): Likewise.
11145         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11146         (cortex_a7_neon). Likewise.
11147         (bypass) Update participating units.
11149 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
11151         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11152         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11153         from fmac to ffma.
11154         * config/arm/vfp11.md (vfp_farith): Use ffmas.
11155         (vfp_fmul): Use ffmad.
11156         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11157         (cortex_r4_fmacd): Use ffmad.
11158         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11159         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
11160         (cortex_a9_fmacd): Use ffmad.
11161         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11162         (cortex_a8_vfp_macd): Use ffmad.
11163         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11164         (cortex_a5_fpmacd): Use ffmad.
11165         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11166         (cortex_a15_vfp_macd): Use ffmad.
11167         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11169 2013-01-29  Jason Merrill  <jason@redhat.com>
11171         PR libstdc++/54314
11172         * varasm.c (default_assemble_visibility): Don't warn about
11173         visibility on artificial decls.
11175 2013-01-29  Richard Biener  <rguenther@suse.de>
11177         PR tree-optimization/56113
11178         * tree-ssa-structalias.c (equiv_class_lookup): Also return
11179         the bitmap leader.
11180         (label_visit): Free duplicate bitmaps and record the leader instead.
11181         (perform_var_substitution): Adjust.
11183 2013-01-29  Richard Biener  <rguenther@suse.de>
11185         PR tree-optimization/55270
11186         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11187         the CFG, schedule loops for fixup.
11189 2013-01-29  Nick Clifton  <nickc@redhat.com>
11191         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11192         SP_REG.
11194 2013-01-28  Leif Ekblad  <leif@rdos.net>
11196         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11197         * config/i386/i386.h (TARGET_RDOS): New macro.
11198         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11199         * config/i386/i386.c (ix86_option_override_internal): For 64bit
11200         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11201         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11202         DEFAULT_LARGE_SECTION_THRESHOLD.
11203         * config/i386/i386.md (R14_REG, R15_REG): New constants.
11204         * config/i386/rdos.h: New file.
11205         * config/i386/rdos64.h: New file.
11207 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
11209         PR other/54814
11210         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11211         TEST_HARD_REG_BIT.
11213 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11215         PR rtl-optimization/56117
11216         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11217         call cselib_lookup_from_insn on the MEM before calling
11218         add_insn_mem_dependence.
11220 2013-01-28  Richard Biener  <rguenther@suse.de>
11222         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11223         to a stmt that didn't have one.
11224         (copy_phis_for_bb): Likewise for PHI arguments.
11225         (copy_debug_stmt): Likewise for debug stmts.
11227 2013-01-28  Richard Biener  <rguenther@suse.de>
11229         PR tree-optimization/56034
11230         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11231         (partition_builtin_p): Adjust.
11232         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
11233         it is the last partition.
11234         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11235         up the vertex for the definition.
11236         (classify_partition): Classify whether a partition is a
11237         PKIND_REDUCTION, thus has uses outside of the loop.
11238         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11239         Merge all PKIND_REDUCTION partitions into the last partition.
11240         (tree_loop_distribution): Seed partitions from reductions as well.
11242 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
11244         PR tree-optimization/56125
11245         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11246         pow(x,c) into sqrt(x) * powi(x, n/2) or
11247         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11248         optimizing for size.
11249         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11250         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11251         integer.
11253         PR tree-optimization/56094
11254         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11255         to UNKNOWN_LOCATION while gimplifying expr.
11257 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
11259         PR target/56114
11260         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11261         operand 0 in movabs insn template for -masm=intel asm alternative.
11262         (*movabs<mode>_2): Ditto for operand 1.
11264 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
11266         PR target/54663
11267         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11268         of microblaze-c.o
11270 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11272         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11273         tm_file.
11275 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11277         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11278         Undef to avoid warning.
11280 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11282         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11283         * configure: Regenerate.
11285 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
11287         PR tree-optimization/56098
11288         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11289         for stmts with volatile ops.
11290         (cond_store_replacement): Don't optimize if assign has volatile ops.
11291         (cond_if_else_store_replacement_1): Don't optimize if either
11292         then_assign or else_assign have volatile ops.
11293         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11294         volatile ops.
11296 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11298         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11300 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11302         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11303         missing ':' in asm example.
11305 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
11307         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11308         entries into lane and laneq entries.
11309         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11310         Remove AdvSIMD scalar modes.
11311         (aarch64_sq<r>dmulh_laneq<mode>): New.
11312         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11313         modes.
11314         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11315         builtin implementations to relfect changes in RTL in aarch64-simd.md.
11316         * config/aarch64/iterators.md (VCOND): New.
11317         (VCONQ): New.
11319 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
11321         PR target/54222
11322         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11323         Add NULL LIBNAME argument to existing definitions.
11324         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11325         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11326         * config/avr/avr.c (DEF_BUILTIN): Same.
11327         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11328         (avr_expand_builtin): Expand to a vanilla call if a libgcc
11329         implementation is available (DECL_ASSEMBLER_NAME is set).
11330         (avr_fold_absfx): New static function.
11331         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11332         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11333         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11334         AVR_BUILTIN_ABSLLK.
11335         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11336         (abshk, absk, abslk, absllk): Provide as static inline functions.
11338 2013-01-25  Marek Polacek  <polacek@redhat.com>
11340         PR tree-optimization/56035
11341         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11343 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
11345         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11346         (*movtf_internal_rex64): Add (!o,C) alternative
11347         (*movxf_internal_rex64): Ditto.
11348         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11350 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
11352         * doc/invoke.texi: fix typo.
11353         * doc/objc.texi: fix typo.
11355 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
11357         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11358         for the first two alternatives.
11360 2013-01-24  Diego Novillo  <dnovillo@google.com>
11362         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
11363         (ggc-zone.o): Remove.
11364         * configure.ac: Remove option --with-gc.
11365         * configure: Re-generate.
11366         * doc/install.texi: Remove documentation for --with-gc.
11367         * gengtype.c (write_enum_defn): Remove.  Update all users.
11368         (write_Types_process_field): Remove generation of gt_e_* argument.
11369         (output_type_enum): Remove.  Update all users.
11370         (write_enum_defn): Remove.  Update all users.
11371         (enum alloc_zone): Remove.  Update all users.
11372         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11373         * ggc-common.c (ggc_splay_alloc): Remove first argument.
11374         Update all callers.
11375         (struct ptr_data): Remove field TYPE.  Update all users.
11376         (gt_pch_note_object): Remove argument TYPE.  Update all users.
11377         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11378         Update all users.
11379         * ggc-none.c (ggc_alloc_typed_stat): Remove.
11380         (struct alloc_zone): Remove.
11381         (ggc_internal_alloc_zone_stat): Remove.
11382         (ggc_internal_cleared_alloc_zone_stat): Remove.
11383         * ggc-page.c (ggc_alloc_typed_stat): Remove.
11384         (ggc_pch_count_object): Remove last argument.  Update all users.
11385         (ggc_pch_alloc_object): Remove last argument.  Update all users.
11386         (struct alloc_zone): Remove.
11387         * ggc-zone.c: Remove.
11388         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
11389         (struct alloc_zone): Remove.
11390         (ggc_alloc_typed_stat): Remove.
11391         (ggc_alloc_typed): Remove.
11392         (ggc_splay_alloc): Remove first argument.
11393         (rtl_zone): Remove.  Update all users.
11394         (tree_zone): Remove.  Update all users.
11395         (tree_id_zone): Remove.  Update all users.
11396         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
11397         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
11398         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
11399         * tree-ssanames.c: Remove references to zone allocator in comments.
11401 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
11403         * config/avr/avr.c (avr_out_fract): Make register numbers that
11404         might be outside of source operand signed.
11406 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
11408         * config/i386/constraints.md (Yf): New constraint.
11409         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11410         of f constraint to conditionaly disable x87 register preferences.
11411         (*movdf_internal): Ditto.
11412         (*movsf_internal): Ditto.
11414 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
11416         PR inline-asm/55934
11417         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11418         that have operands with impossible constraints.
11419         Add a FIXME for a speed-up opportunity.
11420         * lra-constraints.c (process_alt_operands): Verify that a class
11421         selected from constraints on asms is valid for the operand mode.
11422         (curr_insn_transform): Remove incorrect comment.
11424 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
11426         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11427         TOC operand is a valid symbol ref in the constant pool.
11429 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11431         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11433 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
11435         PR target/54222
11436         * config/avr/stdfix.h: New file.
11437         * t-avr (stdfix-gcc.h): New rule to build it.
11438         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11440 2013-01-23  Kostya Serebryany  <kcc@google.com>
11442         * config/darwin.h: remove dependency on
11443         CoreFoundation (asan on Mac OS).
11445 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
11447         PR target/49069
11448         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11449         instead of cmpdi_operand for first comparison operand.
11450         Don't assert that comparison operands aren't both constants.
11452 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11454         * doc/install.texi (Downloading the Source): Update references to
11455         downloading separate components.
11457 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
11459         * doc/extend.texi (__int128): Improve grammar.
11461 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
11463         PR target/56028
11464         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11465         alternative to (o,r).
11466         (*movdi_internal_rex64): Remove (!o,n) alternative.
11467         (DImode immediate->memory splitter): Remove.
11468         (DImode immediate->memory peephole2): Remove.
11469         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11470         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11471         alternative to (!o,*r).
11472         (*movtf_internal_sse): New pattern.
11473         (*movxf_internal_rex64): New pattern.
11474         (*movxf_internal): Disable for TARGET_64BIT.
11475         (*movdf_internal_rex64): Remove (!o,F) alternative.
11477 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
11479         PR middle-end/56074
11480         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11481         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11482         * tree-vect-loop-manip.c (find_loop_location): Also ignore
11483         stmt locations where LOCATION_LOCUS of the stmt location is
11484         UNKNOWN_LOCATION or BUILTINS_LOCATION.
11486         PR target/55686
11487         * config/i386/i386.md (UNSPEC_STOS): New.
11488         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11489         *strsetqi_1): Add UNSPEC_STOS.
11491 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
11493         PR c++/56067
11494         * doc/invoke.texi: Remove left over -Wsynth example.
11496 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11498         PR tree-optimization/56051
11499         * fold-const.c (fold_binary_loc): Don't fold
11500         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11501         a narrowing conversion, or widening conversion from signed
11502         to unsigned.
11504 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
11506         PR rtl-optimization/56023
11507         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11508         dependent on debug instruction.
11510 2013-01-21  Martin Jambor  <mjambor@suse.cz>
11512         PR middle-end/56022
11513         * function.c (allocate_struct_function): Call
11514         invoke_set_current_function_hook earlier.
11516 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
11518         * reload1.c (init_reload): Only initialize reload_obstack
11519         during the first call.
11521 2013-01-21  Marek Polacek  <polacek@redhat.com>
11523         * cfgloop.c (verify_loop_structure): Fix up grammar.
11525 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
11527         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11528         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11530 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11532         PR target/56058
11533         * config/arm/marvell-pj4.md: Update copyright year.
11534         Fix up use of alu to alu_reg and simple_alu_imm.
11536 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
11538         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11540 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
11542         PR target/55433
11543         * lra-constraints.c (curr_insn_transform): Don't reuse original
11544         insn for secondary memory move when memory mode should be different.
11546 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11548         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11549         atomic_storedi_1): New patterns.
11551 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11553         btver2 pipeline descriptions.
11554         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11555         descriptions.
11556         * config/i386/i386.md (btver2_decode): New type attributes.
11557         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
11558         type attributes.
11559         * config/i386/btver2.md: New file describing btver2 pipelines.
11561 2013-01-19  Andrew Pinski  <apinski@cavium.com>
11563         PR tree-optimization/52631
11564         * tree-ssa-sccvn (visit_use): Before looking up the original
11565         statement, try looking up the simplified expression.
11567 2013-01-19  Anthony Green  <green@moxielogic.com>
11569         * config/moxie/moxie.c (moxie_expand_prologue): Set
11570         current_function_static_stack_size.
11572 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
11574         PR tree-optimization/56029
11575         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11576         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11578 2013-01-18  Sharad Singhai  <singhai@google.com>
11580         PR tree-optimization/55995
11581         * dumpfile.c (dump_loc): Print location only if available.
11582         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11584 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
11586         PR target/55433
11587         * lra-constraints.c (curr_insn_transform): Reuse original insn for
11588         secondary memory move.
11589         (inherit_reload_reg): Use rclass instead of cl for
11590         check_secondary_memory_needed_p.
11592 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
11594         PR middle-end/56015
11595         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
11596         the case where writing real complex part of target modifies op1.
11598 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
11600         * config/aarch64/aarch64-simd.md
11601         (aarch64_vcond_internal<mode>): Handle unordered cases.
11602         * config/aarch64/iterators.md (v_cmp_result): New.
11604 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
11605             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11607         * config/arm/marvell-pj4.md: New file.
11608         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11609         * config/arm/arm.md (generic_sched): Add marvell_pj4.
11610         (generic_vfp): Likewise.
11611         * config/arm/arm-cores.def: Add marvell-pj4.
11612         * config/arm/arm-tune.md: Regenerate.
11613         * config/arm/arm-tables.opt: Regenerate.
11614         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11615         * doc/invoke.texi: Document marvell-pj4.
11617 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
11619         * config/aarch64/arm_neon.h: Map scalar types to standard types.
11621 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
11623         PR debug/54114
11624         PR debug/54402
11625         PR debug/49888
11626         * var-tracking.c (negative_power_of_two_p): New.
11627         (global_get_addr_cache, local_get_addr_cache): New.
11628         (get_addr_from_global_cache, get_addr_from_local_cache): New.
11629         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
11630         heading comment.
11631         (vt_stack_offset_p): Remove.
11632         (vt_canon_true_dep): Always canonicalize loc's address.
11633         (clobber_overlapping_mems): Make sure we have a MEM.
11634         (local_get_addr_clear_given_value): New.
11635         (val_reset): Clear local cached entries.
11636         (compute_bb_dataflow): Create and release the local cache.
11637         Disable duplicate MEMs clobbering.
11638         (emit_notes_in_bb): Clobber MEMs likewise.
11639         (vt_emit_notes): Create and release the local cache.
11640         (vt_initialize, vt_finalize): Create and release the global
11641         cache, respectively.
11642         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
11644 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
11646         PR libmudflap/53359
11647         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11648         not found in the symtab.
11650 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
11652         PR debug/56006
11653         PR rtl-optimization/55547
11654         PR rtl-optimization/53827
11655         PR debug/53671
11656         PR debug/49888
11657         * alias.c (offset_overlap_p): New, factored out of...
11658         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
11659         the conservative special case for symbolic constants.  Don't
11660         adjust zero sizes on alignment.
11662 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
11664         PR rtl-optimization/52573
11665         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11666         REG_UNUSED for the same register.
11668 2013-01-17  Richard Biener  <rguenther@suse.de>
11669             Marek Polacek  <polacek@redhat.com>
11671         PR rtl-optimization/55833
11672         * loop-unswitch.c (unswitch_loops): Move loop verification...
11673         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
11674         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11675         Set it to true when we're removing a loop from hierarchy tree in
11676         an irreducible region.
11677         (fix_bb_placements): Adjust caller.
11678         (fix_loop_placements): Likewise.
11680 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
11682         * config/avr/builtins.def (DEF_BUILTIN): Factor out
11683         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11684         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11685         Remove ID.  Adjust comments.
11686         * config/avr/avr-c.c (avr_builtin_name): Remove.
11687         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11688         * config/avr/avr.c (avr_tolower): New static function.
11689         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
11690         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11691         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11692         default expansion.
11694 2013-01-17  Jan Hubicka  <jh@suse.cz>
11696         PR tree-optimization/55273
11697         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11699 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
11701         PR target/55981
11702         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11703         store through atomic_store<mode>_1.
11704         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11706 2013-01-17  Martin Jambor  <mjambor@suse.cz>
11708         PR tree-optimizations/55264
11709         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11710         for virtual methods.
11711         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11712         virtual methods before inlining is over.
11713         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11714         virtual functions.
11715         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11716         non-virtual.
11718 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
11720         PR rtl-optimization/56005
11721         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11722         pending reads for prefetch.
11724 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
11726         * config/aarch64/aarch64.md
11727         (*cstoresi_neg_uxtw): New pattern.
11728         (*cmovsi_insn_uxtw): New pattern.
11729         (*<optab>si3_uxtw): New pattern.
11730         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11731         (*<optab>si3_insn_uxtw): New pattern.
11732         (*bswapsi2_uxtw): New pattern.
11734 2013-01-16  Richard Biener  <rguenther@suse.de>
11736         * tree-inline.c (tree_function_versioning): Remove set but
11737         never used variable.
11739 2013-01-16  Richard Biener  <rguenther@suse.de>
11741         PR tree-optimization/55964
11742         * tree-flow.h (rename_variables_in_loop): Remove.
11743         (rename_variables_in_bb): Likewise.
11744         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11745         (copy_loop_before): Adjust and delete update-ssa status.
11746         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
11747         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
11748         (rename_variables_in_loop): Remove.
11749         (slpeel_update_phis_for_duplicate_loop): Likewise.
11750         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11751         use available cfg machinery instead of duplicating it.
11752         Update PHI nodes and perform poor-mans SSA update here.
11753         (slpeel_tree_peel_loop_to_edge): Adjust.
11755 2013-01-16  Richard Biener  <rguenther@suse.de>
11757         PR tree-optimization/54767
11758         PR tree-optimization/53465
11759         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11760         (vrp_visit_phi_node): For PHI arguments coming via backedges
11761         drop all symbolical range information.
11762         (execute_vrp): Compute backedges.
11764 2013-01-16  Richard Biener  <rguenther@suse.de>
11766         * doc/install.texi: Update CLooG and ISL requirements to
11767         0.18.0 and 0.11.1.
11769 2013-01-16  Christian Bruel  <christian.bruel@st.com>
11771         PR target/55301
11772         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11773         (broken_move): Handle UNSPECV_SP_SWITCH_B.
11774         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11776 2013-01-16  DJ Delorie  <dj@redhat.com>
11778         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11779         (UNSPECV_SP_SWITCH_E): New.
11780         (sp_switch_1): Change to an unspec.
11781         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
11782         replace $r15.
11784 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
11786         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11787         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11788         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11789         (expand_mem_thread_fence): Ditto.
11790         (expand_mem_signal_fence): Ditto.
11791         (expand_atomic_load): Ditto.
11792         (expand_atomic_store): Ditto.
11794 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
11796         PR rtl-optimization/55547
11797         PR rtl-optimization/53827
11798         PR debug/53671
11799         PR debug/49888
11800         * alias.c (memrefs_conflict_p): Set sizes to negative after
11801         AND adjustments.
11803 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
11805         PR target/55940
11806         * function.c (thread_prologue_and_epilogue_insns): Always
11807         add crtl->drap_reg to set_up_by_prologue.set, even if
11808         stack_realign_drap is false.
11810 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11812         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11813         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11814         *call): Fix indention.
11816 2013-01-15  Tom de Vries  <tom@codesourcery.com>
11818         PR target/55876
11819         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11820         Update comment.
11822 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
11824         PR rtl-optimization/55153
11825         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11827 2013-01-15  Martin Jambor  <mjambor@suse.cz>
11829         PR tree-optimization/55920
11830         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11831         accesses as grp_to_be_debug_replaced.
11833 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
11835         PR tree-optimization/55920
11836         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11837         there is non-useless type conversion needed from debug rhs to lhs,
11838         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11840 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
11841             Mikael Pettersson  <mikpe@it.uu.se>
11843         PR target/43961
11844         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11845         Thumb.
11846         (ASM_OUTPUT_CASE_LABEL): Remove.
11847         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11848         * final.c (shorten_branches): Update alignment of labels before
11849         jump tables if CASE_VECTOR_SHORTEN_MODE.
11851 2013-01-15  Richard Biener  <rguenther@suse.de>
11853         PR bootstrap/55961
11854         * system.h: Do not include gmp.h for building host tools.
11856 2013-01-15  Richard Biener  <rguenther@suse.de>
11858         PR middle-end/55882
11859         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11860         account for bitpos when computing alignment.
11862 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
11864         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11865         (ix86_target_macros_internal): Likewise.
11867         * config/i386/i386.c (m_CORE2I7): Removed.
11868         (m_CORE_HASWELL): New macro.
11869         (m_CORE_ALL): Likewise.
11870         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11871         (initial_ix86_arch_features): Likewise.
11872         (processor_target_table): Initializations for Core avx2.
11873         (cpu_names): New names "core-avx2".
11874         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11875         PROCESSOR_CORE_HASWELL.
11876         (ix86_issue_rate): New case.
11877         (ia32_multipass_dfa_lookahead): Likewise.
11878         (ix86_sched_init_global): Likewise.
11880         * config/i386/i386.h (TARGET_HASWELL): New macro.
11881         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11882         (processor_type): New PROCESSOR_HASWELL.
11884 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
11886         PR tree-optimization/55955
11887         * tree-vect-loop.c (vectorizable_reduction): Give up early on
11888         *SHIFT_EXPR and *ROTATE_EXPR codes.
11890         PR tree-optimization/48766
11891         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11892         -ftrapv disable -fwrapv.
11894 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
11896         PR target/55974
11897         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11898         etc. to 1 and not to __flash.
11899         Use LL suffix for __INT24_MAX__ with -mint8.
11900         Use ULL suffix for __UINT24_MAX__ with -mint8.
11902 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
11904         * config/avr/avr-arch.h
11905         (struct base_arch_s): Use typedef avr_arch_t instead.
11906         (struct arch_info_s): Use typedef avr_arch_info_t instead.
11907         (struct mcu_type_s): Use typedef avr_mcu_t instead.
11908         * config/avr/avr.c: Same.
11909         * config/avr/avr-devices.c: Same.
11910         * config/avr/driver-avr.c: Same.
11911         * config/avr/gen-avr-mmcu-texi.c: Same.
11912         * config/avr/avr-mcus.def: Adjust comment.
11914 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
11916         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11917         * config/aarch64/iterators.md (VALLDI): New.
11919 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
11920             Andi Kleen  <ak@linux.intel.com>
11922         PR target/55948
11923         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11924         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11925         memmodel flag.
11927 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
11929         * config/avr/avr-stdint.h: Remove trailing blanks.
11930         * config/avr/avr-log.h: Same.
11931         * config/avr/avr-arch.h: Same.
11932         * config/avr/avr-devices.c: Same.
11933         * config/avr/avr-dimode.md: Same.
11934         * config/avr/predicates.md: Same.
11935         * config/avr/avr-c.c: Same.  And fix typo.
11937         * config/avr/avr-protos.h: Same.  And:
11938         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11939         (init_cumulative_args): Rename to avr_init_cumulative_args.
11940         (expand_prologue): Rename to avr_expand_prologue.
11941         (expand_epilogue): Rename to avr_expand_epilogue.
11942         (adjust_insn_length): Rename to avr_adjust_insn_length.
11943         (notice_update_cc): Rename to avr_notice_update_cc.
11944         (final_prescan_insn): Rename to avr_final_prescan_insn.
11945         * config/avr/avr.c: Same.
11946         * config/avr/avr.h: Same.
11947         * config/avr/avr.md: Remove trailing blanks.
11948         (prologue): Use avr_expand_prologue.
11949         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11951 2013-01-14  Richard Biener  <rguenther@suse.de>
11953         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11954         verify_location, collect_subblocks): New functions.
11955         (verify_gimple_in_cfg): Verify that locations only reference
11956         BLOCKs in the functions BLOCK tree.
11958 2013-01-14  Richard Biener  <rguenther@suse.de>
11960         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11961         PHI argument.
11962         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11963         unshare reference.
11964         (insert_out_of_ssa_copy_on_edge): Likewise.
11965         (rewrite_close_phi_out_of_ssa): Likewise.
11966         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11967         debug expressions.
11968         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11969         propagated constants.
11970         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11971         can not be shared.
11973 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
11975         * config/avr/avr-modes.def: Add GPL copyright notice.
11977 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
11979         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11980         MEMMODEL_MASK to determine memory model.
11981         (atomic_store<mode>): Ditto from operands[2].
11982         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11984 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
11986         PR fortran/55935
11987         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11988         (fold_gimple_assign): Don't call unshare_expr here.
11989         (fold_ctor_reference): Call unshare_expr.
11991 2013-01-13  Terry Guo  <terry.guo@arm.com>
11993         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11994         * doc/fragments.texi: Document MULTILIB_REUSE.
11995         * gcc.c (multilib_reuse): New internal spec.
11996         (set_multilib_dir): Also search multilib from multilib_reuse.
11997         * genmultilib (tmpmultilib3): Refactor code.
11998         (tmpmultilib4): Ditto.
11999         (multilib_reuse): New multilib argument.
12001 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12003         * Makefile.in: Update copyright.
12005 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12007         PR middle-end/55890
12008         * calls.c (expand_call): Check if arg_nr is valid.
12010 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12012         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12013         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12014         documentation.  Add missing '__' in front of
12015         __builtin_ia32_packssdw256.
12017 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12019         PR target/55719
12020         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12021         NO_REGS for larl operands.
12022         (s390_reload_larl_operand): Use s390_load_address instead of
12023         emit_move_insn.
12025 2013-01-11  Richard Biener  <rguenther@suse.de>
12027         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12028         (verify_node_sharing): ... here.
12029         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12031 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12033         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12034         Substitute TREECHECKING.
12035         * configure: Regenerate.
12036         * Makefile.in (TREECHECKING): New.
12038 2013-01-11  Richard Guenther  <rguenther@suse.de>
12040         PR tree-optimization/44061
12041         * tree-vrp.c (extract_range_basic): Compute zero as
12042         value-range for __builtin_constant_p of function parameters.
12044 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12046         Update copyright years.
12048 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12050         PR rtl-optimization/55672
12051         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12052         const to be eliminable.
12054 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12056         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12057         * configure: Regenerate.
12059 2013-01-10  Richard Biener  <rguenther@suse.de>
12061         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12063 2013-01-10  Richard Biener  <rguenther@suse.de>
12065         PR bootstrap/55792
12066         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12067         locations for virtual PHI arguments.
12068         (rewrite_update_phi_arguments): Likewise.
12070 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12072         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12073         on to assembler.
12075 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12077         PR tree-optimization/55921
12078         * tree-complex.c (expand_complex_asm): New function.
12079         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12081 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12083         PR target/55718
12084         * config/s390/s390.c (s390_symref_operand_p)
12085         (s390_loadrelative_operand_p): Merge the two functions.
12086         (s390_check_qrst_address, print_operand_address): Add parameters
12087         to s390_loadrelative_operand_p invokation.
12088         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12089         (s390_reload_larl_operand, s390_secondary_reload): Use
12090         s390_loadrelative_operand_p instead of s390_symref_operand_p.
12091         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12093 2013-01-09  Mike Stump  <mikestump@comcast.net>
12095         * dse.c (record_store): Remove unnecessary assert.
12097 2013-01-09  Jan Hubicka  <jh@suse.cz>
12099         PR tree-optimization/55569
12100         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12101         * cfgloop.h (scale_loop_profile): Likewise.
12103 2013-01-09  Jan Hubicka  <jh@suse.cz>
12105         PR lto/45375
12106         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12107         functions.
12108         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12110 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
12112         PR middle-end/55114
12113         * expr.h (maybe_emit_group_store): Declare.
12114         * expr.c (maybe_emit_group_store): New function.
12115         * builtins.c (expand_builtin_int_roundingfn): Call it.
12116         (expand_builtin_int_roundingfn_2): Likewise.
12118 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
12120         PR rtl-optimization/55829
12121         * lra-constraints.c (match_reload): Add code for absent output.
12122         (curr_insn_transform): Add code for reloads of matched inputs
12123         without output.
12125 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
12127         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12128         attribute of movddup insn to DF.
12129         (*vec_interleave_lowv2df): Ditto.
12130         (vec_dupv2df): Ditto.
12132 2013-01-09  Jan Hubicka  <jh@suse.cz>
12134         PR tree-optimiation/55875
12135         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12136         EVERY_ITERATION parameter.
12137         (number_of_iterations_exit): Check if exit is executed every iteration.
12138         (idx_infer_loop_bounds): Similarly here.
12139         (n_of_executions_at_most): Simplify
12140         to only test for cases where statement is dominated by the
12141         particular bound; handle correctly the "postdominance" test.
12142         (scev_probably_wraps_p): Use max loop iterations info
12143         as a global bound first.
12145 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
12146             Nick Clifton  <nickc@redhat.com>
12148         * config/v850/v850.md (cbranchsf4): New pattern.
12149         (cstoresf4): New pattern.
12150         (cbranchdf4): New pattern.
12151         (cstoredf4): New pattern.
12152         (movsicc): Disallow floating point comparisons.
12153         (cmpsf_le_insn): Fix order of operators.
12154         (cmpsf_lt_insn): Likewise.
12155         (cmpsf_eq_insn): Likewise.
12156         (cmpdf_le_insn): Likewise.
12157         (cmpdf_lt_insn): Likewise.
12158         (cmpdf_eq_insn): Likewise.
12159         (cmpsf_ge_insn): Use LE comparison.
12160         (cmpdf_ge_insn): Likewise.
12161         (cmpsf_gt_insn): Use LT comparison.
12162         (cmpdf_gt_insn): Likewise.
12163         (cmpsf_ne_insn): Delete pattern.
12164         (cmpdf_ne_insn): Delete pattern.
12165         * config/v850/v850.c (v850_gen_float_compare): Use
12166         gen_cmpdf_eq_insn for NE comparison.
12167         (v850_float_z_comparison_operator)
12168         (v850_float_nz_comparison_operator): Move from here ...
12169         * config/v850/predicates.md: ... to here.  Move GT and GE
12170         comparisons into v850_float_z_comparison_operator.
12171         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12172         Delete prototype.
12173         (v850_float_nz_comparison_operator): Likewise.
12175 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12177         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12178         with calls to gen_insvsi/gen_insvdi.
12180 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12182         * config/i386/i386.c (initial_ix86_tune_features): Set up
12183         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12185 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
12186             Jakub Jelinek  <jakub@redhat.com>
12188         PR tree-optimization/48189
12189         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12190         If nitercst is 0, don't predict the exit edge.
12192 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12194         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12195         in asm_fprintf with reg_names.
12196         (aarch64_print_operand_address): Likewise.
12197         (aarch64_return_addr): Likewise.
12198         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12200 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12202         * config/pa/pa.h (VAL_U6_BITS_P): Define.
12203         (INT_U6_BITS): Likewise.
12204         * config/pa/predicates.md (uint6_operand): New predicate.
12205         (shift5_operand, shift6_operand): Likewise.
12206         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12207         arith32_operand.
12208         (lshrdi3): Use shift6_operand.
12209         (shrpsi4, shrpdi4): New insn patterns.
12210         (extzv): Delete expander.
12211         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
12212         predicates in unamed zero extract patterns.  Tighten common constraint.
12213         (extv): Delete expander.
12214         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
12215         predicates in unamed sign extract patterns.  Tighten common constraint.
12216         (insv): Delete expander.
12217         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
12218         predicates in unamed insert patterns.  Tighten common constraint.
12219         Change uint32_operand predicate to uint6_operand predicate in unamed
12220         DImode pattern to insert constant values of type 1...1xxxx.
12222 2013-01-04  Jan Hubicka  <jh@suse.cz>
12224         PR tree-optimization/55823
12225         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12226         issue.
12228 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12229             Uros Bizjak  <ubizjak@gmail.com>
12231         PR rtl-optimization/55845
12232         * df-problems.c (can_move_insns_across): Stop scanning at
12233         volatile_insn_p source instruction or give up if
12234         across_from .. across_to range contains any volatile_insn_p
12235         instructions.
12237 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12239         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12240         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12241         Declare.
12242         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12243         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12245 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12247         PR fortran/55341
12248         * asan.c (asan_clear_shadow): New function.
12249         (asan_emit_stack_protection): Use it.
12251 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
12253         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12254         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12255         with tab instead of space.
12257 2013-01-08  Nick Clifton  <nickc@redhat.com>
12259         * config/rl78/rl78.c (rl78_expand_prologue): Always select
12260         register bank 0 at the start of an interrupt handler.
12261         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12262         MDBH registers.
12264 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12266         * config/aarch64/aarch64-simd.md
12267         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12268         (aarch64_simd_bsl): Likewise.
12269         (aarch64_vcond_internal<mode>): Likewise.
12270         (vcond<mode><mode>): Likewise.
12271         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12272         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12274 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
12276         * config/aarch64/aarch64-builtins.c
12277         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12279 2013-01-08  Martin Jambor  <mjambor@suse.cz>
12281         PR debug/55579
12282         * tree-sra.c (analyze_access_subtree): Return true also after
12283         potentially creating a debug-only replacement.
12285 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12287         PR middle-end/55890
12288         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12290         PR tree-optimization/54120
12291         * tree-vrp.c (range_fits_type_p): Don't allow
12292         src_precision < precision from signed vr to unsigned_p
12293         if vr->min or vr->max is negative.
12294         (simplify_float_conversion_using_ranges): Test can_float_p
12295         against CODE_FOR_nothing.
12297 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
12298             Richard Biener  <rguenther@suse.de>
12300         PR middle-end/55851
12301         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12302         types instead of just INTEGER_TYPE types.
12304 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
12306         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12307         TF_SIZE): Define.
12309 2013-01-07  Steve Ellcey  <sellcey@mips.com>
12311         PR target/42661
12312         * config/mips/mips.opt: Change mad to mmad to match documentation.
12314 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12316         PR target/55897
12317         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12318         .progmemx.data now.
12320 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12322         PR target/55897
12323         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12324         (avr_addrspace_t): Add .section_name field.
12325         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12326         array size.
12327         (avr_addrspace): Same.  Initialize .section_name.  Remove last
12328         NULL entry.  Put __memx into .progmemx.data.
12329         (progmem_section_prefix): Remove.
12330         (avr_asm_init_sections): No need to initialize progmem_section.
12331         (avr_asm_named_section): Use avr_addrspace[].section_name to get
12332         section name prefix.
12333         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
12334         retrieve the progmem section.
12335         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12336         boundary to run over avr_addrspace[].
12337         (avr_register_target_pragmas): Ditto.
12339 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
12341         * varasm.c (output_constant_def_contents): For asan_protect_global
12342         protected strings, adjust DECL_ALIGN if needed, before testing for
12343         anchored symbols.
12344         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12345         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
12346         normal decls.
12347         (output_object_block): For asan protected decls, emit asan padding
12348         after their contents.
12349         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12350         (asan_finish_file): Test it here instead.
12352 2013-01-07  Nick Clifton  <nickc@redhat.com>
12353             Matthias Klose  <doko@debian.org>
12354             Doug Kwan  <dougkwan@google.com>
12355             H.J. Lu  <hongjiu.lu@intel.com>
12357         PR driver/55470
12358         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12360         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12362         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12364         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12366         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12368 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12370         PR target/54461
12371         * doc/install.texi (Cross-Compiler-Specific Options): Document
12372         --with-avrlibc.
12374 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
12376         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12377         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12378         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12379         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12380         vqmovun_high_s64): Fix source operand number and update copyright.
12382 2013-01-07  Richard Biener  <rguenther@suse.de>
12384         PR middle-end/55890
12385         * gimple.h (gimple_call_builtin_p): New overload.
12386         * gimple.c (validate_call): New function.
12387         (gimple_call_builtin_p): Likewise.
12388         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12389         Use gimple_call_builtin_p.
12390         (find_func_clobbers): Likewise.
12391         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12392         (strlen_optimize_stmt): Likewise.
12394 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12396         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12397         (vld1q_dup_*): Likewise.
12398         (vld1_*): Likewise.
12399         (vld1q_*): Likewise.
12400         (vld1_lane_*): Likewise.
12401         (vld1q_lane_*): Likewise.
12403 2013-01-07  Richard Biener  <rguenther@suse.de>
12405         * lto-streamer.h (LTO_minor_version): Bump to 2.
12407 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
12409         * config/aarch64/aarch64-protos.h
12410         (aarch64_const_double_zero_rtx_p): Rename to...
12411         (aarch64_float_const_zero_rtx_p): ...this.
12412         (aarch64_float_const_representable_p): New.
12413         (aarch64_output_simd_mov_immediate): Likewise.
12414         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12415         move immediate case.
12416         * config/aarch64/aarch64.c
12417         (aarch64_const_double_zero_rtx_p): Rename to...
12418         (aarch64_float_const_zero_rtx_p): ...this.
12419         (aarch64_print_operand): Allow printing of new constants.
12420         (aarch64_valid_floating_const): New.
12421         (aarch64_legitimate_constant_p): Check for valid floating-point
12422         constants.
12423         (aarch64_simd_valid_immediate): Likewise.
12424         (aarch64_vect_float_const_representable_p): New.
12425         (aarch64_float_const_representable_p): Likewise.
12426         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12427         (aarch64_output_simd_mov_immediate): New.
12428         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12429         (*movdf_aarch64): Likewise.
12430         * config/aarch64/constraints.md (Ufc): New.
12431         (Y): call aarch64_float_const_zero_rtx.
12432         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12434 2013-01-07  Richard Biener  <rguenther@suse.de>
12436         PR tree-optimization/55888
12437         PR tree-optimization/55862
12438         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12439         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12440         not if it is contained therein.
12442 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12444         * config/avr/t-avr: Typo.
12446 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
12448         PR55243
12449         * config/avr/t-avr: Don't automatically rebuild
12450         $(srcdir)/config/avr/t-multilib
12451         $(srcdir)/config/avr/avr-tables.opt
12452         $(srcdir)/doc/avr-mmcu.texi
12453         (avr-mcus): New phony target to build them on request.
12454         (s-avr-mlib, s-avr-mmcu-texi): Remove.
12455         * avr/avr-mcus.def: Adjust comments.
12457 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
12459         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12461 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12463         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12465 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
12467         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12469 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
12471         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12472         to generate profiling.
12473         * config/rs6000/aix64.h (LIB_SPEC): Same.
12475 2013-01-04  Andrew Pinski  <apinski@cavium.com>
12477         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12478         New function.
12479         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12481 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
12483         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12484         unconditionally.
12485         (ix86_expand_move): Ditto.
12486         (ix86_zero_extend_to_Pmode): Ditto.
12487         (ix86_expand_call): Ditto.
12488         (ix86_expand_special_args_builtin): Ditto.
12489         (ix86_expand_builtin): Ditto.
12491 2013-01-04  Richard Biener  <rguenther@suse.de>
12493         PR tree-optimization/55862
12494         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12495         translating them through PHI nodes.
12497 2013-01-04  Martin Jambor  <mjambor@suse.cz>
12499         PR tree-optimization/55755
12500         * tree-sra.c (sra_modify_assign): Do not check that an access has no
12501         children when trying to avoid producing a VIEW_CONVERT_EXPR.
12503 2013-01-04  Marek Polacek  <polacek@redhat.com>
12505         PR middle-end/55859
12506         * opts.c (default_options_optimization): Clarify error message.
12508 2013-01-04  Richard Biener  <rguenther@suse.de>
12510         PR middle-end/55863
12511         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12512         reassociation.
12514 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12516         PR target/53789
12517         * config/pa/pa.md (movsi): Revert previous change.
12518         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12519         references.
12521 2013-01-03  Richard Henderson  <rth@redhat.com>
12523         * config/i386/i386.c (ix86_expand_move): Always assign to op1
12524         after eliminating TLS symbols.
12526 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
12528         PR bootstrap/50167
12529         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12530         * graphite-poly.c (debug_gmp_value): Likewise.
12532 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
12534         PR target/55712
12535         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12536         selected code model, define __code_mode_small__, __code_model_medium__,
12537         __code_model_large__, __code_model_32__ or __code_model_kernel__.
12538         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12539         xchg temporary register with %k.  Declare temporary register as
12540         early clobbered.
12541         [__x86_64__]: For medium and large code models, preserve %rbx register.
12543 2013-01-03  Richard Biener  <rguenther@suse.de>
12545         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
12546         (dump_subscript): Adjust.
12547         (finalize_ddr_dependent): Do not dump redundant info.
12548         (analyze_siv_subscript): Adjust.
12549         (subscript_dependence_tester): Likewise.
12550         (compute_affine_dependence): Likewise.
12552 2013-01-03  Richard Biener  <rguenther@suse.de>
12554         Revert
12555         2013-01-03  Richard Biener  <rguenther@suse.de>
12557         PR tree-optimization/55857
12558         * tree-vect-stmts.c (vectorizable_load): Do not setup
12559         re-alignment for invariant loads.
12561         2013-01-02  Richard Biener  <rguenther@suse.de>
12563         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12564         invariant load do not generate a vector load from the scalar location.
12566 2013-01-03  Richard Biener  <rguenther@suse.de>
12568         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12569         for not vectorizing.
12570         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12571         not build INDIRECT_REFs, call get_name once only.
12572         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
12573         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
12575 2013-01-03  Richard Biener  <rguenther@suse.de>
12577         PR tree-optimization/55857
12578         * tree-vect-stmts.c (vectorizable_load): Do not setup
12579         re-alignment for invariant loads.
12581 2013-01-03  Richard Biener  <rguenther@suse.de>
12583         PR lto/55848
12584         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12585         prefer a built-in decl.
12587 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12589         * gcc.c (process_command): Update copyright notice dates.
12590         * gcov.c (print_version): Likewise.
12591         * gcov-dump.c (print_version): Likewise.
12593         PR rtl-optimization/55838
12594         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12595         iv0.step, iv1.step and step.
12597 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12598             Marc Glisse  <marc.glisse@inria.fr>
12600         PR tree-optimization/55832
12601         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12602         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12603         integer_{one,zero}_node.
12605 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
12607         PR debug/54402
12608         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12609         * var-tracking.c (reverse_op): Don't add reverse ops to
12610         VALUEs that have already
12611         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
12613 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12615         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12617 2013-01-02  Teresa Johnson  <tejohnson@google.com>
12619         * dumpfile.c (dump_loc): Print filename with location.
12620         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
12621         new location_t parameter to emit complete unroll message with
12622         new dump framework.
12623         (canonicalize_loop_induction_variables): Compute loops location
12624         and pass to try_unroll_loop_completely.
12625         * loop-unroll.c (report_unroll_peel): New function.
12626         (peel_loops_completely): Use new dump format with location
12627         for main dumpfile message, and invoke report_unroll_peel on success.
12628         (decide_unrolling_and_peeling): Ditto.
12629         (decide_peel_once_rolling): Remove old dumpfile message subsumed
12630         by report_unroll_peel.
12631         (decide_peel_completely): Ditto.
12632         (decide_unroll_constant_iterations): Ditto.
12633         (decide_unroll_runtime_iterations): Ditto.
12634         (decide_peel_simple): Ditto.
12635         (decide_unroll_stupid): Ditto.
12636         * cfgloop.c (get_loop_location): New function.
12637         * cfgloop.h (get_loop_location): Declare.
12639 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
12641         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12642         NULL.
12644 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12646         PR middle-end/55198
12647         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12648         BLKmode objects when EXPAND_MEMORY is specified.
12650 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
12652         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12653         in loop predicate.
12654         (fold_builtin_cpu): Do not share cpu model decls across statements.
12656 2013-01-02  Jason Merrill  <jason@redhat.com>
12658         PR c++/55804
12659         * tree.c (build_array_type_1): Revert earlier change.
12661 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12663         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12664         "cortex-a57".
12665         * config/aarch64/aarch64-tune.md: Re-generate.
12667 2013-01-02  Richard Biener  <rguenther@suse.de>
12669         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12670         invariant load do not generate a vector load from the scalar location.
12672 2013-01-02  Richard Biener  <rguenther@suse.de>
12674         PR bootstrap/55784
12675         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12676         * configure: Regenerate.
12678 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12680         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12681         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12682         (expand_builtin_int_roundingfn_2): Keep the original target around
12683         for the fallback case.
12685 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12687         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12688         to be clear for sign changes.
12690 2013-01-01  Jan Hubicka  <jh@suse.cz>
12692         * ipa-inline-analysis.c: Fix formatting.
12694 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
12696         PR tree-optimization/55831
12697         * tree-vect-loop.c (get_initial_def_for_induction): Use
12698         gsi_after_labels instead of gsi_start_bb.
12700 Copyright (C) 2013 Free Software Foundation, Inc.
12702 Copying and distribution of this file, with or without modification,
12703 are permitted in any medium without royalty provided the copyright
12704 notice and this notice are preserved.